IB Diploma Mathematics AI · Number and algebra
Eigenvalues and eigenvectors (HL)
1What eigenvectors are
Multiplying a vector by a matrix usually changes both its length and its direction. An eigenvector of $A$ is a special non-zero vector whose direction does not change: it is only stretched (or shrunk, or reversed).
$$A\mathbf{v} = \lambda\mathbf{v}$$
- $\mathbf{v}$ is an eigenvector and the number $\lambda$ is its eigenvalue: the stretch factor.
- A $2 \times 2$ matrix has at most two eigenvalues.
Eigenvectors keep their direction: they are only stretched by the eigenvalue
For $A = \begin{pmatrix}4 & 1\\2 & 3\end{pmatrix}$, $A\begin{pmatrix}1\\1\end{pmatrix} = \begin{pmatrix}5\\5\end{pmatrix} = 5\begin{pmatrix}1\\1\end{pmatrix}$. So $\begin{pmatrix}1\\1\end{pmatrix}$ is an eigenvector with eigenvalue 5.
Check yourself
What does an eigenvector keep when it is multiplied by its matrix?
Show the answer
Its direction (or the exact opposite direction)
It is only scaled by the eigenvalue.
2Finding eigenvalues
The eigenvalues are the solutions of the characteristic equation
$$\det(A - \lambda I) = 0$$
For a $2 \times 2$ matrix $\begin{pmatrix}a & b\\c & d\end{pmatrix}$, this is $\lambda^2 - (a + d)\lambda + (ad - bc) = 0$.
Eigenvalues
- $A = \begin{pmatrix}4 & 1\\2 & 3\end{pmatrix}$.
- $\det\begin{pmatrix}4 - \lambda & 1\\2 & 3 - \lambda\end{pmatrix} = (4 - \lambda)(3 - \lambda) - 2 = \lambda^2 - 7\lambda + 10 = 0$.
- $(\lambda - 5)(\lambda - 2) = 0$, so $\lambda = 5$ or $\lambda = 2$.
Check yourself
What is the characteristic equation of a matrix A?
Show the answer
det(A − λI) = 0
Its solutions are the eigenvalues.
3Finding eigenvectors
For each eigenvalue, solve $(A - \lambda I)\mathbf{v} = \mathbf{0}$. The equations will be multiples of each other, so there are infinitely many eigenvectors in the same direction. Give the simplest one.
Eigenvectors
- For $\lambda = 5$: $A - 5I = \begin{pmatrix}-1 & 1\\2 & -2\end{pmatrix}$. The equation $-x + y = 0$ gives $y = x$, so $\mathbf{v} = \begin{pmatrix}1\\1\end{pmatrix}$.
- For $\lambda = 2$: $A - 2I = \begin{pmatrix}2 & 1\\2 & 1\end{pmatrix}$. The equation $2x + y = 0$ gives $y = -2x$, so $\mathbf{v} = \begin{pmatrix}1\\-2\end{pmatrix}$.
- Check: $A\begin{pmatrix}1\\-2\end{pmatrix} = \begin{pmatrix}2\\-4\end{pmatrix} = 2\begin{pmatrix}1\\-2\end{pmatrix}$.
Check yourself
λ = 3 is an eigenvalue and (A − 3I)v = 0 gives the equation x − 2y = 0. Which is an eigenvector?
Show the answer
(2, 1)
x = 2y, so (2, 1) works. The zero vector is never an eigenvector.
4Diagonalisation and powers of a matrix
If $A$ has two different eigenvalues, it can be written as
$$A = PDP^{-1}$$
where $P$ has the eigenvectors as its columns and $D$ is the diagonal matrix of eigenvalues, in the same order. Then powers are easy:
$$A^n = PD^nP^{-1}, \qquad D^n = \begin{pmatrix}\lambda_1^n & 0\\0 & \lambda_2^n\end{pmatrix}$$
A power
- For the matrix above, $P = \begin{pmatrix}1 & 1\\1 & -2\end{pmatrix}$ and $D = \begin{pmatrix}5 & 0\\0 & 2\end{pmatrix}$.
- $A^n = P\begin{pmatrix}5^n & 0\\0 & 2^n\end{pmatrix}P^{-1}$.
- Check with $n = 2$: this gives $\begin{pmatrix}18 & 7\\14 & 11\end{pmatrix}$, the same as $A \times A$.
Why it matters: in the long run, the largest eigenvalue dominates. For a transition matrix in a Markov chain, the eigenvalue 1 gives the steady state, and eigenvectors also solve coupled differential equations.
Check yourself
In A = PDP⁻¹, what are the columns of P?
Show the answer
The eigenvectors of A
D holds the eigenvalues in the same order.
5A full worked example
$M = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$
- Characteristic equation: $\det(M - \lambda I) = (4 - \lambda)(3 - \lambda) - 2 = 0$.
- Expand: $\lambda^2 - 7\lambda + 10 = 0$, so $(\lambda - 2)(\lambda - 5) = 0$.
- Eigenvalues: $\lambda = 2$ and $\lambda = 5$.
- For $\lambda = 5$: $\begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \mathbf{0}$ gives $y = x$, so eigenvector $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$.
- For $\lambda = 2$: $\begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \mathbf{0}$ gives $y = -2x$, so eigenvector $\begin{pmatrix} 1 \\ -2 \end{pmatrix}$.
- Check: $M\begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 5 \end{pmatrix} = 5\begin{pmatrix} 1 \\ 1 \end{pmatrix}$.
Check yourself
The sum of a 2 × 2 matrix's eigenvalues equals what?
Show the answer
The trace (sum of the diagonal entries)
$2 + 5 = 4 + 3$.
6Long-term behaviour
Eigenvalues predict long-term behaviour in models using powers of a matrix.
- The largest eigenvalue dominates as $n$ grows.
- If the largest eigenvalue is greater than 1, quantities grow; if less than 1, they shrink.
- The corresponding eigenvector gives the long-term ratio between components.
Using the matrix above as a population model
- Largest eigenvalue 5, eigenvector $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$.
- In the long run, the population grows by a factor of about 5 each step.
- The two groups approach a 1 : 1 ratio.
Check yourself
If the largest eigenvalue of a population matrix is 0.9, what happens long term?
Show the answer
The population declines
Less than 1.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera