9.9  Commuting Operators

So far we have diagonalized or triangularized one operator at a time. Many problems hand us several at once: two matrices that describe the same system, or a matrix together with all its powers. Can a single basis make all of them diagonal, or all of them triangular? A necessary condition is easy to spot, because diagonal matrices commute. This section shows that commuting is also enough, as long as each operator can be handled on its own. The whole argument rests on one observation: an operator that commutes with T maps each eigenspace of T into itself, so we can search for common eigenvectors inside an eigenspace.

9.9.1. When can two operators share a basis?

Let V be finite-dimensional and S,T∈L(V). Suppose one basis B makes both [S]BB and [T]BB diagonal. Diagonal matrices multiply entry by entry on the diagonal, so [S]BB[T]BB=[T]BB[S]BB. By Corollary 4.1.3 this says [ST]BB=[TS]BB, and since T↦[T]BB is injective (Theorem 4.1.4), ST=TS. So sharing a diagonalizing basis forces commuting. The same is not true for triangular matrices: (1102) and (1002) are both upper triangular, and their products in the two orders are (1204) and (1104). We will see, though, that commuting is a convenient sufficient condition in the triangular case as well.

The question for this section is the converse: if ST=TS, can we find a common basis? Here are the commuting pairs to keep in mind.

  • Polynomials in one operator. For every p,q∈F[x], p(T)q(T)=q(T)p(T) (Theorem 6.7.1 (c)). In particular T commutes with T2, with T−1 when it exists (both products are idV), and with every scalar operator cidV.
  • Diagonal matrices commute with each other, and so do block diagonal matrices whose corresponding blocks commute (Theorem 8.1.4).
  • A noncommuting pair. E12=(0100) and E21=(0010) give E12E21=E11≠E22=E21E12.

The last pair already shows that something must be assumed. Over any field, the eigenvectors of E12 are the nonzero multiples of e1, and those of E21 are the nonzero multiples of e2. They share no eigenvector at all, let alone a basis of them.

9.9.2. Commuting operators preserve eigenspaces

How does the hypothesis ST=TS interact with eigenvectors? Take Tv=λv and ask what T does to Sv. There is no S in the eigenvector equation yet, so we apply S to both sides.

Theorem 9.9.1 (Commuting Operators Preserve Eigenspaces)

Let V be a vector space over F, and let S,T∈L(V) with ST=TS. Then for every λ∈F, the eigenspace Eλ(T) is S-invariant.

Proof. Let v∈Eλ(T), so Tv=λv. Since ST=TS and S is linear, T(Sv)=(TS)v=(ST)v=S(λv)=λSv. Hence Sv∈Eλ(T) by Definition 9.2.2. This shows that S maps Eλ(T) into itself.

No finite dimension is needed, and λ need not be an eigenvalue (then Eλ(T)={0} and there is nothing to prove). By symmetry, every eigenspace of S is T-invariant too.

In matrix language the theorem is a statement about block shapes. Take T=diag(1,1,2) on F3, with E1(T)=span(e1,e2) and E2(T)=span(e3), and let S be any matrix with ST=TS. Both eigenspaces are S-invariant, and F3=E1(T)⊕E2(T), so by Theorem 9.1.5 the matrix S is block diagonal: S=(s11s120s21s22000s33). Conversely, every matrix of this shape commutes with T, since T=I2⊕(2) and I2 commutes with every 2×2 block (Theorem 8.1.4). Inside the repeated eigenspace S can be anything; this freedom is what the rest of the section has to deal with.

Nonexample. Take T=diag(1,2) and the swap S=(0110). Then Se1=e2∉E1(T)=span(e1), so E1(T) is not S-invariant. The theorem is not contradicted: ST=(0210) and TS=(0120) differ.

Quick check. Let T=I2 and S=(1101) over R. Do S and T commute? Is every eigenvector of T an eigenvector of S? Do S and T have a common eigenvector?

Solution. Yes, I2 commutes with every 2×2 matrix. No: every nonzero vector is an eigenvector of I2, but Se2=(1,1) is not a multiple of e2. Yes: e1 is an eigenvector of both, for the eigenvalues 1 and 1. The theorem says S maps E1(T)=R2 into itself, which is true but empty of information; the common eigenvector must be searched for inside that eigenspace, and here it is an eigenvector of S.

9.9.3. A common eigenvector

Here is the plan for finding a common eigenvector of commuting S and T. Pick an eigenvalue λ of T and put U=Eλ(T)≠{0}. By Theorem 9.9.1, S restricts to an operator S|U on U. If S|U has an eigenvector u, then Su=μu and, since u∈U, also Tu=λu. So everything reduces to whether S|U has an eigenvalue. Over C it does (Theorem 9.2.4). Over a general field we need to know that the characteristic polynomial of a restriction splits when that of S does. We record this, together with the same fact for the induced operator on the quotient, since triangularization will need both.

Lemma 9.9.2 (Restrictions and Quotients Inherit Splitting)

Let V be a finite-dimensional vector space over F, let T∈L(V), and let U be a T-invariant subspace with {0}≠U≠V. If pT splits over F, then pT|U and pT¯ split over F, where T¯ is the induced operator on V/U.

Idea. Section 1 factors pT as pT|UpT¯, so the two factors can only have roots that pT has. A polynomial splits exactly when its root multiplicities add up to its degree (Theorem 6.4.3). Count: the multiplicities of the two factors add up to those of pT, which use up the whole degree; so neither factor can be short of its own degree.

Proof. By Theorem 9.1.3, pT=fg with f=pT|U and g=pT¯, both monic (Theorem 7.10.2). Let c1,…,ck be the distinct roots of pT in F. Every root of f or of g in F is a root of pT (Theorem 0.8.5), so it is among the ci, and a ci that is not a root of f has multci(f)=0. Hence, by Theorem 6.4.3 applied to f and to g, ∑i=1kmultci(f)≤deg⁡f,∑i=1kmultci(g)≤deg⁡g. Adding, and using Theorem 6.4.2 and then Theorem 6.4.3 for the split polynomial pT, deg⁡f+deg⁡g=deg⁡pT=∑i=1kmultci(pT)=∑i=1kmultci(f)+∑i=1kmultci(g)≤deg⁡f+deg⁡g. So both inequalities above are equalities, and f and g split over F by Theorem 6.4.3.

Now the common eigenvector. We prove it for a whole family of commuting operators at once, possibly infinite, since the proof costs no more and the next theorems need it. A family F⊆L(V) is commuting if ST=TS for all S,T∈F.

Theorem 9.9.3 (Commuting Operators Have a Common Eigenvector)

Let V≠{0} be a finite-dimensional vector space over F, and let F⊆L(V) be a nonempty commuting family such that pT splits over F for every T∈F. Then there is a nonzero v∈V that is an eigenvector of every T∈F. This applies to every commuting family when F=C.

Idea. For two operators, the plan above works: an eigenvector of S|U with U=Eλ(T). For many operators we would like to repeat it, shrinking U each time, and a family may be infinite. So we jump straight to the end of the shrinking: take a nonzero subspace W, invariant under the whole family, that is as small as possible. If some T∈F were not a scalar on W, an eigenspace of T|W would be a smaller such subspace. So every operator in the family is a scalar on W, and any nonzero vector of W is a common eigenvector.

Proof. Call a subspace F-invariant if it is T-invariant for every T∈F. The space V is a nonzero F-invariant subspace, so among all nonzero F-invariant subspaces there is one, W, of smallest dimension.

Let T∈F. Then T|W is an operator on W≠{0}, and pT|W splits: if W=V this is the hypothesis, and otherwise it is Lemma 9.9.2. Since pT|W is monic of degree dim⁡W≥1, it has a root λ∈F, which is an eigenvalue of T|W by Theorem 9.2.1. Put W′={w∈W:Tw=λw}=W∩Eλ(T), which is nonzero because it contains an eigenvector of T|W. For every S∈F, both W and Eλ(T) are S-invariant, the first by the choice of W and the second by Theorem 9.9.1; so W′ is S-invariant by Proposition 9.1.4. Hence W′ is a nonzero F-invariant subspace contained in W, and by the minimality of dim⁡W, dim⁡W′=dim⁡W. By Theorem 1.6.8, W′=W, that is, Tw=λw for every w∈W.

So every T∈F acts on W as multiplication by a scalar λT. Any nonzero v∈W then satisfies Tv=λTv for every T∈F, as claimed. Over C every characteristic polynomial splits (Corollary 6.5.5), so the hypothesis holds automatically.

The proof never had to name the eigenvalues. It found a subspace on which every operator of the family is a scalar, and the scalars came for free.

Warning. The splitting hypothesis cannot be dropped, and neither can commuting. Over R, the rotation R=(0−110) commutes with itself, yet the family {R} has no real eigenvector at all, since pR=x2+1 has no real root. Over C, the noncommuting pair E12,E21 has no common eigenvector, as we saw above.

9.9.4. Simultaneous triangularization

Section 7 triangularized one operator by splitting off an eigenvector and passing to the quotient. For a commuting family the same recursion works, because the eigenvector we split off can be chosen common to all.

Theorem 9.9.4 (Simultaneous Triangularization)

Let V be a finite-dimensional vector space over F with dim⁡V=n≥1, and let F⊆L(V) be a nonempty commuting family such that pT splits over F for every T∈F. Then there is one basis B of V such that [T]BB is upper triangular for every T∈F.

In particular, if A1,…,Ar∈Mn(C) commute pairwise, there is an invertible P∈Mn(C) such that P−1AiP is upper triangular for every i.

Idea. Take one common eigenvector, extend, recurse. ① Theorem 9.9.3 gives v1, an eigenvector of every T∈F, so U=span(v1) is invariant under the family. ② On V/U, the induced operators still commute, and their characteristic polynomials still split. ③ By induction on the dimension, one basis of V/U triangularizes all of them. ④ Lift it back and put v1 in front; the block triangular form of Section 1 does the rest.

Proof. We use induction on n. If n=1, every 1×1 matrix is upper triangular, so any basis works.

Let n≥2, and assume the theorem for spaces of dimension n−1. By Theorem 9.9.3 there is v1≠0 with Tv1=λTv1 for every T∈F. Let U=span(v1); it is T-invariant for every T∈F (Proposition 9.1.2), and {0}≠U≠V since dim⁡U=1<n. For T∈F let T¯ be the induced operator on V/U (Definition 9.1.2), and put F¯={T¯:T∈F}.

The family F¯ is commuting: for S,T∈F and v∈V, S¯T¯(v+U)=S¯(Tv+U)=STv+U=TSv+U=T¯S¯(v+U). Each pT¯ splits by Lemma 9.9.2, and dim⁡V/U=n−1 by Theorem 4.4.5. By the induction hypothesis there are w2,…,wn∈V such that B¯=(w2+U,…,wn+U) is a basis of V/U in which every [T¯]B¯B¯ is upper triangular.

Let B=(v1,w2,…,wn). It is linearly independent: if a1v1+a2w2+⋯+anwn=0, then passing to V/U, where v1+U is the zero coset, gives a2(w2+U)+⋯+an(wn+U)=0, so a2=⋯=an=0 by the independence of B¯; then a1v1=0 with v1≠0 gives a1=0. A linearly independent list of length n=dim⁡V is a basis (Theorem 1.6.4). Now B is a basis of U extended to a basis of V, and B¯ is exactly the list of cosets in Theorem 9.1.3. Hence for every T∈F, [T]BB=(λT∗0[T¯]B¯B¯), with a 1×1 upper-left block, a zero column below it, and an upper triangular lower-right block. Such a matrix is upper triangular. This completes the induction.

For the matrix statement, apply this to the family {TA1,…,TAr} on Cn, whose characteristic polynomials split by Corollary 6.5.5, and let P have the vectors of B as columns; then P−1AiP=[TAi]BB (Theorem 4.2.3).

A first use: if S and T commute and both characteristic polynomials split, the diagonal entries of [S+T]BB and [ST]BB are the sums and products of the diagonal entries of [S]BB and [T]BB, position by position. For the sum this is entrywise; for the product, the (i,i)-entry of XY is ∑kxikyki (Definition 0.9.9), and when X and Y are upper triangular only k=i can contribute, since xik=0 for k<i and yki=0 for k>i. By Theorem 9.7.4, those diagonal entries are the eigenvalues. So the eigenvalues of S+T are of the form λ+μ, with λ an eigenvalue of S and μ one of T, paired by position in a common triangular form. Section 2 warned that nothing like this holds without commuting.

9.9.5. Simultaneous diagonalization

Diagonalization is the stronger wish, and it needs a stronger hypothesis: each operator must be diagonalizable on its own. The name for the goal:

Definition 9.9.1 (Simultaneously Diagonalizable)

Let V be finite-dimensional. A family F⊆L(V) is simultaneously diagonalizable if there is one basis B of V such that [T]BB is diagonal for every T∈F. Matrices A1,…,Ar∈Mn(F) are simultaneously diagonalizable over F if there is one invertible P∈Mn(F) with every P−1AiP diagonal.

Equivalently, by the unwinding in Section 4, V has a basis whose vectors are eigenvectors of every T∈F. The opening of this section showed that a simultaneously diagonalizable family is commuting. For diagonalizable operators the converse holds.

Theorem 9.9.5 (Simultaneous Diagonalization)

Let V be a finite-dimensional vector space over F with dim⁡V≥1, and let S,T∈L(V) be diagonalizable. Then S and T are simultaneously diagonalizable if and only if ST=TS.

For matrices: if A,B∈Mn(F) are diagonalizable over F, there is an invertible P∈Mn(F) with P−1AP and P−1BP both diagonal if and only if AB=BA.

Idea. Split V into the eigenspaces of T. On each piece T is a scalar, so any basis of the piece consists of eigenvectors of T; we are free to choose it to suit S. The piece is S-invariant because S commutes with T, and S restricted to it is diagonalizable because S is (Section 8). So each piece has a basis of eigenvectors of S, and gluing these bases together gives the common basis.

Proof. (⇒) Let B be a basis with [S]BB and [T]BB diagonal. Diagonal matrices commute, so by Corollary 4.1.3, [ST]BB=[S]BB[T]BB=[T]BB[S]BB=[TS]BB. The map R↦[R]BB is injective (Theorem 4.1.4), so ST=TS.

(⇐) Suppose ST=TS. Let λ1,…,λk be the distinct eigenvalues of T, and put Ui=Eλi(T). Since T is diagonalizable, Theorem 9.4.1 (c) gives V=U1⊕⋯⊕Uk. Each Ui is S-invariant (Theorem 9.9.1), and S is diagonalizable, so S|Ui is diagonalizable by Corollary 9.8.3. Hence Ui has a basis Bi of eigenvectors of S|Ui (Theorem 9.4.1 (b)), which are eigenvectors of S. They are also eigenvectors of T, being nonzero vectors of Ui=Eλi(T). Let B be the list B1,…,Bk. Since the sum is direct, B is a basis of V by Theorem 1.7.5 ((a) ⇒ (d)). Every vector of B is an eigenvector of both S and T, so [S]BB and [T]BB are diagonal (Theorem 9.4.1, (a) ⇔ (b)).

For matrices, apply this to TA and TB on Fn, which are diagonalizable because A and B are (Definition 9.4.1), and commute because AB=BA; let P have the common eigenvectors as columns, as in Section 4.

The proof is also an algorithm. Diagonalize A; in each eigenspace of A of dimension at least 2, write down the matrix of B restricted to it and diagonalize that small matrix; eigenspaces of dimension 1 need no work, since their basis vector is automatically an eigenvector of B.

Example (Diagonalizing Two Commuting Matrices Together)

Let A=(100−212−203),B=(1−220100−23)∈M3(R). Check that AB=BA, and find an invertible P such that P−1AP and P−1BP are both diagonal.

Solution. They commute. Multiplying out, AB=(1−22−212−2−25)=BA.

Diagonalize A. Expanding det(xI−A) along the first row, whose only nonzero entry is x−1, pA(x)=(x−1)det(x−1−20x−3)=(x−1)2(x−3). For λ=1, A−I=(000−202−202) has rank 1 and reduces to x=z, so E1(A) is the plane with basis u1=(0,1,0), u2=(1,0,1). For λ=3, A−3I=(−200−2−22−200) gives x=0 and y=z, so E3(A)=span((0,1,1)). Since g(1)=2=a(1) and g(3)=1=a(3), A is diagonalizable. The same computation for B gives pB=(x−1)2(x−3), with B−I=(0−220000−22) of rank 1 and B−3I of rank 2, so B is diagonalizable as well.

A basis of eigenvectors of A need not work for B: Bu1=(−2,1,−2) is not a multiple of u1. This is where the search inside the eigenspace comes in.

The one-dimensional eigenspace. E3(A) is B-invariant (Theorem 9.9.1) and one-dimensional, so v3=(0,1,1) is an eigenvector of B: indeed Bv3=(0,1,1)=1⋅v3.

The plane E1(A). It is B-invariant, and Bu1=(−2,1,−2)=u1−2u2,Bu2=(3,0,3)=3u2. So the matrix of B|E1(A) in the basis (u1,u2) is M=(10−23), whose columns are the coordinates just found. It is lower triangular with eigenvalues 1 and 3. From M−I=(00−22) the eigenvector is (1,1), which stands for u1+u2=(1,1,1); from M−3I=(−20−20) it is (0,1), which stands for u2=(1,0,1).

The common basis. Put v1=(1,0,1), v2=(1,1,1), v3=(0,1,1) as columns: P=(110011111),P−1AP=diag(1,1,3),P−1BP=diag(3,1,1). Check. Av1=v1, Av2=v2, Av3=(0,3,3)=3v3; Bv1=(3,0,3)=3v1, Bv2=v2, Bv3=v3. Expanding along the first row, detP=1(1−1)−1(0−1)+0=1≠0, so P is invertible, with P−1=(0−1111−1−101).

Notice that neither matrix alone determines P: A cannot tell v1 from v2, and B cannot tell v2 from v3. Together they pin down all three lines.

Warning. Commuting does not make an operator diagonalizable. The theorem assumes that both S and T are diagonalizable. J=(1101) commutes with I2, and I2 is diagonal, but J is not diagonalizable (Section 4), so no basis makes both diagonal. What survives is Theorem 9.9.4: J and I2 are already upper triangular together.

The theorem extends from two operators to any number, and even to infinitely many. An infinite family looks hopeless for an induction, but it lives inside the finite-dimensional space L(V), so finitely many of its members already span everything the family spans.

Theorem 9.9.6 (Simultaneous Diagonalization of a Commuting Family)

Let V be a finite-dimensional vector space over F with dim⁡V≥1, and let F⊆L(V) be a family of diagonalizable operators. Then F is simultaneously diagonalizable if and only if it is commuting.

Idea. ① Finite first. For finitely many commuting diagonalizable T1,…,Tr, induct on r: split V into eigenspaces of T1, and on each piece apply the case r−1 to the restrictions of T2,…,Tr. ② Reduce to finite. A longest linearly independent list T1,…,Tr taken from F spans every member of F, and has length at most dim⁡L(V). ③ A basis that diagonalizes T1,…,Tr diagonalizes every linear combination of them.

Proof. (⇒) If one basis makes every [T]BB diagonal, any two of these matrices commute, and the argument of Theorem 9.9.5 (⇒) gives ST=TS for all S,T∈F.

(⇐) Suppose F is commuting. If F is empty, any basis works; assume not.

Step 1: finitely many operators. We prove by induction on r≥1: for every nonzero finite-dimensional space W and all pairwise commuting diagonalizable T1,…,Tr∈L(W), some basis of W consists of eigenvectors of every Ti. For r=1 this is Theorem 9.4.1. Let r≥2, and let λ1,…,λk be the distinct eigenvalues of T1, with Uj=Eλj(T1)≠{0}. By Theorem 9.4.1 (c), W=U1⊕⋯⊕Uk. Each Uj is Ti-invariant for every i (Theorem 9.9.1), each Ti|Uj is diagonalizable (Corollary 9.8.3), and the restrictions T2|Uj,…,Tr|Uj commute pairwise, since they agree with T2,…,Tr on Uj. By the induction hypothesis, Uj has a basis Bj of common eigenvectors of T2,…,Tr; they are eigenvectors of T1 too, as nonzero vectors of Uj. The list B1,…,Bk is a basis of W by Theorem 1.7.5 ((a) ⇒ (d)). This completes the induction.

Step 2: a finite spanning subfamily. Let N=dim⁡L(V)=(dim⁡V)2 (Theorem 4.1.4). Every linearly independent list in L(V) has length at most N (Theorem 1.6.5), so among the linearly independent lists of members of F there is one of greatest length, say (T1,…,Tr), with r≥1 because a single nonzero member is independent (if every member of F is 0, any basis works). For every T∈F, the list (T1,…,Tr,T) is longer, hence dependent, so T∈span(T1,…,Tr) by Lemma 1.5.3.

Step 3. By Step 1 there is a basis B of V with every [Ti]BB diagonal. For T∈F, write T=c1T1+⋯+crTr; then [T]BB=c1[T1]BB+⋯+cr[Tr]BB (Corollary 4.1.3), a linear combination of diagonal matrices, hence diagonal. So B diagonalizes every member of F.

A typical infinite family is {p(T):p∈F[x]} for a diagonalizable T. It is commuting, each p(T) is diagonalizable (Section 8), and here one basis works for the whole family without any of the theorem’s machinery, namely an eigenbasis of T: an eigenvector of T for λ is an eigenvector of p(T) for p(λ) (Exercise (B3: Eigenvalues of powers and inverses)). The theorem says the same for families that are not generated by one operator in so visible a way.

9.9.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the theorem relating commuting operators and eigenspaces.
  • (b) True or false: if ST=TS, then every eigenvector of T is an eigenvector of S. Justify your answer.
  • (c) True or false: any two commuting matrices in M2(R) have a common eigenvector in R2. Justify your answer.
  • (d) True or false: if A,B∈Mn(F) are simultaneously diagonalizable, then AB=BA. Justify your answer.
  • (e) True or false: if AB=BA and A is diagonalizable, then B is diagonalizable. Justify your answer.
  • (f) In the proof of Theorem 9.9.5, which hypothesis makes each eigenspace of T invariant under S, and which makes the restriction of S diagonalizable?

Solution.

  • (a) If S,T∈L(V) and ST=TS, then Eλ(T) is S-invariant for every λ∈F (Theorem 9.9.1).

  • (b) False. T=I2 commutes with S=(1101); the vector e2 is an eigenvector of T, but Se2=(1,1) is not a multiple of e2.

  • (c) False. The rotation R=(0−110) commutes with itself and has no real eigenvector, since pR=x2+1 has no real root.

  • (d) True. If P−1AP=D and P−1BP=D′ are diagonal, then AB=PDP−1PD′P−1=PDD′P−1=PD′DP−1=BA, since diagonal matrices commute.

  • (e) False. A=I2 is diagonalizable and commutes with B=(1101), which is not diagonalizable.

  • (f) The hypothesis ST=TS gives the invariance (Theorem 9.9.1). The hypothesis that S is diagonalizable gives, through Corollary 9.8.3, that S|Eλ(T) is diagonalizable.

B. Practice

Exercise (B1: Common eigenvectors)

Let A=(1000101−12),B=(210−1402−25)∈M3(R).

  • (a) Verify that AB=BA.
  • (b) Find every common eigenvector of A and B.
  • (c) Hence show that A and B are not simultaneously diagonalizable, and explain which hypothesis of Theorem 9.9.5 fails.

Solution.

  • (a) Multiplying out, AB=(210−1407−710)=BA. For instance, the (3,1)-entry of AB is row (1,−1,2) of A times column (2,−1,2) of B, namely 2+1+4=7, and that of BA is row (2,−2,5) of B times column (1,0,1) of A, namely 2+0+5=7.

  • (b) A is lower triangular, so pA=(x−1)2(x−2). A−I=(0000001−11) has rank 1, so E1(A)={(x,y,z):x−y+z=0} with basis u1=(1,1,0), u2=(−1,0,1). A−2I=(−1000−101−10) gives E2(A)=span(e3).

    A common eigenvector is an eigenvector of A, so it lies in E1(A) or E2(A), and it must be an eigenvector of B there. On the line E2(A): Be3=(0,0,5)=5e3, so every nonzero multiple of e3 is a common eigenvector. On the plane E1(A), which is B-invariant by Theorem 9.9.1: Bu1=(3,3,0)=3u1,Bu2=(−2,1,3)=u1+3u2. So in the basis B=(u1,u2), [B|E1(A)]BB=(3103). Its only eigenvalue is 3, and its eigenvectors are the nonzero multiples of (1,0), that is, of u1. Hence the common eigenvectors are exactly the nonzero multiples of (1,1,0) and the nonzero multiples of (0,0,1).

  • (c) By (b), any list of common eigenvectors lies in span((1,1,0),e3), a plane, so no three of them form a basis of R3. Hence no basis diagonalizes both. The failing hypothesis is that B is diagonalizable: pB=(x−3)2(x−5) (from the block computation, pB=pB|E1(A)pB¯, or directly), and B−3I=(−110−1102−22) has rank 2, so gB(3)=1<2=aB(3).
Exercise (B2: Decide simultaneous diagonalizability)

For each pair of real matrices, determine whether they are simultaneously diagonalizable over R. If they are, find a suitable P. Justify your answer.

  • (a) A=(1221), B=(0110).
  • (b) A=(1102), B=(1002).
  • (c) A=(2002), B=(2102).

Solution.

  • (a) Yes. AB=(2112)=BA. Both are diagonalizable: A has pA=x2−2x−3=(x−3)(x+1) and B has pB=x2−1=(x−1)(x+1), each with distinct eigenvalues (Corollary 9.4.2). By Theorem 9.9.5 a common P exists. The eigenspaces of A are lines, so their spanning vectors (1,1) and (1,−1) work: P=(111−1), P−1AP=diag(3,−1), P−1BP=diag(1,−1), since B(1,1)=(1,1) and B(1,−1)=(−1,1).

  • (b) No. Both are diagonalizable (distinct eigenvalues 1,2), but AB=(1204)≠(1104)=BA, so by Theorem 9.9.5 (⇒) no common P exists.

  • (c) No. They commute, since A=2I. But B is not diagonalizable: pB=(x−2)2 and B−2I has rank 1, so g(2)=1<2. If P−1BP were diagonal, B would be diagonalizable (Definition 9.4.1).

Exercise (B3: Matrices commuting with a diagonal matrix)
  • (a) Let D=diag(1,2,3)∈M3(R). Prove that a matrix B∈M3(R) commutes with D if and only if B is diagonal.
  • (b) Let D′=diag(1,1,2)∈M3(R). Describe all B∈M3(R) with BD′=D′B, and find one that is not diagonalizable.

Solution.

  • (a) (⇐) Diagonal matrices commute. (⇒) Suppose BD=DB. The eigenspaces of D are E1(D)=span(e1), E2(D)=span(e2), and E3(D)=span(e3). By Theorem 9.9.1 each is B-invariant, so Bej∈span(ej) for each j. The j-th column of B is Bej, so it has zeros off the diagonal, and B is diagonal. (Directly: (DB)ij=ibij and (BD)ij=bijj, so (i−j)bij=0, and bij=0 for i≠j.)

  • (b) As computed in the text for diag(1,1,2), BD′=D′B exactly when B=(b11b120b21b22000b33) with arbitrary entries: E1(D′)=span(e1,e2) and E2(D′)=span(e3) are B-invariant, which by Theorem 9.1.5 forces this shape, and conversely D′=I2⊕(2) commutes with every such block matrix (Theorem 8.1.4). For example B=(110010000) commutes with D′, and it is not diagonalizable: pB=x(x−1)2 and B−I has rank 2, so g(1)=1<2=a(1).

C. Going deeper

Exercise (C1: The commutant of a matrix with distinct eigenvalues)

Let A∈Mn(F), n≥1, have n distinct eigenvalues λ1,…,λn∈F.

  • (a) Prove that if AB=BA, then B is diagonalizable and every eigenvector of A is an eigenvector of B.
  • (b) Prove that if AB=BA, then B=q(A) for some q∈F[x] of degree at most n−1.
  • (c) Deduce that {B∈Mn(F):AB=BA} is a subspace of Mn(F) of dimension n, with basis (I,A,…,An−1).

Hint: for (b), use Lagrange interpolation.

Solution.

  • (a) By Corollary 9.4.2, A is diagonalizable, say P−1AP=D with D diagonal. A diagonal matrix is upper triangular, so its diagonal entries are the eigenvalues of A, each occurring as often as its algebraic multiplicity (Theorem 9.7.4 (b)); here there are n distinct eigenvalues and n diagonal places, so each occurs once, and after permuting the columns of P and the diagonal entries of D together we may assume D=diag(λ1,…,λn). Let vi be column i of P. Each Eλi(A) has dimension at least 1, and the dimensions add up to at most n (Corollary 9.2.3), so each has dimension exactly 1 and Eλi(A)=span(vi). Every eigenvector of A for λi is a nonzero multiple of vi. By Theorem 9.9.1, Bvi∈span(vi), so Bvi=μivi for some μi∈F, and vi, with every nonzero multiple of it, is an eigenvector of B. The columns of P form a basis of eigenvectors of B, so P−1BP=diag(μ1,…,μn) and B is diagonalizable.

  • (b) The nodes λ1,…,λn are distinct, so by Theorem 6.6.1 there is q∈F[x] with deg⁡q≤n−1 and q(λi)=μi for every i. By Theorem 9.4.3, q(A)=Pdiag(q(λ1),…,q(λn))P−1=Pdiag(μ1,…,μn)P−1=B.

  • (c) If AB=BA and AB′=B′A, then A(cB+B′)=cBA+B′A=(cB+B′)A, and AO=OA; so the set C is a subspace. Each Ak commutes with A, so span(I,A,…,An−1)⊆C, and (b) gives the reverse inclusion. For independence, let c0I+c1A+⋯+cn−1An−1=O and put q=∑kckxk. By Theorem 9.4.3, O=q(A)=Pdiag(q(λ1),…,q(λn))P−1, so q(λi)=0 for all i. A polynomial of degree at most n−1 with n distinct roots is zero (Corollary 6.1.4), so every ck=0. Hence (I,A,…,An−1) is a basis of C, and dim⁡C=n.

Exercise (C2: Commuting nilpotent matrices)

Recall that N∈Mn(F) is nilpotent if Na=O for some a≥1 (Exercise (C2: Nilpotent operators)). Let N,M∈Mn(F) with NM=MN, Na=O, and Mb=O for some a,b≥1.

  • (a) Prove that NM is nilpotent.
  • (b) Prove that (N+M)a+b−1=O, so that N+M is nilpotent.
  • (c) Show that both conclusions can fail without NM=MN.
  • (d) Now let F=C. Give a second proof of (b) using Theorem 9.9.4.

Hint: for (b), expand the power as a sum of products of a+b−1 factors, each equal to N or M.

Solution.

  • (a) Since NM=MN, induction on k gives (NM)k=NkMk: if it holds for k, then (NM)k+1=NkMkNM=NkNMkM=Nk+1Mk+1, where MkN=NMk follows from MN=NM by induction as well. With k=a, (NM)a=NaMa=O⋅Ma=O.

  • (b) Let s=a+b−1. By distributivity, (N+M)s is the sum of all 2s products X1X2⋯Xs with each Xt∈{N,M}. Since N and M commute, each such product can be rearranged, one adjacent swap at a time, into NiMs−i, where i is the number of factors equal to N. If i≥a, then Ni=NaNi−a=O. If i≤a−1, then s−i≥s−a+1=b, so Ms−i=O. Either way the product is O, so (N+M)s=O.

  • (c) Let N=E12 and M=E21 in M2(F). Both square to O. But NM=E11 satisfies E11k=E11≠O for all k≥1, and N+M=(0110) satisfies (N+M)2=I, so (N+M)k is I or N+M, never O. Neither is nilpotent, and indeed NM=E11≠E22=MN.

  • (d) By Theorem 9.9.4 there is an invertible P∈Mn(C) with U=P−1NP and U′=P−1MP upper triangular. Since N is nilpotent, spec(N)={0} (Exercise (C2: Nilpotent operators)), so every diagonal entry of U is 0 by Theorem 9.7.4; likewise for U′. So U+U′=P−1(N+M)P is upper triangular with zero diagonal. A matrix X of this kind is nilpotent: Xe1=0 and Xej∈span(e1,…,ej−1), so by induction Xjej=0 and Xn=O. Hence (N+M)n=P(U+U′)nP−1=O.

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.