☰ IB Maths AI HL · course menu
Topics
IB Maths AI HL · free cheatsheet
Matrices cheatsheet (IB Maths AI HL)
Every matrix skill and trap for IB Mathematics Applications & Interpretation HL — multiplication, determinants, inverses, solving AX=B on the GDC, and the AI applications of transition matrices & network walks. Written by an IB-certified teacher.
What this cheatsheet covers
Matrices are the AHL workhorse of IB Mathematics Applications & Interpretation HL. AI treats a matrix less as abstract algebra and more as a modelling container: one object that packs an entire system of equations, a network, or the month-to-month behaviour of a population into a single symbol you can add, multiply and invert. Because a calculator is always allowed, the marks live in setting the problem up as a matrix and reading the GDC's answer correctly — not in grinding the arithmetic by hand.
This cheatsheet condenses the whole of AHL 1.14 — order and notation, the algebra of matrices, determinants and inverses (2×2 by hand, 3×3 on the GDC), solving $AX=B$, and the AI applications of powers, transition matrices and networks — onto one page, and flags the traps that quietly cost method marks.
Order, notation & special matrices
AHL 1.14Order:an $m\times n$ matrix has $m$ rows and $n$ columns; the entry in row $i$, column $j$ is $a_{ij}$Square matrix:$n\times n$ — only square matrices have a determinant, an inverse and powersIdentity:$I=\begin{pmatrix}1&0\\0&1\end{pmatrix}$ leaves any matrix unchanged: $AI=IA=A$Zero matrix:$O$ has every entry $0$, so $A+O=A$
A matrix is a rectangular array of numbers. Its order is stated rows-by-columns, and every operation below depends on that order matching up.
Adding, subtracting & scaling
AHL 1.14Add / subtract:$(A\pm B)_{ij}=a_{ij}\pm b_{ij}$ — both matrices must have the same orderScalar multiple:$kA$ multiplies every entry of $A$ by $k$
Addition, subtraction and scalar multiplication all act entry by entry, so they are the easy operations — the only catch is that the orders must agree.
Matrix multiplication
AHL 1.14Conformable:$A_{m\times n}\,B_{n\times p}$ needs the inner dimensions to match; the product is $m\times p$Entry $(i,j)$:$(AB)_{ij}=\sum_{k}a_{ik}b_{kj}$ — row $i$ of $A$ paired term-by-term with column $j$ of $B$Powers:for a square $A$: $A^2=AA,\ A^3=AAA,\ \ldots,\ A^0=I$
Multiplication is the operation that makes matrices powerful — and the one that trips students up, because it pairs whole rows with whole columns.
Determinants: 2×2 by hand, 3×3 by GDC
AHL 1.142×2:$\det\begin{pmatrix}a&b;\\c&d;\end{pmatrix}=ad-bc$3×3:enter the matrix and read $\det$ straight from the GDC — no expansion by hand needed in AIMeaning:$|\det M|$ is the area/volume scale factor; $\det M=0\Rightarrow$ the matrix is singular (no inverse)
Every square matrix carries a single number, the determinant, that measures how it scales area (2D) or volume (3D) — and whether it can be inverted at all.
The inverse matrix
AHL 1.142×2 inverse:$M^{-1}=\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a;\end{pmatrix}$ — swap the leading diagonal, negate the other two, divide by $\det M$3×3 inverse:enter $M$ on the GDC and compute $M^{-1}$ directly
The inverse undoes a matrix, $AA^{-1}=A^{-1}A=I$, and it exists exactly when $\det A\neq0$. Learn the 2×2 formula; let the GDC handle 3×3.
Solving linear systems $AX=B$
AHL 1.14Encode:coefficients $\to A$, unknowns $\to X$, constants $\to B$, so the system becomes $AX=B$Solve:if $\det A\neq0$ then $X=A^{-1}B$ — one GDC step for a 2×2 or 3×3 system
This is the headline use of matrices: a whole system of linear equations collapses into one statement, which the inverse then solves in a single step.
$$A\mathbf{x}=\mathbf{b}\quad\Longrightarrow\quad \mathbf{x}=A^{-1}\mathbf{b}$$
Transformations & the area scale factor
AHL 1.14Area scale:a region of area $A_0$ becomes area $|\det M|\,A_0$ under the transformation $M$Two-way stretch:$\begin{pmatrix}a&0\\0&b;\end{pmatrix}$ has $\det=ab$, stretching by $a$ horizontally and $b$ vertically
A $2\times2$ matrix maps the plane to itself, and its determinant tells you exactly what it does to area — the geometric face of §4.
Powers & transition matrices
AHL 1.14Transition matrix:$T_{ij}$ is the probability of moving from state $j$ to state $i$; every column of $T$ sums to $1$Step forward:$\mathbf{s}_n=T^{\,n}\mathbf{s}_0$ — apply $T$ once per time step and read the power off the GDCSteady state:solve $T\mathbf{p}=\mathbf{p}$; for $T=\begin{pmatrix}1-a&b;\\a&1-b\end{pmatrix}$ the long-run share in state 1 is $\dfrac{b}{a+b}$
Raising a matrix to a power is how AI steps a system forward in time. A transition matrix $T$ moves a population between states each step; here we use the column convention, so each column sums to $1$.
Adjacency matrices: counting walks
AHL 1.14Walks:$\left(A^{\,n}\right)_{ij}$ = the number of walks of length $n$ from vertex $i$ to vertex $j$Whole network:total walks of length 2 = the sum of all entries of $A^2$ $\left(=\sum_i \deg(i)^2\right)$
Matrices meet graph theory here. Store a network in its adjacency matrix $A$, where $A_{ij}$ counts the edges joining vertex $i$ to vertex $j$ — then powers of $A$ count paths through the network.
Exam attack plan
All sections
| Question cue | What to do | Watch for |
|---|---|---|
| "Find the determinant" (3×3) | Enter the matrix on the GDC and read $\det$ | One wrong sign or entry changes everything |
| "Find the inverse" | 2×2 by formula ($\tfrac{1}{ad-bc}$, swap & negate); 3×3 on the GDC | No inverse when $\det=0$ |
| "Solve the system" | Write $AX=B$, compute $X=A^{-1}B$ | $\det A=0\Rightarrow$ no unique solution |
| "Find the product $AB$" | Row $i$ × column $j$; check inner dimensions match | $AB\neq BA$; wrong sizes = undefined |
| "State / population after $n$ steps" | Compute $\mathbf{s}_n=T^{\,n}\mathbf{s}_0$ on the GDC | Columns of $T$ sum to 1; do not transpose |
| "Long-run / steady state" | Solve $T\mathbf{p}=\mathbf{p}$ (or use $\tfrac{b}{a+b}$) | Independent of the start; totals are conserved |
| "Area after a transformation" | Multiply the area by $|\det M|$ | Not the linear factor; $\det$ may be negative |
| "Walks of length $n$" | Compute $A^{\,n}$ and read entry $(i,j)$ | Use power $n$, not $n-1$; one entry, not the row sum |
Worked Example — AI HL-Style Transition Matrix
Question (AI HL Paper 2 style — 6 marks)
A streaming service reviews its members each month. Each month $80\%$ of current subscribers renew and $20\%$ cancel; of those not currently subscribed, $30\%$ take out a subscription and $70\%$ stay unsubscribed. The service begins with $2000$ subscribers and $3000$ non-subscribers ($5000$ people in total). Let state 1 be "subscribed" and state 2 be "not subscribed".
(a) Write down the transition matrix $T$ (columns summing to 1) and the initial state vector $\mathbf{s}_0$.
(b) Find the number of subscribers after 2 months.
(c) Find the long-run (steady-state) number of subscribers.
Solution
- (a) Each column lists where one state goes. From subscribed: $0.8$ stay, $0.2$ leave; from not-subscribed: $0.3$ join, $0.7$ stay. So $T=\begin{pmatrix}0.8&0.3\\0.2&0.7\end{pmatrix}$, $\mathbf{s}_0=\begin{pmatrix}2000\\3000\end{pmatrix}$. (A1)(A1) (each column of $T$ sums to 1 — a quick self-check.)
- (b) After two months $\mathbf{s}_2=T^{2}\mathbf{s}_0$. On the GDC $T^{2}=\begin{pmatrix}0.70&0.45\\0.30&0.55\end{pmatrix}$, so $\mathbf{s}_2=\begin{pmatrix}0.70&0.45\\0.30&0.55\end{pmatrix}\begin{pmatrix}2000\\3000\end{pmatrix}=\begin{pmatrix}2750\\2250\end{pmatrix}$. (M1)(A1) There are 2750 subscribers after 2 months.
- (c) The steady state solves $T\mathbf{p}=\mathbf{p}$. With $p$ subscribers out of $5000$: $0.8p+0.3(5000-p)=p\Rightarrow 0.5p=1500\Rightarrow p=3000$. (M1)(A1) In the long run there are 3000 subscribers (and 2000 non-subscribers). (Equivalently $\tfrac{b}{a+b}=\tfrac{0.3}{0.5}=0.6$, and $0.6\times5000=3000$.)
Examiner's note: state the convention first — here columns sum to 1, so $\mathbf{s}_{n+1}=T\mathbf{s}_n$ — and do not transpose $T$; swapping its rows and columns is the classic slip. The total must stay at $5000$ at every step, and the steady state is independent of the starting numbers. Give whole people and keep exact GDC values along the way.
Common Student Questions
- Why is $AB$ usually not the same as $BA$?
- My GDC gives an error when I try to invert a matrix — what went wrong?
- Should I use the inverse-matrix method or the GDC's simultaneous-equation solver?
- Do the rows or the columns of a transition matrix add up to 1?
- For counting walks, do I raise the adjacency matrix to the power $n$ or $n-1$?
Why is $AB$ usually not the same as $BA$?
My GDC gives an error when I try to invert a matrix — what went wrong?
Should I use the inverse-matrix method or the GDC's simultaneous-equation solver?
Do the rows or the columns of a transition matrix add up to 1?
For counting walks, do I raise the adjacency matrix to the power $n$ or $n-1$?
Your next step




