8.5  Commutators and Trace-Zero Matrices

The expression AB−BA has come up several times already. In Chapter 0 its trace was 0, which showed that AB−BA=In is impossible over R (Exercise (C1: AB−BA=I is impossible, or is it?)). In Chapter 2 the same trace argument showed that the relation DS−SD=id between differentiation and multiplication by x on F[x] has no finite-dimensional analogue in characteristic 0 (Exercise (C1: The Heisenberg relation)). Both arguments use one direction only: every matrix of the form AB−BA has trace zero. This section asks whether the converse holds. Is every trace-zero matrix of the form AB−BA? The answer is yes over a field of characteristic 0, and the proof is a good example of the block techniques of this chapter: move the matrix into a convenient shape by a similarity, one row and column at a time, and then solve an equation that has become entrywise.

Which fields. Commutators, their basic rules, the first similarity lemma, and the final theorem on spans work over every field F. The lemma on zero diagonals and Shoda’s theorem assume that F has characteristic 0. We point out exactly where that hypothesis is used, and what happens in characteristic p.

8.5.1. Commutators

Two matrices A and B commute when AB=BA, and most pairs do not. The difference AB−BA measures the failure, and it keeps recurring: in the trace arguments above, in the relation between differentiation and multiplication by x, and in the description of trace-like functionals (Exercise (C2: The trace is the only trace-like functional)). So we give it a name.

The commutator of two matrices is the amount by which they fail to commute.

Definition 8.5.1 (Commutator)

Let n≥1 and A,B∈Mn(F). The commutator of A and B is [A,B]:=AB−BA∈Mn(F). A matrix C∈Mn(F) is a commutator if C=[X,Y] for some X,Y∈Mn(F). For operators S,T∈L(V) on a vector space V, we write likewise [S,T]:=ST−TS∈L(V).

In words: [A,B] is “A then B” minus “B then A”, in that order, and it is the zero matrix exactly when A and B commute. The second sentence of the definition is about a single matrix: being a commutator means that there exist two matrices whose commutator it is, and it says nothing about which ones.

Examples.

  1. Degenerate cases. [A,A]=O and [A,cIn]=cA−cA=O for every c∈F. So the zero matrix is a commutator, in many ways. In M1(F)=F every commutator is ab−ba=0, so for n=1 the only commutator is 0; this is the smallest case, and it already matches the trace condition, since the only 1×1 matrix of trace 0 is O1.
  2. Matrix units. Recall that EijEkl is Eil if j=k and O otherwise (Definition 0.9.9). So for i≠k, [Eij,Ejk]=Eik−O=Eik,and[Eij,Eji]=Eii−Ejj(i≠j). For instance [E12,E21]=diag(1,−1) in M2(F), and [E11,E12]=E12. Both have trace 0.
  3. Operators on an infinite-dimensional space. On F[x], with D differentiation and S multiplication by x, Exercise (C1: The Heisenberg relation) (a) shows [D,S]=id. So the identity is a commutator of operators on F[x]. This does not contradict anything, because there is no trace on L(F[x]): the trace was defined only on finite-dimensional spaces (Definition 4.5.2).

Nonexample by minimal change. Change the minus sign to a plus: AB+BA. It is still linear in A and in B, and it is still built from the two products AB and BA. What is lost is the trace: tr(AB+BA)=2tr(AB), which has no reason to vanish. For example E12E21+E21E12=E11+E22=I2, with trace 2. It also no longer detects commuting: AA+AA=2A2 is nonzero for A=In over Q, although A commutes with itself.

Why this definition. The order in AB−BA is a convention; the other order gives [B,A]=−[A,B], which is a commutator too. The notion is invariant under a change of basis: a similarity applied to X and Y applies to [X,Y]. So “being a commutator” is a property of the operator x↦Cx, not of the basis used to write C, and we are free to choose a convenient basis. This is what the proof of the main theorem exploits.

The basic rules are collected here.

Proposition 8.5.1 (Rules for Commutators)

Let A,A′,B∈Mn(F), c∈F, and let P∈Mn(F) be invertible. Then:

  • (a) [A+A′,B]=[A,B]+[A′,B], [cA,B]=c[A,B], and [B,A]=−[A,B]; in particular the commutator is linear in each slot.
  • (b) P−1[A,B]P=[P−1AP,P−1BP].
  • (c) tr[A,B]=0.

Proof.

  • (a) By Theorem 0.9.4, (A+A′)B−B(A+A′)=(AB−BA)+(A′B−BA′) and (cA)B−B(cA)=c(AB−BA). The last identity is BA−AB=−(AB−BA). Linearity in the second slot follows from the first slot and antisymmetry.

  • (b) Inserting PP−1=In, P−1ABP=(P−1AP)(P−1BP), and likewise for BA. Subtract, using distributivity.

  • (c) By Theorem 0.9.6 (1) and (3), tr(AB−BA)=tr(AB)−tr(BA)=0.

So every commutator lies in the subspace of trace-zero matrices of Example (Trace-Free Matrices). The question of this section is whether it fills that subspace.

8.5.2. The identity in characteristic p

Rule (c) is the whole content of the Heisenberg exercises: if [X,Y]=In, then n⋅1=trIn=0, which is impossible when F has characteristic 0 (Definition 0.7.2). The obstruction is the number n⋅1, not the identity matrix itself. In characteristic p, the p×p identity has trace p⋅1=0, and the obstruction disappears. In fact the pair D,S of Example 3 survives in a finite form.

Example (The Identity as a Commutator in Characteristic p)

Let F have prime characteristic p (for instance F=Fp). Let Dp∈Mp(F) have (k,k+1)-entry k⋅1 for 1≤k≤p−1, and let Sp∈Mp(F) have (k+1,k)-entry 1 for 1≤k≤p−1, all other entries 0. Show that [Dp,Sp]=Ip.

Solution. The columns of these matrices describe differentiation and multiplication by x on the list 1,x,…,xp−1, where xp is replaced by 0. By Theorem 0.9.2, Spek=ek+1 for k<p and Spep=0, while Dpe1=0 and Dpek=(k−1)ek−1 for k≥2. Hence DpSpek=kek (k<p),DpSpep=0,SpDpek=(k−1)ek (1≤k≤p), where for k=1 we used SpDpe1=0=0e1. Subtracting, [Dp,Sp]ek=ek for k<p, and [Dp,Sp]ep=−(p−1)ep=(1−p)ep=ep, because p⋅1=0 in F (Definition 0.7.2, Lemma 0.7.4). So every column of [Dp,Sp] is the corresponding column of Ip. For p=2 this is the pair of Exercise (C1: The Heisenberg relation) (d), transposed.

Warning. “The identity is never a commutator” is a statement about characteristic 0. The trace test says that a commutator has trace 0, and trIn=n⋅1. Over R this is n≠0; over Fp it is 0 whenever p divides n, and then the test is silent. The example above shows that Ip really is a commutator over Fp. Whenever an argument ends with “n⋅1=0, contradiction”, check which fields it covers.

8.5.3. Trace-zero matrices with zero diagonal

We want to write a given trace-zero A as [X,Y]. Look first at the easiest choice of X, a diagonal matrix X=diag(x1,…,xn). For any Y=(yij), Definition 0.9.9 gives (XY)ij=xiyij and (YX)ij=yijxj, so (∗)[X,Y]ij=(xi−xj)yij. The diagonal entries of [X,Y] are all 0, and each off-diagonal entry can be anything, provided xi≠xj. So a diagonal X with distinct entries produces exactly the matrices with zero diagonal. A trace-zero matrix need not have zero diagonal, but by Proposition 8.5.1 (b) we may replace A by any matrix similar to it. The plan is therefore:

① find a similarity that makes the diagonal of A zero; ② solve (∗) entrywise.

Step ① is the heart of the matter. We do it one diagonal entry at a time, starting with the (1,1)-entry.

A matrix is scalar if it equals λIn for some λ∈F. A scalar matrix is similar only to itself, since P−1(λIn)P=λIn, so its diagonal cannot be changed. Every other matrix can at least be given a zero in the corner. This first lemma holds over every field.

Lemma 8.5.2 (A Non-Scalar Matrix Has a Similar Matrix with Zero Corner)

Let F be any field, let n≥2, and let A∈Mn(F) be not scalar. Then there is an invertible P∈Mn(F) such that the first column of P−1AP is e2. In particular P−1AP=(0r⊤e1A1) for some r∈Fn−1 and A1∈Mn−1(F) with trA1=trA, where e1∈Fn−1.

Idea. Work backwards from the goal. The first column of P−1AP is the coordinate vector of Ap1 in the basis formed by the columns p1,…,pn of P. For it to be e2, we need Ap1=p2. So we want a vector v such that v and Av are independent, and then we build a basis starting v,Av. Such a v exists unless A sends every vector to a multiple of itself, and a short argument shows that this forces A to be scalar.

Proof. We first show that there is v∈Fn with (v,Av) linearly independent. Suppose not. Then for every v≠0 there are a,b∈F, not both zero, with av+bAv=0. If b=0, then a≠0 and av=0, which forces v=0 (Theorem 1.1.9), a contradiction; so b≠0 and Av=λvv with λv=−a/b. Apply this to ei, ej, and ei+ej for i≠j: λei+ejei+λei+ejej=A(ei+ej)=Aei+Aej=λeiei+λejej. Since ei,ej are linearly independent, comparing coefficients (Theorem 1.4.3) gives λei=λei+ej=λej. Hence all λei equal a common λ, so Aei=λei for every i, and by Theorem 0.9.2 the columns of A are those of λIn. So A=λIn is scalar, contrary to the hypothesis.

Take such a v. By Theorem 1.6.5, the independent list (v,Av) extends to a basis (v,Av,w3,…,wn) of Fn. Let P be the matrix with these columns; it is invertible by Theorem 3.4.4. Then Pe1=v and Pe2=Av (Theorem 0.9.3), so the first column of P−1AP is P−1APe1=P−1Av=P−1Pe2=e2. Partitioning P−1AP after the first row and column gives the displayed form. Finally, tr(P−1AP)=trA by Theorem 4.2.5, and tr(P−1AP)=0+trA1 by Definition 0.9.12, so trA1=trA.

Quick check. Over Q, let A=(210−2). Using v=e2 in the proof of Lemma 8.5.2, find P and P−1AP, and check that its diagonal is zero.

Solution. Ae2=(1,−2), which is not a multiple of e2, so (e2,Ae2) is independent and already a basis of Q2. Then P=(011−2), with detP=−1 and P−1=(2110). We get AP=(10−24) and P−1AP=(0410). The first column is e2, as the lemma promises; the (2,2)-entry is 0 as well, because the trace is 0 and trace is a similarity invariant.

The lemma controls one diagonal entry and hands us a smaller matrix A1 with the same trace. That is exactly the setting for induction on the size. The only thing that can stop the induction is a scalar A1, and here the trace saves us, provided the field has characteristic 0.

Lemma 8.5.3 (Trace Zero Means Similar to Zero Diagonal)

Let F be a field of characteristic 0, let n≥1, and let A∈Mn(F) with trA=0. Then A is similar to a matrix all of whose diagonal entries are 0.

Idea. Induction on n. If A is scalar, A=λIn with nλ=0, and characteristic 0 forces λ=0: then A=O already has zero diagonal. Otherwise, Lemma 8.5.2 puts a 0 in the corner and leaves a trace-zero block A1 of size n−1. The induction hypothesis conjugates A1 by some Q into zero diagonal. Conjugating the whole matrix by the block diagonal matrix (1)⊕Q does this to the lower block without disturbing the corner.

Proof. We use induction on n (Theorem 0.2.7). For n=1, A=(trA)=O1, which has zero diagonal.

Let n≥2, and assume the statement for trace-zero matrices of size n−1.

Case 1: A is scalar, say A=λIn. Then 0=trA=n⋅λ=(n⋅1)λ by Definition 0.9.12 and Lemma 0.7.4. Since F has characteristic 0 and n≥1, n⋅1≠0 (Definition 0.7.2), so λ=0. Hence A=O, which has zero diagonal and is similar to itself.

Case 2: A is not scalar. By Lemma 8.5.2 there is an invertible P with M:=P−1AP=(0r⊤e1A1),trA1=trA=0. By the induction hypothesis there is an invertible Q∈Mn−1(F) such that Z1:=Q−1A1Q has zero diagonal. Let R=(1)⊕Q=(10⊤0Q). By Theorem 8.1.4, R is invertible with R−1=(1)⊕Q−1. By Theorem 8.1.1, R−1MR=(10⊤0Q−1)(0r⊤e1A1)(10⊤0Q)=(0r⊤QQ−1e1Q−1A1Q)=(0r⊤QQ−1e1Z1). Its (1,1)-entry is 0, and its other diagonal entries are those of Z1, which are 0. Since R−1MR=(PR)−1A(PR) by Theorem 0.9.7 (3), and PR is invertible, A is similar to a matrix with zero diagonal. This completes the induction.

Remark. The characteristic was used only in Case 1, and only through k⋅1≠0 for the sizes k=2,…,n that the induction passes through. So the lemma holds, with the same proof, whenever F has characteristic 0 or characteristic p>n. Some hypothesis on the characteristic is needed: for n=p, over Fp, the matrix Ip has trace p⋅1=0, but it is scalar, so it is similar only to itself, and its diagonal entries are 1. The same happens for λIn with λ≠0 whenever p divides n.

8.5.4. Shoda’s theorem

With a zero diagonal available, the diagonal choice of X in (∗) finishes the job. All we need are n distinct scalars for the diagonal of X, and characteristic 0 provides them.

Theorem 8.5.4 (Shoda’s Theorem)

Let F be a field of characteristic 0, let n≥1, and let A∈Mn(F). Then A is a commutator, that is A=[X,Y] for some X,Y∈Mn(F), if and only if trA=0.

Idea. One direction is Proposition 8.5.1 (c). For the other: ① by Lemma 8.5.3, A=PZP−1 with Z of zero diagonal; ② take X0=diag(0,1,…,n−1), whose entries are distinct in characteristic 0; ③ solve [X0,Y0]=Z entrywise with (∗), dividing by xi−xj≠0; ④ conjugate back with Proposition 8.5.1 (b).

Proof. (⇒) If A=[X,Y], then trA=0 by Proposition 8.5.1 (c).

(⇐) Suppose trA=0. By Lemma 8.5.3 there is an invertible P such that Z=(zij):=P−1AP has zii=0 for all i.

For 1≤i≤n let xi:=(i−1)⋅1∈F, and X0:=diag(x1,…,xn). For i<j, Lemma 0.7.4 gives xj−xi=(j−i)⋅1, which is nonzero because j−i≥1 and F has characteristic 0 (Definition 0.7.2). So the xi are distinct, and we may define Y0=(yij)∈Mn(F) by yij:=zijxi−xj(i≠j),yii:=0. By (∗), [X0,Y0]ij=(xi−xj)yij=zij for i≠j, and [X0,Y0]ii=0=zii. Hence [X0,Y0]=Z.

Let X=PX0P−1 and Y=PY0P−1. Applying Proposition 8.5.1 (b) with the invertible matrix P−1, [X,Y]=[PX0P−1,PY0P−1]=P[X0,Y0]P−1=PZP−1=A. This proves that A is a commutator.

The proof used characteristic 0 twice: in the lemma, to rule out nonzero scalar blocks of trace zero, and here, to find n distinct diagonal entries. The second use needs only (j−i)⋅1≠0 for 1≤j−i≤n−1, and with the remark after Lemma 8.5.3, the same proof works whenever the characteristic of F is 0 or larger than n. Neither use is essential for the theorem. In fact the statement “a square matrix over a field is a commutator if and only if its trace is 0” is true over every field. The proof in positive characteristic needs a different normal form and more work, and we do not give it. Example (The Identity as a Commutator in Characteristic p) is a small instance: Ip over Fp is a commutator, although Lemma 8.5.3 fails for it.

The proof is constructive, and it is worth running once in full.

Example (Writing a Trace-Zero 3×3 Matrix as a Commutator)

Over Q, write A=(12001110−2) as a commutator [X,Y].

Solution. The trace is 1+1−2=0. We follow the proofs step by step.

First corner. A is not scalar. Take v=e1; then Av=(1,0,1) is not a multiple of e1. Extend (e1,Ae1) by e2, which is not in their span, to a basis, and let P1=(110001010),M=P1−1AP1=(0221−10011). (To check M without inverting, verify P1M=AP1: both equal (1120111−10).) The first column is e2, and the lower block is A1=(−1011), with trace 0.

Second corner. A1 is not scalar. With w=e1∈Q2, A1w=(−1,1) is independent of e1, so Q=(1−101),Q−1=(1101),Z1=Q−1A1Q=(0110).

Assemble. With r⊤=(2,2), the proof of Lemma 8.5.3 gives r⊤Q=(2,0) and Q−1e1=e1, so for P=P1((1)⊕Q), P=(11−100101−1),Z=P−1AP=(020101010),P−1=(10−1011010).

Solve entrywise. With X0=diag(0,1,2), the rule yij=zij/(xi−xj) gives y12=2−1=−2, y21=11=1, y23=1−1=−1, y32=11=1, and y13=y31=0: Y0=(0−2010−1010).

Conjugate back. X=PX0P−1 and Y=PY0P−1 are X=(0−110200−11),Y=(1−4−40111−2−2). Check: XY=(1−3−30221−3−3) and YX=(0−5−30110−3−1), and XY−YX=A.

Nothing about these X and Y is unique. Adding to Y any matrix that commutes with X, for instance a polynomial in X, gives another solution, by Proposition 8.5.1 (a).

8.5.5. The span of the commutators

Shoda’s theorem is about single commutators. A weaker question, with an easier answer that holds over every field, is which matrices are sums of commutators. Since the trace-zero matrices form a subspace and contain all commutators, the span of the commutators lies inside it. Matrix units show that it is all of it.

Theorem 8.5.5 (Commutators Span the Trace-Zero Matrices)

Let F be any field and n≥1. The span of all commutators [X,Y] with X,Y∈Mn(F) is the subspace {A∈Mn(F):trA=0}. More precisely, every trace-zero matrix is a linear combination of the commutators Eij=[Eii,Eij] (i≠j)andEii−Enn=[Ein,Eni] (1≤i≤n−1).

Proof. Let W={A∈Mn(F):trA=0}, a subspace by Example (Trace-Free Matrices). By Proposition 8.5.1 (c), every commutator lies in W, so their span is contained in W (Theorem 1.3.1, the span being the smallest subspace containing them).

For the reverse inclusion, the displayed identities hold by Example 2 after Definition 8.5.1: for i≠j, [Eii,Eij]=Eij, and for i<n, [Ein,Eni]=Eii−Enn. Now let A=(aij)∈W. Writing A in the basis of matrix units (Example (Standard Bases)) and using ann=−∑i<naii, A=∑i≠jaijEij+∑i=1n−1aiiEii+annEnn=∑i≠jaijEij+∑i=1n−1aii(Eii−Enn). So A is a linear combination of commutators, hence lies in their span. (For n=1, W={O} and both sides are {O}.)

The theorem lists n(n−1)+(n−1)=n2−1 commutators spanning the trace-zero matrices. Since tr:Mn(F)→F is surjective (tr(cE11)=c), the Rank–Nullity Theorem (Theorem 2.3.1) gives that its kernel has dimension n2−1, so by Theorem 1.6.4 (b) these commutators form a basis of it. Over a field of characteristic 0, Shoda’s theorem says much more: the sum of commutators produced here can always be collapsed into a single commutator. In general the set of commutators is not obviously closed under addition, and that is exactly what makes Shoda’s theorem a theorem.

Warning. The span of a set is not the set. Theorem 8.5.5 shows that every trace-zero matrix is a sum of commutators, over any field, by a two-line argument. It does not show that every trace-zero matrix is a commutator. For comparison, in M2(F) the matrices of rank at most 1 span everything (the four matrix units have rank 1), yet I2 has rank 2: a set can span a subspace without filling it. For commutators it happens that the set does fill the subspace, but the proof needs the similarity argument of Lemma 8.5.3, not just matrix units.

The span theorem gives a clean proof of a fact from Chapter 4: a linear functional φ on Mn(F) with φ(AB)=φ(BA) is a multiple of the trace. Such a φ kills every commutator, hence their span, which is the kernel of the trace; Exercise (C1: Trace-like functionals, again) below completes the argument.

8.5.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the commutator [A,B], and state what it means for a matrix to be a commutator.
  • (b) State Shoda’s theorem, including the hypothesis on the field.
  • (c) True or false: [A,B]=[B,A] for all A,B∈Mn(F). Justify your answer.
  • (d) True or false: over every field, every trace-zero matrix is similar to a matrix with zero diagonal. Justify your answer.
  • (e) Name the two places where the proof of Shoda’s theorem uses characteristic 0.
  • (f) Explain why Theorem 8.5.5 does not by itself prove Shoda’s theorem.

Solution.

  • (a) [A,B]=AB−BA (Definition 8.5.1). A matrix C∈Mn(F) is a commutator if C=[X,Y] for some X,Y∈Mn(F).

  • (b) If F has characteristic 0 and A∈Mn(F), then A=[X,Y] for some X,Y∈Mn(F) if and only if trA=0 (Theorem 8.5.4).

  • (c) False. [B,A]=−[A,B] (Proposition 8.5.1 (a)), so equality holds only when [A,B]=O. For example [E12,E21]=diag(1,−1) and [E21,E12]=diag(−1,1) over Q.

  • (d) False. Over F2, I2 has trace 1+1=0, but it is scalar, so every matrix similar to it equals P−1I2P=I2, whose diagonal entries are 1.

  • (e) In Lemma 8.5.3, to conclude from (n⋅1)λ=0 that a trace-zero scalar matrix λIn is O; and in Theorem 8.5.4, to find n distinct scalars xi=(i−1)⋅1 so that we can divide by xi−xj.

  • (f) It says every trace-zero matrix is a linear combination of commutators. Shoda’s theorem says it is a single commutator. A sum of commutators need not visibly be a commutator, since [X,Y]+[X′,Y′] has no evident expression as [X″,Y″].

B. Practice

Exercise (B1: A 2×2 commutator)

Over Q, let A=(3−21−3).

  • (a) Using v=e1 as in Lemma 8.5.2, find an invertible P such that Z=P−1AP has zero diagonal.
  • (b) With X0=diag(0,1), find Y0 with [X0,Y0]=Z.
  • (c) Hence write A=[X,Y], and check your answer by multiplying out.

Solution.

  • (a) trA=0, and Ae1=(3,1) is not a multiple of e1, so (e1,Ae1) is a basis of Q2. Let P=(1301), so P−1=(1−301). Then AP=(3710) and Z=P−1AP=(0710). The first column is e2 by Lemma 8.5.2, and the (2,2)-entry is 0 because the trace is 0.

  • (b) By (∗), [X0,Y]12=(0−1)y12 and [X0,Y]21=(1−0)y21, while the diagonal of [X0,Y] is zero. So y12=−7, y21=1, and we may take y11=y22=0: Y0=(0−710).

  • (c) By the proof of Theorem 8.5.4, X=PX0P−1 and Y=PY0P−1: X=(0301)(1−301)=(0301),Y=(3−710)(1−301)=(3−161−3), using PX0=(0301) and PY0=(3−710). Check: XY=(3−91−3), YX=(0−700), and XY−YX=(3−21−3)=A.

Exercise (B2: A commutator over F2)

Work over F2, and let A=(1101).

  • (a) Show that trA=0 and that A is not scalar.
  • (b) Explain why v=e1 cannot be used in Lemma 8.5.2, and use v=e2 instead to find P with P−1AP of zero diagonal.
  • (c) The field F2 has exactly two elements. Use them as the diagonal of X0 to write A as a commutator, by hand.
  • (d) Explain why the same method cannot write I2∈M2(F2) as a commutator, and recall a pair X,Y that does.

Solution.

  • (a) trA=1+1=0 in F2. A has a nonzero off-diagonal entry, while every scalar matrix has zero off-diagonal entries.

  • (b) Ae1=e1, so (e1,Ae1) is dependent. With v=e2, Ae2=(1,1), which is not a multiple of e2, so (e2,Ae2) is a basis. Let P=(0111); since detP=−1=1, P−1=(1110) (check: PP−1=(1021)=I2 in F2). Then AP=(1011) and Z=P−1AP=(0110).

  • (c) Take X0=diag(0,1). By (∗), [X0,Y]12=(0−1)y12=y12 (as −1=1) and [X0,Y]21=y21. So Y0=(0110) gives [X0,Y0]=Z. Conjugating back, PX0=(0101) and PY0=(1011), so X=PX0P−1=(1010),Y=PY0P−1=(1101). Check: XY=(1111), YX=(2010)=(0010), so [X,Y]=(1101)=A. (Here Y=A: indeed [X,A]=A.)

  • (d) The method writes Z=P−1I2P as [X0,Y0] with X0 diagonal, and by (∗) such a commutator has zero diagonal. But I2 is scalar, so P−1I2P=I2 for every invertible P, and its diagonal entries are 1. So the method cannot start. Nevertheless I2 is a commutator: with X=(0010) and Y=(0100), [X,Y]=diag(−1,1)=I2 in F2 (Exercise (C1: The Heisenberg relation) (d), or Example (The Identity as a Commutator in Characteristic p) with p=2).

Exercise (B3: Commuting with a diagonal matrix)

Let F be any field, let d1,…,dn∈F be distinct, let D=diag(d1,…,dn), and define L:Mn(F)→Mn(F) by L(X)=[D,X].

  • (a) Show that L is linear.
  • (b) Prove that kerL is the set of diagonal matrices and imL is the set of matrices with zero diagonal.
  • (c) Check that your answer to (b) agrees with the Rank–Nullity Theorem.
  • (d) Hence decide whether (012304560)∈M3(Q) is a commutator with X=diag(1,2,3), and if so find Y.

Solution.

  • (a) By Proposition 8.5.1 (a), [D,X+X′]=[D,X]+[D,X′] and [D,cX]=c[D,X].

  • (b) By (∗), L(X)ij=(di−dj)xij. Since di−dj≠0 for i≠j, L(X)=O if and only if xij=0 for all i≠j, that is, X is diagonal. Every L(X) has zero diagonal. Conversely, if Z has zero diagonal, the matrix Y with yij=zij/(di−dj) for i≠j and yii=0 satisfies L(Y)=Z. So imL is exactly the set of zero-diagonal matrices.

  • (c) The diagonal matrices have basis E11,…,Enn, so nullityL=n. The zero-diagonal matrices have basis Eij (i≠j), so rankL=n2−n. Their sum is n2=dim⁡Mn(F), as Theorem 2.3.1 requires.

  • (d) Yes, since the matrix has zero diagonal and 1,2,3 are distinct. With d=(1,2,3), yij=zij/(di−dj) gives Y=(01−12−23104−152610)=(0−1−130−45260), and by (b), [diag(1,2,3),Y] is the given matrix.

C. Going deeper

Exercise (C1: Trace-like functionals, again)

Let F be any field, n≥1, and let φ:Mn(F)→F be linear with φ(AB)=φ(BA) for all A,B∈Mn(F).

  • (a) Prove that φ vanishes on every trace-zero matrix.
  • (b) Deduce that φ=ctr, where c=φ(E11).
  • (c) Suppose F has characteristic 0 and, in addition, φ(In)=n⋅1. Deduce that φ=tr.
  • (d) Show that the conclusion of (c) fails over Fp when n=p.

Hint: for (a), use Theorem 8.5.5.

Solution.

  • (a) For all X,Y, φ([X,Y])=φ(XY)−φ(YX)=0 by linearity and the hypothesis. So the kernel of φ, a subspace, contains every commutator, hence their span (Theorem 1.3.1), which is the set of trace-zero matrices by Theorem 8.5.5.

  • (b) Let A∈Mn(F). Since trE11=1, the matrix A−(trA)E11 has trace 0 (Theorem 0.9.6 (1)), so by (a) and linearity, 0=φ(A−(trA)E11)=φ(A)−(trA)φ(E11). Hence φ(A)=ctrA with c=φ(E11). This recovers Exercise (C2: The trace is the only trace-like functional) by a different route: the matrix-unit computations are now packaged in Theorem 8.5.5.

  • (c) By (b), n⋅1=φ(In)=ctrIn=c(n⋅1). Since F has characteristic 0, n⋅1≠0, so c=1 and φ=tr.

  • (d) Over Fp with n=p, take φ=0. It is linear, satisfies φ(AB)=0=φ(BA), and φ(Ip)=0=p⋅1. But φ≠tr, since trE11=1. The step that fails is canceling n⋅1=0 in (c).

Exercise (C2: When A commutes with [A,B])

Let F be a field of characteristic 0, let A,B∈Mn(F), put C=[A,B], and suppose that AC=CA. The goal is to prove that C is nilpotent, that is, Cs=O for some s≥1.

  • (a) Prove that Ck=[A,BCk−1] for every k≥1. Deduce that trCk=0 for every k≥1.
  • (b) Show that there are an integer s≥1 and g∈F[x] with g(0)≠0 such that Csg(C)=O.
  • (c) Let U=col(Cs) and r=dim⁡U, and suppose r≥1. Extend a basis of U to a basis of Fn, and let P be the matrix with these columns. Show that P−1CP=(D∗ON),D∈Mr(F), with Ns=O and g(D)=O.
  • (d) Write g=g0+xh with g0=g(0)≠0. Show that Ir is a linear combination of Ds,Ds+1,…,Dd for some d≥s, and use (a) to reach a contradiction.
  • (e) Conclude that Cs=O.

Hint: in (c), compare the columns of P−1CkP for k=1 and k=s with the coordinates of vectors of U; in (d), take traces.

Solution.

  • (a) First, Ck−1A=ACk−1 for all k≥1, by induction on k from CA=AC. Hence =ABCk−1−BCk−1A=ABCk−1−BACk−1=(AB−BA)Ck−1=Ck. By Proposition 8.5.1 (c), trCk=0.

  • (b) By Theorem 6.7.2 there is a nonzero f∈F[x] with f(C)=O. Let t≥0 be the largest integer with xt dividing f, and write f=xtg; then x∤g, so g(0)≠0 by Theorem 6.1.3. Put s=t+1≥1. By Theorem 0.9.9, Csg(C)=Cf(C)=O.

  • (c) Let P have columns p1,…,pn, where (p1,…,pr) is a basis of U; P is invertible by Theorem 3.4.4. For any k≥1, column j of P−1CkP is P−1(Ckpj), the vector c with Pc=Ckpj, that is, the coefficients of Ckpj in terms of p1,…,pn (Theorem 0.9.3). If y∈U, then y=Csz and Cy=Cs(Cz)∈U, so C maps U into U; hence for j≤r the vector Cpj is a combination of p1,…,pr, and column j of P−1CP has zeros below row r. This gives the block form. By Theorem 8.1.1 and induction on k, (P−1CP)k=(Dk∗ONk), and by Proposition 4.2.6 (c) this is P−1CkP; more generally P−1q(C)P=(q(D)∗Oq(N)) for every q∈F[x].

    For k=s, every vector Cspj lies in U, so every column of P−1CsP is zero below row r, and Ns=O. For q=g: for j≤r, pj∈U is Csz for some z, so g(C)pj=g(C)Csz=0 by (b) and Theorem 0.9.9. So the first r columns of P−1g(C)P are zero, and in particular g(D)=O.

  • (d) From g(D)=g0Ir+Dh(D)=O we get Ir=Dh1(D) with h1=−g0−1h. Since polynomials in D commute (Theorem 0.9.9), Ir=(Dh1(D))s=Dsh1(D)s=∑k=sdckDk for some ck∈F, as every term of xsh1(x)s has degree at least s. For k≥s, Nk=NsNk−s=O, so by (c), Theorem 4.2.5, and Definition 0.9.12, trCk=tr(P−1CkP)=trDk+trNk=trDk. Taking traces, r⋅1=trIr=∑k=sdcktrDk=∑k=sdcktrCk=0 by (a). But r≥1 and F has characteristic 0, so r⋅1≠0, a contradiction.

  • (e) By (d), r=0, so col(Cs)={0} and Cs=O. For example, with A=E12+E23 and B=diag(0,1,2) in M3(Q), C=[A,B]=E12+E23=A, which commutes with A, and indeed C3=O. In Chapter 9 the statement “trCk=0 for all k≥1 forces nilpotency in characteristic 0” becomes a statement about eigenvalues.

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.