Ran Wei/ Linear Algebra
中文
Linear Algebra · Spectra and data

Module 9Eigenvalues and diagonalisation

Find invariant directions and use an eigenbasis to understand repeated applications of a map.

85 minYou need Modules 3–6

In this module you will

  • Find eigenvalues from the characteristic equation
  • Find an eigenspace as a null space
  • Decide whether an eigenbasis exists and use it to compute powers
1

Directions that survive the map

An eigenvector of a square matrix AA is a nonzero vector v\mathbf v such that Av=λv.A\mathbf v=\lambda\mathbf v\mathclose{\text{.}} Its eigenvalue λ\lambda records what the map does along that direction. A negative value reverses it. A zero eigenvalue is allowed and signals a nonzero kernel.

For a candidate λ,\lambda\mathclose{\text{,}} the condition is (A−λI)v=0.(A-\lambda I)\mathbf v=\mathbf 0\mathclose{\text{.}} A nonzero solution exists exactly when det⁡(A−λI)=0.\det(A-\lambda I)=0\mathclose{\text{.}} Find these roots first, then solve a homogeneous system for each root. The entire kernel is the eigenspace and includes zero, although zero is never an eigenvector.

Example 9.1Two eigenvectors of a triangular matrix✓ Checked

For A=(2101)A=\begin{pmatrix}2&1\\0&1\end{pmatrix} the determinant polynomial is (2−λ)(1−λ).(2-\lambda)(1-\lambda)\mathclose{\text{.}} With λ=2,\lambda=2\mathclose{\text{,}} take (1,0)T.(1,0)^\mathsf T\mathclose{\text{.}} With λ=1,\lambda=1\mathclose{\text{,}} solve x+y=0x+y=0 and take (−1,1)T.(-1,1)^\mathsf T\mathclose{\text{.}}

2

Change to eigenvector coordinates

If AA has an eigenbasis, put the eigenvectors into the columns of PP and the eigenvalues in the matching order on the diagonal of D.D\mathclose{\text{.}} Then AP=PD,AP=PD\mathclose{\text{,}} so A=PDP−1.A=PDP^{-1}\mathclose{\text{.}} Convert to eigenvector coordinates, scale each coordinate independently, then convert back. In a power AkA^k the middle factors P−1PP^{-1}P cancel, leaving PDkP−1.PD^kP^{-1}\mathclose{\text{.}} A factor with magnitude below one decays as kk increases. For the example, (0,1)T(0,1)^\mathsf T is the sum of the two selected eigenvectors, so after kk steps it is (2k−1,1)T.(2^k-1,1)^\mathsf T\mathclose{\text{.}}

Distinct eigenvalues have independent eigenvectors. In a shortest nontrivial linear relation, applying A−λIA-\lambda I for one eigenvalue in the relation would remove that vector and leave a shorter nontrivial relation. Thus nn distinct real eigenvalues suffice for a real eigenbasis. Repetition alone gives no verdict. Some real matrices also have complex eigenpairs and no real eigenbasis.

Compute itA repeated eigenvalue with a missing direction
Python
from sympy import Matrix

A = Matrix([[1, 1], [0, 1]])
for value, multiplicity, basis in A.eigenvects():
    print(value, multiplicity, [list(v) for v in basis])
print((A**4).tolist())
Output
1 2 [[1, 0]]
[[1, 4], [0, 1]]
3

Exercises

Exercise 9.1★Verify a direction

For A=diag⁡(−2,3)A=\operatorname{diag}(-2,3) find the eigenvalue of (1,0)T.(1,0)^\mathsf T\mathclose{\text{.}}

Show solution✓ Checked

The first column is (−2,0)T,(-2,0)^\mathsf T\mathclose{\text{,}} equal to −2-2 times the given direction.

Exercise 9.2★★A repeated root

Compare eigenbases of 2I22I_2 and (2102).\begin{pmatrix}2&1\\0&2\end{pmatrix}\mathclose{\text{.}}

Show solution✓ Checked

Every nonzero vector is an eigenvector of 2I2,2I_2\mathclose{\text{,}} so the usual coordinate basis works. Subtracting 2I22I_2 from the other matrix forces the second coordinate to zero. There is only one independent eigenvector.

Exercise 9.3★★★Repeated application

Use the eigenvectors in the worked example to find A5(0,1)T.A^5(0,1)^\mathsf T\mathclose{\text{.}}

Show solution✓ Checked

The starting vector is one copy of each eigenvector. Scale the first by 25=322^5=32 and keep the second. The result is (31,1)T.(31,1)^\mathsf T\mathclose{\text{.}}

4

Check yourself

1
Which quantity may be zero in an eigenpair?
2
When does a real n×nn\times n matrix necessarily have a real eigenbasis?
3
In A=PDP−1,A=PDP^{-1}\mathclose{\text{,}} what do the columns of PP hold?
Finished this module?