Lesson 3 of 7 · 15 min

Adding, subtracting and scaling matrices

Add and subtract matrices of the same order to combine or compare tables, and multiply a matrix by a scalar for price changes and repeated orders.

What you will be able to do

  • Decide whether two matrices can be added or subtracted.
  • Add and subtract matrices element by element, and interpret the result in context.
  • Multiply a matrix by a scalar, including percentage increases and decreases such as 1.05A1.05A and 0.8A0.8A.

A surf shop has stores at Noosa and Mooloolaba. Each week it records the wetsuits it sells in small, medium and large. To find the total over two weeks, you add each store's sales of each size: Noosa's small sales in week 1 plus Noosa's small sales in week 2, and so on. That is matrix addition.

Interactive

Two weeks of wetsuit sales

AA is week 1 and BB is week 2. Pick an element of A+BA + B to see where it comes from. Then switch to A−BA - B: what does a negative element tell the manager?

Definition

Adding and subtracting matrices

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

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

The answer has the same order, and the same labels, as the matrices you started with.

Week 1 and week 2 sales are

A=[241830152227]B=[202528191631]A = \begin{bmatrix} 24 & 18 & 30 \\ 15 & 22 & 27 \end{bmatrix} \qquad B = \begin{bmatrix} 20 & 25 & 28 \\ 19 & 16 & 31 \end{bmatrix}

Calculate A+BA + B, the total sales over the two weeks.

Worked example

Update a surf shop's stock

  • Simple familiar

A surf shop's two stores stock wetsuits in small, medium and large. The matrices show the stock at the start of the week (OO), the wetsuits sold during the week (SS) and a delivery that arrived on Friday (DD). Rows are Noosa and Mooloolaba; columns are small, medium and large.

O=[403550304538]S=[221831172920]D=[152025201015]O = \begin{bmatrix} 40 & 35 & 50 \\ 30 & 45 & 38 \end{bmatrix} \quad S = \begin{bmatrix} 22 & 18 & 31 \\ 17 & 29 & 20 \end{bmatrix} \quad D = \begin{bmatrix} 15 & 20 & 25 \\ 20 & 10 & 15 \end{bmatrix}

Write a matrix expression for the stock at the end of the week, and evaluate it.

4 steps

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

Method

  1. Write the expression in words, then in matrices.

  2. Check every matrix has the same order and labels.

  3. Work element by element, one operation at a time.

  4. Check the answer makes sense in context.

Watch out for

  • Writing O−(S+D)O - (S + D), which subtracts the delivery instead of adding it.

Common mistake

Order matters when you subtract

A+B=B+AA + B = B + A, but A−BA - B and B−AB - A are different: every element changes sign. Decide what you want first. "How many more did week 2 sell than week 1?" is B−AB - A (week 2 minus week 1).

Now suppose every price on a price list rises by 5%. Each price is multiplied by 1.051.05. Multiplying every element of a matrix by the same number is called scalar multiplication, and the number is the scalar.

Definition

Multiplying by a scalar

To find kAkA, multiply every element of AA by kk:

3[2−105]=[6−3015]3\begin{bmatrix} 2 & -1 \\ 0 & 5 \end{bmatrix} = \begin{bmatrix} 6 & -3 \\ 0 & 15 \end{bmatrix}

Any matrix can be multiplied by a scalar, and the order stays the same.

Scalars for common changes
ChangeScalar
Increase by 5%1.051.05
Add 10% GST1.11.1
Decrease by 20%0.80.8
Half price0.50.5
Order 3 times as many33

Worked example

Raise every theme park price by 4%

  • Simple familiar
  • Technology active

A Gold Coast theme park's ticket prices, in dollars, are

P=[12999179139]P = \begin{bmatrix} 129 & 99 \\ 179 & 139 \end{bmatrix}

with rows for 1-day and 2-day passes, and columns for adult and child tickets. Next year every price rises by 4%. Find the matrix of next year's prices.

3 steps

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

Method

  1. Turn the percentage change into a scalar: up r%r\% is 1+r1001 + \frac{r}{100}, down r%r\% is 1−r1001 - \frac{r}{100}.

  2. Multiply every element by the scalar.

Watch out for

  • Multiplying by 0.040.04, which gives the increase, not the new price.

  • Adding $4 to each price instead of 4%.

A Gold Coast surf school's prices, in dollars, are

P=[65110120210]P = \begin{bmatrix} 65 & 110 \\ 120 & 210 \end{bmatrix}

with rows for group and private lessons, and columns for 1-hour and 2-hour lessons. In winter, every price is reduced by 20%. Find the matrix of winter prices.

AA is a 2×32 \times 3 matrix, BB is a 2×32 \times 3 matrix and CC is a 3×23 \times 2 matrix. Which of these is not defined?

Choose one answer

Tip

With technology

For large matrices, enter them into your calculator's matrix mode or a spreadsheet. In a spreadsheet, type the formula for the top-left element (such as =B2+F2 or =1.05*B2) and fill it across and down. Write the matrices you used in your working, then the result.

Summary

  • Add or subtract matrices only when they have the same order. Work element by element.

  • The answer has the same order and labels as the matrices you combined.

  • A−B≠B−AA - B \neq B - A: decide which way round the context needs.

  • kAkA multiplies every element by kk. Percentage changes use scalars like 1.051.05 (up 5%) and 0.80.8 (down 20%).

Finished the lesson?

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

Lesson 3 of 70% read

Save your progress with a free account