12.10  The Sylvester Equation

Chapter 8 wrote an operator with an invariant subspace as a block triangular matrix, with a corner block C recording how the subspace fails to have an invariant complement (Theorem 8.1.7). Chapter 10 spent its length on what to do when that corner cannot be cleared. The question of when it can be cleared has an exact answer, and the answer is a linear equation in the unknown matrix X: AX−XB=C. Chapter 8 already turned this equation into an ordinary linear system with the Kronecker product, and stopped one step short of the criterion because that step needs eigenvalues. We have eigenvalues now, and Schur’s factorization of Section 1 to organize them. This section proves the criterion, uses it to clear corners, and reads off what it says about the matrices that commute with a given one.

Throughout, the field is C unless stated otherwise, and A∈Mm(C), B∈Mn(C), while the unknown X and the data C live in Mm×n(C).

12.10.1. The Sylvester operator

The left-hand side of the equation is linear in X: replacing X by X+X′ or by cX does the same to AX−XB, because matrix multiplication is bilinear (Theorem 0.9.4). So the whole question is about one linear map, and it deserves a name.

Solving AX−XB=C means inverting a single linear operator on the space of m×n matrices.

Definition 12.10.1 (Sylvester operator)

Let A∈Mm(F) and B∈Mn(F). The Sylvester operator of the pair (A,B) is SA,B:Mm×n(F)→Mm×n(F),SA,B(X)=AX−XB. The equation AX−XB=C, for a given C∈Mm×n(F), is the Sylvester equation.

In words: SA,B multiplies by A on the left, multiplies by B on the right, and subtracts. It is an operator on a space of dimension mn, not on Fm or Fn, and that is the only thing that makes the equation look harder than Ax=b.

Three special cases are worth keeping in view.

  1. B=0. Then SA,0(X)=AX, and the equation is n copies of Ax=b, one for each column of X (Exercise (B2: One-sided equations)). It is uniquely solvable for every C exactly when A is invertible, that is, when 0∉spec(A). Since spec(0)={0}, this already matches the criterion we are heading for.
  2. B=A and C=0. Then kerSA,A is the commutant of A, the set of matrices commuting with A. This is the question Chapter 8 opened with, and Chapter 10 §04 studied it for a single Jordan or Weyr block.
  3. m=n=1. Then Sa,b(x)=(a−b)x, which is invertible exactly when a≠b. The general criterion will be this one, run over all pairs of eigenvalues.

Non-example by minimal change. The map X↦AX−XB−X⊤ is still linear on Mn(F), but it is not a Sylvester operator: the transpose is not of the form “multiply on one side”. Everything below uses the two-sided product shape and nothing else.

Chapter 8 already wrote the matrix of SA,B. Stacking the columns of X with the vectorization vec of Definition 8.4.2 and applying the vec identity Theorem 8.4.4 twice, once with B=In and once with A=Im,

vec(SA,B(X))=KvecX,K:=In⊗A−B⊤⊗Im.
(12.10.1)

Here K∈Mmn(F), and vec:Mm×n(F)→Fmn is an isomorphism. So Eq. 12.10.1 says that K is the matrix of SA,B with respect to the basis of matrix units ordered column by column. In particular SA,B is invertible if and only if K is.

That is exactly where Chapter 8 left the problem. What it could not do was compute the eigenvalues of K.

12.10.2. The spectrum of a Kronecker sum

Chapter 8 proved how the Kronecker product treats rank, trace and determinant (Theorem 8.4.3) and how it treats products, transposes and inverses (Theorem 8.4.1). It proved nothing about eigenvalues, and Exercise (C2: Kronecker sums) got only as far as the case where both factors are already triangular. Schur closes the gap, because over C every matrix can be made triangular unitarily, and the mixed product rule carries a pair of unitary conjugations through the Kronecker product in one step.

Lemma 12.10.1 (The Eigenvalues of a Kronecker Sum)

Let A∈Mm(C) with eigenvalues λ1,…,λm and let B∈Mn(C) with eigenvalues μ1,…,μn, each list repeated according to algebraic multiplicity. Then the mn eigenvalues of K=In⊗A−B⊤⊗Im∈Mmn(C), listed with algebraic multiplicity, are the mn differences λi−μj (1≤i≤m, 1≤j≤n).

Idea. Triangularize both ingredients at once. Schur (Corollary 12.1.3) writes A=UTU∗ and B⊤=VSV∗ with T,S upper triangular. The mixed product rule then conjugates both summands of K by the single unitary matrix V⊗U, because In⊗A and B⊤⊗Im each have one trivial factor to absorb the other conjugation. What is left is In⊗T−S⊗Im, and a Kronecker product with one triangular and one identity factor is triangular, so the eigenvalues are visible on the diagonal.

Proof. By Corollary 12.1.3 there are a unitary U∈Mm(C) and an upper triangular T∈Mm(C) with A=UTU∗ and tii=λi. By Proposition 9.10.5 (b), pB⊤=pB, so B⊤ has eigenvalue list μ1,…,μn; applying Corollary 12.1.3 to B⊤ gives a unitary V∈Mn(C) and an upper triangular S∈Mn(C) with B⊤=VSV∗ and sjj=μj.

Put W=V⊗U∈Mmn(C). Conjugating every entry of A⊗B conjugates every block aijB, so A⊗B―=A―⊗B― (Definition 8.4.1), and combining this with Theorem 8.4.1 (d) gives (A⊗B)∗=A∗⊗B∗ whenever the product is defined. Hence W∗=V∗⊗U∗, and by the mixed product rule Theorem 8.4.1 (c), W∗W=(V∗V)⊗(U∗U)=In⊗Im=Imn, so W is unitary. Using the mixed product rule twice more, W(In⊗T)W∗=(VInV∗)⊗(UTU∗)=In⊗A,W(S⊗Im)W∗=(VSV∗)⊗(UImU∗)=B⊤⊗Im. Subtracting, W(In⊗T−S⊗Im)W∗=K, so K is similar to R:=In⊗T−S⊗Im.

R is upper triangular. Label the rows and columns of an mn×mn matrix by pairs as in Definition 8.4.1: row (j−1)m+i with 1≤j≤n, 1≤i≤m, and likewise column (l−1)m+k. In those labels the entries of the two summands are (In⊗T)(j−1)m+i,(l−1)m+k=δjltik,(S⊗Im)(j−1)m+i,(l−1)m+k=sjlδik. The first is non-zero only when j=l and i≤k, since T is upper triangular; then (j−1)m+i≤(l−1)m+k. The second is non-zero only when j≤l and i=k; if j=l the two labels are equal, and if j<l then (j−1)m+i≤(j−1)m+m=jm≤(l−1)m<(l−1)m+k, using i≤m, j≤l−1 and k≥1. So each summand vanishes below the diagonal, and so does R.

The diagonal. Taking j=l and i=k above, the diagonal entry of R in position (j−1)m+i is tii−sjj=λi−μj. As (i,j) runs over all mn pairs, so does the position (j−1)m+i, by division with remainder.

By Theorem 9.7.4 (a), applied to the operator TR on Cmn and the standard basis, pR=∏i,j(x−(λi−μj)). Since K∼R, Theorem 7.10.3 gives pK=pR. This proves the lemma.

Two remarks on what the proof used. The hypothesis F=C entered once, in Schur, and through Schur it is the Fundamental Theorem of Algebra again. And the unitarity of W was a convenience, not a necessity: any similarity triangularizing A and B⊤ would do, but Schur hands us one for free and the Kronecker product of two unitary matrices is unitary, which is worth recording on its own.

12.10.3. When the equation is uniquely solvable

The criterion now costs one line.

Theorem 12.10.2 (Sylvester’s Theorem)

Let A∈Mm(C) and B∈Mn(C). The following are equivalent.

  • (a) spec(A)∩spec(B)=∅: the two matrices have no common eigenvalue.
  • (b) The Sylvester operator SA,B:X↦AX−XB is invertible on Mm×n(C).
  • (c) For every C∈Mm×n(C), the equation AX−XB=C has exactly one solution X.
  • (d) The only X∈Mm×n(C) with AX=XB is X=0.

Proof. By Eq. 12.10.1 the isomorphism vec turns SA,B into the matrix K=In⊗A−B⊤⊗Im: a matrix X solves AX−XB=C if and only if the vector vecX solves Ky=vecC, and every y∈Cmn and every z∈Cmn arise this way. Transported through vec, statements (b), (c) and (d) say respectively that K is invertible, that Ky=z has exactly one solution for every z, and that Ky=0 forces y=0. These three are equivalent by Theorem 3.4.4, parts (a), (e) and (b): (e) gives existence for every z, and (b) upgrades it to uniqueness, since two solutions differ by a member of the null space.

It remains to match (a) with (b). By Theorem 9.2.6, K is invertible if and only if 0∉spec(K). By Lemma 12.10.1, spec(K)={λi−μj}, where λ1,…,λm and μ1,…,μn list the eigenvalues of A and of B. So 0∈spec(K) if and only if λi=μj for some pair (i,j), that is, if and only if A and B have a common eigenvalue. Negating both sides matches (a) with (b), and the proof is complete.

This is the statement Chapter 8 promised. At the end of Example (A Sylvester Equation as a Linear System) it was said that over C the equation AX−XB=C is uniquely solvable for every C exactly when A and B have no common eigenvalue, and that the criterion needs eigenvalues and would be proved in Chapter 12. Parts (a) and (c) of Theorem 12.10.2 are that sentence, and the eigenvalues it needed were supplied by Lemma 12.10.1. The quantitative version — how badly conditioned the equation is when the spectra are close but disjoint — is a separate matter, and belongs with perturbation theory in Chapter 20.

Part (d) is the version used most often in practice, because it is a statement with no data in it: to show that some matrix is zero, exhibit it as a solution of AX=XB for a pair with disjoint spectra. The corollary on commutants below is that move and nothing else.

Example (Solving a Sylvester Equation)

Over C, solve AX−XB=C for A=(2103),B=(102−1),C=(4−204).

Solution. The matrix A is upper triangular, so spec(A)={2,3} (Theorem 9.7.4); B is lower triangular, so spec(B)={1,−1}. The spectra are disjoint, and by Theorem 12.10.2 there is exactly one solution.

To find it, use Eq. 12.10.1. Here B⊤=(120−1), so by Definition 8.4.1 I2⊗A=(2100030000210003),B⊤⊗I2=(1020010200−10000−1), and their difference is K=(11−20020−200310004). Its diagonal entries are 1,2,3,4, which are the four differences 2−1, 3−1, 2−(−1), 3−(−1), as Lemma 12.10.1 predicts; none is zero, confirming invertibility.

With vecX=(x11,x21,x12,x22) and vecC=(4,0,−2,4), back substitution in KvecX=vecC gives 4x22=4, so x22=1; then 3x12+1=−2, so x12=−1; then 2x21−2=0, so x21=1; then x11+1+2=4, so x11=1. Hence X=(1−111). Check: AX=(3−133) and XB=(−113−1), and their difference is C.

Quick check. Let A∈M3(C) have eigenvalues 1,2,2 and let B∈M2(C) have eigenvalues 0,3. List the eigenvalues of SA,B with multiplicity, and decide whether AX−XB=C is uniquely solvable for every C∈M3×2(C).

Solution. By Lemma 12.10.1 the six eigenvalues are the differences λi−μj: 1−0=1,2−0=2,2−0=2,1−3=−2,2−3=−1,2−3=−1. None is zero — equivalently spec(A)={1,2} and spec(B)={0,3} are disjoint — so by Theorem 12.10.2 the equation has exactly one solution for every C.

Warning. The criterion depends on the sign. For the equation AX+XB=C, which is the form Chapter 8 used in Example (A Sylvester Equation as a Linear System), the relevant operator is SA,−B, and spec(−B)={−μj}. So the condition is λi+μj≠0 for all i,j, not spec(A)∩spec(B)=∅. The two conditions are genuinely different: with A=diag(1,2) and B=(−1503) the spectra {1,2} and {−1,3} are disjoint, yet 1+(−1)=0, so AX+XB=C is not solvable for every C. Read the sign off the equation before quoting the criterion.

12.10.4. Clearing the corner

We can now answer the question the section opened with.

Corollary 12.10.3 (Block Diagonalization by a Sylvester Solution)

Let A∈Mm(F), B∈Mn(F) and C∈Mm×n(F), and put M=(AC0B)∈Mm+n(F).

  • (a) If X∈Mm×n(F) satisfies AX−XB=−C, then with P=(ImX0In) we have P−1MP=A⊕B. In particular M∼A⊕B.
  • (b) Conversely, if P−1MP=A⊕B for some X∈Mm×n(F) and the matrix P built from it as in (a), then that X satisfies AX−XB=−C.
  • (c) If F=C and spec(A)∩spec(B)=∅, then a solution X exists, and it is unique; so M∼A⊕B for every corner C.

Idea. The matrices (ImX0In) are exactly the changes of basis that add multiples of the first block of basis vectors to the second and leave the first alone. Conjugating M by one of them cannot touch the two diagonal blocks or create anything below the diagonal; all it can do is move the corner, and the block multiplication shows it moves the corner by AX−XB. So the corner can be driven to 0 precisely when −C lies in the image of the Sylvester operator.

Proof.

  • (a) First, P is invertible with P−1=(Im−X0In), since multiplying the two matrices in either order gives Im+n by Theorem 8.1.1, the partitions being conformable. The same theorem gives MP=(AAX+C0B), and then P−1MP=(AAX+C−XB0B). By hypothesis AX−XB=−C, so the corner is 0 and the result is A⊕B (Definition 8.1.2).

  • (b) The computation in (a) used nothing about X until the last sentence. So if that P satisfies P−1MP=A⊕B, comparing the corners of the two sides gives AX+C−XB=0, which is the equation.

  • (c) By Theorem 12.10.2 ((a) ⇒ (c)), the equation AX−XB=−C has exactly one solution. Apply (a).

Example (Clearing a Corner)

Block-diagonalize M=(21−42030−40010002−1)∈M4(Q).

Solution. Partition M into 2×2 blocks. The diagonal blocks are the matrices A and B of Example (Solving a Sylvester Equation), and the corner is (−420−4)=−C for the C of that example. So the equation to solve is AX−XB=−(−C)=C, which is the one already solved there, with the unique solution X=(1−111). By Corollary 12.10.3 (a), taking P=(101−1011100100001) gives P−1MP=A⊕B, that is, P−1MP=(210003000010002−1). The eigenvalues 2,3,1,−1 are of course unchanged; what has changed is that the space has been split into two invariant pieces of dimension 2.

Remark. Part (b) restricts the shape of P, and one may ask whether that is a real restriction: if M is similar to A⊕B by any invertible matrix, must the Sylvester equation be solvable? The answer is yes over every field. This is Roth’s removal rule, and the proof is not a block computation: it goes through the characteristic matrix and the criterion A∼B if and only if xI−A≈xI−B over F[x] (Theorem 10.7.5). We do not need it here and do not prove it; nothing later in the book depends on it.

Primary decomposition, seen again. Put Corollary 12.10.3 next to Schur and a familiar theorem drops out with no extra work. Let A∈MN(C) have distinct eigenvalues λ1,…,λk with algebraic multiplicities a1,…,ak. By Corollary 12.1.3 we may prescribe the order of the diagonal in a Schur factorization, so choose the order that lists all copies of λ1 first, then all copies of λ2, and so on. Partitioning the resulting triangular matrix along N=a1+⋯+ak makes it block upper triangular with diagonal blocks T1,…,Tk, where Ti is triangular with the single diagonal value λi, so spec(Ti)={λi}. Now peel the blocks off one at a time: spec(T1) is disjoint from the spectrum of the rest, so Corollary 12.10.3 (c) splits off T1, and induction on k finishes. The conclusion is that A∼T1⊕⋯⊕Tk with spec(Ti)={λi} — the matrix form of the primary decomposition of Theorem 9.8.1, here obtained from a triangular form and a linear equation rather than from the kernel-splitting lemma.

12.10.5. Commuting with a matrix of disjoint spectra

Here is the promised use of Theorem 12.10.2 (d). It says that disjoint spectra force a block structure on anything that commutes.

Corollary 12.10.4 (Disjoint Spectra Split the Commutant)

Let A1∈Mn1(C),…,Ar∈Mnr(C) have pairwise disjoint spectra, and put D=A1⊕⋯⊕Ar∈MN(C), N=n1+⋯+nr. Let Z∈MN(C) satisfy DZ=ZD, and partition Z into blocks Zpq∈Mnp×nq(C) for the partition N=n1+⋯+nr. Then Zpq=0for all p≠q, so Z=Z11⊕⋯⊕Zrr is block diagonal, and each diagonal block satisfies ApZpp=ZppAp.

Proof. By Theorem 8.1.1, the (p,q) block of DZ is ApZpq and the (p,q) block of ZD is ZpqAq, because D has only one non-zero block in each block row and in each block column. So DZ=ZD is equivalent to ApZpq=ZpqAq(1≤p,q≤r). Let p≠q. Then spec(Ap)∩spec(Aq)=∅ by hypothesis, so Theorem 12.10.2 ((a) ⇒ (d)) forces Zpq=0. The diagonal equations ApZpp=ZppAp are the remaining cases p=q, and they carry no information beyond commuting.

Read the statement twice, because a similar-sounding claim is false.

Warning. It is the disjointness of the spectra that does the work, not the block diagonal shape. Nothing here says that a matrix commuting with a block diagonal matrix is block diagonal, and nothing here says that a commutant consists of triangular matrices. Both fail as soon as two diagonal blocks share an eigenvalue. Chapter 10 §04 computes the commutant of J=J2(0)⊕J1(0) explicitly and finds it to be {(abc0a00hi):a,b,c,h,i∈F}, which contains matrices with a non-zero entry below the diagonal, in position (3,2). That does not contradict Corollary 12.10.4: the two blocks J2(0) and J1(0) have the same spectrum {0}, so the corollary has nothing to say about them. What is true for a single repeated eigenvalue is weaker and needs a different normal form: the commutant of a basic Weyr matrix is block upper triangular for the Weyr partition (Proposition 10.4.6), and the Jordan form has no such property. Note too that even when Corollary 12.10.4 applies, it says nothing about the diagonal blocks Zpp themselves, which range over the whole commutant of Ap.

The corollary is the reason spectral separation is so useful. Combined with the primary decomposition above, it says that over C the commutant of any matrix splits along its distinct eigenvalues: after the change of basis that block-diagonalizes A by spectrum, everything commuting with A becomes block diagonal too, and the hard part of describing a commutant is always the single-eigenvalue part. The pleasant case of the same phenomenon appeared in Theorem 12.7.1, where the pieces are honest eigenspaces and the splitting is orthogonal.

12.10.6. Lyapunov’s equation

One specialization is important enough to have its own name.

Definition 12.10.2 (Lyapunov equation)

Let A∈Mn(C) and Q∈Mn(C). The Lyapunov equation for the pair (A,Q) is AX+XA∗=−Q, with unknown X∈Mn(C). Call A stable when every λ∈spec(A) has Reλ<0.

This is the Sylvester equation with B=−A∗, since AX−X(−A∗)=AX+XA∗. To apply Theorem 12.10.2 we need spec(−A∗).

The eigenvalues of A∗ are the conjugates of those of A. Indeed det(M∗)=detM― for every M∈Mn(C), because det(M⊤)=detM (Theorem 7.4.5) and the determinant is a sum of products of entries with coefficients ±1 (Definition 7.4.1), so conjugating every entry conjugates the value. Applying this to M=λI−A, whose conjugate transpose is λ―I−A∗, gives det(λ―I−A∗)=det(λI−A)―. So one determinant vanishes exactly when the other does, and λ∈spec(A) if and only if λ―∈spec(A∗) (Theorem 9.2.1).

Therefore spec(−A∗)={−λ―:λ∈spec(A)}, and Theorem 12.10.2 says the Lyapunov equation has exactly one solution for every Q precisely when λ+μ―≠0for all λ,μ∈spec(A). If A is stable this holds, because then Re(λ+μ―)=Reλ+Reμ<0. So a stable matrix gives a uniquely solvable Lyapunov equation, whatever Q is.

What makes the equation important is a statement we are not yet equipped to prove. Call a Hermitian matrix X positive definite when x∗Xx>0 for every non-zero x∈Cn. Then: if A is stable and Q is positive definite, the unique solution X of AX+XA∗=−Q is positive definite; and conversely, if some positive definite X solves the equation for some positive definite Q, then A is stable. Positivity is the subject of Chapter 13, where the tools to handle x∗Xx are built, and the consequence for differential equations — that a stable A makes every solution of x˙=Ax decay, with x∗Xx as the quantity that measures the decay — belongs to Chapter 16. We record the equation here because its solvability, which is the part Sylvester’s theorem settles, is exactly what makes the rest possible.

12.10.7. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the Sylvester operator of a pair (A,B) with A∈Mm(F), B∈Mn(F), and state the dimension of the space it acts on.
  • (b) Write down the matrix of the Sylvester operator with respect to the vectorization vec, and say which Chapter 8 result produces it.
  • (c) State the criterion for AX−XB=C to have exactly one solution for every C, over C.
  • (d) True or false: if AX−XB=C has at least one solution for every C, then that solution is unique. Justify your answer.
  • (e) True or false: if spec(A)∩spec(B)=∅, then AX+XB=C has exactly one solution for every C. Justify your answer.

Solution.

  • (a) SA,B(X)=AX−XB for X∈Mm×n(F) (Definition 12.10.1). It acts on Mm×n(F), of dimension mn.

  • (b) K=In⊗A−B⊤⊗Im, by Eq. 12.10.1; it comes from the vec identity Theorem 8.4.4 applied twice, with vec(AX)=(In⊗A)vecX and vec(XB)=(B⊤⊗Im)vecX.

  • (c) Exactly when A and B have no common eigenvalue, that is spec(A)∩spec(B)=∅ (Theorem 12.10.2).

  • (d) True. Existence for every C says SA,B is surjective; an operator on the finite-dimensional space Mm×n(F) is surjective if and only if it is injective (Theorem 3.4.4 through vec, or Rank–Nullity), and injectivity is uniqueness.

  • (e) False. The criterion for the + form is λ+μ≠0 for all λ∈spec(A), μ∈spec(B), since AX+XB=SA,−B(X). With A=diag(1,2) and B=diag(−1,3) the spectra are disjoint but 1+(−1)=0, so the equation is not uniquely solvable.

B. Practice

Exercise (B1: A Sylvester equation by vectorization)

Over Q, let A=(3101),B=(−1010),C=(210−2).

  • (a) Compute spec(A) and spec(B), and decide whether AX−XB=C has exactly one solution.
  • (b) Write down K=I2⊗A−B⊤⊗I2, and check that its diagonal entries are the four differences λi−μj.
  • (c) Solve the equation.

Solution.

  • (a) A is upper triangular with diagonal 3,1, so spec(A)={3,1} (Theorem 9.7.4). For B, pB=det(x+10−1x)=x(x+1), so spec(B)={0,−1}. The spectra are disjoint, so by Theorem 12.10.2 there is exactly one solution for this (or any) C.

  • (b) B⊤=(−1100), so I2⊗A=(3100010000310001),B⊤⊗I2=(−10100−10100000000), and K=(41−10020−100310001). Its diagonal is 4,2,3,1, and the differences λi−μj are 3−(−1)=4, 1−(−1)=2, 3−0=3, 1−0=1, as Lemma 12.10.1 asserts.

  • (c) With vecX=(x11,x21,x12,x22) and vecC=(2,0,1,−2), back substitution gives x22=−2; then 3x12+x22=1, so x12=1; then 2x21−x22=0, so x21=−1; then 4x11+x21−x12=2, so x11=1. Hence X=(11−1−2). Check: AX=(21−1−2) and XB=(00−10), and their difference is C.

Exercise (B2: Block-diagonalizing a 3 × 3 matrix)

Let M=(212023005)∈M3(Q).

  • (a) Partition M as 3=2+1, name the blocks A, B, C, and explain why Corollary 12.10.3 applies.
  • (b) Solve the corresponding Sylvester equation.
  • (c) Write down P and verify that P−1MP=A⊕B.

Solution.

  • (a) The blocks are A=(2102), B=(5) and C=(23). Both diagonal blocks are triangular, so spec(A)={2} and spec(B)={5} (Theorem 9.7.4); these are disjoint, so Corollary 12.10.3 (c) applies and a unique X∈M2×1(Q) exists.

  • (b) With X=x=(x1,x2), the equation Ax−5x=−C reads (A−5I2)x=−C, that is (−310−3)(x1x2)=(−2−3). The second row gives x2=1, and the first then gives −3x1+1=−2, so x1=1. Hence x=(1,1).

  • (c) Taking P=(101011001),P−1=(10−101−1001), we get MP=(215025005) and then P−1MP=(210020005)=A⊕B, as Corollary 12.10.3 (a) predicts.

Exercise (B3: Which equations are uniquely solvable?)

Determine, for each of the following, whether the stated equation has exactly one solution X∈M2(C) for every right-hand side C∈M2(C). Justify your answer.

  • (a) AX−XB=C with A=(1101), B=(2003).
  • (b) AX−XB=C with A=(01−10), B=(0−110).
  • (c) AX+XB=C with A=(1002), B=(−1503).
  • (d) AX−XB=C with A=(1101), B=(1021).
  • (e) AX−XB=C with A∈M2(C) nilpotent and B∈M2(C) invertible.

Solution.

  • (a) Yes. spec(A)={1} and spec(B)={2,3} are disjoint (Theorem 9.7.4), so Theorem 12.10.2 applies.

  • (b) No. Both characteristic polynomials are x2+1, so spec(A)=spec(B)={i,−i}, which is as far from disjoint as possible. A witness is easy to produce here: X=(100−1) gives AX=(0−1−10)=XB, so X is a non-zero member of kerSA,B and condition (d) of Theorem 12.10.2 fails.

  • (c) No. This is the + form, so the operator is SA,−B and the condition is λ+μ≠0. Here spec(A)={1,2} and spec(B)={−1,3}, and 1+(−1)=0.

  • (d) No. Both are triangular with diagonal 1,1, so spec(A)=spec(B)={1}.

  • (e) Yes. A nilpotent matrix has spec(A)={0}, since Ak=0 forces λk=0 for every eigenvalue λ; and 0∉spec(B) because B is invertible (Theorem 9.2.6). So the spectra are disjoint.

C. Going deeper

Exercise (C1: Eigenvectors of the Sylvester operator)

Let A∈Mm(C) and B∈Mn(C), and let S=SA,B.

  • (a) Suppose Ax=λx with x∈Cm non-zero, and suppose y∈Cn is a left eigenvector of B for μ, so that y⊤B=μy⊤ (Definition 9.10.1). Prove that xy⊤≠0 and that S(xy⊤)=(λ−μ)xy⊤.
  • (b) Deduce that every difference λ−μ with λ∈spec(A) and μ∈spec(B) is an eigenvalue of S.
  • (c) Hence give a second proof that S is not invertible when A and B have a common eigenvalue, one that uses no Kronecker products.

Solution.

  • (a) Choose i with xi≠0 and j with yj≠0; these exist because x and y are non-zero. The (i,j) entry of xy⊤ is xiyj≠0, so xy⊤≠0. For the eigenvalue equation, associativity of matrix multiplication (Theorem 0.9.4) gives S(xy⊤)=(Ax)y⊤−x(y⊤B)=λxy⊤−μxy⊤, which is (λ−μ)xy⊤.

  • (b) Let λ∈spec(A) and μ∈spec(B). A right eigenvector x for λ exists by Definition 9.2.1, and a left eigenvector y for μ exists by Proposition 9.10.5 (b). By (a), xy⊤ is a non-zero matrix with S(xy⊤)=(λ−μ)xy⊤, so λ−μ is an eigenvalue of S with eigenvector xy⊤.

  • (c) If λ∈spec(A)∩spec(B), apply (b) with μ=λ: then 0 is an eigenvalue of S, so kerS≠{0} and S is not invertible. This shows one implication of Theorem 12.10.2 directly. (It does not give the converse: knowing every λ−μ is an eigenvalue does not by itself show there are no others.)

Exercise (C2: The kernel when the spectra meet)

Let A∈Mm(C) and B∈Mn(C) have eigenvalue lists λ1,…,λm and μ1,…,μn with algebraic multiplicity, and let d=#{(i,j):λi=μj}.

  • (a) Prove that dim⁡kerSA,B≥1 if and only if d≥1.
  • (b) Prove that dim⁡kerSA,B≤d.
  • (c) Show that the inequality in (b) can be strict, by computing kerSA,B for A=B=J2(0).

Solution.

  • (a) d≥1 says exactly that A and B have a common eigenvalue, and by Theorem 12.10.2 ((a) ⇔ (d)) that is exactly the failure of kerSA,B={0}.

  • (b) The operator SA,B has matrix K (Eq. 12.10.1), so dim⁡kerSA,B=gK(0), the geometric multiplicity of 0 as an eigenvalue of K (when 0∉spec(K) both sides are 0 and there is nothing to prove). By Lemma 12.10.1 the eigenvalue list of K consists of the mn differences λi−μj, so the algebraic multiplicity is aK(0)=d. By Theorem 9.3.1, gK(0)≤aK(0)=d.

  • (c) Here m=n=2 and λ1=λ2=μ1=μ2=0, so d=4. The kernel is the commutant of J=J2(0): writing X=(pqrs), JX=(rs00),XJ=(0p0r), so JX=XJ forces r=0 and s=p, and leaves q free. Hence kerSJ,J=span(I2,J), of dimension 2<4=d.

Exercise (C3: Only the scalars commute with everything)

Let F be a field, n≥2, and let Eij∈Mn(F) be the matrix unit with 1 in position (i,j) and 0 elsewhere.

  • (a) Suppose A∈Mn(F) satisfies AEij=EijA for all i≠j. Prove that A=cIn for some c∈F.
  • (b) Deduce that the only matrices commuting with every X∈Mn(F) are the scalar matrices, that is, kerSA,A=Mn(F) forces A scalar.
  • (c) Deduce that the only matrices commuting with every invertible matrix are again the scalar matrices.

Hint for (c): In+Eij is invertible when i≠j.

Solution.

  • (a) Fix i≠j. By Theorem 0.9.2, AEij has column j equal to Aei, that is column i of A, and all other columns zero; while EijA has row i equal to row j of A, and all other rows zero. Compare entries.

    Take k≠i. The (k,j) entry of AEij is aki, and the (k,j) entry of EijA is 0, because row k≠i of EijA is zero. Hence aki=0 whenever k≠i. Since n≥2, every index i has some j≠i available, so this holds for every i, and A is diagonal.

    Now the (i,j) entry: on the left it is aii (the i-th entry of column i of A), and on the right it is ajj (the j-th entry of row j of A). So aii=ajj for all i≠j. Writing c for this common value, A=cIn.

  • (b) If AX=XA for every X∈Mn(F), then in particular for X=Eij with i≠j, so (a) gives A=cIn. Conversely every scalar matrix commutes with everything. Hence kerSA,A=Mn(F) if and only if A is scalar.

  • (c) For i≠j we have Eij2=0, so (In+Eij)(In−Eij)=In and In+Eij is invertible. If A commutes with every invertible matrix, it commutes with In+Eij, hence with Eij (subtract AIn=InA), for all i≠j. By (a), A=cIn.

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.