Skip to main content

Matrix operations (SACE Stage 2 General Mathematics)

Syllabus dot point

“Perform matrix addition, subtraction, scalar multiplication and matrix multiplication, applying the order and conformability rules correctly.”

8 min read

Quick answer

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
  1. What this dot point is asking
  2. Order and notation
  3. Addition, subtraction and scalar multiplication
  4. Matrix multiplication
  5. The identity and zero matrices
  6. Why order matters
  7. A larger multiplication
  8. Exam-style questions

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 ×\times columns. The matrix

A=[251034]A = \begin{bmatrix} 2 & 5 & 1 \\ 0 & 3 & 4 \end{bmatrix}

has order 2×32 \times 3 (2 rows, 3 columns). The entry aija_{ij} sits in row ii, column jj, so a23=4a_{23} = 4.

Conformable for an operation

Two matrices are conformable for addition or subtraction only if they have the same order. They are conformable for multiplication ABAB only if the number of columns of AA equals the number of rows of BB.

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.

[2503]+[1−246]=[3349],3[2503]=[61509]\begin{bmatrix} 2 & 5 \\ 0 & 3 \end{bmatrix} + \begin{bmatrix} 1 & -2 \\ 4 & 6 \end{bmatrix} = \begin{bmatrix} 3 & 3 \\ 4 & 9 \end{bmatrix}, \qquad 3\begin{bmatrix} 2 & 5 \\ 0 & 3 \end{bmatrix} = \begin{bmatrix} 6 & 15 \\ 0 & 9 \end{bmatrix}

Worked example

Two stores hold stock as S1=[10468]S_1 = \begin{bmatrix} 10 & 4 \\ 6 & 8 \end{bmatrix} and S2=[3521]S_2 = \begin{bmatrix} 3 & 5 \\ 2 & 1 \end{bmatrix}, where rows represent different products and columns represent sizes. Find the total combined stock, then find 2S12S_1 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 S1S_1 and S2S_2 are 2×22 \times 2 matrices, so addition is defined. The result will also be 2×22 \times 2.

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 S1S_1 to the entry in row 1, column 1 of S2S_2, and so on for every position:

S1+S2=[10+34+56+28+1]=[13989].S_1 + S_2 = \begin{bmatrix} 10 + 3 & 4 + 5 \\ 6 + 2 & 8 + 1 \end{bmatrix} = \begin{bmatrix} 13 & 9 \\ 8 & 9 \end{bmatrix}.

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 S1S_1, we multiply every entry in S1S_1 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:

2S1=[2×102×42×62×8]=[2081216].2S_1 = \begin{bmatrix} 2 \times 10 & 2 \times 4 \\ 2 \times 6 & 2 \times 8 \end{bmatrix} = \begin{bmatrix} 20 & 8 \\ 12 & 16 \end{bmatrix}.

Final answers: Total stock is [13989]\begin{bmatrix} 13 & 9 \\ 8 & 9 \end{bmatrix}; the doubled order for store 1 is 2S1=[2081216]2S_1 = \begin{bmatrix} 20 & 8 \\ 12 & 16 \end{bmatrix}.

Matrix multiplication

To find the entry in row ii, column jj of the product ABAB, multiply the elements of row ii of AA by the matching elements of column jj of BB and add the results.

If AA is m×nm \times n and BB is n×pn \times p, the product ABAB has order m×pm \times p. The two inner numbers must match; the two outer numbers give the size of the answer.

The size rule

(m×n)(n×p)=(m×p)(m \times n)(n \times p) = (m \times p). If the inner numbers differ, the product is not defined. The product exists in a fixed order: ABAB may exist while BABA does not, and even when both exist they are usually different.

Worked example

A cafe order is Q=[32]Q = \begin{bmatrix} 3 & 2 \end{bmatrix} (3 coffees, 2 muffins). Prices are P=[4.503.00]P = \begin{bmatrix} 4.50 \\ 3.00 \end{bmatrix} 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 QPQP is defined

Before multiplying, we confirm conformability. QQ has order 1×21 \times 2 (one row, two columns) and PP has order 2×12 \times 1 (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 1×11 \times 1, that is, a single number, which makes sense for a total cost.

Step 2: Apply the row-by-column rule to compute QPQP

To find the single entry in the 1×11 \times 1 product, we pair each element of row 1 of QQ with the matching element of column 1 of PP 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:

QP=[32][4.503.00]=3(4.50)+2(3.00)=13.50+6.00=19.50.QP = \begin{bmatrix} 3 & 2 \end{bmatrix}\begin{bmatrix} 4.50 \\ 3.00 \end{bmatrix} = 3(4.50) + 2(3.00) = 13.50 + 6.00 = 19.50.

Step 3: Interpret the result in context

The resulting 1×11 \times 1 matrix holds the single value 19.5019.50. This represents the total cost of the order: 3 coffees at $4.50\$4.50 each plus 2 muffins at $3.00\$3.00 each comes to $19.50\$19.50.

Final answer: QP=[19.50]QP = [19.50], so the total cost of the order is $19.50\$19.50.

The identity and zero matrices

Two special matrices behave like the numbers 11 and 00. The zero matrix has every entry zero and leaves a matrix unchanged under addition. The identity matrix II has 11s down the leading diagonal and 00s elsewhere; multiplying any conformable matrix by II returns that matrix, so AI=IA=AAI = IA = A. 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 AA to give II.

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, PQPQ is also defined (2×12\times1 times 1×21\times2) but gives a 2×22 \times 2 matrix, which means something entirely different.

A larger multiplication

When both matrices are larger, work systematically through every row-column pairing. For AA of order 2×22\times 2 times BB of order 2×22\times 2, the result is 2×22\times 2, 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 AA with column 1 of BB, the top-right uses row 1 of AA with column 2 of BB, 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.

Check the size before you compute

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.

Common mistake

Do not assume AB=BAAB = BA. 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 marks
Calculator-assumed. A cafe sells coffees and muffins. The order matrix is Q=[32]Q = \begin{bmatrix} 3 & 2 \end{bmatrix} (3 coffees, 2 muffins) and the price matrix is P=[4.503.00]P = \begin{bmatrix} 4.50 \\ 3.00 \end{bmatrix} dollars. (a) State the order of the product QPQP and explain why QPQP is defined. (b) Calculate QPQP and interpret the result.
Show worked answer →

(a) QQ is 1×21 \times 2 and PP is 2×12 \times 1. The inner numbers (2 and 2) match, so QPQP is defined and has order 1×11 \times 1. (2 marks)

(b) QP=[32][4.503.00]=3(4.50)+2(3.00)=13.50+6.00=19.50QP = \begin{bmatrix} 3 & 2 \end{bmatrix}\begin{bmatrix} 4.50 \\ 3.00 \end{bmatrix} = 3(4.50) + 2(3.00) = 13.50 + 6.00 = 19.50. 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 marks
Calculator-assumed. Given S1=[10468]S_1 = \begin{bmatrix} 10 & 4 \\ 6 & 8 \end{bmatrix} and S2=[3521]S_2 = \begin{bmatrix} 3 & 5 \\ 2 & 1 \end{bmatrix}, find (a) S1+S2S_1 + S_2 and (b) 2S12S_1.
Show worked answer →

(a) Add matching entries: S1+S2=[13989]S_1 + S_2 = \begin{bmatrix} 13 & 9 \\ 8 & 9 \end{bmatrix}. (2 marks)

(b) Multiply every entry by 2: 2S1=[2081216]2S_1 = \begin{bmatrix} 20 & 8 \\ 12 & 16 \end{bmatrix}. (1 mark)

Marks: two for the element-by-element sum, one for the scalar multiple.

Practise this

Sources & how we know this

ExamExplained