Linear-Algebra-Done-Right · Unit 13 · Video 5 · Interactive Practice

Commuting Operators Share a Diagonalizing Basis

IKey Formulas

FormulaStatementHypotheses
ST=TS  ⟺  M(S)M(T)=M(T)M(S)ST = TS \iff \mathcal{M}(S)\mathcal{M}(T) = \mathcal{M}(T)\mathcal{M}(S)Operators commute exactly when their matrices commuteS,T∈L(V)S, T \in \mathcal{L}(V), matrices with respect to one basis v1,…,vnv_1, \ldots, v_n of VV
p(T) q(T)=(pq)(T)=(qp)(T)=q(T) p(T)p(T)\,q(T) = (pq)(T) = (qp)(T) = q(T)\,p(T)Polynomials in one operator commute; in particular (λI)T=λT=T(λI)(\lambda I)T = \lambda T = T(\lambda I)T∈L(V)T \in \mathcal{L}(V), p,q∈P(F)p, q \in \mathcal{P}(\mathbf{F})
T(E(λ,S))⊆E(λ,S)T\big(E(\lambda, S)\big) \subseteq E(\lambda, S)Every eigenspace of SS is invariant under TTST=TSST = TS, λ∈F\lambda \in \mathbf{F}
one basis diagonalizes both   ⟺  ST=TS\iff ST = TSSimultaneous diagonalizabilityS,T∈L(V)S, T \in \mathcal{L}(V) both diagonalizable

Key Insight: On E(λ,S)E(\lambda, S) the operator SS is just λI\lambda I, so every basis of that eigenspace works for SS. Commuting makes TT map E(λ,S)E(\lambda, S) into itself, and there TT is diagonalizable, so choose its eigenvectors. Putting these bases together over V=E(λ1,S)⊕⋯⊕E(λm,S)V = E(\lambda_1, S) \oplus \cdots \oplus E(\lambda_m, S) gives one basis for both.

IIOrder Usually Matters

Two 2×22 \times 2 matrices commute exactly when AB−BAAB - BA is the zero matrix.

IIIEigenspaces of S Are Invariant Under T

For S=(2112)S = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}, does TT keep each eigenline E(3,S)E(3, S) and E(1,S)E(1, S) inside itself?

IVChoosing One Basis for Both

S=diag⁡(1,1,2)S = \operatorname{diag}(1, 1, 2) and T(x,y,z)=(y,x,3z)T(x, y, z) = (y, x, 3z) commute; which bases of R3\mathbf{R}^3 make both matrices diagonal?

💡 Any basis of the plane E(1,S)E(1, S) makes M(S)\mathcal{M}(S) diagonal, but M(T)\mathcal{M}(T) is diagonal too only when that plane's basis consists of eigenvectors of T∣E(1,S)T|_{E(1, S)}, nonzero multiples of (1,1,0)(1, 1, 0) and (1,−1,0)(1, -1, 0).

VQuiz Questions

Problem 1 · Which One Commutes?

Given: A=(1102)A = \begin{pmatrix} 1 & 1 \\ 0 & 2 \end{pmatrix}. Find the matrix BB with AB=BAAB = BA.

✅ Correct! B=A+2IB = A + 2I is a polynomial in AA, so it commutes with AA; indeed AB=BA=(3508)AB = BA = \begin{pmatrix} 3 & 5 \\ 0 & 8 \end{pmatrix}.
❌ The products differ. AB=(1120)AB = \begin{pmatrix} 1 & 1 \\ 2 & 0 \end{pmatrix} but BA=(0211)BA = \begin{pmatrix} 0 & 2 \\ 1 & 1 \end{pmatrix}.
❌ The products differ. AB=(2122)AB = \begin{pmatrix} 2 & 1 \\ 2 & 2 \end{pmatrix} but BA=(1113)BA = \begin{pmatrix} 1 & 1 \\ 1 & 3 \end{pmatrix}.
❌ Diagonal does not mean it commutes with everything. Two diagonal matrices commute, but AA is not diagonal: AB=(1204)AB = \begin{pmatrix} 1 & 2 \\ 0 & 4 \end{pmatrix} while BA=(1104)BA = \begin{pmatrix} 1 & 1 \\ 0 & 4 \end{pmatrix}. Only scalar multiples of II commute with every matrix.
❌ Not quite. Compute ABAB and BABA for each candidate and compare all four entries.
Show solution

Notice that (3104)=A+2I\begin{pmatrix} 3 & 1 \\ 0 & 4 \end{pmatrix} = A + 2I. With p(z)=zp(z) = z and q(z)=z+2q(z) = z + 2, the multiplicative property gives p(A)q(A)=(pq)(A)=(qp)(A)=q(A)p(A)p(A)q(A) = (pq)(A) = (qp)(A) = q(A)p(A), so AA and A+2IA + 2I commute. Directly:

A(A+2I)=(1102)(3104)=(3508)=(3104)(1102).A(A + 2I) = \begin{pmatrix} 1 & 1 \\ 0 & 2 \end{pmatrix}\begin{pmatrix} 3 & 1 \\ 0 & 4 \end{pmatrix} = \begin{pmatrix} 3 & 5 \\ 0 & 8 \end{pmatrix} = \begin{pmatrix} 3 & 1 \\ 0 & 4 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 0 & 2 \end{pmatrix}.

Each other candidate gives AB≠BAAB \neq BA:

  • (a) AB=(1120)AB = \begin{pmatrix} 1 & 1 \\ 2 & 0 \end{pmatrix}, BA=(0211)BA = \begin{pmatrix} 0 & 2 \\ 1 & 1 \end{pmatrix};
  • (b) AB=(2122)AB = \begin{pmatrix} 2 & 1 \\ 2 & 2 \end{pmatrix}, BA=(1113)BA = \begin{pmatrix} 1 & 1 \\ 1 & 3 \end{pmatrix};
  • (d) AB=(1204)AB = \begin{pmatrix} 1 & 2 \\ 0 & 4 \end{pmatrix}, BA=(1104)BA = \begin{pmatrix} 1 & 1 \\ 0 & 4 \end{pmatrix}.

Problem 2 · The Standard Basis Is Not Enough

Given: S,T∈L(R2)S, T \in \mathcal{L}(\mathbf{R}^2) with M(S)=3I\mathcal{M}(S) = 3I and M(T)=(0110)\mathcal{M}(T) = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} in the standard basis. They commute, since S=3IS = 3I. Find a basis of R2\mathbf{R}^2 with respect to which both M(S)\mathcal{M}(S) and M(T)\mathcal{M}(T) are diagonal.

✅ Correct! E(3,S)=R2E(3, S) = \mathbf{R}^2, so any basis makes M(S)=diag⁡(3,3)\mathcal{M}(S) = \operatorname{diag}(3, 3); the eigenvectors (1,1)(1, 1) and (1,−1)(1, -1) of TT also give M(T)=diag⁡(1,−1)\mathcal{M}(T) = \operatorname{diag}(1, -1).
❌ That diagonalizes SS only. In the standard basis M(T)=(0110)\mathcal{M}(T) = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, which is not diagonal: Te1=e2Te_1 = e_2 is not a multiple of e1e_1.
❌ (1,0)(1, 0) is not an eigenvector of TT. T(1,0)=(0,1)=−(1,0)+(1,1)T(1, 0) = (0, 1) = -(1, 0) + (1, 1), so in this basis M(T)=(−1011)\mathcal{M}(T) = \begin{pmatrix} -1 & 0 \\ 1 & 1 \end{pmatrix}.
❌ One eigenvalue makes it easier, not harder. SS and TT are diagonalizable and commute, so the theorem guarantees a common diagonalizing basis. Here E(3,S)E(3, S) is all of R2\mathbf{R}^2, so any eigenvector basis of TT works.
❌ Not quite. Every basis diagonalizes S=3IS = 3I; look for eigenvectors of TT.
Show solution

The only eigenvalue of S=3IS = 3I is 33, and E(3,S)=R2E(3, S) = \mathbf{R}^2. Every nonzero vector is an eigenvector of SS, so M(S)=diag⁡(3,3)\mathcal{M}(S) = \operatorname{diag}(3, 3) with respect to every basis.

So the question is only which bases diagonalize TT. Since T(x,y)=(y,x)T(x, y) = (y, x),

T(1,1)=(1,1),T(1,−1)=(−1,1)=−(1,−1),T(1, 1) = (1, 1), \qquad T(1, -1) = (-1, 1) = -(1, -1),

so (1,1),(1,−1)(1, 1), (1, -1) is a basis of eigenvectors of TT and M(T)=diag⁡(1,−1)\mathcal{M}(T) = \operatorname{diag}(1, -1). This is the proof of the theorem in miniature: inside the eigenspace E(3,S)E(3, S), choose a basis of eigenvectors of TT.

The standard basis fails because Te1=e2Te_1 = e_2, and (1,0),(1,1)(1, 0), (1, 1) fails because T(1,0)=(0,1)T(1, 0) = (0, 1) is not a multiple of (1,0)(1, 0).

Problem 3 · T on an Eigenspace of S

Given: S=(2103)S = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix} and T=(1405)T = \begin{pmatrix} 1 & 4 \\ 0 & 5 \end{pmatrix}, which commute. Find E(3,S)E(3, S) and the scalar by which TT 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)S(1, 1) = (3, 3), and T(1,1)=(5,5)=5(1,1)T(1, 1) = (5, 5) = 5(1, 1) stays in E(3,S)E(3, S), as the invariance theorem promises.
❌ (0,1)(0, 1) is not an eigenvector of SS. S(0,1)=(1,3)S(0, 1) = (1, 3), which is not a multiple of (0,1)(0, 1). Solve (S−3I)v=0(S - 3I)v = 0 instead.
❌ That eigenspace belongs to 22. S(1,0)=(2,0)=2(1,0)S(1, 0) = (2, 0) = 2(1, 0), so span⁡((1,0))=E(2,S)\operatorname{span}\big((1, 0)\big) = E(2, S).
❌ Check the eigenvector. S(1,−1)=(1,−3)S(1, -1) = (1, -3) is not a multiple of (1,−1)(1, -1); solve (S−3I)(x,y)=(−x+y,0)=(0,0)(S - 3I)(x, y) = (-x + y, 0) = (0, 0).
❌ 33 is the eigenvalue of SS, not of TT. Apply TT itself: T(1,1)=(1+4,5)=(5,5)T(1, 1) = (1 + 4, 5) = (5, 5).
❌ 11 is the entry in the top-left corner. That entry records Te1=e1Te_1 = e_1, on the other eigenspace E(2,S)E(2, S). On E(3,S)E(3, S), T(1,1)=(5,5)T(1, 1) = (5, 5).
❌ Not quite. Compute T(1,1)T(1, 1) and compare it with (1,1)(1, 1).
Show solution

Commuting: ST=(213015)=TSST = \begin{pmatrix} 2 & 13 \\ 0 & 15 \end{pmatrix} = TS. (In fact T=4S−7IT = 4S - 7I, a polynomial in SS.)

Eigenspace: (S−3I)(x,y)=(−x+y,0)(S - 3I)(x, y) = (-x + y, 0), which is 00 exactly when y=xy = x. So E(3,S)=span⁡((1,1))E(3, S) = \operatorname{span}\big((1, 1)\big).

T on it: by the invariance theorem TT maps E(3,S)E(3, S) into itself, so T(1,1)T(1, 1) is a multiple of (1,1)(1, 1):

T(1,1)=(1⋅1+4⋅1, 5⋅1)=(5,5)=5(1,1).T(1, 1) = (1 \cdot 1 + 4 \cdot 1,\ 5 \cdot 1) = (5, 5) = 5(1, 1).

Since E(3,S)E(3, S) is one-dimensional, T∣E(3,S)=5IT|_{E(3, S)} = 5I.

Problem 4 · Diagonalize Both at Once

Given: S,T∈L(R2)S, T \in \mathcal{L}(\mathbf{R}^2) with M(S)=(4123)\mathcal{M}(S) = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix} and M(T)=(1120)\mathcal{M}(T) = \begin{pmatrix} 1 & 1 \\ 2 & 0 \end{pmatrix} in the standard basis. Find a basis that diagonalizes both, then M(T)\mathcal{M}(T) in it.

Which basis diagonalizes both?

What is M(T) in that basis (in that order)?

✅ Correct! ST=TSST = TS, and (1,1)(1, 1), (1,−2)(1, -2) are eigenvectors of both: M(S)=diag⁡(5,2)\mathcal{M}(S) = \operatorname{diag}(5, 2) and M(T)=diag⁡(2,−1)\mathcal{M}(T) = \operatorname{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)(1, -1) is not an eigenvector of SS. S(1,−1)=(3,−1)=(1,1)+2(1,−1)S(1, -1) = (3, -1) = (1, 1) + 2(1, -1), so in this basis M(S)=(5102)\mathcal{M}(S) = \begin{pmatrix} 5 & 1 \\ 0 & 2 \end{pmatrix}, upper triangular but not diagonal.
❌ (1,2)(1, 2) is not an eigenvector of SS. S(1,2)=(6,8)S(1, 2) = (6, 8), which is not a multiple of (1,2)(1, 2).
❌ Check the basis. Test each vector: is SvSv a multiple of vv, and is TvTv?
❌ That is M(S)\mathcal{M}(S). S(1,1)=5(1,1)S(1, 1) = 5(1, 1) and S(1,−2)=2(1,−2)S(1, -2) = 2(1, -2); for TT compute T(1,1)T(1, 1) and T(1,−2)T(1, -2).
❌ The order is swapped. Column kk of M(T)\mathcal{M}(T) records TukTu_k: T(1,1)=2(1,1)T(1, 1) = 2(1, 1) comes first, then T(1,−2)=−(1,−2)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)T(1, 1) and T(1,−2)T(1, -2).
❌ Not quite. Compute T(1,1)T(1, 1) and T(1,−2)T(1, -2).
Show solution

Step 1, commuting:

(4123)(1120)=(6482)=(1120)(4123),\begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 2 & 0 \end{pmatrix} = \begin{pmatrix} 6 & 4 \\ 8 & 2 \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 2 & 0 \end{pmatrix}\begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix},

so ST=TSST = TS (in fact T=S−3IT = S - 3I).

Step 2, eigenvectors of SS: S(1,1)=(5,5)=5(1,1)S(1, 1) = (5, 5) = 5(1, 1) and S(1,−2)=(2,−4)=2(1,−2)S(1, -2) = (2, -4) = 2(1, -2). Two eigenvalues on R2\mathbf{R}^2 make SS diagonalizable with E(5,S)=span⁡((1,1))E(5, S) = \operatorname{span}\big((1, 1)\big) and E(2,S)=span⁡((1,−2))E(2, S) = \operatorname{span}\big((1, -2)\big).

Step 3, TT on each eigenspace: each eigenspace is invariant under TT and one-dimensional, so its basis vector is an eigenvector of TT:

T(1,1)=(2,2)=2(1,1),T(1,−2)=(−1,2)=−(1,−2).T(1, 1) = (2, 2) = 2(1, 1), \qquad T(1, -2) = (-1, 2) = -(1, -2).

With respect to (1,1),(1,−2)(1, 1), (1, -2): M(S)=diag⁡(5,2)\mathcal{M}(S) = \operatorname{diag}(5, 2) and M(T)=diag⁡(2,−1)\mathcal{M}(T) = \operatorname{diag}(2, -1).

Solved: 0 / 4