Matrices
A matrix is a rectangular table of numbers that you can add, multiply and (sometimes) invert. Matrices store data neatly, solve systems of linear equations in one step, and are the language of transformations, Markov chains and coupled differential equations later in the course.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Use the terms element, row, column and order ()AHL 1.14
- Add, subtract and multiply matrices by a scalarAHL 1.14
- Multiply matrices, knowing when a product is defined and that in generalAHL 1.14
- Use the identity and zero matricesAHL 1.14
- Find the determinant and inverse of a 2 × 2 matrix by hand, and of larger matrices with the GDCAHL 1.14
- Solve systems of linear equations using AHL 1.14
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
A matrix packages lots of numbers into one object, so that a whole set of calculations becomes one operation. A shop’s order quantities times its price list gives every bill at once; three simultaneous equations become one matrix equation , solved by "dividing" by , that is, multiplying by its inverse.
2.1 Order and arithmetic
A matrix with rows and columns has order . The element is in row and column . You can add or subtract matrices of the same order, element by element. Multiplying by a scalar multiplies every element by .
2.2 Multiplying matrices
The product is defined only when the number of columns of equals the number of rows of . If is and is , then is . The element in row , column of is row of "times" column of : multiply in pairs and add.
2.3 Identity, determinant and inverse
The identity matrix (1s on the leading diagonal, 0s elsewhere) behaves like the number 1: . The inverse satisfies . Only square matrices can have inverses, and only if the determinant is not zero.
If , the matrix is singular and has no inverse. For 3 × 3 and larger, use the GDC.
2.4 Solving systems of equations
Write the system as , where holds the coefficients. If exists, multiply both sides on the left by : .
On the TI-Nspire, open the matrix template with ctrl × (or menu → Matrix & Vector) and choose the size. Store a matrix with ctrl var, for example a. Then a·b multiplies, a^−1 inverts, det(a) gives the determinant, and identity(3) gives . To solve , type a^−1·b, or use menu → Algebra → Solve System of Linear Equations. A "singular matrix" error means the determinant is 0.
3Explore it
Change the elements of a 2 × 2 matrix. The unit square (grey) is mapped to the shaded parallelogram. Its area is |det A|, and when det A = 0 it collapses to a line, so A has no inverse.
4Common mistakes & exam tips
Common mistakes
- Multiplying matrices element by element. Use row-times-column.
- Assuming . The order matters.
- Writing . The inverse must go on the left: .
- Forgetting to swap and and change the signs of and in the 2 × 2 inverse.
- Entering a system with the variables in a different order in different equations.
Exam tips
- Before multiplying, write the orders side by side: the inner numbers must match, the outer numbers give the answer’s order.
- "Show that a system has a unique solution" means show .
- For 3 × 3 systems, write in full, then give the GDC answer.
- In context questions, say what each row and column of a matrix represents.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
Consider the system of equations and .
- (a)Write the system in the form .[1]
- (b)Find .[2]
- (c)Hence solve the system of equations.[3]
| (a) | |
| A1 | |
| (b) | |
| (A1) | |
| A1 | |
| (c) | |
| (M1) | |
| A1 | |
| A1 | |
Let , where .
- (a)Find an expression for in terms of .[2]
- (b)Find the values of for which does not have an inverse.[3]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| (M1) | |
| A1 | |
| A1 | |
A coffee shop sells espressos at €, lattes at € and muffins at €. Three customers pay as follows: 2 espressos, 3 lattes and 1 muffin cost €13.50; 1 espresso, 2 lattes and 4 muffins cost €15.40; 3 espressos, 1 latte and 2 muffins cost €12.20.
- (a)Write this information as a matrix equation.[2]
- (b)Use your GDC to find the price of each item.[3]
- (c)A group orders 4 espressos, 5 lattes and 3 muffins. Use a matrix product to find the cost.[2]
- (d)The shop raises every price by 10%. Write down the matrix that gives the new prices, in terms of the old price column.[2]
| (a) | |
| A2 | |
| A1 for a correct coefficient matrix, A1 for the right-hand column. | |
| (b) | |
| (M1) | |
| , | A1 |
| A1 | |
| (c) | |
| (M1) | |
| €26.50 | A1 |
| (d) | |
| A1 | |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2025 · TZ3 · Paper 1 | Q8 | Matrices transforming points; finding coordinates | ★★☆ |
| May 2023 · TZ2 · Paper 2 | Q5 | Setting up and solving a system with matrices | ★★☆ |
| Nov 2025 · Paper 2 | Q7 | Matrix powers and the Fibonacci sequence | ★★★ |
