A diagonal matrix is the easiest kind of matrix: it just stretches each coordinate axis. If a matrix has enough eigenvectors, then in the basis made of those eigenvectors it is diagonal. Writing that down is diagonalization.
Key idea
Why it works
Worked example: Diagonalizing a 2 × 2 matrix
- Eigenvalues (from the characteristic equation): $5$ and $2$.
- Eigenvectors: $(1, 1)$ for $5$ and $(1, -2)$ for $2$.
- $P = \begin{bmatrix} 1 & 1 \\ 1 & -2 \end{bmatrix}$ and $D = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}$, in matching order.
- Check $AP = PD$: both equal $\begin{bmatrix} 5 & 2 \\ 5 & -4 \end{bmatrix}$. ✓
Answer: $A = PDP^{-1}$ with $P = \begin{bmatrix} 1 & 1 \\ 1 & -2 \end{bmatrix}$, $D = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}$
When it works, and when it does not
- $n$ distinct eigenvalues: always diagonalizable (eigenvectors for different eigenvalues are independent).
- A repeated eigenvalue: diagonalizable exactly when each eigenspace's dimension equals that eigenvalue's algebraic multiplicity, so the eigenspace dimensions add up to $n$.
Worked example: A repeated eigenvalue that is fine
- Eigenvalues $3, 3, 1$ (lower triangular).
- From the previous topic, $E_3$ has basis $(-2, 1, 0), (2, 0, 1)$ (dimension 2), and $E_1$ is spanned by $(0, 0, 1)$.
- $2 + 1 = 3$ independent eigenvectors, so yes: $P = \begin{bmatrix} -2 & 2 & 0 \\ 1 & 0 & 0 \\ 0 & 1 & 1 \end{bmatrix}$, $D = \begin{bmatrix} 3 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 1 \end{bmatrix}$.
Answer: Yes.
Worked example: One that fails
- Eigenvalue $2$, twice.
- $A - 2I = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}$ has rank 1, so $E_2$ is only a line (spanned by $(1, 0)$).
- Only one independent eigenvector for a $2 \times 2$ matrix: not diagonalizable.
Answer: No.
The payoff comes in the next topics: powers $A^{k} = PD^{k}P^{-1}$, long-run behavior, and systems of differential equations, which split into separate one-variable equations in eigenvector coordinates. Whenever a problem involves applying the same matrix again and again, diagonalizing first is the natural move.
Common mistake