9.4  Diagonalization

We can now answer the question of Chapter 4 in the best case. An operator has a diagonal matrix in some basis exactly when there are enough eigenvectors to form a basis, and the previous two sections give precise ways to count “enough”: by dimensions of eigenspaces, or by comparing geometric with algebraic multiplicities. This section proves that these tests agree, shows how to find the diagonalizing basis for a concrete matrix, and uses it to compute powers. The payoff is a closed formula for the Fibonacci numbers. We also meet the operators for which the method fails, and see that the field is part of the answer.

9.4.1. Diagonalizable operators

Chapter 2 introduced similarity to compare the matrices of one operator in different bases (Theorem 4.2.4), and asked for the simplest representative. Section 2 unwound the wish “[T]BB is diagonal” and found that it says exactly that every vector of B is an eigenvector. Diagonal matrices are the matrices we can compute with most easily: they add, multiply, power, and invert entry by entry. So the operators that admit such a basis deserve a name.

An operator is diagonalizable when some basis consists of vectors that the operator only stretches.

Definition 9.4.1 (Diagonalizable)

Let V be a finite-dimensional vector space over F. An operator T∈L(V) is diagonalizable if there exists a basis B of V such that [T]BB is a diagonal matrix.

A matrix A∈Mn(F) is diagonalizable over F if it is similar to a diagonal matrix: there exist an invertible P∈Mn(F) and a diagonal D∈Mn(F) with P−1AP=D, equivalently A=PDP−1.

In words: for an operator, we are free to choose any basis, and we ask whether one of them makes the matrix diagonal; most bases will not. For a matrix, the change-of-basis matrix P and the diagonal entries of D must both have entries in F. The two notions match: A is diagonalizable over F if and only if TA∈L(Fn) is diagonalizable, by Theorem 4.2.4 (c), because the matrices of TA in the bases of Fn are exactly the matrices similar to A. Likewise, T is diagonalizable if and only if [T]CC is diagonalizable for one, equivalently every, basis C of V, by Theorem 4.2.4 (a) and (b).

Examples.

  • Diagonal matrices are diagonalizable, with P=I. So is every scalar operator cidV, whose matrix is cI in every basis.
  • The degenerate cases. Every 1×1 matrix is diagonal. On V={0}, the empty basis gives the empty matrix, which counts as diagonal. These cases are harmless, but they remind us that diagonalizability is a question about repeated eigenvalues and missing eigenvectors, which need room to occur.
  • A 2×2 matrix. In Example (Eigenvalues and Eigenspaces of a 2×2 Matrix), A=(1232) has eigenvectors (2,3) for 4 and (1,−1) for −1. They form a basis of R2, so A is diagonalizable, with P=(213−1) and D=diag(4,−1); we check this below.
  • Projections and involutions. A projection P satisfies V=imP⊕kerP with P the identity on imP and zero on kerP (Theorem 4.5.1). A basis of imP followed by a basis of kerP is a basis B with [P]BB=diag(1,…,1,0,…,0). In characteristic not 2, an involution splits V=E+⊕E− (Theorem 4.5.5), and gives diag(1,…,1,−1,…,−1) in the same way.

Nonexample by minimal change. Change the (1,2)-entry of I2 from 0 to 1, giving J=(1101) over any field F. It is still triangular with the single eigenvalue 1, and still invertible. What fails is the existence of a basis of eigenvectors: E1(J)=ker(0100)=span(e1) is a line, so every eigenvector of J is a multiple of e1, and no two eigenvectors are independent. By the unwinding in Section 2, no basis B makes [TJ]BB diagonal. (Directly: if P−1JP=D were diagonal, its diagonal entries would be eigenvalues of J, so D=I, and then J=PIP−1=I, which is false.)

Why this definition. We ask for similarity to a diagonal matrix, not equality, because the basis is ours to choose; a matrix like (1232) has nothing diagonal about it until the right basis is found. We insist that P and D have entries in F, because otherwise the word would not depend on the field and would hide a real phenomenon: the rotation R=(0−110) has no real eigenvector, so it is not diagonalizable over R, while over C it becomes diag(i,−i) (Section 2). The name says what the definition promises: the operator can be made diagonal.

Warning. Diagonalizability depends on the field, and even on its characteristic. The rotation R is diagonalizable over C but not over R. A subtler case: S=(0110) is diagonalizable over Q, with eigenvectors (1,1) for 1 and (1,−1) for −1. Over F2 the same matrix has pS=x2−1=(x−1)2, since −1=1, and S−I=(1111) has rank 1, so its only eigenvectors are the multiples of (1,1), and S is not diagonalizable over F2. Always say over which field.

9.4.2. The Diagonalization Theorem

How do we decide whether a basis of eigenvectors exists without searching for one? Eigenvectors for different eigenvalues are automatically independent (Theorem 9.2.2), so the only question is whether each eigenspace supplies enough of them. The theorem below lists five equivalent ways to say “enough”.

Theorem 9.4.1 (Diagonalization Theorem)

Let V be a finite-dimensional vector space over F with dim⁡V=n≥1, let T∈L(V), and let λ1,…,λk be the distinct eigenvalues of T (possibly k=0). The following are equivalent:

  • (a) T is diagonalizable;
  • (b) V has a basis consisting of eigenvectors of T;
  • (c) V=Eλ1(T)⊕⋯⊕Eλk(T);
  • (d) dim⁡Eλ1(T)+⋯+dim⁡Eλk(T)=n;
  • (e) pT splits over F, and gT(λi)=aT(λi) for every i=1,…,k.

In that case, if B is a basis of eigenvectors, then [T]BB is diagonal, its diagonal entries are the eigenvalues of the corresponding basis vectors, and each λi appears on the diagonal exactly aT(λi)=gT(λi) times.

(For k=0 the sum in (c) is {0} and the sum in (d) is 0; all five conditions are then false, since n≥1.)

Idea. Plan: prove (a) ⇒ (b) ⇒ (c) ⇒ (d) ⇒ (e) ⇒ (b) ⇒ (a).

① (a) ⇔ (b) is the unwinding of columns from Section 2. ② From a basis of eigenvectors, the eigenspaces add up to V, and Corollary 9.2.3 makes the sum direct. ③ Dimensions add in a direct sum. ④ (d) ⇒ (e) is a sandwich: n=∑g≤∑a≤n, so every inequality is an equality. ⑤ (e) ⇒ (b) runs the sandwich backwards and glues bases of the eigenspaces together.

The hard work was done in Sections 2 and 3; this proof only assembles it.

Proof.

  • (a) ⇔ (b). Let B=(v1,…,vn) be a basis of V. By Definition 4.1.1, column j of [T]BB is [Tvj]B, and this column is djej if and only if Tvj=djvj. Hence [T]BB=diag(d1,…,dn) if and only if Tvj=djvj for every j. Since basis vectors are nonzero, this says that every vj is an eigenvector of T, for the eigenvalue dj. So a basis makes [T]BB diagonal exactly when it consists of eigenvectors, which also proves the final statement about the diagonal entries, apart from the count.

  • (b) ⇒ (c). Let B be a basis of eigenvectors. Each vector of B lies in Eλi(T) for some i, so B⊆Eλ1(T)+⋯+Eλk(T). This sum is a subspace (Theorem 1.7.1) containing a spanning list of V, so it equals V. By Corollary 9.2.3 the sum is direct.

  • (c) ⇒ (d). By Theorem 1.7.5 ((a) ⇒ (e)), n=dim⁡V=∑idim⁡Eλi(T).

  • (d) ⇒ (e). By Theorem 9.3.1, gT(λi)≤aT(λi) for each i. The eigenvalues are exactly the roots of pT in F (Theorem 9.2.1), so by Theorem 6.4.3, ∑iaT(λi)≤deg⁡pT=n (Theorem 7.10.2). With (d), n=∑i=1kgT(λi)≤∑i=1kaT(λi)≤n. Hence both inequalities are equalities. The second equality, ∑iaT(λi)=deg⁡pT, means that pT splits over F (Theorem 6.4.3). The first says ∑i(aT(λi)−gT(λi))=0, a sum of nonnegative integers, so every term is 0 and gT(λi)=aT(λi) for each i.

  • (e) ⇒ (b). Since pT splits, Theorem 6.4.3 gives ∑iaT(λi)=n, and so ∑igT(λi)=n by (e). For each i let Bi be a basis of Eλi(T), of length gT(λi), and let B be the list B1,…,Bk. The sum W=Eλ1(T)+⋯+Eλk(T) is direct (Corollary 9.2.3), so by Theorem 1.7.5 ((a) ⇒ (d)), B is a basis of W, and dim⁡W=n=dim⁡V. By Theorem 1.6.8, W=V. So B is a basis of V, and its vectors are eigenvectors, being nonzero vectors of eigenspaces.

Finally, suppose B is a basis of eigenvectors, and let mi be the number of its vectors with eigenvalue λi. By (a) ⇔ (b), [T]BB is diagonal with λi appearing mi times, so pT=∏i(x−λi)mi (the triangular case after Definition 7.10.1). Since the λi are distinct, (x−λi)mi divides pT and the remaining factors do not vanish at λi, so mi=aT(λi) by Lemma 6.4.1; and aT(λi)=gT(λi) by (e). This proves the theorem.

This is the theorem promised in Chapter 1, §7: an operator is diagonalizable exactly when its eigenspaces split V as a direct sum, and then T acts on the i-th piece as the scalar λi. In the language of Theorem 9.1.5, the pieces are invariant, the blocks are λiIg(λi), and the matrix is block diagonal with scalar blocks.

Condition (e) is the practical test. It separates two different ways to fail, and they have different remedies. If pT does not split, the field is too small, and enlarging it (from R to C) may help. If pT splits but some g(λ)<a(λ), there are genuinely too few eigenvectors, and no change of field helps; Chapter 10 explains what the best matrix is then.

The easiest case of (e) needs no rank computation at all.

Corollary 9.4.2 (Distinct Eigenvalues Imply Diagonalizable)

Let V be a finite-dimensional vector space over F with dim⁡V=n≥1, and let T∈L(V) have n distinct eigenvalues. Then T is diagonalizable. The same holds for A∈Mn(F) with n distinct eigenvalues in F.

Proof. Let λ1,…,λn be the eigenvalues. Each λi is an eigenvalue, so Eλi(T)≠{0} (Definition 9.2.2) and dim⁡Eλi(T)≥1, so ∑idim⁡Eλi(T)≥n, and by Corollary 9.2.3 the sum is at most n. Hence it equals n, and T is diagonalizable by Theorem 9.4.1 ((d) ⇒ (a)).

So a matrix whose characteristic polynomial has n distinct roots in F is diagonalizable over F; for example (2103) is, because its eigenvalues 2 and 3 are distinct. This is the generic situation, but it is only a sufficient condition.

Warning. The converse fails: diagonalizable matrices may have repeated eigenvalues. In is diagonal, and its only eigenvalue is 1. Less trivially, the matrix of Example (Diagonalizing a 3×3 Matrix with a Repeated Eigenvalue) below has eigenvalues 1,1,3 and is diagonalizable. A repeated eigenvalue is a reason to check g(λ)=a(λ), not a verdict.

Quick check. Which of (3105), (3103), (3003) are diagonalizable over R?

Solution. The first has distinct eigenvalues 3,5, so it is diagonalizable by Corollary 9.4.2. The second has a(3)=2 but rank(0100)=1, so g(3)=1<a(3), and it is not diagonalizable by Theorem 9.4.1 (e). The third is already diagonal.

9.4.3. Computing P and D

For a matrix A∈Mn(F), a basis of eigenvectors turns into the matrices P and D of Definition 9.4.1 directly. Let (v1,…,vn) be a basis of Fn with Avj=djvj, let P be the matrix with columns v1,…,vn, and D=diag(d1,…,dn). By the column view of matrix multiplication (Theorem 0.9.2), column j of AP is Avj=djvj, and column j of PD is P(djej)=djvj. So AP=PD. The columns of P form a basis, so P is invertible (Theorem 3.4.4), and multiplying on the left by P−1 gives P−1AP=D. The order matters in one way only: the j-th column of P must be an eigenvector for the j-th diagonal entry of D. Reordering the eigenvectors reorders the diagonal of D in the same way, and any order works.

For A=(1232), with P=(213−1) and D=diag(4,−1): AP=(8−1121) and PD=(8−1121). Checking AP=PD avoids computing P−1, and together with detP=−5≠0 it proves P−1AP=D.

The full procedure, then: compute pA and its roots; if it does not split over F, stop (not diagonalizable over F); for each eigenvalue compute a basis of Eλ(A); if some g(λ)<a(λ), stop; otherwise put the basis vectors as columns of P.

Example (Diagonalizing a 3×3 Matrix with a Repeated Eigenvalue)

Let A=(32−2−2−12−2−23)∈M3(R). Decide whether A is diagonalizable over R. If it is, find an invertible P and a diagonal D with P−1AP=D.

Solution. Characteristic polynomial. Expanding along the first row (Theorem 7.6.1 over R[x]), pA(x)=det(x−3−222x+1−222x−3)=(x−3)[(x+1)(x−3)+4]+2[2(x−3)+4]+2[4−2(x+1)]. The brackets are x2−2x+1=(x−1)2, 2(x−1), and −2(x−1), so the last two terms cancel and pA(x)=(x−1)2(x−3). It splits over R, with a(1)=2 and a(3)=1. As a check, trA=5=1+1+3 (Theorem 9.3.3).

Eigenspace for 1. A−I=(22−2−2−22−2−22). Every row is a multiple of (1,1,−1), so the rank is 1 and g(1)=3−1=2=a(1). The system reduces to x+y−z=0; with the free variables y and z, a basis of E1(A) is (−1,1,0), (1,0,1) (Theorem 3.5.4).

Eigenspace for 3. Here g(3)=1=a(3) by Theorem 9.3.1, so condition (e) of Theorem 9.4.1 holds and A is diagonalizable. To find the eigenvector, A−3I=(02−2−2−42−2−20). Row 1 gives y=z, and row 3 gives x=−y; row 2 then reads 2y−4y+2y=0. So E3(A)=span((1,−1,−1)).

The matrices. Put the eigenvectors as columns, in the order of the eigenvalues we want on the diagonal: P=(−11110−101−1),D=diag(1,1,3). Check. AP has columns A(−1,1,0)=(−1,1,0), A(1,0,1)=(1,0,1), and A(1,−1,−1)=(3,−3,−3), which are the columns of PD. Expanding along the first column, detP=−1⋅(0+1)−1⋅(−1−1)=1≠0, so P is invertible, and in fact P−1=(12−111011−1), as multiplying out PP−1=I confirms. Hence P−1AP=D.

Had we listed the eigenvectors in the order (1,−1,−1),(−1,1,0),(1,0,1), we would get D=diag(3,1,1) instead. Both are correct.

9.4.4. Powers and polynomials

Why diagonalize? Powers of diagonal matrices are free: diag(d1,…,dn)k=diag(d1k,…,dnk). Similarity carries this over.

Theorem 9.4.3 (Powers and Polynomials of a Diagonalizable Matrix)

Let A=PDP−1 with P∈Mn(F) invertible and D=diag(d1,…,dn). Then for every k∈N and every p∈F[x], Ak=Pdiag(d1k,…,dnk)P−1,p(A)=Pdiag(p(d1),…,p(dn))P−1. If moreover every di≠0, then A is invertible and A−1=Pdiag(d1−1,…,dn−1)P−1.

Proof. Since D=P−1AP, Proposition 4.2.6 (c) gives p(D)=P−1p(A)P, so p(A)=Pp(D)P−1. A diagonal matrix is the direct sum (d1)⊕⋯⊕(dn) of 1×1 blocks, so by Theorem 8.1.4 (b), extended to n blocks by induction on the number of blocks, p(D)=(p(d1))⊕⋯⊕(p(dn))=diag(p(d1),…,p(dn)). Taking p=xk gives the formula for Ak. If every di≠0, put B=Pdiag(d1−1,…,dn−1)P−1; then AB=PDP−1Pdiag(di−1)P−1=Pdiag(didi−1)P−1=PP−1=I, and B=A−1 by Theorem 3.4.5.

In words: to apply a polynomial to a diagonalizable matrix, apply it to the eigenvalues and change basis back. The work is done once, when P is found; every power after that costs a single product of three matrices. For Example (Diagonalizing a 3×3 Matrix with a Repeated Eigenvalue), Ak=Pdiag(1,1,3k)P−1=(3k3k−11−3k1−3k2−3k3k−11−3k1−3k3k), which is I for k=0 and A for k=1, as it must be.

The most famous application is to a recurrence. A linear recurrence of order two becomes a first-order recurrence for vectors, whose solution is a matrix power.

Example (A Closed Formula for the Fibonacci Numbers)

The Fibonacci numbers are defined by F0=0, F1=1, and Fk+2=Fk+1+Fk for k≥0. (Here Fk is a number, not a field; we work over R.) Find a formula for Fk by diagonalizing a 2×2 matrix.

Solution. A vector recurrence. Put xk=(Fk+1,Fk)∈R2. The recurrence says xk+1=(Fk+2Fk+1)=(Fk+1+FkFk+1)=Axk,A=(1110). By induction on k, xk=Akx0 with x0=(1,0).

Eigenvalues. trA=1 and detA=−1, so pA(x)=x2−x−1, with the two real roots φ=1+52,ψ=1−52. They are distinct, so A is diagonalizable over R (Corollary 9.4.2). Each root satisfies λ2=λ+1, and we will use φ+ψ=1, φψ=−1, and φ−ψ=5.

Eigenvectors. For a root λ, the vector (λ,1) is an eigenvector: A(λ,1)=(λ+1,λ)=(λ2,λ)=λ(λ,1). So P=(φψ11),D=diag(φ,ψ),P−1=15(1−ψ−1φ), where detP=φ−ψ=5≠0 and P−1 comes from Theorem 0.9.8.

The power. By Theorem 9.4.3, xk=PDkP−1x0. Working from the right: P−1x0=15(1−1),DkP−1x0=15(φk−ψk),PDkP−1x0=15(φk+1−ψk+1φk−ψk). The second entry of xk is Fk, so Fk=φk−ψk5=15[(1+52)k−(1−52)k]. Check. k=0: 0. k=1: (φ−ψ)/5=1. k=2: (φ2−ψ2)/5=(φ−ψ)(φ+ψ)/5=1. And the right side satisfies the recurrence, because φk+2=φk+1+φk (multiply φ2=φ+1 by φk), and likewise for ψ.

Since |ψ|<1, the term ψk/5 has absolute value less than 1/2, so Fk is the integer nearest to φk/5; the Fibonacci numbers grow like powers of φ≈1.618, the larger eigenvalue.

The irrational numbers in the formula are forced. Over Q, the polynomial x2−x−1 has no root (by Theorem 6.3.6, the only candidates are ±1, and neither works), so A has no eigenvalue in Q and is not diagonalizable over Q, although all its entries and powers are integers. Chapter 7 met the same numbers as determinants of tridiagonal matrices (Example (Fibonacci Numbers as Determinants)); here the recurrence is solved rather than just recognized. Section 11 of this chapter treats general linear recurrences and Markov chains the same way.

9.4.5. When diagonalization fails

Two examples collect the ways Theorem 9.4.1 (e) can fail.

Too few eigenvectors. J=(1101) is not diagonalizable over any field, because pJ=(x−1)2 splits but g(1)=1<2=a(1). Enlarging the field changes nothing: the rank of J−I is 1 over every field. Its powers are still easy, Jk=(1k01) by induction, but they are not of the form Pdiag(1,1)P−1=I; the entry k, growing linearly rather than like a power, is the footprint of the missing eigenvector. Chapter 10 shows that such blocks are the only additional ingredient.

Too small a field. The rotation R=(0−110) has pR=x2+1, which does not split over R, so R is not diagonalizable over R. Over C it has the distinct eigenvalues ±i with eigenvectors (1,−i) and (1,i), so with P=(11−ii), P−1RP=(i00−i). Then Rk=Pdiag(ik,(−i)k)P−1, and since i4=1, R4=I: four quarter-turns make a full turn, as they should.

When a matrix depends on a parameter, the same test decides diagonalizability for every value at once.

Example (Diagonalizability with a Parameter)

For which t∈R is At=(2t0020003) diagonalizable over R?

Solution. The matrix is upper triangular, so pAt(x)=(x−2)2(x−3) for every t, by Theorem 7.4.6. This splits, with a(2)=2 and a(3)=1. Since 1≤g(3)≤a(3)=1 by Theorem 9.3.1, only λ=2 needs checking. Here At−2I=(0t0000001), whose rank is 1 if t=0 and 2 if t≠0. By rank–nullity for matrices (Theorem 3.5.7), g(2)=3−rank(At−2I) is 2 when t=0 and 1 when t≠0. By Theorem 9.4.1 (e), At is diagonalizable exactly when t=0.

Notice what did not change: the eigenvalues and their algebraic multiplicities are the same for every t. Only the geometric multiplicity, a rank, detects the difference.

9.4.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define what it means for A∈Mn(F) to be diagonalizable over F.
  • (b) State the Diagonalization Theorem, with at least four equivalent conditions.
  • (c) True or false: a diagonalizable n×n matrix has n distinct eigenvalues. Justify your answer.
  • (d) True or false: every invertible matrix is diagonalizable. Justify your answer.
  • (e) True or false: every diagonalizable matrix is invertible. Justify your answer.
  • (f) If P−1AP=D is diagonal, what are the columns of P, and how are they matched with the diagonal of D?

Solution.

  • (a) There are an invertible P∈Mn(F) and a diagonal D∈Mn(F) with P−1AP=D (Definition 9.4.1).

  • (b) See Theorem 9.4.1: for T∈L(V), dim⁡V=n≥1, with distinct eigenvalues λ1,…,λk, the following are equivalent: T is diagonalizable; V has a basis of eigenvectors; V=⨁iEλi(T); ∑idim⁡Eλi(T)=n; pT splits and g(λi)=a(λi) for all i.

  • (c) False. In is diagonal, with the single eigenvalue 1.

  • (d) False. (1101) has determinant 1 but is not diagonalizable.

  • (e) False. The zero matrix is diagonal and not invertible.

  • (f) The columns of P form a basis of eigenvectors of A, and column j is an eigenvector for the j-th diagonal entry of D, since AP=PD.

B. Practice

Exercise (B1: Diagonalize or show impossible)

For each real matrix, either find an invertible P and a diagonal D with P−1AP=D, or show that none exist.

  • (a) A1=(01−65).
  • (b) A2=(111201−332).
  • (c) A3=(−12−2−23−22−23).

Solution.

  • (a) trA1=5, detA1=6, so p=x2−5x+6=(x−2)(x−3). The eigenvalues are distinct, so A1 is diagonalizable (Corollary 9.4.2). A1−2I=(−21−63) gives y=2x, eigenvector (1,2); A1−3I=(−31−62) gives y=3x, eigenvector (1,3). So P=(1123),D=diag(2,3),P−1=(3−1−21), and indeed A1P=(2349)=PD.

  • (b) Expanding along the first row, p(x)=det(x−1−1−1−2x−13−3x−2)=(x−1)[x(x−2)−3]+[−2(x−2)+3]−[6−3x]. The first bracket is (x−3)(x+1), and the last two terms add up to −2x+7−6+3x=x+1. So p(x)=(x+1)[(x−1)(x−3)+1]=(x+1)(x−2)2, and a(2)=2. Now A2−2I=(−1112−21−330). Row 3 equals row 1 minus row 2, and rows 1 and 2 are not proportional, so the rank is 2 and g(2)=1<2=a(2). By Theorem 9.4.1 (e), A2 is not diagonalizable, over R or over C.

  • (c) Expanding along the first row, p(x)=det(x+1−222x−32−22x−3)=(x+1)[(x−3)2−4]+2[2(x−3)+4]+2[4+2(x−3)]. The first bracket is (x−5)(x−1) and the other two are 2(x−1) each, so p(x)=(x−1)[(x+1)(x−5)+8]=(x−1)(x2−4x+3)=(x−1)2(x−3). For λ=1, A3−I=(−22−2−22−22−22) has rank 1, so g(1)=2=a(1), and E1 is the plane x−y+z=0, with basis (1,1,0),(−1,0,1). Also g(3)=1=a(3), so A3 is diagonalizable. From A3−3I=(−42−2−20−22−20), row 3 gives y=x and row 2 gives z=−x, so E3=span((1,1,−1)). Hence P=(1−1110101−1),D=diag(1,1,3). Check: A3(1,1,0)=(1,1,0), A3(−1,0,1)=(−1,0,1), A3(1,1,−1)=(3,3,−3), so A3P=PD; and detP=1(0−1)+1(−1−0)+1(1−0)=−1≠0.

Exercise (B2: A tenth power)

Let A=(1221)∈M2(R).

  • (a) Diagonalize A.
  • (b) Hence find a formula for Ak, k∈N, and compute A10.

Solution.

  • (a) trA=2, detA=−3, so p=x2−2x−3=(x−3)(x+1). A−3I=(−222−2) gives the eigenvector (1,1), and A+I=(2222) gives (1,−1). So P=(111−1), D=diag(3,−1), and P−1=12(111−1) by Theorem 0.9.8.

  • (b) By Theorem 9.4.3, Ak=12(111−1)(3k00(−1)k)(111−1)=12(3k+(−1)k3k−(−1)k3k−(−1)k3k+(−1)k). For k=1 this gives 12(2442)=A. With 310=59049 and (−1)10=1, A10=(29525295242952429525).

Exercise (B3: A matrix with a parameter)

For t∈R, let At=(1100t0002). Determine all t for which At is diagonalizable over R. Justify your answer.

Solution. At is upper triangular, so p(x)=(x−1)(x−t)(x−2), which splits over R.

Case t∉{1,2}. The eigenvalues 1,t,2 are distinct, so At is diagonalizable (Corollary 9.4.2).

Case t=1. Then a(1)=2, and A1−I=(010000001) has rank 2, so g(1)=1<2. Not diagonalizable.

Case t=2. Then a(2)=2, and A2−2I=(−110000000) has rank 1, so g(2)=2=a(2); also g(1)=a(1)=1. Diagonalizable, with eigenvectors e1 for 1 and (1,1,0),e3 for 2.

Hence At is diagonalizable over R if and only if t≠1. In both exceptional cases a diagonal entry is repeated, but only for t=1 is an eigenvector lost: the entry 1 in position (1,2) couples e1 and e2, and it matters only when their diagonal entries agree.

C. Going deeper

Exercise (C1: Matrices with Ak=I)

Let A∈Mn(C), n≥1, and k≥1.

  • (a) Prove that if Ak=I, then every eigenvalue λ of A satisfies λk=1.
  • (b) Prove that if A is diagonalizable and every eigenvalue satisfies λk=1, then Ak=I.
  • (c) Show that the hypothesis “diagonalizable” in (b) cannot be dropped.

Solution.

  • (a) Let Av=λv with v≠0. By Exercise (B3: Eigenvalues of powers and inverses) (a), v=Iv=Akv=λkv, so (λk−1)v=0 and λk=1 by Theorem 1.1.9.

  • (b) Write A=PDP−1 with D=diag(d1,…,dn) (Definition 9.4.1). The di are eigenvalues of A: D and A are similar, so pD=pA (Theorem 7.10.3), and each di is a root of pD=∏j(x−dj). So dik=1 for all i, and by Theorem 9.4.3, Ak=Pdiag(d1k,…,dnk)P−1=PIP−1=I.

  • (c) Let J=(1101). Its only eigenvalue is 1, and 1k=1. But Jk=(1k01) by induction (Jk+1=JkJ), which is not I since k≠0 in C. (Section 8 proves the converse of (b) in a strong form: over C, Ak=I forces A to be diagonalizable.)

Exercise (C2: Polynomials of diagonalizable matrices)
  • (a) Prove that if A∈Mn(F) is diagonalizable over F, then so is p(A) for every p∈F[x], and that every eigenvalue of p(A) has the form p(λ) with λ∈spec(A).
  • (b) Show that the converse of the first statement fails: find a nondiagonalizable A and a polynomial p with p(A) diagonalizable.

Solution.

  • (a) Let A=PDP−1, D=diag(d1,…,dn). By Theorem 9.4.3, p(A)=Pdiag(p(d1),…,p(dn))P−1, so p(A) is similar to a diagonal matrix, that is, diagonalizable. By Theorem 7.10.3, pp(A)=∏i(x−p(di)), so by Theorem 9.2.1 every eigenvalue of p(A) is some p(di). As in Exercise (C1: Matrices with Ak=I) (b), each di is an eigenvalue of A.

  • (b) Let A=(0100) and p=x2. Then A is not diagonalizable: pA=x2 gives a(0)=2, while rankA=1 gives g(0)=1 (Theorem 9.4.1 (e)). But p(A)=A2=O is diagonal.

Exercise (C3: The transpose map on Mn(F))

Let n≥1 and τ:Mn(F)→Mn(F), τ(X)=X⊤.

  • (a) Suppose the characteristic of F is not 2. Prove that τ is diagonalizable, and find dim⁡E1(τ) and dim⁡E−1(τ).
  • (b) Under the same hypothesis, deduce pτ, trτ, and detτ.
  • (c) Now let F=F2 and n≥2. Prove that τ is not diagonalizable.

Hint: for the dimensions, use the matrices Eij+Eji and Eij−Eji.

Solution.

  • (a) Since (X⊤)⊤=X (Theorem 0.9.5), τ2=id. By Theorem 4.5.5, Mn(F)=E+⊕E−, where E+=E1(τ) is the space of symmetric matrices and E−=E−1(τ) the space of skew-symmetric matrices.

    A symmetric X=(xij) is determined by its entries on and above the diagonal, and X=∑ixiiEii+∑i<jxij(Eij+Eji). These n+(n2) matrices are symmetric and independent, since their nonzero entries sit in disjoint positions. So dim⁡E1(τ)=n(n+1)/2. A skew-symmetric X has xii=−xii, so 2xii=0 and xii=0 (as 2≠0); and X=∑i<jxij(Eij−Eji), with these (n2) matrices independent for the same reason. So dim⁡E−1(τ)=n(n−1)/2.

    The eigenvalues of τ lie among ±1 (as in Exercise (B2: The transpose map)), and n(n+1)/2+n(n−1)/2=n2=dim⁡Mn(F). If n≥2, both eigenspaces are nonzero, and the dimensions of the eigenspaces add up to n2; if n=1, τ=id and E1(τ) is everything. Either way Theorem 9.4.1 ((d) ⇒ (a)) shows that τ is diagonalizable.

  • (b) In a basis B of eigenvectors, [τ]BB=diag(1,…,1,−1,…,−1) with n(n+1)/2 ones and n(n−1)/2 entries −1 (Theorem 9.4.1). This matrix is triangular, so pτ=(x−1)n(n+1)/2(x+1)n(n−1)/2,trτ=n(n+1)2−n(n−1)2=n,detτ=(−1)n(n−1)/2. As a check on the trace: in the basis E=(Eij), τ(Eij)=Eji, so the diagonal entry of [τ]EE at Eij is 1 if i=j and 0 otherwise, and the trace is n.

  • (c) Over F2, −1=1. If τ(X)=λX with X≠O, then as in Exercise (B2: The transpose map) (a), λ2=1, so (λ−1)2=λ2−2λ+1=λ2+1=0 and λ=1. So spec(τ)={1} and E1(τ) is the space of symmetric matrices. The spanning argument in (a) did not divide by 2, so dim⁡E1(τ)=n(n+1)/2. For n≥2, n(n+1)/2<n2, so condition (d) of Theorem 9.4.1 fails, and τ is not diagonalizable. For instance, E12 is not a sum of eigenvectors.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.