Lesson 2 of 8 · 12 min

Adding, subtracting and scalar multiples

Add and subtract matrices of the same order, multiply a matrix by a scalar, and use the zero matrix and additive inverses to solve simple matrix equations.

What you will be able to do

  • Add and subtract matrices of the same order, element by element.
  • Multiply a matrix by a scalar and simplify expressions such as 3A−2B3\bm{A} - 2\bm{B}.
  • Use A+B=B+A\bm{A} + \bm{B} = \bm{B} + \bm{A}, A+0=A\bm{A} + \bm{0} = \bm{A} and A+(−A)=0\bm{A} + (-\bm{A}) = \bm{0} to solve equations such as 2X+A=B2\bm{X} + \bm{A} = \bm{B}.

Back at the juice bar, Saturday's sales were S\bm{S} and Sunday's sales were U\bm{U}, with the shops as rows (CBD, Toowong) and the sizes as columns (small, large):

S=[24181521]U=[30221219]\bm{S} = \begin{bmatrix} 24 & 18 \\ 15 & 21 \end{bmatrix} \qquad \bm{U} = \begin{bmatrix} 30 & 22 \\ 12 & 19 \end{bmatrix}

For the weekend totals you add the numbers that mean the same thing: CBD small with CBD small, Toowong large with Toowong large, and so on. That is matrix addition.

Weekend totals
S+U=[24+3018+2215+1221+19]=[54402740]\bm{S} + \bm{U} = \begin{bmatrix} 24 + 30 & 18 + 22 \\ 15 + 12 & 21 + 19 \end{bmatrix} = \begin{bmatrix} 54 & 40 \\ 27 & 40 \end{bmatrix}

Subtraction works the same way: S−U=[−6−432]\bm{S} - \bm{U} = \begin{bmatrix} -6 & -4 \\ 3 & 2 \end{bmatrix}. The CBD shop sold 6 fewer small smoothies on Saturday than on Sunday, while Toowong sold 3 more.

Interactive

Add and subtract sales tables

Change any entry and watch S+U\bm{S} + \bm{U} and S−U\bm{S} - \bm{U} update. What does a negative entry in S−U\bm{S} - \bm{U} tell the owner?

Definition

Adding and subtracting matrices

You can add or subtract two matrices only when they have the same order. Add or subtract the corresponding elements:

[abcd]±[efgh]=[a±eb±fc±gd±h]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \pm \begin{bmatrix} e & f \\ g & h \end{bmatrix} = \begin{bmatrix} a \pm e & b \pm f \\ c \pm g & d \pm h \end{bmatrix}

If the orders are different, the sum and difference are not defined.

Now suppose each shop repeats Saturday's sales on four Saturdays in a row. Every element is multiplied by 4:

4S=[96726084]4\bm{S} = \begin{bmatrix} 96 & 72 \\ 60 & 84 \end{bmatrix}

A single number such as 4 is called a scalar, and this is scalar multiplication: kAk\bm{A} multiplies every element of A\bm{A} by kk. In particular, −A=(−1)A-\bm{A} = (-1)\bm{A} changes the sign of every element.

Given A=[2−104]\bm{A} = \begin{bmatrix} 2 & -1 \\ 0 & 4 \end{bmatrix} and B=[13−25]\bm{B} = \begin{bmatrix} 1 & 3 \\ -2 & 5 \end{bmatrix}, find 3A−2B3\bm{A} - 2\bm{B}.

Key idea

Addition behaves like ordinary addition

For matrices A\bm{A}, B\bm{B} and C\bm{C} of the same order, and scalars kk and ll:

  • A+B=B+A\bm{A} + \bm{B} = \bm{B} + \bm{A} (commutative law for addition)
  • (A+B)+C=A+(B+C)(\bm{A} + \bm{B}) + \bm{C} = \bm{A} + (\bm{B} + \bm{C}) (associative law)
  • A+0=A\bm{A} + \bm{0} = \bm{A} (additive identity: adding the zero matrix changes nothing)
  • A+(−A)=0\bm{A} + (-\bm{A}) = \bm{0} (additive inverse)
  • k(A+B)=kA+kBk(\bm{A} + \bm{B}) = k\bm{A} + k\bm{B} and (k+l)A=kA+lA(k + l)\bm{A} = k\bm{A} + l\bm{A}

Each one holds because it holds for every element, and the elements are ordinary numbers.

Worked example

Solve 2X+A=B2\bm{X} + \bm{A} = \bm{B}

  • Simple familiar
  • Technology free

Given A=[3−215]\bm{A} = \begin{bmatrix} 3 & -2 \\ 1 & 5 \end{bmatrix} and B=[74−31]\bm{B} = \begin{bmatrix} 7 & 4 \\ -3 & 1 \end{bmatrix}, find the matrix X\bm{X} such that 2X+A=B2\bm{X} + \bm{A} = \bm{B}.

4 steps

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

Method

  1. Isolate the term containing X\bm{X} by adding or subtracting a matrix on both sides.

  2. Multiply by the reciprocal of the scalar.

  3. Check by substituting back.

Watch out for

  • Sign errors when subtracting a negative element: 4−(−2)=64 - (-2) = 6.

  • Halving only some of the elements.

A\bm{A} is a 2×22 \times 2 matrix and C\bm{C} is a 2×12 \times 1 matrix. Which of these is not defined?

Choose one answer

Common mistake

Adding a number to a matrix

A+3\bm{A} + 3 is not defined, because a number is not a matrix. If you mean "add 3 to each element on the leading diagonal", write A+3I\bm{A} + 3\bm{I}. And when you subtract, subtract every element, including the negative ones: 5−(−2)=75 - (-2) = 7.

Find X\bm{X} if

3X+[1−420]=[72−49].3\bm{X} + \begin{bmatrix} 1 & -4 \\ 2 & 0 \end{bmatrix} = \begin{bmatrix} 7 & 2 \\ -4 & 9 \end{bmatrix}.

Summary

  • Add or subtract matrices of the same order by adding or subtracting corresponding elements. If the orders differ, it is not defined.

  • kAk\bm{A} multiplies every element of A\bm{A} by the scalar kk.

  • Matrix addition is commutative and associative; 0\bm{0} is the additive identity and −A-\bm{A} is the additive inverse of A\bm{A}.

  • Solve kX+A=Bk\bm{X} + \bm{A} = \bm{B} like an ordinary equation: X=1k(B−A)\bm{X} = \frac{1}{k}(\bm{B} - \bm{A}).

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 2 of 80% read

Save your progress with a free account