KS Maths
Topic 1.14 ยท AI Higher Level

Matrices

AB and BA are different matrices.

Where each entry comes from, and why the order you multiply in changes the answer.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

matrix
A rectangle of numbers in rows and columns.A matrix with 2 rows and 2 columns.
multiply
Add the same number many times. Find a product.3 multiplied by 4 is 12.
add
Put numbers together to find the total.Add 3 and 4 to get 7.
determinant
A single number worked out from a square matrix.The determinant tells if the matrix has an inverse.
subtract
Take one number away from another.Subtract 3 from 10 to get 7.
scalar
A quantity with size only, and no direction.Speed is a scalar.
negative
Less than zero. A negative number has a minus sign.Minus 4 is a negative number.
exact
Not rounded. Completely correct.The exact answer is one third, not 0.33.
divide
Share into equal parts, or find how many times one number fits in another.12 divided by 4 is 3.
identity
An equation that is true for every value of the letter.2(x plus 1) = 2x plus 2 is an identity.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer.

  1. Work out 3(โˆ’2) + 4(5).
    Answer

    14. Multiply first: 3(โˆ’2) = โˆ’6 and 4(5) = 20, then add. This multiply-and-add is exactly what one entry of a matrix product is.

  2. Pens cost 2 each and notebooks cost 5 each. Mele buys 3 pens and 4 notebooks. How much does she spend?
    Answer

    3 ร— 2 + 4 ร— 5 = 6 + 20 = 26. Each quantity is multiplied by its own price and the results are added: a row of quantities meeting a column of prices.

  3. Does swapping the order change 8 โˆ’ 3? Does swapping the order change 8 ร— 3?
    Answer

    Yes for 8 โˆ’ 3 (5 against โˆ’5) and no for 8 ร— 3 (24 either way). Multiplying numbers can be done in either order; matrix products cannot, which is the surprise of this lesson.

  4. Work out 2(3 โˆ’ 4) โˆ’ 5(1 โˆ’ 2).
    Answer

    2(โˆ’1) โˆ’ 5(โˆ’1) = โˆ’2 + 5 = 3. Subtracting a negative adds. It is the same arithmetic as a determinant, with its two products and a subtraction.

Words used in this lesson
matrix (plural: matrices)
a rectangular grid of numbers. For example: [[3, 1], [0, 2]] is a matrix.
row
a line of entries going across. For example: [4, 9] is the second row of [[1, 7], [4, 9]].
column
a line of entries going down. For example: [7, 9] is the second column of [[1, 7], [4, 9]].
entry (element)
one number inside a matrix. For example: in [[5, 2], [8, 1]] the entry in row 2, column 1 is 8.
order (size)
the number of rows, then the number of columns. For example: a matrix with 3 rows and 2 columns has order 3 ร— 2.
product
the result of multiplying. For example: the product of A and B is written AB.
commute
give the same answer when the order is swapped. For example: numbers commute under multiplication: 3 ร— 5 = 5 ร— 3.
defined (exist)
able to be calculated. For example: a product is defined only when the inner orders match.
scalar
an ordinary number, used to multiply every entry. For example: multiplying a matrix by the scalar 3 triples every entry.
determinant
ad โˆ’ bc for [[a, b], [c, d]]. For example: the determinant of [[3, 1], [4, 2]] is 3(2) โˆ’ 1(4).

Predict first. Before you step through: A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]]. Which row of A and which column of B do you expect the bottom-left entry of AB to use? Decide, and say why.

Then check

Now step to the third entry and read the arithmetic in the readout. Do the numbers shown come from the row and column you chose? If not, work out which part of your rule needs changing.

Higher Level

Each entry of the product comes from one row meeting one column. Step through the four entries and watch which numbers are used.

A ร— Brow meets columnA1234ร—B0110=AB2143
1ร—0 + 2ร—1the arithmetic
2that entry

Top left uses the whole first row and the whole first column. Elementwise would give 1 ร— 0 = 0. The answer is 2.

Order matters

A= [[1, 2], [3, 4]] B= [[0, 1], [1, 0]] AB= [[2, 1], [4, 3]] BA= [[3, 4], [1, 2]] not the same

Matrix multiplication does not commute. Multiplying numbers always does, so this has to be learned rather than assumed. It also means you cannot "divide both sides" without deciding which side you are multiplying on.

And it is not elementwise. Multiplying the top-left entries would give 1 ร— 0 = 0. The real answer is 2, because it uses the whole first row and the whole first column.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI HL Mock Exam Pack, $25BuyPlan $99