Diagonal matrices are the easiest matrices there are: you multiply, invert and raise them to powers entry by entry. Diagonalization is the process of rewriting a matrix as a diagonal matrix in disguise, A=PDP−1, so that questions about A (especially about Ak for large k) become questions about a diagonal matrix.
Why diagonal is easy
If D=[5002], then Dk=[5k002k]. Now suppose A=PDP−1 for some invertible P. Then
A2=(PDP−1)(PDP−1)=PD(P−1P)DP−1=PD2P−1,
and in the same way Ak=PDkP−1 for every positive integer k. The inner P−1P pairs cancel, and all the hard work is on the diagonal.
Definition
Diagonalizable
A square matrix A is diagonalizable if it is similar to a diagonal matrix, that is, if A=PDP−1 for some invertible matrix P and diagonal matrix D.
Which matrices can be diagonalized?
Write P=[v1⋯vn] and let D have diagonal entries λ1,…,λn. Then
AP=[Av1⋯Avn]andPD=[λ1v1⋯λnvn].
So AP=PD says precisely that Avi=λivi for each column. If P is also invertible, its columns are linearly independent (in particular nonzero), and AP=PD is the same as A=PDP−1. That proves the central theorem.
The Diagonalization Theorem
An n×n matrix A is diagonalizable if and only if A has n linearly independent eigenvectors.
In that case A=PDP−1, where the columns of P are n linearly independent eigenvectors and the diagonal entries of D are the corresponding eigenvalues, in the same order.
Geometrically, the columns of P form an eigenvector basis of Rn. In that basis, A just scales each coordinate by its eigenvalue. The picture shows this for A=[4213], whose eigen-directions are (1,1) with λ=5 and (1,−2) with λ=2. The vector x=(2,−1) equals (1,1)+(1,−2), so Ax=5(1,1)+2(1,−2)=(7,1).
In the eigenvector basis, A multiplies the v1-coordinate by 5 and the v2-coordinate by 2. So x = v1 + v2 maps to Ax = 5v1 + 2v2 = (7, 1).Open in grapher →
The recipe
Find the eigenvalues from the characteristic equation.
For each eigenvalue, find a basis of its eigenspace.
If the bases together contain n vectors, they are automatically linearly independent; use them as the columns of P. If there are fewer than n, A is not diagonalizable.
Build D from the eigenvalues, matching the order of the columns of P.
Check by verifying AP=PD (easier than computing P−1).
Worked example: Diagonalizing a 2 × 2 matrix
Diagonalize A=[4213].
The characteristic polynomial is λ2−7λ+10=(λ−5)(λ−2).
For λ=5: A−5I=[−121−2] gives x1=x2, so v1=(1,1).
For λ=2: A−2I=[2211] gives 2x1+x2=0, so v2=(1,−2).
P=[111−2],D=[5002].
Check: AP=[552−4]=PD.
Worked example: A formula for the powers
Use the diagonalization above to find a formula for Ak.
The only eigenvalue is 3 (algebraic multiplicity 2). But A−3I=[0010] has one free variable, so the eigenspace is the line spanned by (1,0). There are not two independent eigenvectors, so A is not diagonalizable. This matrix is a shear; no basis makes it act by pure scaling.
The dimension of the eigenspace for λ is called its geometric multiplicity. It is always at least 1 and at most the algebraic multiplicity. The theorem can be restated in those terms:
If A has ndistinct eigenvalues, it is diagonalizable. (Eigenvectors for distinct eigenvalues are independent, and there are n of them.)
In general, A is diagonalizable if and only if the geometric multiplicities add up to n, which happens exactly when each eigenvalue's geometric multiplicity equals its algebraic multiplicity (assuming all eigenvalues are real).
Worked example: Repeated eigenvalue, still diagonalizable
In the first lesson of this unit, A=411−12−1225 had a two-dimensional eigenspace for λ=3, with basis (1,1,0) and (−2,0,1). Since trA=11, the third eigenvalue is 11−3−3=5. Solving (A−5I)x=0 gives (1,1,1), which you can check: A(1,1,1)=(5,5,5). Three independent eigenvectors, so
P=110−201111,D=300030005.
A repeated eigenvalue does not prevent diagonalization; a deficient eigenspace does.
Common mistake
Diagonalizable and invertible are unrelated. [1000] is diagonalizable but not invertible, while [3013] is invertible but not diagonalizable. Invertibility is about whether 0 is an eigenvalue; diagonalizability is about whether there are enough eigenvectors.
Practice
Practice 1
Let A=PDP−1 with P=[1112] and D=[200−1]. Find the (1,1) entry of A5.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
A=[1322]. An eigenvector for the larger eigenvalue of A has the form (2,k). Find k.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
For A=[4213], use the formula Ak=31[2⋅5k+2k2⋅5k−2k+15k−2k5k+2k+1] to find the (1,2) entry of A3.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Is A=100520−374 diagonalizable?
Practice 5
Is A=51005000−2 diagonalizable?
Practice 6
Find the geometric multiplicity of λ=2 for A=200020012.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
A=2140320−10 has eigenvalues 2,2,1. An eigenvector for λ=1 has the form (0,1,k). Find k.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.