How to diagonalize a matrix
6 min read
Short answer
To diagonalize an matrix , find its eigenvalues, find independent eigenvectors, put them as the columns of , and put the matching eigenvalues on the diagonal of . Then . It works exactly when there are independent eigenvectors.
When it fails
If an eigenvalue is repeated, it may have fewer independent eigenvectors than its multiplicity; then the matrix is defective and cannot be diagonalized. Distinct eigenvalues guarantee success. Symmetric matrices are always diagonalizable, with an orthogonal .
Why bother
Diagonal matrices are easy: just raises each diagonal entry to the power . Therefore , which makes long-term behavior of systems and recurrences, like Markov chains or Fibonacci numbers, easy to compute.
Worked example
Diagonalize .
Trace and determinant , so gives and .
: , eigenvector . : , eigenvector .
Check with the trace of : , and directly has trace 29. ✓
Try it yourself
Is diagonalizable?
Show the answer
No. The only eigenvalue is 1 (repeated), and gives , so there is only one independent eigenvector , but we need two.
Keep going with practice
Diagonalization follows eigenvalues in Vidi's Linear Algebra & Probability course, and the matrix calculator can check your P and D.