Matrix operations (SACE Stage 2 General Mathematics)
“Perform matrix addition, subtraction, scalar multiplication and matrix multiplication, applying the order and conformability rules correctly.”
Matrix addition, subtraction and scalar multiplication work element by element and need matrices of the same order. Matrix multiplication uses the row-by-column rule and is only defined when the number of columns of the first matrix equals the number of rows of the second.
Jump to a section
What this dot point is asking
You must know the order of a matrix, perform the four operations correctly, and state when an operation is or is not defined.
Order and notation
A matrix is a rectangular array of numbers. Its order is rows columns. The matrix
has order (2 rows, 3 columns). The entry sits in row , column , so .
Two matrices are conformable for addition or subtraction only if they have the same order. They are conformable for multiplication only if the number of columns of equals the number of rows of .
Addition, subtraction and scalar multiplication
These three operations act on each element separately. Same-position entries are combined; for scalar multiplication every entry is multiplied by the scalar.
Two stores hold stock as and , where rows represent different products and columns represent sizes. Find the total combined stock, then find to represent a planned doubled order for store 1.
Step 1: Check the matrices are conformable for addition
Before adding, we confirm both matrices have the same order. Both and are matrices, so addition is defined. The result will also be .
Step 2: Add the matrices by combining matching entries
Matrix addition works element by element: each entry in the result comes from adding the entries in the same position of both matrices. We add the entry in row 1, column 1 of to the entry in row 1, column 1 of , and so on for every position:
This result gives the total number of each product in each size across both stores.
Step 3: Apply scalar multiplication to find the doubled order
To double , we multiply every entry in by the scalar 2. This scales the entire matrix uniformly, which makes sense here because we want twice as many of every item in the order:
Final answers: Total stock is ; the doubled order for store 1 is .
Matrix multiplication
To find the entry in row , column of the product , multiply the elements of row of by the matching elements of column of and add the results.
If is and is , the product has order . The two inner numbers must match; the two outer numbers give the size of the answer.
. If the inner numbers differ, the product is not defined. The product exists in a fixed order: may exist while does not, and even when both exist they are usually different.
A cafe order is (3 coffees, 2 muffins). Prices are dollars. Find the total cost of the order using matrix multiplication, and state the order of the resulting matrix.
Step 1: Check that the product is defined
Before multiplying, we confirm conformability. has order (one row, two columns) and has order (two rows, one column). The inner dimensions are both 2, so the product is defined. The outer dimensions tell us the result will have order , that is, a single number, which makes sense for a total cost.
Step 2: Apply the row-by-column rule to compute
To find the single entry in the product, we pair each element of row 1 of with the matching element of column 1 of and sum the products. This is why matrix multiplication is suited to "quantity times price" problems: it automatically multiplies each quantity by its price and adds them:
Step 3: Interpret the result in context
The resulting matrix holds the single value . This represents the total cost of the order: 3 coffees at each plus 2 muffins at each comes to .
Final answer: , so the total cost of the order is .
The identity and zero matrices
Two special matrices behave like the numbers and . The zero matrix has every entry zero and leaves a matrix unchanged under addition. The identity matrix has s down the leading diagonal and s elsewhere; multiplying any conformable matrix by returns that matrix, so . The identity plays the role of "one" in matrix multiplication and is essential when you later meet inverse matrices, where the goal is to find a matrix that multiplies with to give .
Why order matters
Because multiplication combines rows of the first matrix with columns of the second, swapping the order changes both whether the product is defined and what it equals. In the costing example, is also defined ( times ) but gives a matrix, which means something entirely different.
A larger multiplication
When both matrices are larger, work systematically through every row-column pairing. For of order times of order , the result is , and each of its four entries is a separate row-by-column sum. For example, the top-left entry of the product uses row 1 of with column 1 of , the top-right uses row 1 of with column 2 of , and so on. Laying the working out entry by entry, rather than trying to do it all at once, is the reliable way to avoid pairing the wrong row with the wrong column - the most common source of multiplication errors.
Write the two orders side by side first. If the inner numbers match, the product exists and the outer numbers tell you the size of your answer; set up a result of that size before filling it in.
Do not assume . Matrix multiplication is not commutative. Also do not try to add matrices of different orders, and never multiply matrices element by element the way you add them. Matrix multiplication always uses the row-by-column rule.
Exam-style questions
Questions in the style of SACE Board exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
Practice4 marksCalculator-assumed. A cafe sells coffees and muffins. The order matrix is (3 coffees, 2 muffins) and the price matrix is dollars. (a) State the order of the product and explain why is defined. (b) Calculate and interpret the result.Show worked answer →
(a) is and is . The inner numbers (2 and 2) match, so is defined and has order . (2 marks)
(b) . This is the total cost of the order, 19.50 dollars. (2 marks)
Marks: two for the conformability reasoning and order, two for the product and its interpretation.
Practice3 marksCalculator-assumed. Given and , find (a) and (b) .Show worked answer →
(a) Add matching entries: . (2 marks)
(b) Multiply every entry by 2: . (1 mark)
Marks: two for the element-by-element sum, one for the scalar multiple.