Matrices, determinants and inverses
In a minute
A is a table of numbers you can add, scale and multiply. Matrices total whole tables of costs at once, solve systems of equations with an , and code messages. Your GDC does the arithmetic; you set them up and interpret.
You'll be able to
- Describe a matrix by its order and elements, and add, subtract and scale matrices by hand and with your GDC.
- Multiply matrices, decide when a product exists, and use products to total costs.
- Use the rules for matrix products, including that order matters, and the matrices and .
- Find and inverses of matrices by hand, and of larger ones with your GDC.
- Write a as and solve it with .
- Code and decode messages with a key matrix and its inverse.
Before you start2 quick questions on what this builds on
Revise first: 1.8 Solving equations with technology
Matrices: order, elements and algebra
A bike shop's two branches, North and South, sell city, mountain and electric bikes. One week's sales fit in a table with a row for each branch and a column for each type.
As a , the table is . The element in row 2, column 3, , says South sold electric bikes.
Two matrices are equal when they have the same order and all matching elements are equal.
Try it first, then reveal one step at a time.
- has rows and columns, so its order is . has the same order, so exists.
- Add matching elements. Row 1: , , . Row 2: , , .
- Row 1, column 2 is : North sold mountain bikes over the two weeks.
On your GDC, store each matrix once, then type sums and multiples using the stored names.
Try it first, then reveal one step at a time.
- A rise multiplies each price by . Store , then enter the scalar multiple .
- Every element is multiplied: for example .
- Interpret: row 2, column 3 says a large pizza at the second restaurant now costs dollars.
Multiplying matrices
A café sold coffees, teas and cakes on Saturday, at , and dollars each. Its takings, , are a row of amounts times a column of prices.
That is : each row of one matrix times each column of another.
Try it first, then reveal one step at a time.
- Write the orders side by side: . The inside numbers match, and the outside numbers give the order of , .
- Row 1: .
- Row 2: .
- Interpret: the café took dollars on Saturday and dollars on Sunday.
Try it first, then reveal one step at a time.
- is : the cost of one item at each supplier. The GDC gives .
- Put the order in a row . Write down , a matrix, then enter it: the GDC gives .
- Interpret: X is cheaper by dollars for this order, even though Y is cheaper for chairs.
Rules for products, and the matrices I and 0
With numbers, . With matrices, and pair different rows and columns, so the order usually matters.
Try it first, then reveal one step at a time.
- : row 1 of gives and . Row 2 gives and .
- : row 1 of gives and . Row 2 gives and .
- Comment: both products exist, but . Swapping the order changed the answer.
The identity is . The zero matrix has every element : when the orders match, and any product with , when it exists, is a zero matrix.
Try it first, then reveal one step at a time.
- Income is , which equals by the distributive law: one product instead of two.
- .
- Screen 1: . Screen 2: .
- Check: , the same. Screen 1 took euros and screen 2 euros.
Determinants and inverses
Matrices have no division. Instead, a square matrix may have an that undoes it, as undoes . One number decides whether it does.
Both are in the booklet. In words: swap and , negate and , divide by . If , is singular: it has no inverse.
For and larger matrices, use your GDC for both. Check an inverse by multiplying: must be .
Try it first, then reveal one step at a time.
- . This is not , so exists.
- Swap and , change the signs of and , and divide by : .
- Check : , , and . That is .
Try it first, then reveal one step at a time.
- Store , then use the determinant command: .
- , so has an inverse. The GDC gives , to 3 s.f.
- Interpret: a system of three linear equations with coefficient matrix has exactly one solution.
Solving systems with an inverse matrix
In 1.8 you solved a with your GDC's solver. Matrices give another method. Since , the system , is one matrix equation: .
In exams, always has an inverse when you solve a system this way. The exception is finding eigenvectors in 1.15.
Try it first, then reveal one step at a time.
- Let and be the numbers of adult and student tickets: and . So .
- , so .
- Multiply on the left: .
- Check: and . So adult and student tickets: whole numbers, as counts must be.
Try it first, then reveal one step at a time.
- Let , , be the kilograms of X, Y, Z. One equation per nutrient gives .
- The GDC gives , so exists.
- Write down , then enter it: , , .
- Interpret: mix kg of X, kg of Y and kg of Z. All three are positive, so the mix can be made.
Coding and decoding messages
To code a word, turn each letter into a number, to , with a space . Then hide the numbers with a key matrix .
1. Write the numbers in pairs as the columns of a matrix with rows. Add a space if the count is odd.
2. Encode: send the numbers of , column by column.
3. Decode: work out , and turn the numbers back into letters. This needs , so that exists.
A key of whole numbers with or has a whole-number inverse, which makes decoding by hand easy.
Try it first, then reveal one step at a time.
- R , O , A , D . The pairs RO and AD are the columns: .
- , so the code can be undone.
- Column 1: and . Column 2: and .
- The numbers sent are .
Try it first, then reveal one step at a time.
- Rebuild the code matrix: .
- , so .
- Multiply on the left (or enter on the GDC). Column 1: and . Column 2: and .
- is M, A, P, S: the message is MAPS. Whole numbers from to are a good sign.
Common mistakes
- Multiplying in the wrong order. and are usually different, so keep the order the question gives; the right matrices in the wrong order lose the accuracy mark.
- Putting the right numbers in the wrong places. Decide what each row and column stands for, and keep that order in every matrix you multiply.
- Writing . That product isn't defined; multiply on the left, .
- Getting the inverse half right: swapping and instead of and , or not dividing by . Check that .
- Rounding an inverse before using it. Keep the GDC's full values, or let the GDC work out in one step.
Exam tips
- "Write down" a matrix from a context: the right values earn the method mark, and the right values in the right places earn the accuracy mark.
- "Find" with the GDC: write down the product, or , that you entered before the answer. Give values exactly or to 3 s.f., and money to 2 d.p.
- "Show that" for a determinant or inverse: write the line with the numbers in, and end on the given result.
- "Hence" decode or solve: use the inverse you just found. A wrong inverse used correctly can still earn follow-through marks.
Key takeaways
Practise this
10 past-paper questions on Matrices and determinants in the AI HL bank, each with a mark scheme and a worked explanation.