Linear Algebra — Lecture 8

Lecture 8: Eigenvalues, Eigenvectors, and Diagonalization

Shuhong Gao  ·  Clemson University

These notes are interactive: click a section title to open it, click any dotted term to unfold its exact definition or statement in place, click ▸ Proof to expand a proof, and try the exercises — answers are checked instantly.

8.1  Eigenvalues and eigenvectors

💡 Intuition

A linear map can rotate, shear and stretch vectors in complicated ways, but often there are special directions that it does not turn at all: a vector in such a direction is only stretched, shrunk or flipped. These are the eigenvectors, and the stretching factors are the eigenvalues. Lecture 7 already met them: the reflection across a line keeps the vectors on the line and reverses those perpendicular to it, and the matrix (4−211)\begin{pmatrix} 4 & -2 \\ 1 & 1 \end{pmatrix} stretches one direction by 22 and another by 33. In a basis of such directions the matrix of the map becomes diagonal, which is the goal of Section 3. This section sets up the definitions and proves the key structural fact: eigenvectors belonging to different eigenvalues are always independent.

Definition 8.1 (Eigenvalue and eigenvector of a matrix)

Let AA be an n×nn \times n matrix. A real number λ\lambda is an eigenvalue of AA if there is a nonzero vector 𝐱∈ℝn\mathbf{x} \in \mathbb{R}^n with A𝐱=λ𝐱.A\mathbf{x} = \lambda\mathbf{x} . Such an 𝐱\mathbf{x} is called an eigenvector of AA belonging to (or corresponding to) λ\lambda.

Remark 8.2 (Two points in the definition)

An eigenvector must be nonzero: A0=λ0A\mathbf{0} = \lambda\mathbf{0} holds for every λ\lambda, so allowing 𝐱=0\mathbf{x} = \mathbf{0} would make every number an eigenvalue. An eigenvalue, on the other hand, may be 00: λ=0\lambda = 0 is an eigenvalue exactly when A𝐱=0A\mathbf{x} = \mathbf{0} has a nonzero solution. Also, only square matrices have eigenvalues, since A𝐱A\mathbf{x} and λ𝐱\lambda\mathbf{x} must lie in the same space. In this course the scalars are real numbers, so eigenvalues are real by definition; complex eigenvalues are discussed briefly in Section 2.

2026-10-28T15:33:00.115139 image/svg+xml Matplotlib v3.10.9, https://matplotlib.org/ b 1 A b b 1 1 = 2 b 2 A b b 2 2 = 3 x A x
The map 𝐱↦A𝐱\mathbf{x} \mapsto A\mathbf{x} for A=(4−211)A = \begin{pmatrix} 4 & -2 \\ 1 & 1 \end{pmatrix}. The vectors 𝐛1=(1,1)T\mathbf{b}_1 = (1,\,1)^{T} and 𝐛2=(2,1)T\mathbf{b}_2 = (2,\,1)^{T} (dark) are sent along their own lines, to A𝐛1=2𝐛1A\mathbf{b}_1 = 2\mathbf{b}_1 and A𝐛2=3𝐛2A\mathbf{b}_2 = 3\mathbf{b}_2 (light). The vector 𝐱=(0,1)T\mathbf{x} = (0,\,1)^{T} is turned off its line, to A𝐱=(−2,1)TA\mathbf{x} = (-2,\,1)^{T}.
Example 8.3 (Checking a vector)

Let A=(4−211)A = \begin{pmatrix} 4 & -2 \\ 1 & 1 \end{pmatrix}, the matrix of Lecture 7's example. For 𝐛1=(1,1)T\mathbf{b}_1 = (1,\, 1)^{T}, 𝐛2=(2,1)T\mathbf{b}_2 = (2,\, 1)^{T} and 𝐱=(0,1)T\mathbf{x} = (0,\, 1)^{T}, A𝐛1=(22)=2𝐛1,A𝐛2=(63)=3𝐛2,A𝐱=(−21).A\mathbf{b}_1 = \begin{pmatrix} 2 \\ 2 \end{pmatrix} = 2\,\mathbf{b}_1, \qquad A\mathbf{b}_2 = \begin{pmatrix} 6 \\ 3 \end{pmatrix} = 3\,\mathbf{b}_2, \qquad A\mathbf{x} = \begin{pmatrix} -2 \\ 1 \end{pmatrix} . So 𝐛1\mathbf{b}_1 is an eigenvector belonging to the eigenvalue 22 and 𝐛2\mathbf{b}_2 is an eigenvector belonging to the eigenvalue 33. The vector 𝐱\mathbf{x} is not an eigenvector: (−2,1)T=λ(0,1)T(-2,\, 1)^{T} = \lambda(0,\, 1)^{T} would need −2=0-2 = 0. Checking whether a given vector is an eigenvector takes one multiplication.

Definition 8.4 (Eigenspace)

Let λ\lambda be an eigenvalue of the n×nn \times n matrix AA. The eigenspace of AA for λ\lambda is Eλ={𝐱∈ℝn:A𝐱=λ𝐱}=Nul(A−λIn),E_\lambda = \{\, \mathbf{x} \in \mathbb{R}^n : A\mathbf{x} = \lambda\mathbf{x} \,\} = \operatorname{Nul}(A - \lambda I_n) , the set of all eigenvectors belonging to λ\lambda together with the zero vector.

Proposition 8.5 (Eigenvalues through the null space)

Let AA be an n×nn \times n matrix and λ\lambda a number. Then A𝐱=λ𝐱A\mathbf{x} = \lambda\mathbf{x} if and only if (A−λIn)𝐱=0(A - \lambda I_n)\mathbf{x} = \mathbf{0}. Consequently:

  1. λ\lambda is an eigenvalue of AA if and only if Nul(A−λIn)≠{0}\operatorname{Nul}(A - \lambda I_n) \neq \{\mathbf{0}\};
  2. every eigenspace EλE_\lambda is a subspace of ℝn\mathbb{R}^n, and a basis of it is found by solving (A−λIn)𝐱=0(A - \lambda I_n)\mathbf{x} = \mathbf{0};
  3. 00 is an eigenvalue of AA if and only if AA is not invertible.

Example 8.6 (Is a given number an eigenvalue?)

Let A=(233−6)A = \begin{pmatrix} 2 & 3 \\ 3 & -6 \end{pmatrix}. Is 33 an eigenvalue? Is 11?

For λ=3\lambda = 3, A−3I2=(−133−9)A - 3I_2 = \begin{pmatrix} -1 & 3 \\ 3 & -9 \end{pmatrix}, and R2+3R1R_2 + 3R_1 gives (−1300)\begin{pmatrix} -1 & 3 \\ 0 & 0 \end{pmatrix}: one pivot and one free variable. The solutions of (A−3I2)𝐱=0(A - 3I_2)\mathbf{x} = \mathbf{0} are x1=3x2x_1 = 3x_2, so E3=Span((31)),check: A(31)=(93)=3(31).E_3 = \operatorname{Span}\left( \begin{pmatrix} 3 \\ 1 \end{pmatrix} \right), \qquad \text{check: } A\begin{pmatrix} 3 \\ 1 \end{pmatrix} = \begin{pmatrix} 9 \\ 3 \end{pmatrix} = 3\begin{pmatrix} 3 \\ 1 \end{pmatrix}. So 33 is an eigenvalue and E3E_3 is a line. For λ=1\lambda = 1, A−I2=(133−7)A - I_2 = \begin{pmatrix} 1 & 3 \\ 3 & -7 \end{pmatrix}, and R2−3R1R_2 - 3R_1 gives (130−16)\begin{pmatrix} 1 & 3 \\ 0 & -16 \end{pmatrix}: two pivots, so Nul(A−I2)={0}\operatorname{Nul}(A - I_2) = \{\mathbf{0}\} and 11 is not an eigenvalue.

Example 8.7 (Eigenvectors from geometry)

Sometimes eigenvectors can be seen without any computation.

  1. A reflection. The reflection ff across the line LL spanned by 𝐛1=(1,2)T\mathbf{b}_1 = (1,\, 2)^{T}, with standard matrix 15(−3443)\frac{1}{5}\begin{pmatrix} -3 & 4 \\ 4 & 3 \end{pmatrix} found in Lecture 7, fixes every vector of LL and reverses every vector perpendicular to LL. So 11 is an eigenvalue with E1=LE_1 = L, and −1-1 is an eigenvalue with E−1=Span(𝐛2)E_{-1} = \operatorname{Span}(\mathbf{b}_2), 𝐛2=(−2,1)T\mathbf{b}_2 = (-2,\, 1)^{T}. Every other vector is turned off its line.
  2. A projection. The map (x1,x2)T↦(x1,0)T(x_1,\, x_2)^{T} \mapsto (x_1,\, 0)^{T}, with matrix (1000)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, keeps 𝐞1\mathbf{e}_1 and kills 𝐞2\mathbf{e}_2: the eigenvalues are 11 and 00, with E1=Span(𝐞1)E_1 = \operatorname{Span}(\mathbf{e}_1) and E0=Span(𝐞2)E_0 = \operatorname{Span}(\mathbf{e}_2).
  3. A rotation. The matrix A=(01−10)A = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} sends (x1,x2)T(x_1,\, x_2)^{T} to (x2,−x1)T(x_2,\, -x_1)^{T}; it is the rotation by 90∘90^\circ clockwise, R−π/2R_{-\pi/2} in the notation of Lecture 3. It turns every nonzero vector, so it should have no eigenvector. Indeed, A𝐱=λ𝐱A\mathbf{x} = \lambda\mathbf{x} says x2=λx1x_2 = \lambda x_1 and −x1=λx2-x_1 = \lambda x_2, hence −x1=λ2x1-x_1 = \lambda^2 x_1, that is, (1+λ2)x1=0(1 + \lambda^2)\,x_1 = 0. Since 1+λ2>01 + \lambda^2 > 0, we get x1=0x_1 = 0 and then x2=λx1=0x_2 = \lambda x_1 = 0. So AA has no (real) eigenvalue at all.

Definition 8.8 (Eigenvalue and eigenvector of a linear map)

Let VV be a vector space and f:V→Vf\colon V \to V a linear map. A number λ\lambda is an eigenvalue of ff if f(𝐯)=λ𝐯f(\mathbf{v}) = \lambda\mathbf{v} for some nonzero 𝐯∈V\mathbf{v} \in V, and such a 𝐯\mathbf{v} is an eigenvector of ff belonging to λ\lambda. The eigenspace Eλ={𝐯∈V:f(𝐯)=λ𝐯}E_\lambda = \{\mathbf{v} \in V : f(\mathbf{v}) = \lambda\mathbf{v}\} is the kernel of the linear map 𝐯↦f(𝐯)−λ𝐯\mathbf{v} \mapsto f(\mathbf{v}) - \lambda\mathbf{v}, hence a subspace of VV. For f(𝐱)=A𝐱f(\mathbf{x}) = A\mathbf{x} on ℝn\mathbb{R}^n these are the eigenvalues, eigenvectors and eigenspaces of AA.

Example 8.9 (Eigenvectors of maps on polynomials)

Recall that ℙn\mathbb{P}_n is the space of polynomials of degree at most n−1n - 1.

  1. Differentiation D:ℙn→ℙnD\colon \mathbb{P}_n \to \mathbb{P}_n, D(p)=p′D(p) = p'. Suppose p′=λpp' = \lambda p with p≠0p \neq 0, and let dd be the degree of pp. If λ≠0\lambda \neq 0, then λp\lambda p has degree dd, while p′p' is 00 or has degree d−1d - 1; this is impossible. So λ=0\lambda = 0 and p′=0p' = 0, which means that pp is constant. Hence 00 is the only eigenvalue of DD, and E0E_0 is the set of constant polynomials.
  2. A substitution f:ℙ3→ℙ3f\colon \mathbb{P}_3 \to \mathbb{P}_3, f(p(t))=p(1−t)f(p(t)) = p(1 - t), which is linear for the same reason as the shift p(t)↦p(t+1)p(t) \mapsto p(t + 1) in Lecture 7's exercises. Substituting twice gives back pp: f(f(p))(t)=p(1−(1−t))=p(t)f(f(p))(t) = p(1 - (1 - t)) = p(t). If f(p)=λpf(p) = \lambda p with p≠0p \neq 0, then p=f(f(p))=f(λp)=λ2pp = f(f(p)) = f(\lambda p) = \lambda^2 p, so λ2=1\lambda^2 = 1 and λ=±1\lambda = \pm 1. Both occur: f(1)=1,f(t−t2)=(1−t)−(1−t)2=t−t2,f(1−2t)=1−2(1−t)=−(1−2t).\begin{aligned} f(1) &= 1, \\ f(t - t^2) &= (1 - t) - (1 - t)^2 = t - t^2, \\ f(1 - 2t) &= 1 - 2(1 - t) = -(1 - 2t). \end{aligned} The eigenvectors for 11 are the polynomials symmetric about t=12t = \frac{1}{2}, and those for −1-1 are the antisymmetric ones.

Remark 8.10 (Exponential functions)

On the space of functions ℝ→ℝ\mathbb{R} \to \mathbb{R} that can be differentiated any number of times (a subspace of the function space of Lecture 6), differentiation is linear, and ddteat=aeat\frac{d}{dt}e^{at} = a\,e^{at}: every real number aa is an eigenvalue, with eigenvector eate^{at}. This is why exponentials appear whenever one solves linear differential equations. The space here is not finite-dimensional, so it lies outside the theory of this lecture, but the definition applies unchanged.

Theorem 8.11 (Eigenvalues of a map and of its matrix)

Let f:V→Vf\colon V \to V be linear, let ℬ\mathcal{B} be a basis of VV, and let A=[f]ℬA = [f]_{\mathcal{B}}, the matrix of ff under the basis ℬ\mathcal{B}. Then for every 𝐯∈V\mathbf{v} \in V and every number λ\lambda, f(𝐯)=λ𝐯⇔A[𝐯]ℬ=λ[𝐯]ℬ.f(\mathbf{v}) = \lambda\mathbf{v} \quad\Longleftrightarrow\quad A\,[\mathbf{v}]_{\mathcal{B}} = \lambda\,[\mathbf{v}]_{\mathcal{B}} . Hence ff and AA have the same eigenvalues, and 𝐯\mathbf{v} is an eigenvector of ff if and only if its coordinate vector [𝐯]ℬ[\mathbf{v}]_{\mathcal{B}} is an eigenvector of AA, for the same eigenvalue.

Remark 8.12 (Different bases, one set of eigenvalues)

If ℬ′\mathcal{B}' is another basis of VV, then [f]ℬ′[f]_{\mathcal{B}'} has the same eigenvalues as ff, and therefore the same eigenvalues as [f]ℬ[f]_{\mathcal{B}}, although the two matrices may look very different. This is consistent with Lecture 7: [f]ℬ′=P−1[f]ℬP[f]_{\mathcal{B}'} = P^{-1}[f]_{\mathcal{B}}P with P=Pℬ←ℬ′P = P_{\mathcal{B} \leftarrow \mathcal{B}'}, and Section 2 shows directly that similar matrices have the same eigenvalues. The eigenvectors do change: the coordinate vectors of one eigenvector 𝐯\mathbf{v} are related by [𝐯]ℬ=P[𝐯]ℬ′[\mathbf{v}]_{\mathcal{B}} = P\,[\mathbf{v}]_{\mathcal{B}'}.

Proposition 8.13 (Powers and inverses)

Let A𝐱=λ𝐱A\mathbf{x} = \lambda\mathbf{x} with 𝐱≠0\mathbf{x} \neq \mathbf{0}. Then Ak𝐱=λk𝐱A^{k}\mathbf{x} = \lambda^{k}\mathbf{x} for every k≥1k \ge 1. If moreover AA is invertible, then λ≠0\lambda \neq 0 and A−1𝐱=λ−1𝐱A^{-1}\mathbf{x} = \lambda^{-1}\mathbf{x}.

Theorem 8.14 (Eigenvectors for distinct eigenvalues are independent)

Let f:V→Vf\colon V \to V be linear (in particular f(𝐱)=A𝐱f(\mathbf{x}) = A\mathbf{x} on ℝn\mathbb{R}^n), and let 𝐯1,…,𝐯p\mathbf{v}_1, \dots, \mathbf{v}_p be eigenvectors of ff belonging to distinct eigenvalues λ1,…,λp\lambda_1, \dots, \lambda_p. Then 𝐯1,…,𝐯p\mathbf{v}_1, \dots, \mathbf{v}_p are linearly independent.

Corollary 8.15 (At most nn eigenvalues)

An n×nn \times n matrix, or a linear map on an nn-dimensional space, has at most nn distinct eigenvalues.

Exercise 8.1 auto-check

Let A=(323−2)A = \begin{pmatrix} 3 & 2 \\ 3 & -2 \end{pmatrix}. The vector 𝐮=(1,−3)T\mathbf{u} = (1,\, -3)^{T} is an eigenvector of AA. For which eigenvalue?

Answer:
Exercise 8.2 auto-check

Let A=(300121003)A = \begin{pmatrix} 3 & 0 & 0 \\ 1 & 2 & 1 \\ 0 & 0 & 3 \end{pmatrix}. What is the dimension of the eigenspace E3E_3?

Answer:
Exercise 8.3 auto-check

What are the eigenvalues of the map ℝ2→ℝ2\mathbb{R}^2 \to \mathbb{R}^2, (x1,x2)T↦(0,x2)T(x_1,\, x_2)^{T} \mapsto (0,\, x_2)^{T}?

8.2  The characteristic equation

💡 Intuition

Section 1 could test a given number λ\lambda, but how do we find the eigenvalues in the first place? The test was whether A−λIA - \lambda I has a nonzero null space, that is, whether A−λIA - \lambda I fails to be invertible, and Lecture 5 turned invertibility into a single number, the determinant. So the eigenvalues are the roots of the equation det(A−λI)=0\det(A - \lambda I) = 0, whose left side is a polynomial in λ\lambda of degree nn. Finding eigenvalues becomes finding roots of a polynomial; finding eigenvectors is then row reduction, as before.

Theorem 8.16 (Eigenvalues are the roots of a determinant)

A number λ\lambda is an eigenvalue of the n×nn \times n matrix AA if and only if det(A−λIn)=0.\det(A - \lambda I_n) = 0 .

Definition 8.17 (Characteristic polynomial and equation)

The characteristic polynomial of an n×nn \times n matrix AA is pA(λ)=det(A−λIn)p_A(\lambda) = \det(A - \lambda I_n), and det(A−λIn)=0\det(A - \lambda I_n) = 0 is its characteristic equation. Here λ\lambda is a variable: the determinant of A−λInA - \lambda I_n is computed by the expansion formula of Lecture 5, which uses only sums and products of the entries and so makes sense when the entries are polynomials in λ\lambda. Substituting a number for λ\lambda gives the determinant of the corresponding numerical matrix.

Example 8.18 (The 2×22 \times 2 case)

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, pA(λ)=det(a−λbcd−λ)=(a−λ)(d−λ)−bc=λ2−(a+d)λ+(ad−bc).\begin{aligned} p_A(\lambda) &= \det\begin{pmatrix} a - \lambda & b \\ c & d - \lambda \end{pmatrix} = (a - \lambda)(d - \lambda) - bc \\ &= \lambda^2 - (a + d)\,\lambda + (ad - bc) . \end{aligned} The coefficient of λ\lambda is minus the trace trA=a+d\operatorname{tr} A = a + d, the sum of the diagonal entries, and the constant term is detA\det A. For instance, A=(233−6)A = \begin{pmatrix} 2 & 3 \\ 3 & -6 \end{pmatrix} of the earlier example has trA=−4\operatorname{tr} A = -4 and detA=−21\det A = -21, so pA(λ)=λ2+4λ−21=(λ−3)(λ+7),p_A(\lambda) = \lambda^2 + 4\lambda - 21 = (\lambda - 3)(\lambda + 7) , and the eigenvalues are 33 and −7-7. We found E3E_3 before; for λ=−7\lambda = -7, A+7I2=(9331)A + 7I_2 = \begin{pmatrix} 9 & 3 \\ 3 & 1 \end{pmatrix}, whose null space is spanned by (1,−3)T(1,\, -3)^{T}. Check: A(1−3)=(2−93+18)=(−721)=−7(1−3).A\begin{pmatrix} 1 \\ -3 \end{pmatrix} = \begin{pmatrix} 2 - 9 \\ 3 + 18 \end{pmatrix} = \begin{pmatrix} -7 \\ 21 \end{pmatrix} = -7\begin{pmatrix} 1 \\ -3 \end{pmatrix}.

Remark 8.19 (The degree of pAp_A)

The characteristic polynomial of an n×nn \times n matrix has degree nn. Indeed, expanding det(A−λIn)\det(A - \lambda I_n) completely, as was done for 3×33 \times 3 matrices in Lecture 5, gives a sum of n!n! terms, each a product of nn entries taken from different rows and different columns. Only the diagonal entries aii−λa_{ii} - \lambda contain λ\lambda, and only one term, the product (a11−λ)(a22−λ)⋯(ann−λ)(a_{11} - \lambda)(a_{22} - \lambda)\cdots(a_{nn} - \lambda) of all of them, has degree nn; every other term leaves out at least two diagonal entries and has degree at most n−2n - 2. Hence pA(λ)=(−1)nλn+(−1)n−1(trA)λn−1+⋯+detA,p_A(\lambda) = (-1)^{n}\lambda^{n} + (-1)^{n-1}(\operatorname{tr} A)\,\lambda^{n-1} + \cdots + \det A , where trA=a11+⋯+ann\operatorname{tr} A = a_{11} + \cdots + a_{nn} is the trace of AA (the terms of degree n−1n - 1 also come only from the diagonal product). The constant term is detA\det A, by setting λ=0\lambda = 0: pA(0)=det(A−0In)=detAp_A(0) = \det(A - 0\,I_n) = \det A.

Definition 8.20 (Multiplicity of an eigenvalue)

Let λ0\lambda_0 be an eigenvalue of AA. Its multiplicity (also called algebraic multiplicity) is the largest integer mm such that (λ−λ0)m(\lambda - \lambda_0)^{m} divides pA(λ)p_A(\lambda). The dimension of Eλ0E_{\lambda_0} is sometimes called the geometric multiplicity of λ0\lambda_0.

Corollary 8.21 (Counting eigenvalues)

An n×nn \times n matrix has at most nn eigenvalues, even when each is counted as many times as its multiplicity. If pAp_A is a product of linear factors, pA(λ)=(λ1−λ)(λ2−λ)⋯(λn−λ),p_A(\lambda) = (\lambda_1 - \lambda)(\lambda_2 - \lambda)\cdots(\lambda_n - \lambda), with the eigenvalues listed according to multiplicity, then λ1+λ2+⋯+λn=trA,λ1λ2⋯λn=detA.\lambda_1 + \lambda_2 + \cdots + \lambda_n = \operatorname{tr} A, \qquad \lambda_1\lambda_2\cdots\lambda_n = \det A .

Theorem 8.22 (Triangular matrices)

The eigenvalues of a triangular matrix are its diagonal entries, and the multiplicity of an eigenvalue is the number of times it occurs on the diagonal.

Proposition 8.23 (Similar matrices have the same eigenvalues)

If B=P−1APB = P^{-1}AP, then pA(λ)=pB(λ)p_A(\lambda) = p_B(\lambda), so AA and BB have the same eigenvalues with the same multiplicities. Moreover B𝐱=λ𝐱B\mathbf{x} = \lambda\mathbf{x} if and only if A(P𝐱)=λ(P𝐱)A(P\mathbf{x}) = \lambda\,(P\mathbf{x}), so 𝐱↦P𝐱\mathbf{x} \mapsto P\mathbf{x} carries each eigenspace of BB onto the eigenspace of AA for the same eigenvalue, and the two eigenspaces have the same dimension.

Remark 8.24 (The procedure, and a warning)

To find the eigenvalues and eigenvectors of AA: (1) compute pA(λ)=det(A−λIn)p_A(\lambda) = \det(A - \lambda I_n), using row and column operations or cofactor expansions as in Lecture 5, and try to keep it factored; (2) find its real roots, the eigenvalues; (3) for each eigenvalue λ\lambda, solve (A−λIn)𝐱=0(A - \lambda I_n)\mathbf{x} = \mathbf{0} by row reduction; the parametric vector form gives a basis of EλE_\lambda.

Warning. Row operations on AA itself change the eigenvalues. For example (1111)\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix} has p(λ)=λ2−2λp(\lambda) = \lambda^2 - 2\lambda and eigenvalues 00 and 22, while its echelon form (1100)\begin{pmatrix} 1 & 1 \\ 0 & 0 \end{pmatrix} is triangular with eigenvalues 11 and 00. Row reduction is used on A−λInA - \lambda I_n, after λ\lambda has been fixed, never on AA.

Example 8.25 (A 3×33 \times 3 matrix with a repeated eigenvalue)

Let A=(133−3−5−3331).A = \begin{pmatrix} 1 & 3 & 3 \\ -3 & -5 & -3 \\ 3 & 3 & 1 \end{pmatrix}. Characteristic polynomial. Adding row 33 to row 22 does not change the determinant (Lecture 5) and produces a common factor in row 22: det(A−λI3)=det(1−λ33−3−5−λ−3331−λ)=det(1−λ330−2−λ−2−λ331−λ)=−(λ+2)det(1−λ33011331−λ)=−(λ+2)det(1−λ3001033−2−λ),\begin{aligned} \det(A - \lambda I_3) &= \det\begin{pmatrix} 1 - \lambda & 3 & 3 \\ -3 & -5 - \lambda & -3 \\ 3 & 3 & 1 - \lambda \end{pmatrix} \\ &= \det\begin{pmatrix} 1 - \lambda & 3 & 3 \\ 0 & -2 - \lambda & -2 - \lambda \\ 3 & 3 & 1 - \lambda \end{pmatrix} \\ &= -(\lambda + 2)\det\begin{pmatrix} 1 - \lambda & 3 & 3 \\ 0 & 1 & 1 \\ 3 & 3 & 1 - \lambda \end{pmatrix} \\ &= -(\lambda + 2)\det\begin{pmatrix} 1 - \lambda & 3 & 0 \\ 0 & 1 & 0 \\ 3 & 3 & -2 - \lambda \end{pmatrix}, \end{aligned} where the last step subtracts column 22 from column 33 (columns behave like rows). Expanding along column 33, det(A−λI3)=−(λ+2)(−2−λ)(1−λ)=−(λ−1)(λ+2)2.\det(A - \lambda I_3) = -(\lambda + 2)(-2 - \lambda)(1 - \lambda) = -(\lambda - 1)(\lambda + 2)^2 . So the eigenvalues are 11 (multiplicity 11) and −2-2 (multiplicity 22). As a check, 1+(−2)+(−2)=−3=trA1 + (-2) + (-2) = -3 = \operatorname{tr} A.

Eigenvectors for λ=1\lambda = 1. Row reduction gives A−I3=(033−3−6−3330)→R1↔R3R2+R3(330−3−30033)→R2+R1R2↔R3(330033000)→13R1,13R2R1−R2(10−1011000),\begin{aligned} A - I_3 = \begin{pmatrix} 0 & 3 & 3 \\ -3 & -6 & -3 \\ 3 & 3 & 0 \end{pmatrix} &\overset{\substack{R_1 \leftrightarrow R_3 \\ R_2 + R_3}}{\longrightarrow} \begin{pmatrix} 3 & 3 & 0 \\ -3 & -3 & 0 \\ 0 & 3 & 3 \end{pmatrix} \\ &\overset{\substack{R_2 + R_1 \\ R_2 \leftrightarrow R_3}}{\longrightarrow} \begin{pmatrix} 3 & 3 & 0 \\ 0 & 3 & 3 \\ 0 & 0 & 0 \end{pmatrix} \\ &\overset{\substack{\frac{1}{3}R_1,\ \frac{1}{3}R_2 \\ R_1 - R_2}}{\longrightarrow} \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{pmatrix}, \end{aligned} which is the reduced echelon form. The free variable is x3=tx_3 = t, and the two nonzero rows give x1=x3x_1 = x_3, x2=−x3x_2 = -x_3. In parametric vector form, 𝐱=(x1x2x3)=t(1−11),E1=Span(𝐯1),𝐯1=(1−11).\mathbf{x} = \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = t\begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix}, \qquad E_1 = \operatorname{Span}(\mathbf{v}_1), \quad \mathbf{v}_1 = \begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix}.

Eigenvectors for λ=−2\lambda = -2. Row reduction gives A+2I3=(333−3−3−3333)→R2+R1R3−R113R1(111000000),A + 2I_3 = \begin{pmatrix} 3 & 3 & 3 \\ -3 & -3 & -3 \\ 3 & 3 & 3 \end{pmatrix} \overset{\substack{R_2 + R_1 \\ R_3 - R_1 \\ \frac{1}{3}R_1}}{\longrightarrow} \begin{pmatrix} 1 & 1 & 1 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}, the reduced echelon form, with one pivot (in column 11). The free variables are x2=sx_2 = s and x3=tx_3 = t, and the first row gives x1=−s−tx_1 = -s - t. In parametric vector form, 𝐱=(−s−tst)=s(−110)+t(−101),\mathbf{x} = \begin{pmatrix} -s - t \\ s \\ t \end{pmatrix} = s\begin{pmatrix} -1 \\ 1 \\ 0 \end{pmatrix} + t\begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}, so E−2=Span(𝐯2,𝐯3),𝐯2=(−110),𝐯3=(−101).E_{-2} = \operatorname{Span}(\mathbf{v}_2, \mathbf{v}_3), \qquad \mathbf{v}_2 = \begin{pmatrix} -1 \\ 1 \\ 0 \end{pmatrix}, \quad \mathbf{v}_3 = \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}. The eigenvalue −2-2 has multiplicity 22 and a 22-dimensional eigenspace (a plane), while 11 has multiplicity 11 and a line.

Example 8.26 (No real eigenvalues)

For the rotation A=(01−10)A = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} of the geometric example, pA(λ)=λ2−0⋅λ+1=λ2+1p_A(\lambda) = \lambda^2 - 0\cdot\lambda + 1 = \lambda^2 + 1, which has no real root. This confirms that AA has no eigenvalues.

Remark 8.27 (Complex numbers and complex eigenvalues)

Let ii denote the imaginary number with i2=−1i^2 = -1. The complex numbers are the numbers of the form a+bia + bi with a,b∈ℝa, b \in \mathbb{R}; their set is denoted ℂ\mathbb{C}, and a+bi=0a + bi = 0 if and only if a=0a = 0 and b=0b = 0. Like ℝ\mathbb{R}, the complex numbers form a field: one can add, subtract and multiply them, using i2=−1i^2 = -1. For example, (a+bi)(c+di)=ac+adi+bci+bdi2=(ac−bd)+(ad+bc)i.(a+bi)(c+di) = ac + adi + bci + bd\,i^2 = (ac - bd) + (ad + bc)i . In particular, (a+bi)(a−bi)=a2+b2(a+bi)(a-bi) = a^2 + b^2, which is 00 if and only if a=b=0a = b = 0. Therefore each nonzero a+bia + bi has the inverse (a+bi)−1=1a2+b2(a−bi).(a+bi)^{-1} = \frac{1}{a^2+b^2}\,(a - bi).

Over the complex numbers, λ2+1=(λ−i)(λ+i)\lambda^2 + 1 = (\lambda - i)(\lambda + i), so the rotation A=(01−10)A = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} of the example has the complex eigenvalues ii and −i-i. Their eigenvectors lie in ℂ2\mathbb{C}^2: since A(1,i)T=(i,−1)T=i(1,i)TA(1,\, i)^{T} = (i,\, -1)^{T} = i\,(1,\, i)^{T}, the vector (1,i)T(1,\, i)^{T} is an eigenvector for λ=i\lambda = i, and since A(1,−i)T=(−i,−1)T=−i(1,−i)TA(1,\, -i)^{T} = (-i,\, -1)^{T} = -i\,(1,\, -i)^{T}, the vector (1,−i)T(1,\, -i)^{T} is an eigenvector for λ=−i\lambda = -i. By the fundamental theorem of algebra every polynomial splits into linear factors over ℂ\mathbb{C}, so every square matrix has complex eigenvalues. In this course the scalars are real, and “eigenvalue” means a real eigenvalue.

Example 8.28 (The characteristic polynomial of a linear map)

By the theorem of Section 1, the eigenvalues of a linear map f:V→Vf\colon V \to V can be computed from any of its matrices [f]ℬ[f]_{\mathcal{B}}, and by the proposition the characteristic polynomial does not depend on the basis; it is called the characteristic polynomial of ff. Consider the substitution f(p(t))=p(1−t)f(p(t)) = p(1 - t) on ℙ3\mathbb{P}_3 of the polynomial example, with the standard basis ℬ=(1,t,t2)\mathcal{B} = (1, t, t^2). Since f(1)=1,f(t)=1−t,f(t2)=(1−t)2=1−2t+t2,f(1) = 1, \qquad f(t) = 1 - t, \qquad f(t^2) = (1 - t)^2 = 1 - 2t + t^2, we can write all three equations at once as f(ℬ)=(f(1),f(t),f(t2))=(1,t,t2)(1110−1−2001)=ℬM,M=[f]ℬ,f(\mathcal{B}) = \bigl(f(1),\ f(t),\ f(t^2)\bigr) = (1,\ t,\ t^2) \begin{pmatrix} 1 & 1 & 1 \\ 0 & -1 & -2 \\ 0 & 0 & 1 \end{pmatrix} = \mathcal{B}\, M , \qquad M = [f]_{\mathcal{B}} , where, as in the row-times-column product, column jj of MM holds the weights that express the jj-th polynomial of f(ℬ)f(\mathcal{B}) in terms of 1,t,t21, t, t^2; for example column 33 says f(t2)=1⋅1+(−2)⋅t+1⋅t2f(t^2) = 1\cdot 1 + (-2)\cdot t + 1\cdot t^2. So the columns of MM are the coordinate vectors [f(1)]ℬ[f(1)]_{\mathcal{B}}, [f(t)]ℬ[f(t)]_{\mathcal{B}}, [f(t2)]ℬ[f(t^2)]_{\mathcal{B}}, as in Lecture 7.

MM is triangular, so by the theorem pf(λ)=pM(λ)=(1−λ)2(−1−λ)p_f(\lambda) = p_M(\lambda) = (1 - \lambda)^2(-1 - \lambda): the eigenvalue 11 has multiplicity 22 and −1-1 has multiplicity 11. By the theorem of Section 1, the eigenvectors of ff are the polynomials whose coordinate vectors solve (M−λI3)𝐱=0(M - \lambda I_3)\mathbf{x} = \mathbf{0}.

The eigenvalue 11. Row reduction gives M−I3=(0110−2−2000)→R2+2R1(011000000),M - I_3 = \begin{pmatrix} 0 & 1 & 1 \\ 0 & -2 & -2 \\ 0 & 0 & 0 \end{pmatrix} \overset{R_2 + 2R_1}{\longrightarrow} \begin{pmatrix} 0 & 1 & 1 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}, the reduced echelon form, with its pivot in column 22. The free variables are x1=sx_1 = s and x3=tx_3 = t, and the first row gives x2=−tx_2 = -t. In parametric vector form, 𝐱=(s−tt)=s(100)+t(0−11).\mathbf{x} = \begin{pmatrix} s \\ -t \\ t \end{pmatrix} = s\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} + t\begin{pmatrix} 0 \\ -1 \\ 1 \end{pmatrix}. These coordinate vectors belong to the polynomials 11 and −t+t2=−(t−t2)-t + t^2 = -(t - t^2), so the eigenspace of ff for 11 is Span(1,t−t2)\operatorname{Span}(1,\ t - t^2).

The eigenvalue −1-1. Row reduction gives M+I3=(21100−2002)→R3+R2−12R2(211001000)→R1−R212R1(1120001000),\begin{aligned} M + I_3 = \begin{pmatrix} 2 & 1 & 1 \\ 0 & 0 & -2 \\ 0 & 0 & 2 \end{pmatrix} &\overset{\substack{R_3 + R_2 \\ -\frac{1}{2}R_2}}{\longrightarrow} \begin{pmatrix} 2 & 1 & 1 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{pmatrix} \\ &\overset{\substack{R_1 - R_2 \\ \frac{1}{2}R_1}}{\longrightarrow} \begin{pmatrix} 1 & \frac{1}{2} & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{pmatrix}, \end{aligned} the reduced echelon form, with pivots in columns 11 and 33. The free variable is x2=sx_2 = s, and the rows give x1=−12sx_1 = -\frac{1}{2}s, x3=0x_3 = 0. In parametric vector form, 𝐱=(−12ss0)=s(−1210).\mathbf{x} = \begin{pmatrix} -\frac{1}{2}s \\ s \\ 0 \end{pmatrix} = s\begin{pmatrix} -\frac{1}{2} \\ 1 \\ 0 \end{pmatrix}. Taking s=−2s = -2 gives the coordinate vector (1,−2,0)T(1, -2, 0)^{T}, the polynomial 1−2t1 - 2t, so the eigenspace of ff for −1-1 is Span(1−2t)\operatorname{Span}(1 - 2t). These are the eigenvectors found by hand in the polynomial example.

Exercise 8.4 auto-check

A 2×22 \times 2 matrix has trace 55 and determinant 66. What is its larger eigenvalue?

Answer:
Exercise 8.5 auto-check

What is the largest eigenvalue of (5−212)\begin{pmatrix} 5 & -2 \\ 1 & 2 \end{pmatrix}?

Answer:
Exercise 8.6 auto-check

What is the multiplicity of the eigenvalue 22 of (25−1007002)\begin{pmatrix} 2 & 5 & -1 \\ 0 & 0 & 7 \\ 0 & 0 & 2 \end{pmatrix}?

Answer:

8.3  Diagonalization

💡 Intuition

A diagonal matrix is the simplest kind of matrix: it stretches each coordinate axis by its own factor, and its powers are computed entry by entry. A matrix AA is diagonalizable if, after a change of basis, it becomes diagonal; by Lecture 7 this means A=PDP−1A = PDP^{-1}. The columns of PP then have to be eigenvectors, so the question is whether there are enough independent eigenvectors to make a basis. The answer is a counting criterion: add up the dimensions of the eigenspaces and compare with nn. Two things can go wrong, and the examples at the end show both: the characteristic polynomial may have too few real roots, and an eigenspace may be smaller than the multiplicity of its eigenvalue.

Definition 8.29 (Diagonalizable)

An n×nn \times n matrix AA is diagonalizable if it is similar to a diagonal matrix, that is, if A=PDP−1A = PDP^{-1}, or equivalently P−1AP=DP^{-1}AP = D, for some invertible matrix PP and some diagonal matrix DD. A linear map f:V→Vf\colon V \to V is diagonalizable if VV has a basis ℬ\mathcal{B} for which [f]ℬ[f]_{\mathcal{B}} is diagonal.

Theorem 8.30 (The diagonalization theorem)

An n×nn \times n matrix AA is diagonalizable if and only if AA has nn linearly independent eigenvectors, that is, if and only if ℝn\mathbb{R}^n has a basis consisting of eigenvectors of AA. More precisely, for an invertible P=(𝐯1⋯𝐯n)P = (\mathbf{v}_1\ \cdots\ \mathbf{v}_n) and a diagonal D=diag(λ1,…,λn)D = \operatorname{diag}(\lambda_1, \dots, \lambda_n), A=PDP−1⇔A𝐯j=λj𝐯j for j=1,…,n.A = PDP^{-1} \quad\Longleftrightarrow\quad A\mathbf{v}_j = \lambda_j\mathbf{v}_j \ \text{ for } j = 1, \dots, n . So the columns of PP are eigenvectors, and the diagonal entries of DD are the corresponding eigenvalues, in the same order.

Remark 8.31 (The meaning of PP and DD)

In the language of Lecture 7: if ℬ=(𝐯1,…,𝐯n)\mathcal{B} = (\mathbf{v}_1, \dots, \mathbf{v}_n) is a basis of eigenvectors and f(𝐱)=A𝐱f(\mathbf{x}) = A\mathbf{x}, then D=[f]ℬD = [f]_{\mathcal{B}} is the matrix of the same map in the eigenvector basis, and P=Pℰ←ℬP = P_{\mathcal{E} \leftarrow \mathcal{B}}. In coordinates relative to ℬ\mathcal{B} the map just multiplies the jj-th coordinate by λj\lambda_j. Likewise, a linear map f:V→Vf\colon V \to V is diagonalizable exactly when VV has a basis of eigenvectors of ff, and then [f]ℬ=diag(λ1,…,λn)[f]_{\mathcal{B}} = \operatorname{diag}(\lambda_1, \dots, \lambda_n); by the theorem of Section 1 and Lecture 7, this happens if and only if one (equivalently, every) matrix of ff is diagonalizable.

Corollary 8.32 (Distinct eigenvalues suffice)

An n×nn \times n matrix with nn distinct eigenvalues is diagonalizable.

Remark 8.33 (The condition is not necessary)

The identity InI_n has the single eigenvalue 11, of multiplicity nn, and it is diagonal. Repeated eigenvalues do not prevent diagonalization; what matters is the size of the eigenspaces, as the next two results show.

Lemma 8.34 (Bases of eigenspaces combine)

Let λ1,…,λp\lambda_1, \dots, \lambda_p be distinct eigenvalues of AA (or of a linear map f:V→Vf\colon V \to V), and choose a basis of each eigenspace EλiE_{\lambda_i}. Then all these vectors together form a linearly independent list.

Theorem 8.35 (Eigenspace dimension is at most the multiplicity)

If λ0\lambda_0 is an eigenvalue of AA with multiplicity mm, then 1≤dimEλ0≤m1 \le \dim E_{\lambda_0} \le m.

Theorem 8.36 (The criterion for diagonalization)

Let AA be an n×nn \times n matrix with distinct eigenvalues λ1,…,λp\lambda_1, \dots, \lambda_p, of multiplicities m1,…,mpm_1, \dots, m_p. The following are equivalent.

  1. AA is diagonalizable.
  2. The dimensions of the eigenspaces add up to nn: dimEλ1+dimEλ2+⋯+dimEλp=n.\dim E_{\lambda_1} + \dim E_{\lambda_2} + \cdots + \dim E_{\lambda_p} = n .
  3. pAp_A is a product of real linear factors, pA(λ)=(λ1−λ)m1⋯(λp−λ)mp,p_A(\lambda) = (\lambda_1 - \lambda)^{m_1}\cdots(\lambda_p - \lambda)^{m_p}, and dimEλi=mi\dim E_{\lambda_i} = m_i for every ii.
In that case, putting together bases of the eigenspaces gives nn independent eigenvectors, which are the columns of PP in the diagonalization theorem.

Remark 8.37 (How to diagonalize)

(1) Find the eigenvalues from pAp_A. If pAp_A has fewer than nn real roots counted with multiplicity, stop: AA is not diagonalizable. (2) For each eigenvalue find a basis of EλE_\lambda. An eigenvalue of multiplicity 11 always has dimEλ=1\dim E_\lambda = 1, by the theorem, so only repeated eigenvalues need checking. (3) If dimEλ\dim E_\lambda equals the multiplicity for every λ\lambda, let PP have the basis vectors as columns and DD the corresponding eigenvalues on the diagonal. (4) Check AP=PDAP = PD, which avoids computing P−1P^{-1}.

Example 8.38 (Diagonalizing the 3×33 \times 3 matrix)

Return to A=(133−3−5−3331)A = \begin{pmatrix} 1 & 3 & 3 \\ -3 & -5 & -3 \\ 3 & 3 & 1 \end{pmatrix} of Section 2. The eigenvalue 11 has multiplicity 11 and dimE1=1\dim E_1 = 1; the eigenvalue −2-2 has multiplicity 22 and dimE−2=2\dim E_{-2} = 2. So 1+2=31 + 2 = 3 and AA is diagonalizable by the criterion, with P=(𝐯1𝐯2𝐯3)=(1−1−1−110101),D=(1000−2000−2).P = (\mathbf{v}_1\ \mathbf{v}_2\ \mathbf{v}_3) = \begin{pmatrix} 1 & -1 & -1 \\ -1 & 1 & 0 \\ 1 & 0 & 1 \end{pmatrix}, \qquad D = \begin{pmatrix} 1 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & -2 \end{pmatrix}. Check: AP=(122−1−2010−2)=PD,AP = \begin{pmatrix} 1 & 2 & 2 \\ -1 & -2 & 0 \\ 1 & 0 & -2 \end{pmatrix} = PD , since multiplying PP by DD on the right scales its columns by 1,−2,−21, -2, -2. Here detP=1\det P = 1 and P−1=(111121−1−10).P^{-1} = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 2 & 1 \\ -1 & -1 & 0 \end{pmatrix}. The order of the columns may be changed, as long as DD is changed in the same way; for instance P′=(𝐯2𝐯1𝐯3)P' = (\mathbf{v}_2\ \mathbf{v}_1\ \mathbf{v}_3) goes with D′=diag(−2,1,−2)D' = \operatorname{diag}(-2, 1, -2).

Powers. By part (4) of Lecture 7's theorem, Ak=PDkP−1A^{k} = PD^{k}P^{-1} with Dk=diag(1,c,c)D^{k} = \operatorname{diag}(1, c, c), c=(−2)kc = (-2)^{k}. Multiplying out, Ak=(11−c1−cc−12c−1c−11−c1−c1),c=(−2)k.A^{k} = \begin{pmatrix} 1 & 1 - c & 1 - c \\ c - 1 & 2c - 1 & c - 1 \\ 1 - c & 1 - c & 1 \end{pmatrix}, \qquad c = (-2)^{k} . For k=1k = 1 this is AA itself, and for k=2k = 2, c=4c = 4, it gives A2=(1−3−3373−3−31),A^{2} = \begin{pmatrix} 1 & -3 & -3 \\ 3 & 7 & 3 \\ -3 & -3 & 1 \end{pmatrix}, which agrees with a direct multiplication.

Example 8.39 (A 4×44 \times 4 matrix)

Let A=(310013002−1101201).A = \begin{pmatrix} 3 & 1 & 0 & 0 \\ 1 & 3 & 0 & 0 \\ 2 & -1 & 1 & 0 \\ 1 & 2 & 0 & 1 \end{pmatrix}. Characteristic polynomial. Column 44 of A−λI4A - \lambda I_4 has a single nonzero entry, 1−λ1 - \lambda in position (4,4)(4,4); expanding along it, and then along column 33 of the remaining 3×33 \times 3 matrix, det(A−λI4)=(1−λ)det(3−λ1013−λ02−11−λ)=(1−λ)2det(3−λ113−λ)=(1−λ)2((3−λ)2−1)=(λ−1)2(λ−2)(λ−4).\begin{aligned} \det(A - \lambda I_4) &= (1 - \lambda)\det\begin{pmatrix} 3 - \lambda & 1 & 0 \\ 1 & 3 - \lambda & 0 \\ 2 & -1 & 1 - \lambda \end{pmatrix} \\ &= (1 - \lambda)^2\det\begin{pmatrix} 3 - \lambda & 1 \\ 1 & 3 - \lambda \end{pmatrix} \\ &= (1 - \lambda)^2\bigl((3 - \lambda)^2 - 1\bigr) = (\lambda - 1)^2(\lambda - 2)(\lambda - 4) . \end{aligned} The eigenvalues are 11 (multiplicity 22), 22 and 44; check: 1+1+2+4=8=trA1 + 1 + 2 + 4 = 8 = \operatorname{tr} A.

Eigenspaces. For λ=1\lambda = 1, row reduction gives A−I4=(210012002−1001200)→R1↔R2(120021002−1001200)→R2−2R1R3−2R1R4−R1(12000−3000−5000000)→−13R2R3+5R2R1−2R2(1000010000000000),\begin{aligned} A - I_4 = \begin{pmatrix} 2 & 1 & 0 & 0 \\ 1 & 2 & 0 & 0 \\ 2 & -1 & 0 & 0 \\ 1 & 2 & 0 & 0 \end{pmatrix} &\overset{R_1 \leftrightarrow R_2}{\longrightarrow} \begin{pmatrix} 1 & 2 & 0 & 0 \\ 2 & 1 & 0 & 0 \\ 2 & -1 & 0 & 0 \\ 1 & 2 & 0 & 0 \end{pmatrix} \\ &\overset{\substack{R_2 - 2R_1 \\ R_3 - 2R_1 \\ R_4 - R_1}}{\longrightarrow} \begin{pmatrix} 1 & 2 & 0 & 0 \\ 0 & -3 & 0 & 0 \\ 0 & -5 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{pmatrix} \\ &\overset{\substack{-\frac{1}{3}R_2 \\ R_3 + 5R_2 \\ R_1 - 2R_2}}{\longrightarrow} \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{pmatrix}, \end{aligned} the reduced echelon form, with pivots in columns 11 and 22. So x1=x2=0x_1 = x_2 = 0, and the free variables are x3=sx_3 = s and x4=tx_4 = t. In parametric vector form, 𝐱=(00st)=s(0010)+t(0001)=s𝐞3+t𝐞4,\mathbf{x} = \begin{pmatrix} 0 \\ 0 \\ s \\ t \end{pmatrix} = s\begin{pmatrix} 0 \\ 0 \\ 1 \\ 0 \end{pmatrix} + t\begin{pmatrix} 0 \\ 0 \\ 0 \\ 1 \end{pmatrix} = s\,\mathbf{e}_3 + t\,\mathbf{e}_4 , so E1=Span(𝐞3,𝐞4)E_1 = \operatorname{Span}(\mathbf{e}_3, \mathbf{e}_4) and dimE1=2\dim E_1 = 2, equal to the multiplicity of 11. The eigenvalues 22 and 44 have multiplicity 11, so their eigenspaces are lines. For λ=2\lambda = 2 the equations (A−2I4)𝐱=0(A - 2I_4)\mathbf{x} = \mathbf{0} are x1+x2=0,2x1−x2−x3=0,x1+2x2−x4=0x_1 + x_2 = 0, \qquad 2x_1 - x_2 - x_3 = 0, \qquad x_1 + 2x_2 - x_4 = 0 (the first row appears twice), with solution x2=−x1x_2 = -x_1, x3=3x1x_3 = 3x_1, x4=−x1x_4 = -x_1. For λ=4\lambda = 4 they are −x1+x2=0-x_1 + x_2 = 0, 2x1−x2−3x3=02x_1 - x_2 - 3x_3 = 0, x1+2x2−3x4=0x_1 + 2x_2 - 3x_4 = 0, with solution x2=x1x_2 = x_1, x3=13x1x_3 = \frac{1}{3}x_1, x4=x1x_4 = x_1. Taking x1=1x_1 = 1 and x1=3x_1 = 3, E2=Span((1−13−1)),E4=Span((3313)).E_2 = \operatorname{Span}\left( \begin{pmatrix} 1 \\ -1 \\ 3 \\ -1 \end{pmatrix} \right), \qquad E_4 = \operatorname{Span}\left( \begin{pmatrix} 3 \\ 3 \\ 1 \\ 3 \end{pmatrix} \right). Diagonalization. The dimensions add up to 2+1+1=42 + 1 + 1 = 4, so P=(001300−13103101−13),D=diag(1,1,2,4),A=PDP−1.P = \begin{pmatrix} 0 & 0 & 1 & 3 \\ 0 & 0 & -1 & 3 \\ 1 & 0 & 3 & 1 \\ 0 & 1 & -1 & 3 \end{pmatrix}, \qquad D = \operatorname{diag}(1, 1, 2, 4), \qquad A = PDP^{-1} . One checks AP=PDAP = PD column by column; for example the last column of APAP is A(3,3,1,3)T=(12,12,4,12)T=4(3,3,1,3)TA(3, 3, 1, 3)^{T} = (12, 12, 4, 12)^{T} = 4\,(3, 3, 1, 3)^{T}.

Example 8.40 (Diagonalizing a linear map)

For the substitution f(p(t))=p(1−t)f(p(t)) = p(1 - t) on ℙ3\mathbb{P}_3, the computation in Section 2 found the eigenvalue 11 with multiplicity 22 and eigenspace spanned by 11 and t−t2t - t^2, and the eigenvalue −1-1 with eigenspace spanned by 1−2t1 - 2t. The dimensions add up to 3=dimℙ33 = \dim \mathbb{P}_3, so ff is diagonalizable: for the basis ℬ′=(1,t−t2,1−2t)\mathcal{B}' = (1,\ t - t^2,\ 1 - 2t) of ℙ3\mathbb{P}_3, [f]ℬ′=(10001000−1).[f]_{\mathcal{B}'} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & -1 \end{pmatrix}. In this basis it is clear that f∘ff \circ f is the identity.

Example 8.41 (Non-example: a rotation)

The rotation A=(01−10)A = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} is not diagonalizable: it has no eigenvalues at all (Section 2), let alone two independent eigenvectors. Geometrically, a diagonal matrix keeps the two coordinate directions of some basis, while a rotation by 90∘90^\circ keeps no direction. (Over the complex numbers it is diagonalizable, with D=diag(i,−i)D = \operatorname{diag}(i, -i); see the remark.)

Proposition 8.42 (Triangular with a constant diagonal)

Let AA be an n×nn \times n triangular matrix whose diagonal entries are all equal to cc. Then AA is diagonalizable if and only if A=cInA = cI_n.

Example 8.43 (Non-example: a 5×55 \times 5 matrix with one eigenvalue)

The matrix N=(3102003001003400003000003)N = \begin{pmatrix} 3 & 1 & 0 & 2 & 0 \\ 0 & 3 & 0 & 0 & 1 \\ 0 & 0 & 3 & 4 & 0 \\ 0 & 0 & 0 & 3 & 0 \\ 0 & 0 & 0 & 0 & 3 \end{pmatrix} is upper triangular with constant diagonal 33 and N≠3I5N \neq 3I_5, so it is not diagonalizable, by the proposition. The criterion shows the same thing by counting: pN(λ)=(3−λ)5p_N(\lambda) = (3 - \lambda)^5, so 33 has multiplicity 55, while N−3I5=(0102000001000400000000000)N - 3I_5 = \begin{pmatrix} 0 & 1 & 0 & 2 & 0 \\ 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 4 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix} has rank 33 (swapping rows 22 and 33 gives an echelon form with pivots in columns 22, 44, 55), so dimE3=5−3=2<5\dim E_3 = 5 - 3 = 2 < 5; indeed E3=Span(𝐞1,𝐞3)E_3 = \operatorname{Span}(\mathbf{e}_1, \mathbf{e}_3). The same reasoning shows that every nonzero strictly upper triangular matrix (zero diagonal) is not diagonalizable.

Example 8.44 (Two 5×55 \times 5 matrices with the same diagonal)

Let B=(201−1302011001120001000001),B′=(201−1302011001000001000001),B = \begin{pmatrix} 2 & 0 & 1 & -1 & 3 \\ 0 & 2 & 0 & 1 & 1 \\ 0 & 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 \end{pmatrix}, \qquad B' = \begin{pmatrix} 2 & 0 & 1 & -1 & 3 \\ 0 & 2 & 0 & 1 & 1 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 \end{pmatrix}, which differ only in two entries of row 33. Both are triangular with diagonal (2,2,1,1,1)(2, 2, 1, 1, 1), so both have characteristic polynomial (2−λ)2(1−λ)3(2 - \lambda)^2(1 - \lambda)^3: the eigenvalue 22 has multiplicity 22 and the eigenvalue 11 has multiplicity 33.

The eigenvalue 22. In both B−2I5B - 2I_5 and B′−2I5B' - 2I_5 the first two columns are zero, so the rank is at most 33; and rows 33, 44, 55 form an upper triangular block with diagonal entries −1,−1,−1-1, -1, -1 in columns 33, 44, 55, so these rows are independent and the rank is exactly 33. Hence dimE2=5−3=2\dim E_2 = 5 - 3 = 2, with basis 𝐞1,𝐞2\mathbf{e}_1, \mathbf{e}_2. This eigenvalue causes no trouble.

The eigenvalue 11. Here B−I5=(101−1301011000120000000000),B′−I5=(101−1301011000000000000000),B - I_5 = \begin{pmatrix} 1 & 0 & 1 & -1 & 3 \\ 0 & 1 & 0 & 1 & 1 \\ 0 & 0 & 0 & 1 & 2 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix}, \qquad B' - I_5 = \begin{pmatrix} 1 & 0 & 1 & -1 & 3 \\ 0 & 1 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix}, both already in echelon form. B−I5B - I_5 has three pivots, so dimE1=2<3\dim E_1 = 2 < 3, and BB is not diagonalizable: the dimensions add up to 2+2=4<52 + 2 = 4 < 5. Its eigenspace is spanned by (−1,0,1,0,0)T(-1, 0, 1, 0, 0)^{T} and (−5,1,0,−2,1)T(-5, 1, 0, -2, 1)^{T} (free variables x3x_3 and x5x_5). On the other hand B′−I5B' - I_5 has two pivots, so dimE1=3\dim E_1 = 3, the dimensions add up to 2+3=52 + 3 = 5, and B′B' is diagonalizable. With free variables x3,x4,x5x_3, x_4, x_5, P=(10−11−3010−1−1001000001000001),B′=Pdiag(2,2,1,1,1)P−1.P = \begin{pmatrix} 1 & 0 & -1 & 1 & -3 \\ 0 & 1 & 0 & -1 & -1 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 \end{pmatrix}, \qquad B' = P\,\operatorname{diag}(2, 2, 1, 1, 1)\,P^{-1} . The diagonal of a triangular matrix gives the eigenvalues and their multiplicities, but not the dimensions of the eigenspaces; those depend on the entries above the diagonal.

Example 8.45 (Non-example: differentiation)

For n≥2n \ge 2, differentiation D:ℙn→ℙnD\colon \mathbb{P}_n \to \mathbb{P}_n is not diagonalizable. Its only eigenvalue is 00, with E0E_0 the constants (Section 1), so the dimensions of the eigenspaces add up to 1<n1 < n. In matrix terms, [D]ℬ[D]_{\mathcal{B}} for the standard basis is strictly upper triangular and nonzero, as in Lecture 7. Similarly, the matrix (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} of Lecture 7's remark is not diagonalizable, by the proposition.

Exercise 8.7 auto-check

For A=(133−3−5−3331)A = \begin{pmatrix} 1 & 3 & 3 \\ -3 & -5 & -3 \\ 3 & 3 & 1 \end{pmatrix}, what is the (1,2)(1,2) entry of A5A^{5}?

Answer:
Exercise 8.8 auto-check

For which value of aa is (2a02)\begin{pmatrix} 2 & a \\ 0 & 2 \end{pmatrix} diagonalizable?

Answer:
Exercise 8.9 auto-check

Which matrix is diagonalizable?

Exercise 8.10 auto-check

A 4×44 \times 4 matrix has characteristic polynomial (λ−1)2(λ+3)2(\lambda - 1)^2(\lambda + 3)^2, and dimE1=2\dim E_1 = 2. What must dimE−3\dim E_{-3} be for the matrix to be diagonalizable?

Answer:
Remark 8.46 (Looking ahead)

Diagonalization turns powers AkA^{k} into powers of numbers, which is the key to linear recurrences and to systems that evolve step by step, 𝐱k+1=A𝐱k\mathbf{x}_{k+1} = A\mathbf{x}_k: in an eigenvector basis each coordinate is simply multiplied by its eigenvalue at every step. The two obstacles met in this section, eigenvalues that are not real and eigenspaces that are too small, never occur for symmetric matrices (AT=AA^{T} = A); proving this requires the inner product, which is still to come.

Index of statements

  1. Definition 8.1 (Eigenvalue and eigenvector of a matrix)
  2. Remark 8.2 (Two points in the definition)
  3. Example 8.3 (Checking a vector)
  4. Definition 8.4 (Eigenspace)
  5. Proposition 8.5 (Eigenvalues through the null space)
  6. Example 8.6 (Is a given number an eigenvalue?)
  7. Example 8.7 (Eigenvectors from geometry)
  8. Definition 8.8 (Eigenvalue and eigenvector of a linear map)
  9. Example 8.9 (Eigenvectors of maps on polynomials)
  10. Remark 8.10 (Exponential functions)
  11. Theorem 8.11 (Eigenvalues of a map and of its matrix)
  12. Remark 8.12 (Different bases, one set of eigenvalues)
  13. Proposition 8.13 (Powers and inverses)
  14. Theorem 8.14 (Eigenvectors for distinct eigenvalues are independent)
  15. Corollary 8.15 (At most nn eigenvalues)
  16. Theorem 8.16 (Eigenvalues are the roots of a determinant)
  17. Definition 8.17 (Characteristic polynomial and equation)
  18. Example 8.18 (The 2×22 \times 2 case)
  19. Remark 8.19 (The degree of pAp_A)
  20. Definition 8.20 (Multiplicity of an eigenvalue)
  21. Corollary 8.21 (Counting eigenvalues)
  22. Theorem 8.22 (Triangular matrices)
  23. Proposition 8.23 (Similar matrices have the same eigenvalues)
  24. Remark 8.24 (The procedure, and a warning)
  25. Example 8.25 (A 3×33 \times 3 matrix with a repeated eigenvalue)
  26. Example 8.26 (No real eigenvalues)
  27. Remark 8.27 (Complex numbers and complex eigenvalues)
  28. Example 8.28 (The characteristic polynomial of a linear map)
  29. Definition 8.29 (Diagonalizable)
  30. Theorem 8.30 (The diagonalization theorem)
  31. Remark 8.31 (The meaning of PP and DD)
  32. Corollary 8.32 (Distinct eigenvalues suffice)
  33. Remark 8.33 (The condition is not necessary)
  34. Lemma 8.34 (Bases of eigenspaces combine)
  35. Theorem 8.35 (Eigenspace dimension is at most the multiplicity)
  36. Theorem 8.36 (The criterion for diagonalization)
  37. Remark 8.37 (How to diagonalize)
  38. Example 8.38 (Diagonalizing the 3×33 \times 3 matrix)
  39. Example 8.39 (A 4×44 \times 4 matrix)
  40. Example 8.40 (Diagonalizing a linear map)
  41. Example 8.41 (Non-example: a rotation)
  42. Proposition 8.42 (Triangular with a constant diagonal)
  43. Example 8.43 (Non-example: a 5×55 \times 5 matrix with one eigenvalue)
  44. Example 8.44 (Two 5×55 \times 5 matrices with the same diagonal)
  45. Example 8.45 (Non-example: differentiation)
  46. Remark 8.46 (Looking ahead)