How to Diagonalize a 3×3 Matrix
At a glance
- 1. Find eigenvalues
Solve det(A − λI) = 0 to find the matrix’s eigenvalues.
- 2. Find eigenvectors
For each eigenvalue, solve (A − λI)v = 0 and choose a basis for its eigenspace.
- 3. Check independence
Select three linearly independent eigenvectors; without three, the matrix is not diagonalizable.
- 4. Build and verify
Put the eigenvectors in P’s columns, place their eigenvalues in D, and check AP = PD.
To diagonalize a 3×3 matrix, you need to find its eigenvalues and eigenvectors, then check whether you can choose three linearly independent eigenvectors. If you can, those vectors form the columns of a matrix that changes the matrix into diagonal form.
The method works over a specified number system, usually the real or complex numbers. A matrix with real entries may have complex eigenvalues, so it may be diagonalizable over the complex numbers even when it is not diagonalizable over the reals.
What diagonalization means
A matrix is diagonalizable if it can be written as
where is invertible and is diagonal. The columns of are eigenvectors of , in the same order as their corresponding eigenvalues appear on the diagonal of .
Equivalently, . This form is often convenient for checking your result. If is diagonalizable, its powers are also easy to compute: .
Step-by-step method
- Find the characteristic polynomial. Calculate and solve . The solutions are the eigenvalues. Using instead is also standard; it gives the same eigenvalues.
- Find each eigenspace. For each eigenvalue , solve . The nonzero solutions are its eigenvectors.
- Choose three independent eigenvectors. For each eigenvalue, find a basis for its eigenspace. Altogether, you need three linearly independent vectors in (or ).
- Form and . Put your chosen eigenvectors in the columns of . Put the matching eigenvalues on the diagonal of , in the same order.
- Check the result. Confirm that is invertible and that . If both hold, then .
A 3×3 matrix with three distinct eigenvalues is always diagonalizable over a field containing those eigenvalues. If some eigenvalues repeat, diagonalizability depends on the number of independent eigenvectors, not just the characteristic polynomial.
Worked example
Consider
Because is triangular, its eigenvalues are its diagonal entries: , , and . They are distinct, so the matrix is diagonalizable. Find an eigenvector for each one by solving .
For , the equations give , so choose . For , the first row gives and the third gives ; choose . For , the equations give , so choose .
Use these vectors as the columns of , keeping their eigenvalues in the corresponding order in :
The determinant of is , so is invertible. Its inverse is
Each column of is an eigenvector, so multiplying by that column scales it by its eigenvalue. Thus , and the diagonalization is .
When a 3×3 matrix is not diagonalizable
A matrix is not diagonalizable if its eigenspaces do not together provide three linearly independent eigenvectors. For example, a repeated eigenvalue does not automatically prevent diagonalization. The identity matrix has the single eigenvalue with a three-dimensional eigenspace, so it is already diagonal. But a repeated eigenvalue whose eigenspace has too few independent vectors can make diagonalization impossible.
For each eigenvalue, its algebraic multiplicity is how many times it occurs as a root of the characteristic polynomial. Its geometric multiplicity is the dimension of its eigenspace. A 3×3 matrix is diagonalizable precisely when the dimensions of its eigenspaces add up to 3. For each eigenvalue, geometric multiplicity cannot exceed algebraic multiplicity.
Common mistakes
- Using eigenvalues as the columns of . The columns must be eigenvectors; the eigenvalues go on the diagonal of .
- Mismatching the order. If a column of is an eigenvector for , the corresponding diagonal entry of must be .
- Assuming repeated eigenvalues rule out diagonalization. Check the eigenspace dimensions instead.
- Assuming three eigenvalues counted with repetition guarantee diagonalization. You need three independent eigenvectors, not merely three roots of the characteristic polynomial.
- Trying to invert a singular . If your three selected vectors are dependent, they cannot form a diagonalizing matrix.
- Forgetting the number system. Check whether the required eigenvalues and eigenvectors are real or whether complex numbers are needed.
References
- Linear Algebra Done Right, Sheldon Axler
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.