A square matrix with n linearly independent eigenvectors can be written as A = PDP⁻¹, where the columns of P are the eigenvectors and D is the diagonal matrix of matching eigenvalues. In the coordinates given by the eigenvectors, A does nothing but scale each coordinate. That turns powers into a single step, Aᵏ = PDᵏP⁻¹, and explains long-run behavior: the largest eigenvalues dominate. Distinct eigenvalues guarantee diagonalizability; a repeated eigenvalue with too few eigenvectors prevents it.
What you'll learn
Diagonalize a matrix as A = PDP⁻¹
Compute powers of a matrix from its diagonalization
The matrix B=[41−21] from the
previous lesson has eigenvectors
(1,1) for λ=2 and (2,1) for λ=3. Put the eigenvectors
into the columns of P and the eigenvalues, in the same order, on the diagonal
of D:
P=[1121]D=[2003]B=PDP−1
This is diagonalization. Read right to left, PDP−1x first
finds the coordinates of x along the eigenvectors, then scales each
coordinate by its eigenvalue, then assembles the result.
Column j of AP is Avj, and column j of PD is
λjvj, since D multiplies the jth column of P by
λj. Those are equal exactly because vj is an eigenvector.
So AP=PD, and when the eigenvectors are independent, P is invertible and
A=PDP−1. Diagonalizing is the eigenvector equation written for all n
eigenvectors at once. It works exactly when there are n independent
eigenvectors to fill the columns of P.
Two facts decide that:
n distinct eigenvalues always give n independent eigenvectors, so the
matrix is diagonalizable.
A repeated eigenvalue is fine only if its eigenspace has as many dimensions as
the number of times the eigenvalue repeats.
The eigenvalues are 4 and 1, with eigenvectors (1,1) and (1,−2) from the previous lesson. Place them as columns in the same order as the eigenvalues.
Is [2012] diagonalizable?
Answer
No
Full solution
The eigenvalue 2 repeats, and A−2I=[0010] gives only one independent eigenvector.
Is [1023] diagonalizable?
Answer
Yes
Full solution
Two distinct eigenvalues, 1 and 3, guarantee two independent eigenvectors.
For B=[41−21], use the formula to find B2, and check by multiplying.
Answer
[145−10−1]
Full solution
With 22=4 and 32=9: −4+18=14, 8−18=−10, −4+9=5 and 8−9=−1. Multiplying B by itself gives the same matrix.
A=PDP−1 with P=[1011] and D=[1002]. Find A3.
Answer
[1078]
Full solution
A3=PD3P−1 with D3=diag(1,8) and P−1=[10−11]. Then PD3=[1088], and multiplying by P−1 gives the answer.
A 3×3 matrix has eigenvalues 1, 2 and 2, and the eigenspace for 2 is a line. Is it diagonalizable?
Answer
No
Full solution
The eigenvalue 2 repeats twice but contributes only one independent eigenvector, so there are only two independent eigenvectors in all.
A Markov chain has M=[0.80.20.30.7]. Find its long-run state.
Answer
(0.6,0.4)
Full solution
M−I=[−0.20.20.3−0.3] gives 2x1=3x2, so (3,2) is an eigenvector for 1. Scaled to add to 1, it is (0.6,0.4). The other eigenvalue is 0.5, whose contribution dies away.
A=PDP−1 with D=diag(2,3). Find detA.
Answer
6
Full solution
detA=detP⋅detD⋅detP−1=detD=2⋅3.
A=PDP−1 with D=diag(1,0.5). What does Ak approach as k grows?
Answer
Pdiag(1,0)P−1
Full solution
Dk=diag(1,0.5k), and 0.5k→0. Only the eigenvector for 1 survives.
A student says [1011] is diagonalizable because it is triangular and its eigenvalues are on the diagonal. What went wrong?
Hint
Count independent eigenvectors.
Answer
It has only one independent eigenvector, so it is not diagonalizable.
Full solution
Triangular form gives the eigenvalues, here 1 twice. Diagonalizing needs two independent eigenvectors, and A−I=[0010] has a one-dimensional null space.
Frequently asked questions
What does it mean to diagonalize a matrix?
To write A = PDP⁻¹ with D diagonal. The columns of P are eigenvectors of A, and the diagonal of D holds the matching eigenvalues in the same order.
When is a matrix diagonalizable?
When it has n linearly independent eigenvectors. An n × n matrix with n distinct eigenvalues always does.
Why does diagonalization help with powers?
Aᵏ = PDᵏP⁻¹, and a power of a diagonal matrix raises each diagonal entry to the kth power.
Is every matrix diagonalizable?
No. [[1, 1], [0, 1]] has the single eigenvalue 1 but only one independent eigenvector, so there are not enough columns for P.
What is the steady state of a Markov chain?
The eigenvector for eigenvalue 1, scaled so its entries add to 1. The chain approaches it because every other eigenvalue has size less than 1.