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

  • Simple familiar

The medals won by the four houses (Banksia, Grevillea, Jacaranda, Waratah) are stored in

M=[129781410108136119]M = \begin{bmatrix} 12 & 9 & 7 \\ 8 & 14 & 10 \\ 10 & 8 & 13 \\ 6 & 11 & 9 \end{bmatrix}

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.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Label each matrix (rows × columns).

  2. Arrange the second matrix so the inner labels match.

  3. Multiply, then read each element with the outer labels.

Watch out for

  • Writing the points as a row [531]\begin{bmatrix} 5 & 3 & 1 \end{bmatrix}: then MPMP is (4×3)(1×3)(4 \times 3)(1 \times 3), 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.

M(houses×medals)  P(medals×points)→(houses×points)\underset{(\text{houses} \times \text{medals})}{M} \; \underset{(\text{medals} \times \text{points})}{P} \to (\text{houses} \times \text{points})

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 Q=[231]Q = \begin{bmatrix} 2 & 3 & 1 \end{bmatrix} and the prices, in dollars, are P=[452836]P = \begin{bmatrix} 45 \\ 28 \\ 36 \end{bmatrix}. Calculate QPQP to find the total cost of the tickets.

in dollars
Interactive

A weekend at the café

AA holds the flat whites, iced coffees and muffins sold each day, and BB holds their prices. Pick each element of ABAB 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

  • Complex familiar
  • Technology active

A café sells flat whites, iced coffees and muffins. Matrix QQ 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.

Q=[85403212065481107241]Q = \begin{bmatrix} 85 & 40 & 32 \\ 120 & 65 & 48 \\ 110 & 72 & 41 \end{bmatrix}

(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.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Put quantities in a (days × items) matrix and prices in an (items × 1) column.

  2. Multiply to get one total per day; show one element in full.

  3. 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 QQ (order 2×32 \times 3) holds the number of loaves, pies and cakes each store sold on Monday, with a row for each store. Matrix CC (order 3×13 \times 1) holds the price of a loaf, a pie and a cake. Which calculation gives the revenue of each store on Monday?

Choose one answer

Worked example

Choose a supplier for the school tuckshop

  • Complex unfamiliar
  • Technology active

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.

ItemSupplier ASupplier 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.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Label every matrix and arrange them so the inner labels match.

  2. Multiply to get the total for each option.

  3. Add any fixed costs the matrices leave out.

  4. Compare, decide, and justify with the figures and any assumptions.

Watch out for

  • Stopping at RPRP and choosing B because $844 < $849, without the delivery fee.

  • Writing the order as a column, so that RPRP 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 1×31 \times 3 quantity matrix by a 1×31 \times 3 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.

Lesson 5 of 70% read

Save your progress with a free account