Lesson 5 of 7 · 18 min
Costing and pricing with matrices
Set up quantity and price matrices, multiply them in the right order to find totals, revenue, costs and profit, and say what each entry of the answer means.
What you will be able to do
- Set up a quantity matrix and a price (or points) matrix from a context, with labels.
- Choose the order of multiplication so the inner labels match.
- Calculate and interpret totals, revenue, costs and profit from a matrix product.
- Use the result to make and justify a decision.
At a school athletics carnival, each house's medals are recorded in a matrix. A gold is worth 5 points, a silver 3 and a bronze 1. To find each house's total, you multiply its gold count by 5, its silver by 3 and its bronze by 1, then add. That is row-by-column multiplication, done for every house at once.
Worked example
Find each house's carnival points
The medals won by the four houses (Banksia, Grevillea, Jacaranda, Waratah) are stored in
with columns for gold, silver and bronze. A gold is worth 5 points, a silver 3 and a bronze 1. Use matrix multiplication to find each house's total points, and state which house won the carnival.
Step 1: Write the points as a matrix that matches
is (houses × medals), so the points need to be (medals × points), a column:
For to be defined, the columns of (gold, silver, bronze) must line up with the rows of . : one total for each house.
Step 2: Multiply row by column
Step 3: Interpret
Banksia 94, Grevillea 92, Jacaranda 87, Waratah 72. Banksia won, two points ahead of Grevillea, even though Grevillea won the most silver medals.
Try it yourself first, then check the working one step at a time.
Answer
Banksia 94, Grevillea 92, Jacaranda 87 and Waratah 72 points, so Banksia won the carnival.
Method
Label each matrix (rows × columns).
Arrange the second matrix so the inner labels match.
Multiply, then read each element with the outer labels.
Watch out for
Writing the points as a row : then is , which is not defined.
Key idea
Match the labels in the middle
Write the labels of each matrix as (rows × columns). The product is defined, and makes sense, when the inner labels match. The outer labels tell you what the answer's rows and columns are.
If the inner labels don't match, swap the order, or rewrite a row matrix as a column (or a column as a row) so that they do.
A family buys tickets to the Ekka. The numbers of adult, child and concession tickets are and the prices, in dollars, are . Calculate to find the total cost of the tickets.
holds the flat whites, iced coffees and muffins sold each day, and holds their prices. Pick each element of to see that day's revenue being built. Change a price and watch all three days update.
Worked example
A café's revenue and profit over a weekend
A café sells flat whites, iced coffees and muffins. Matrix shows the numbers sold on Friday, Saturday and Sunday. Each flat white sells for $5.20 and costs the café $1.40 to make; an iced coffee sells for $6.50 and costs $1.90; a muffin sells for $4.80 and costs $2.10.
(a) Use matrices to find the café's revenue on each day.
(b) Find the profit on each day, and the total profit for the weekend.
Step 1: Set up the price matrix
is (days × items), so the prices go in an (items × price) column:
: one revenue for each day.
Step 2: Multiply to find the revenue
Friday:
With technology for the rest:
Step 3: Find the profit per item
Profit per item = selling price − cost:
Multiplying by the profit per item gives the same answer as (revenue minus cost) with one multiplication fewer.
Step 4: Multiply to find each day's profit
Step 5: Add for the weekend
Total profit:
Try it yourself first, then check the working one step at a time.
Answer
(a) Revenue: Friday $855.60, Saturday $1276.90, Sunday $1236.80. (b) Profit: Friday $593.40, Saturday $884.60, Sunday $859.90; $2337.90 for the weekend.
Method
Put quantities in a (days × items) matrix and prices in an (items × 1) column.
Multiply to get one total per day; show one element in full.
Profit = revenue − cost: multiply by (price − cost) per item, or subtract the cost product from the revenue product.
Watch out for
Subtracting the total cost of one of each item from the revenue, instead of the cost of everything sold.
Giving the answer as an unlabelled column of numbers.
A bakery has two stores. Matrix (order ) holds the number of loaves, pies and cakes each store sold on Monday, with a row for each store. Matrix (order ) holds the price of a loaf, a pie and a cake. Which calculation gives the revenue of each store on Monday?
Worked example
Choose a supplier for the school tuckshop
A school tuckshop needs 40 kg of beef mince, 25 kg of chicken and 60 kg of potatoes for the week. Two suppliers quote these prices per kilogram.
| Item | Supplier A | Supplier B |
|---|---|---|
| Beef mince | $11.50 | $12.20 |
| Chicken | $9.80 | $9.20 |
| Potatoes | $2.40 | $2.10 |
Supplier A delivers free; Supplier B charges a $15 delivery fee. Use matrices to decide which supplier the tuckshop should use, and justify your decision.
Step 1: Set up the matrices with labels
Order (1 × items): . Prices (items × suppliers):
The inner labels (items) match, so is defined: , one cost for each supplier.
Step 2: Multiply
Supplier A:
Supplier B:
Step 3: Include the delivery fee
Supplier A costs $849. Supplier B costs .
On the food alone, B is $5 cheaper. The delivery fee is a fixed cost that the matrix product does not include, so add it separately.
Step 4: Decide and justify
Supplier A is cheaper by a week, so the tuckshop should use Supplier A — unless it can collect the order itself, in which case B is $5 cheaper.
Try it yourself first, then check the working one step at a time.
Answer
Supplier A: $849. Supplier B: $844 + $15 delivery = $859. The tuckshop should use Supplier A, which is $10 cheaper a week.
Method
Label every matrix and arrange them so the inner labels match.
Multiply to get the total for each option.
Add any fixed costs the matrices leave out.
Compare, decide, and justify with the figures and any assumptions.
Watch out for
Stopping at and choosing B because $844 < $849, without the delivery fee.
Writing the order as a column, so that is not defined.
Common mistake
Mixing up rows and columns of a price list
A price list can be written as a row or as a column. Choose the one that makes the inner labels match: quantities in rows by item need prices in a column by item. If you multiply a quantity matrix by a price matrix, the product is not defined — that is your signal to rewrite one of them.
Exam tip
In the exam
Write each matrix with its labels, state the orders, and show the working for at least one element. Finish with a sentence in context: "Saturday's revenue was $1276.90, the highest of the three days." For decisions, quote the figures that support your choice and mention anything the model leaves out, such as delivery fees or quality.
Summary
Set up the matrices with labels: quantities (who × what) and prices or points (what × value).
Multiply so the inner labels match; the outer labels name the rows and columns of the answer.
Each element of the product is a total: quantity × price, added over all the items.
Profit = revenue − cost. Use a profit-per-item matrix, or subtract the cost product from the revenue product.
Interpret every answer in context, and use the figures to justify any decision.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.