Linear-Algebra-Done-Right · Unit 13 · Video 5 · Interactive Practice
Commuting Operators Share a Diagonalizing Basis
IKey Formulas
Formula
Statement
Hypotheses
ST=TS⟺M(S)M(T)=M(T)M(S)
Operators commute exactly when their matrices commute
S,T∈L(V), matrices with respect to one basis v1,…,vn of V
p(T)q(T)=(pq)(T)=(qp)(T)=q(T)p(T)
Polynomials in one operator commute; in particular (λI)T=λT=T(λI)
T∈L(V), p,q∈P(F)
T(E(λ,S))⊆E(λ,S)
Every eigenspace of S is invariant under T
ST=TS, λ∈F
one basis diagonalizes both ⟺ST=TS
Simultaneous diagonalizability
S,T∈L(V) both diagonalizable
Key Insight: On E(λ,S) the operator S is just λI, so every basis of that eigenspace works for S. Commuting makes T map E(λ,S) into itself, and there T is diagonalizable, so choose its eigenvectors. Putting these bases together over V=E(λ1,S)⊕⋯⊕E(λm,S) gives one basis for both.
IIOrder Usually Matters
Two 2×2 matrices commute exactly when AB−BA is the zero matrix.
IIIEigenspaces of S Are Invariant Under T
For S=(2112), does T keep each eigenline E(3,S) and E(1,S) inside itself?
IVChoosing One Basis for Both
S=diag(1,1,2) and T(x,y,z)=(y,x,3z) commute; which bases of R3 make both matrices diagonal?
💡 Any basis of the plane E(1,S) makes M(S) diagonal, but M(T) is diagonal too only when that plane's basis consists of eigenvectors of T∣E(1,S), nonzero multiples of (1,1,0) and (1,−1,0).
VQuiz Questions
Problem 1 · Which One Commutes?
Given:A=(1012). Find the matrix B with AB=BA.
✅ Correct!B=A+2I is a polynomial in A, so it commutes with A; indeed AB=BA=(3058).
❌ The products differ.AB=(1210) but BA=(0121).
❌ The products differ.AB=(2212) but BA=(1113).
❌ Diagonal does not mean it commutes with everything. Two diagonal matrices commute, but A is not diagonal: AB=(1024) while BA=(1014). Only scalar multiples of I commute with every matrix.
❌ Not quite. Compute AB and BA for each candidate and compare all four entries.
Show solution
Notice that (3014)=A+2I. With p(z)=z and q(z)=z+2, the multiplicative property gives p(A)q(A)=(pq)(A)=(qp)(A)=q(A)p(A), so A and A+2I commute. Directly:
Given:S,T∈L(R2) with M(S)=3I and M(T)=(0110) in the standard basis. They commute, since S=3I. Find a basis of R2 with respect to which both M(S) and M(T) are diagonal.
✅ Correct!E(3,S)=R2, so any basis makes M(S)=diag(3,3); the eigenvectors (1,1) and (1,−1) of T also give M(T)=diag(1,−1).
❌ That diagonalizes S only. In the standard basis M(T)=(0110), which is not diagonal: Te1=e2 is not a multiple of e1.
❌ (1,0) is not an eigenvector of T.T(1,0)=(0,1)=−(1,0)+(1,1), so in this basis M(T)=(−1101).
❌ One eigenvalue makes it easier, not harder.S and T are diagonalizable and commute, so the theorem guarantees a common diagonalizing basis. Here E(3,S) is all of R2, so any eigenvector basis of T works.
❌ Not quite. Every basis diagonalizes S=3I; look for eigenvectors of T.
Show solution
The only eigenvalue of S=3I is 3, and E(3,S)=R2. Every nonzero vector is an eigenvector of S, so M(S)=diag(3,3) with respect to every basis.
So the question is only which bases diagonalize T. Since T(x,y)=(y,x),
T(1,1)=(1,1),T(1,−1)=(−1,1)=−(1,−1),
so (1,1),(1,−1) is a basis of eigenvectors of T and M(T)=diag(1,−1). This is the proof of the theorem in miniature: inside the eigenspace E(3,S), choose a basis of eigenvectors of T.
The standard basis fails because Te1=e2, and (1,0),(1,1) fails because T(1,0)=(0,1) is not a multiple of (1,0).
Problem 3 · T on an Eigenspace of S
Given:S=(2013) and T=(1045), which commute. FindE(3,S) and the scalar by which T acts on it.
What is E(3, S)?
T restricted to E(3, S) equals which multiple of I?
✅ Correct!S(1,1)=(3,3), and T(1,1)=(5,5)=5(1,1) stays in E(3,S), as the invariance theorem promises.
❌ (0,1) is not an eigenvector of S.S(0,1)=(1,3), which is not a multiple of (0,1). Solve (S−3I)v=0 instead.
❌ That eigenspace belongs to 2.S(1,0)=(2,0)=2(1,0), so span((1,0))=E(2,S).
❌ Check the eigenvector.S(1,−1)=(1,−3) is not a multiple of (1,−1); solve (S−3I)(x,y)=(−x+y,0)=(0,0).
❌ 3 is the eigenvalue of S, not of T. Apply T itself: T(1,1)=(1+4,5)=(5,5).
❌ 1 is the entry in the top-left corner. That entry records Te1=e1, on the other eigenspace E(2,S). On E(3,S), T(1,1)=(5,5).
❌ Not quite. Compute T(1,1) and compare it with (1,1).
Show solution
Commuting:ST=(201315)=TS. (In fact T=4S−7I, a polynomial in S.)
Eigenspace:(S−3I)(x,y)=(−x+y,0), which is 0 exactly when y=x. So E(3,S)=span((1,1)).
T on it: by the invariance theorem T maps E(3,S) into itself, so T(1,1) is a multiple of (1,1):
T(1,1)=(1⋅1+4⋅1,5⋅1)=(5,5)=5(1,1).
Since E(3,S) is one-dimensional, T∣E(3,S)=5I.
Problem 4 · Diagonalize Both at Once
Given:S,T∈L(R2) with M(S)=(4213) and M(T)=(1210) in the standard basis. Find a basis that diagonalizes both, then M(T) in it.
Which basis diagonalizes both?
What is M(T) in that basis (in that order)?
✅ Correct!ST=TS, and (1,1), (1,−2) are eigenvectors of both: M(S)=diag(5,2) and M(T)=diag(2,−1).
❌ Neither matrix is diagonal there. In the standard basis the matrices are the given ones, and both have nonzero entries off the diagonal.
❌ (1,−1) is not an eigenvector of S.S(1,−1)=(3,−1)=(1,1)+2(1,−1), so in this basis M(S)=(5012), upper triangular but not diagonal.
❌ (1,2) is not an eigenvector of S.S(1,2)=(6,8), which is not a multiple of (1,2).
❌ Check the basis. Test each vector: is Sv a multiple of v, and is Tv?
❌ That is M(S).S(1,1)=5(1,1) and S(1,−2)=2(1,−2); for T compute T(1,1) and T(1,−2).
❌ The order is swapped. Column k of M(T) records Tuk: T(1,1)=2(1,1) comes first, then T(1,−2)=−(1,−2).
❌ Those are the diagonal entries in the standard basis. A change of basis changes the matrix; read the new diagonal from T(1,1) and T(1,−2).
❌ Not quite. Compute T(1,1) and T(1,−2).
Show solution
Step 1, commuting:
(4213)(1210)=(6842)=(1210)(4213),
so ST=TS (in fact T=S−3I).
Step 2, eigenvectors of S:S(1,1)=(5,5)=5(1,1) and S(1,−2)=(2,−4)=2(1,−2). Two eigenvalues on R2 make S diagonalizable with E(5,S)=span((1,1)) and E(2,S)=span((1,−2)).
Step 3, T on each eigenspace: each eigenspace is invariant under T and one-dimensional, so its basis vector is an eigenvector of T:
T(1,1)=(2,2)=2(1,1),T(1,−2)=(−1,2)=−(1,−2).
With respect to (1,1),(1,−2): M(S)=diag(5,2) and M(T)=diag(2,−1).