☰ IB Maths AI HL · course menu
Topics
IB Maths AI HL · free cheatsheet
Eigenvalues, Eigenvectors & Markov Chains cheatsheet (IB Maths AI HL)
Every eigenvalue, eigenvector and Markov-chain method for IB Mathematics Applications & Interpretation HL — the characteristic equation, diagonalisation and matrix powers, transition matrices, n-step states and the long-run steady state. Written by an IB-certified teacher.
What this cheatsheet covers
Eigenvalues, eigenvectors and Markov chains are where IB Mathematics Applications & Interpretation HL turns a matrix into a time machine. AI is a modelling subject, so the point of this AHL 1.15 material is rarely the algebra for its own sake — it is predicting the long-run behaviour of a system: how a population splits between habitats, how customers churn between two providers, or where a market share settles years down the line. Because a calculator is always allowed, the marks live in setting the model up correctly and reading the long-run answer — not in grinding matrix powers by hand.
This cheatsheet condenses the whole of AHL 1.15 — eigenvalues from the characteristic equation, eigenvectors, diagonalisation and matrix powers, transition (Markov) matrices, the state after $n$ steps and the all-important steady state — onto one page, and flags the traps that quietly cost method marks.
Eigenvalues & the characteristic equation
AHL 1.15Definition:$A\mathbf{v}=\lambda\mathbf{v}$ with $\mathbf{v}\neq\mathbf{0}$ — applying $A$ just scales $\mathbf{v}$ by $\lambda$Characteristic eq.:$\det(A-\lambda I)=0$ — the equation whose roots are the eigenvalues2×2 form:for $A=\begin{pmatrix}a&b;\\c&d;\end{pmatrix}$: $\lambda^2-(a+d)\lambda+(ad-bc)=0$In words:$\lambda^2-(\operatorname{tr}A)\lambda+\det A=0$ — sum of roots $=\operatorname{tr}A$, product $=\det A$
An eigenvector of a square matrix $A$ points in a direction that $A$ only stretches — it does not rotate it — and the stretch factor is its eigenvalue $\lambda$. That single idea unlocks the whole topic.
Finding the eigenvalues
AHL 1.15Quadratic formula:$\lambda=\dfrac{(a+d)\pm\sqrt{(a-d)^2+4bc}}{2}$Symmetric shortcut:for $\begin{pmatrix}a&b;\\b&a;\end{pmatrix}$ the equation $(a-\lambda)^2-b^2=0$ is a difference of squares $\Rightarrow\lambda=a\pm b$Example:$\begin{pmatrix}2&1\\1&2\end{pmatrix}\Rightarrow\lambda=2\pm1$, so $\lambda=3$ or $\lambda=1$
The characteristic equation is just a quadratic in $\lambda$, so solve it on the GDC, by factorising, or with the formula. Some matrices have a shortcut worth spotting.
Finding the eigenvector
AHL 1.15Set-up:write $\mathbf{v}=\begin{pmatrix}1\\k\end{pmatrix}$; the top row of $(A-\lambda I)\mathbf{v}=\mathbf 0$ gives $(a-\lambda)+bk=0$Component:$k=\dfrac{\lambda-a}{b}$, so $\mathbf{v}=\begin{pmatrix}1\\ \frac{\lambda-a}{b}\end{pmatrix}$ (or any scalar multiple)Example:for $\begin{pmatrix}2&1\\1&2\end{pmatrix}$: $\lambda=3\Rightarrow k=1\Rightarrow\begin{pmatrix}1\\1\end{pmatrix}$; $\lambda=1\Rightarrow k=-1\Rightarrow\begin{pmatrix}1\\-1\end{pmatrix}$
Each eigenvalue $\lambda$ has its own eigenvector, found from $(A-\lambda I)\mathbf{v}=\mathbf{0}$. Because that system is deliberately singular, you only ever need one of its two rows.
Diagonalisation & matrix powers
AHL 1.15Diagonalise:$A=PDP^{-1}$, where $P=\big(\mathbf{v}_1\ \ \mathbf{v}_2\big)$ and $D=\begin{pmatrix}\lambda_1&0\\0&\lambda_2\end{pmatrix}$$n$-th power:$A^{n}=PD^{\,n}P^{-1}$ with $D^{\,n}=\begin{pmatrix}\lambda_1^{\,n}&0\\0&\lambda_2^{\,n}\end{pmatrix}$ — just raise the eigenvaluesTriangular case:$\begin{pmatrix}p&1\\0&q;\end{pmatrix}^{n}=\begin{pmatrix}p^{\,n}&q;^{\,n}-p^{\,n}\\0&q;^{\,n}\end{pmatrix}$ (when $q=p+1$)
Eigenvalues turn a high power of a matrix — the engine behind $n$-step Markov chains — into a single line of arithmetic. Collect the eigenvectors as the columns of $P$ and the eigenvalues on the diagonal of $D$.
Transition (Markov) matrices
AHL 1.15Transition matrix:$T_{ij}=P(\text{from state }j\text{ to state }i)$; every column of $T$ sums to $1$General 2-state:$T=\begin{pmatrix}1-a&b;\\a&1-b\end{pmatrix}$, where $a=P(1\!\to\!2)$ and $b=P(2\!\to\!1)$One step:$\mathbf{s}_1=T\mathbf{s}_0$, i.e. $P(\text{X next})=P(X\!\to\!X)\,P(X)+P(Y\!\to\!X)\,P(Y)$
A Markov chain steps a probability state forward using a transition matrix $T$. This sheet uses the column convention: each column lists where one state goes, so every column sums to $1$.
The state after n steps
AHL 1.15$n$ steps:$\mathbf{s}_n=T^{\,n}\mathbf{s}_0$ — the distribution after $n$ time stepsStep by step:$\mathbf{s}_1=T\mathbf{s}_0$, then $\mathbf{s}_2=T\mathbf{s}_1$, and so on
To run the chain forward, apply $T$ once per time step. That is exactly the matrix power from §4.
The long-run steady state
AHL 1.15Steady state:solve $T\mathbf{s}=\mathbf{s}$ together with $s_1+s_2=1$Balance idea:inflow $=$ outflow for state 1: $a\,s_1=b\,s_2$, so the share in state 1 is $s_1=\dfrac{b}{a+b}$In words:$P(\text{state 1})=\dfrac{P(Y\!\to\!X)}{P(X\!\to\!Y)+P(Y\!\to\!X)}$
Run the chain long enough and the distribution stops changing: it reaches a steady state $\mathbf{s}$ that $T$ leaves fixed. Because $T\mathbf{s}=\mathbf{s}=1\cdot\mathbf{s}$, the steady state is precisely the eigenvector for eigenvalue $1$, scaled so its entries sum to $1$.
Application: long-run counts & expected value
AHL 1.15Long-run count:$N\times P(\text{state})$ — multiply the steady-state proportion by the population size $N$Long-run value:read $\mathbf{s}$ as a distribution and attach a value $x_i$ to each state: $E(X)=\displaystyle\sum x_i\,P(x_i)$
Once you have the steady-state proportions, real AI questions ask for a count or a value: how many animals, how many subscribers, or how much profit in the long run.
Complex eigenvalues, stability & coupled systems
AHL 1.15Complex pair:if $(\operatorname{tr}A)^2-4\det A<0$ then $\lambda=\alpha\pm\beta i$, and trajectories spiralStability:the real part $\alpha=\tfrac12\operatorname{tr}A$ decides it — $\alpha<0$ spirals inward (stable), $\alpha>0$ outward (unstable)Coupled DE link:with eigenvectors $\begin{pmatrix}1\\1\end{pmatrix},\begin{pmatrix}1\\-1\end{pmatrix}$: $\mathbf{v}=c_1e^{\lambda_1 t}\begin{pmatrix}1\\1\end{pmatrix}+c_2e^{\lambda_2 t}\begin{pmatrix}1\\-1\end{pmatrix}$
Not every matrix has real eigenvalues. When the discriminant of the characteristic equation is negative the eigenvalues are a complex pair — and the system spirals rather than settling straight down.
Exam attack plan
All sections
| Question cue | What to do | Watch for |
|---|---|---|
| "Find the eigenvalues" | Solve $\lambda^2-(\operatorname{tr}A)\lambda+\det A=0$ (GDC or formula) | Subtract $\lambda$ on the diagonal only; check sum $=\operatorname{tr}$, product $=\det$ |
| "Find the eigenvector" | $(A-\lambda I)\mathbf{v}=\mathbf 0$; set $\mathbf{v}=\binom{1}{k}$, $k=\tfrac{\lambda-a}{b}$ | Use one row only; any scalar multiple is valid |
| "Find $A^{n}$ / large power" | Diagonalise $A=PDP^{-1}$, so $A^{n}=PD^{\,n}P^{-1}$ (or GDC) | Raise the eigenvalues to $n$, not the whole matrix |
| "State / population after $n$ steps" | Compute $\mathbf{s}_n=T^{\,n}\mathbf{s}_0$ on the GDC | Columns of $T$ sum to 1; keep $\mathbf{s}$ a column; do not transpose |
| "Long-run / steady state" | Solve $T\mathbf{s}=\mathbf{s}$ with $\textstyle\sum s_i=1$ (or $\tfrac{b}{a+b}$) | Independent of the start; rarely $50/50$ |
| "Long-run number in a state" | Steady-state proportion $\times\,N$ | Round to whole items; the total is conserved |
| "Long-run profit / expected value" | $E=\sum x_i\,P(x_i)$ with steady-state probabilities | Weight by probability — not a plain average |
| "Eigenvalues are complex" | Write $\alpha\pm\beta i$; stability from $\alpha=\tfrac12\operatorname{tr}A$ | Real part sets in/out spiral; sign of $\alpha$ decides stability |
Worked Example — AI HL-Style Markov Chain
Question (AI HL Paper 2 style — 8 marks)
A fitness app classifies each user as Active or Lapsed every week. Of active users, $90\%$ stay active and $10\%$ lapse; of lapsed users, $20\%$ return to active and $80\%$ stay lapsed. The app currently has $500$ active and $500$ lapsed users ($1000$ in total). Let state 1 be "Active" and state 2 be "Lapsed".
(a) Write down the transition matrix $T$ (columns summing to 1) and the initial state vector $\mathbf{s}_0$.
(b) Find the eigenvalues of $T$.
(c) Find the number of active users after 2 weeks.
(d) Find the long-run (steady-state) number of active users.
Solution
- (a) Each column lists where one state goes. From active: $0.9$ stay, $0.1$ lapse; from lapsed: $0.2$ return, $0.8$ stay. So $T=\begin{pmatrix}0.9&0.2\\0.1&0.8\end{pmatrix}$, $\mathbf{s}_0=\begin{pmatrix}500\\500\end{pmatrix}$. (A1)(A1) (each column of $T$ sums to 1 — a quick self-check.)
- (b) $\operatorname{tr}T=1.7$ and $\det T=0.9(0.8)-0.2(0.1)=0.70$, so the characteristic equation is $\lambda^2-1.7\lambda+0.7=0$. (M1) Solving, $\lambda=\dfrac{1.7\pm\sqrt{1.7^2-4(0.7)}}{2}=\dfrac{1.7\pm0.3}{2}$, giving $\lambda=1$ and $\lambda=0.7$. (A1) (The $\lambda=1$ guarantees a steady state; $|0.7|<1$ means the chain converges to it.)
- (c) After two weeks $\mathbf{s}_2=T^{2}\mathbf{s}_0$. On the GDC $T^{2}=\begin{pmatrix}0.83&0.34\\0.17&0.66\end{pmatrix}$, so $\mathbf{s}_2=\begin{pmatrix}0.83&0.34\\0.17&0.66\end{pmatrix}\begin{pmatrix}500\\500\end{pmatrix}=\begin{pmatrix}585\\415\end{pmatrix}$. (M1)(A1) There are 585 active users after 2 weeks.
- (d) The steady state solves $T\mathbf{s}=\mathbf{s}$ with $s_1+s_2=1$. Balancing state 1: $0.1\,s_1=0.2\,s_2\Rightarrow s_1=\dfrac{0.2}{0.1+0.2}=\dfrac23$. (M1) So the long-run active count is $\tfrac23\times1000\approx\textbf{667 users}$ (with about $333$ lapsed). (A1) (Equivalently, the $\lambda=1$ eigenvector $\binom{2}{1}$ normalised to sum $1$.)
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$. The presence of an eigenvalue equal to $1$ is the fingerprint of a valid steady state, and the total must stay at $1000$ at every step. Give whole people in the final answer and keep exact GDC values along the way.
Common Student Questions
- What actually is an eigenvector and eigenvalue, in plain words?
- Do the rows or the columns of a transition matrix add up to 1?
- Why is the steady state just the eigenvector for eigenvalue 1?
- My eigenvalues came out complex — have I made a mistake?
- How do I raise a matrix to a high power without multiplying it out many times?
What actually is an eigenvector and eigenvalue, in plain words?
Do the rows or the columns of a transition matrix add up to 1?
Why is the steady state just the eigenvector for eigenvalue 1?
My eigenvalues came out complex — have I made a mistake?
How do I raise a matrix to a high power without multiplying it out many times?
Your next step




