Lesson 5: Costing and pricing with matrices
Find each house's carnival points
SkillsCosting and pricing with matricesMultiplying matrices
Worked example
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.
Answer
Banksia 94, Grevillea 92, Jacaranda 87 and Waratah 72 points, so Banksia won the carnival.
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
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.