Skip to content

Matrices: adding, scaling and multiplying

Name the size of a matrix, add and subtract matrices of one size, multiply by a scalar, and multiply two matrices when their inner sizes match.

It opens on

North sold 20 muffins, 15 bagels and 8 scones on Monday. With prices 3, 2 and 4 dollars, how much did North take in, and how could one calculation do both shops?

Why it matters

A matrix stores a whole table of numbers, such as sales in several shops, and its operations do many calculations at once.

Good to know first

  • Linear systems in three variables: a system can have several unknowns and several equations, with coefficients that form a table
  • evaluating expressions with several products added together
  • arithmetic with positive whole numbers

Step by step

  1. Size, sum and scalar

    State a matrix's size as rows by columns, add and subtract matrices entry by entry, and multiply a matrix by a number.

    Two-day totals: North muffins 20 + 18 = 38, bagels 15 + 17 = 32, scones 8 + 9 = 17.

    A common mix-up

    Any two matrices can be added.

    In fact: They must have the same number of rows and the same number of columns.

  2. Row times column

    Multiply a matrix by a column matrix as rows times a column, and state when a product exists and what size it has.

    North: 20(3) + 15(2) + 8(4) = 60 + 30 + 32 = 122 dollars; this is entry 1 of the product.

    A common mix-up

    Multiply matrices entry by entry.

    In fact: Each product entry is a row times a column, summed.

  3. Order matters

    Multiply two 2 × 2 matrices, find the identity matrix, and show that AB and BA can differ.

    For A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]], AB entry (1, 1) is 1(0) + 2(1) = 2.

    A common mix-up

    AB = BA as with numbers.

    In fact: Switching the order switches rows and columns used, so the product usually changes.

Try it

Find [[1, 2], [3, 4]] + [[5, 0], [−1, 2]] and 3[[1, 2], [3, 4]].Answer

[[6, 2], [2, 6]] and [[3, 6], [9, 12]] (hint: add or scale entry by entry).

Multiply [[2, 1, 3]] (1 × 3) by the column 4, 5, 6.Answer

[31] (hint: 2(4) + 1(5) + 3(6)).

Find [[2, 0], [1, 3]] times [[1, 4], [2, 5]].Answer

[[2, 8], [7, 19]] (hint: row 2 times column 2 is 1(4) + 3(5)).

What is the size of Tuesday's matrix, and which entry is North's bagels?Answer

2 × 3; 17.

Why is a 2 × 3 times a 2 × 3 not defined?Answer

The inner sizes 3 and 2 do not match.

Matrices: adding, scaling and multiplying

30 minutes every month. No card.