Matrix Arithmetic

Stage 13 of 23 Strand 1 of 5 7 lessons

7 illustrated lessons, each teaching the why before the how.

Start with The Order of a Matrix in the app →
Revise Matrix Arithmetic with flashcards →

Jump to a lesson

The Order of a Matrix

Counted rows first, columns second.

A matrix is a rectangle of numbers, counted rows first and columns second

Read the full lesson →

A314275

A matrix is a block of numbers inside brackets, set out in rows and columns.

A314275

Rows run across the page. Count them first: this matrix has 2 rows.

A314275

Columns run down. Counting them second gives the order 2 × 3.

A314275

An entry is named by its row, then its column: row 2, column 3 holds 5.

Now you

55632436

What is the order of this matrix?

941526387

Which number sits in row 3, column 2?

Adding, Subtracting and Scaling Matrices

Entry by entry, when the orders match.

Matrices add, subtract and scale entry by entry, so their orders must match

Read the full lesson →

A3105B14624567+=

Add entry by entry. The top left of the sum is 3 + 1 = 4.

A3105B14624567+=

Every place follows the same rule, so the bottom right is 5 + 2 = 7.

A3105B14622−3−63−=

Subtracting works the same way: subtract each entry of B from the matching entry of A.

3105142627+

A 2 × 2 and a 2 × 3 have different orders: the third column has nothing to add to, so this sum cannot be done.

3210463012×=

Multiplying by 3 multiplies every entry by 3, and the order never changes.

Now you

A4559B1343+

What goes in row 1, column 2 of A + B?

48387×

Multiply this matrix by 4. What goes in row 1, column 1?

The Matrix Product

A row of the left, met with a column of the right.

Each entry of a product comes from multiplying one row of the left matrix by one column of the right

Read the full lesson →

A231402B541032×

A row of the left matrix holds 3 numbers, and so does a column of the right matrix.

A231402B541032????×=

The orders are 2 × 3 and 3 × 2: the inner numbers match, and the outer ones make the product 2 × 2.

A231402B541032×

Pair row 1 with column 1: multiply each pair and add, 2 × 5 + 3 × 1 + 1 × 3 = 16.

A231402B541032×

Pair row 1 with column 2 the same way: 2 × 4 + 3 × 0 + 1 × 2 = 10.

A231402B541032AB16102620×=

Row 2 fills the bottom row the same way, and the product is complete.

Now you

3459267553×

Can this product be worked out?

814135167542713861×

What is the order of this product?

Combining Data with a Matrix Product

A stock table times a price column: takings.

A table of quantities multiplied by a column of prices gives each shop’s total sales

Read the full lesson →

penspadsshop A42shop B35

Two shops sold pens and pads. The counts sit in an ordinary table.

S4235

Take the labels away and the same counts are a 2 × 2 matrix.

S4235price35×

Prices go in a column: $3 for a pen and $5 for a pad.

S4235price35×

Shop A sold 4 pens at $3 and 2 pads at $5, so its sales were 4 × 3 + 2 × 5 = $22.

S4235price35sales2234×=

The product is a column of total sales in dollars, one row for each shop.

Now you

counts6431??×

Which must sit on the right for the product to give the total sales?

counts5232price543323×=

The product is a column. What does the number in row 2 mean?

Why AB Differs from BA

Swap the order of a product and the answer moves.

Swapping the order of a matrix product usually changes the answer

Read the full lesson →

A1201B1011AB3211×=

Multiply each row of A by each column of B to get the product AB.

B1011A1201BA1213×=

Now start with B. The same two matrices give a different answer.

AB3211BA1213≠

So AB and BA are different matrices: matrix multiplication is not commutative.

A231402B541032×

Orders can differ too: here AB is 2 × 2 while BA is 3 × 3.

Now you

AB3211BA1213≠

Which of these always holds for two 2 × 2 matrices?

49795896413717431389×

What is the order of the product drawn here?

The Identity and Zero Matrices

The matrices that behave like 1 and like 0.

The identity and the zero matrix play the parts that 1 and 0 play for numbers

Read the full lesson →

I1001

The identity has ones down the main diagonal and zeros everywhere else.

A4123I1001A4123×=

Multiplying by I changes nothing, exactly as multiplying a number by 1 does.

I1001A4123A4123×=

It works from either side, so with I the order of the product does not matter.

A4123O0000A4123+=

The zero matrix is all zeros, and adding it leaves A exactly as it was.

A4123O0000O0000×=

Multiplying by O gives O, just as multiplying any number by 0 gives 0.

Now you

A5454I1001×

What does this product come to?

Matrix Powers by Induction

A pattern in the powers, proved rather than spotted.

A formula for the nth power is proved by multiplying the assumed one by the matrix once more

Read the full lesson →

A1101A²1201A³1301

Work out three powers of this matrix in turn. Only the top-right entry changes.

Aⁿ1n01

The pattern suggests a formula for Aⁿ, but three cases are not a proof.

A¹1101

The base case: at n = 1 the formula gives a 1 in the corner, which is A itself.

Aᵏ1k01A1101×

Assume it holds at k. Then the next power is that assumed matrix times A again.

1k0111011k + 101×=

Multiply them out and the corner reads k + 1, which is the formula at n = k + 1.

true at n = 1true at k forces true at k + 1the same two-part argument, on matricesso true for every n

The base case and the step together prove the formula for every n, exactly as for a sum.

Now you

A1101

Why is checking A, A² and A³ not a proof?

A1101

A = (1 1; 0 1). What is A² ?

Continue your journey in the app — save your progress