Matrix sum, difference and scalar multiple
Combine matrices with confidence in Year 12 VCE General Mathematics. When a bakery with shops in Geelong and Ballarat records its sales in a matrix each week, adding the matrices gives the totals, subtracting shows the change, and multiplying by \(1.1\) sets a target ten per cent higher. All of this works only when the matrices have the same order.
You will practise adding and subtracting matrices element by element, deciding when a sum is not defined, and finding scalar multiples with whole numbers, fractions, negatives and percentages. You will also solve equations such as \(2X + A = B\) and interpret answers in context, ready for multiplying matrices together next.
Theory
Matrices of the same size can be combined element by element. This Year 12 General Mathematics guide for students in Victoria shows how to add and subtract matrices, multiply by a scalar, solve simple matrix equations and use these operations for totals, changes and percentage targets.
Two matrices can be added or subtracted only if they have the same order. The answer has that order too: each element is found by adding (or subtracting) the elements in the matching positions. A \(2 \times 3\) matrix and a \(3 \times 2\) matrix cannot be added; the sum is not defined.
A scalar is an ordinary number. To find the scalar multiple \(kA\), multiply every element of \(A\) by \(k\). The scalar can be negative or a fraction: \(-2A\) changes every sign and doubles, and \(\frac{1}{2}A\) halves every element. Scalar multiples model percentage changes: a \(15\%\) discount on a price matrix \(P\) gives \(0.85P\).
Addition can be done in either order (\(A + B = B + A\)), but subtraction cannot: \(B - A\) has the opposite sign in every element to \(A - B\). Adding the zero matrix \(O\) changes nothing. Matrix equations such as \(2X + A = B\) are solved by rearranging, just as with numbers.
For matrices \(A\) and \(B\) of the same order:
Scalar multiple (any number \(k\)):
Useful facts:
Solving a matrix equation, for example:
Sums, differences and scalar multiples
- Write down the order of each matrix. If a sum or difference has different orders, it is not defined.
- Do any scalar multiples first: multiply every element.
- Add or subtract the elements in matching positions, writing negatives in brackets.
- Check the answer has the same order as the matrices you started with.
Matrix equations
- Rearrange to make the unknown matrix the subject (for example \(X = \frac{1}{2}(B - A)\)).
- Substitute and simplify element by element.
- For an unknown inside a matrix, match one element on each side and solve that ordinary equation.
- Check by substituting back into the original equation.
Both matrices are \(3 \times 2\), so the sum and difference are defined. Work position by position and take care with negatives.
| \(A + B\) | \(=\) | \(\begin{bmatrix}7 + 4 & -2 + 6\\ 0 + (-3) & 5 + 2\\ 3 + 8 & 1 + (-1)\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}11 & 4\\ -3 & 7\\ 11 & 0\end{bmatrix}\) |
| \(A - B\) | \(=\) | \(\begin{bmatrix}7 - 4 & -2 - 6\\ 0 - (-3) & 5 - 2\\ 3 - 8 & 1 - (-1)\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}3 & -8\\ 3 & 3\\ -5 & 2\end{bmatrix}\) |
(i) \(A + B = \begin{bmatrix}11 & 4\\ -3 & 7\\ 11 & 0\end{bmatrix}\). (ii) \(A - B = \begin{bmatrix}3 & -8\\ 3 & 3\\ -5 & 2\end{bmatrix}\). Both answers are \(3 \times 2\), the same order as \(A\) and \(B\).
Multiply every element by the scalar first, then subtract matching elements.
| \(3A\) | \(=\) | \(\begin{bmatrix}12 & -3\\ 6 & 18\end{bmatrix}\) |
| \(2B\) | \(=\) | \(\begin{bmatrix}2 & 6\\ -4 & 10\end{bmatrix}\) |
| \(3A - 2B\) | \(=\) | \(\begin{bmatrix}12 - 2 & -3 - 6\\ 6 - (-4) & 18 - 10\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}10 & -9\\ 10 & 8\end{bmatrix}\) |
| \(\tfrac{1}{2}A\) | \(=\) | \(\begin{bmatrix}2 & -0.5\\ 1 & 3\end{bmatrix}\) |
(i) \(3A - 2B = \begin{bmatrix}10 & -9\\ 10 & 8\end{bmatrix}\). (ii) \(\dfrac{1}{2}A = \begin{bmatrix}2 & -0.5\\ 1 & 3\end{bmatrix}\): every element is halved, so \(-1\) becomes \(-0.5\).
Rearrange just like an ordinary equation (add \(A\), then divide by \(3\)), and only then substitute.
| \(3X - A\) | \(=\) | \(B\) |
| \(3X\) | \(=\) | \(B + A\) |
| \(\) | \(=\) | \(\begin{bmatrix}1 + 5 & 7 + (-1)\\ -5 + 2 & 8 + 4\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}6 & 6\\ -3 & 12\end{bmatrix}\) |
| \(X\) | \(=\) | \(\tfrac{1}{3}\begin{bmatrix}6 & 6\\ -3 & 12\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}2 & 2\\ -1 & 4\end{bmatrix}\) |
\(X = \begin{bmatrix}2 & 2\\ -1 & 4\end{bmatrix}\). Check: \(3X = \begin{bmatrix}6 & 6\\ -3 & 12\end{bmatrix}\), and subtracting \(A\) gives \(\begin{bmatrix}1 & 7\\ -5 & 8\end{bmatrix} = B\).
The matrices have the same order, so they can be added and subtracted. A \(10\%\) increase multiplies every element by \(1.1\).
| \(W_1 + W_2\) | \(=\) | \(\begin{bmatrix}80 & 42 & 70\\ 66 & 41 & 85\end{bmatrix}\) |
| \(W_2 - W_1\) | \(=\) | \(\begin{bmatrix}-4 & 6 & 0\\ 6 & -3 & 3\end{bmatrix}\) |
| \(\text{target}\) | \(=\) | \(1.1W_2\) |
| \(\) | \(=\) | \(\begin{bmatrix}41.8 & 26.4 & 38.5\\ 39.6 & 20.9 & 48.4\end{bmatrix}\) |
(i) \(W_1 + W_2 = \begin{bmatrix}80 & 42 & 70\\ 66 & 41 & 85\end{bmatrix}\). (ii) The element \(-4\) (row 1, column 1) means Geelong sold \(4\) fewer sourdough loaves in week 2 than in week 1. A \(0\) means no change. (iii) The target is \(1.1W_2\); for example Geelong would aim for about \(42\) sourdough loaves (\(41.8\)).
Common pitfalls
Frequently asked questions
When can you add two matrices?
Only when they have the same order, meaning the same number of rows and the same number of columns. Then you add the elements in matching positions.
How do you subtract matrices?
Check the orders match, then subtract each element of the second matrix from the element in the same position of the first. Brackets around negative numbers help avoid sign errors.
What is scalar multiplication of a matrix?
It means multiplying every element of the matrix by the same number. For example 2A doubles every element of A, and the order stays the same.
Is A - B the same as B - A for matrices?
No. Every element of B - A is the negative of the matching element of A - B. Addition can be done in either order, but subtraction cannot.
How do you solve a matrix equation like 2X + A = B?
Rearrange as with numbers: 2X = B - A, so X = one half of (B - A). Find B - A element by element, then halve every element. Check by substituting back.