13.4  Two Forms at Once

Chapter 12 asked when several operators can be diagonalized in one orthonormal basis, and answered: when they commute and each is normal (Theorem 12.7.1). That theorem is about operators, and its currency is the unitary similarity U∗TU. This section asks a question that looks similar and is not. Given two forms — two self-adjoint matrices, each thought of as the recipe x↦x∗Ax — can one change of variable make both of them diagonal at once? No commuting is assumed, and in general the two matrices do not commute. The price is that the change of variable is no longer unitary, and the hypothesis is that one of the two forms is positive definite.

Throughout, F=R or F=C, and “self-adjoint” means A∗=A (over R: symmetric).

13.4.1. Similarity is for operators, congruence is for forms

A matrix can play two roles, and the two roles come with different change-of-variable rules.

As an operator, A eats a vector and returns a vector. Rewriting x=Sy in the equation z=Ax turns it into S−1z=(S−1AS)y: the new matrix is S−1AS, and the relation is similarity. Eigenvalues, trace, determinant, and characteristic polynomial all survive it.

As a form, A eats a vector and returns the scalar x∗Ax. Rewriting x=Sy turns that scalar into (Sy)∗A(Sy)=y∗(S∗AS)y, so the new matrix is S∗AS. Two matrices A and S∗AS with S invertible are called congruent; this is the operation of Proposition 13.1.2, where it was already shown to preserve the sign of a form. Congruence is the right relation here for the plain reason that it is the one the question is phrased in: “make both forms diagonal” means “make both x∗Ax and x∗Bx into sums of squares in the same new coordinates”, and that is a statement about S∗AS and S∗BS. Chapter 14 studies congruence in its own right, including what it does preserve; for now, note that it certainly does not preserve eigenvalues, since S∗IS=S∗S can be any positive definite matrix at all.

Congruence and similarity coincide in exactly one situation: when S is unitary, S∗=S−1. That is the situation of Chapter 12, and it is what makes that chapter’s theorems so strong and its hypotheses so restrictive.

Warning. This is not Chapter 12’s simultaneous diagonalization. Theorem 12.7.1 needs the operators to commute and produces a unitary U with every U∗TU diagonal; eigenvalues are preserved. The theorem below needs no commuting and one of the two matrices to be positive definite, and produces a merely invertible S; the eigenvalues of B are destroyed, and even A comes out as I. The two theorems have no common generalization: neither hypothesis implies the other. When the matrices both commute and one is positive definite, both theorems apply and give different factorizations.

13.4.2. Diagonalizing two forms at once

Theorem 13.4.1 (Diagonalizing Two Forms by Congruence)

Let A,B∈Mn(F) be self-adjoint with A≻O. Then there is an invertible S∈Mn(F) with S∗AS=InandS∗BS=D for some real diagonal D. Over R, with A,B symmetric, S may be taken real.

Idea. Two steps, and the first one is the whole idea. ① Whiten. The hypothesis A≻O gives an invertible positive definite square root A1/2, and the congruence by A−1/2 turns A into I. That uses up the definiteness of A and nothing else. ② Now I is invariant under every unitary congruence, because a unitary congruence is a similarity; so we still have the whole spectral theorem available for the transformed B, and it is self-adjoint. Diagonalize it and compose the two changes of variable.

Proof. Since A≻O, Theorem 13.2.1 gives a unique A1/2⪰O with (A1/2)2=A. Its eigenvalues are the nonnegative square roots of the eigenvalues of A, which are >0 by Theorem 13.1.5; hence A1/2≻O and in particular A1/2 is invertible. Write A−1/2=(A1/2)−1, which is again self-adjoint, since the inverse of an invertible self-adjoint matrix is self-adjoint.

Put C=A−1/2BA−1/2. Then C∗=A−1/2B∗A−1/2=C, so C is self-adjoint. By the spectral theorem for matrices there is a unitary U and a real diagonal D with C=UDU∗ (Corollary 12.4.3 over C; Corollary 12.5.2 over R, with U orthogonal and real).

Set S=A−1/2U, a product of invertible matrices, hence invertible. Then S∗AS=U∗A−1/2AA−1/2U=U∗U=In, where the middle equality uses A−1/2AA−1/2=A−1/2A1/2A1/2A−1/2=In. And S∗BS=U∗A−1/2BA−1/2U=U∗CU=D. Over R every matrix named here is real: A1/2 is real because it is a polynomial in A (Theorem 13.2.1), and U is real by Corollary 12.5.2. This proves the theorem.

The theorem says more than “both become diagonal”: the definite one becomes the identity, which is the strongest normalization available, and it costs nothing extra. Note also which hypothesis did which job. Definiteness of A was used exactly once, to invert A1/2. Self-adjointness of B was used exactly once, to apply the spectral theorem to C. Nothing at all was assumed about AB versus BA.

Quick check. Why can S not be taken unitary in Theorem 13.4.1?

Solution. A unitary S has S∗=S−1, so S∗AS=I would give A=SIS∗=I. So a unitary S can only work when A is already the identity — and then the theorem is just the spectral theorem for B.

13.4.3. The generalized eigenvalue problem

The matrix S of the theorem is not an abstract object: its columns solve an eigenvalue problem in which the identity has been replaced by A.

Definition 13.4.1 (Generalized eigenvalue)

Let A,B∈Mn(F). A scalar λ∈F is a generalized eigenvalue of the pair (A,B) if Bx=λAxfor some x≠0, and such an x is a generalized eigenvector for λ. The family of matrices B−λA is called the pencil of the pair.

Taking A=I recovers Definition 9.2.1, so the word “generalized” is honest. The condition Bx=λAx with x≠0 says that B−λA is singular, that is det(B−λA)=0; so the generalized eigenvalues are the roots of the polynomial det(B−λA) in λ, the characteristic polynomial of the pencil. Its degree is at most n, and exactly n when A is invertible, since the λn-coefficient is (−1)ndetA. When A is singular the degree can drop, and the polynomial can even be a nonzero constant, in which case the pair has no generalized eigenvalues at all; exercise C3 below is such a pair. From here on A≻O, so this does not arise.

Nothing so far forces those roots to be real: for A=I they are just eigenvalues, and a general B has complex ones. Self-adjointness of B alone is not enough either, as the warning at the end of this section shows. It is definiteness of A that makes the problem behave.

Theorem 13.4.2 (The Definite Generalized Eigenvalue Problem)

Let A,B∈Mn(F) be self-adjoint with A≻O, and let S and D=diag(d1,…,dn) be as in Theorem 13.4.1, with columns s1,…,sn of S. Then:

  • (a) Bsi=diAsi for every i, and si∗Asj=δij: the columns of S are a basis of Fn of generalized eigenvectors, orthonormal for the inner product ⟨x,y⟩A=y∗Ax;
  • (b) the generalized eigenvalues of (A,B) are exactly d1,…,dn, all real, and det(B−λA)=1|detS|2∏i=1n(di−λ);
  • (c) A−1B=SDS−1; in particular A−1B is diagonalizable with real eigenvalues d1,…,dn, although it need not be self-adjoint.

Idea. Everything is already in the two equations S∗AS=I and S∗BS=D. Substituting the first into the second turns D into S∗ASD, and canceling the invertible S∗ leaves BS=ASD, which read column by column is (a). Then (b) and (c) are two ways of undoing the substitution.

Proof.

  • (a) From S∗AS=I we get D=ID=S∗ASD, and also D=S∗BS. Therefore S∗(BS−ASD)=O, and S∗ is invertible, so BS=ASD. Column i of the left side is Bsi and of the right side is diAsi, since D is diagonal. Each si≠0 because S is invertible, so each di is a generalized eigenvalue with eigenvector si. The entry (i,j) of S∗AS=I is si∗Asj, which is therefore δij. Finally ⟨x,y⟩A=y∗Ax is an inner product on Fn, exactly because A≻O: it is sesquilinear, ⟨y,x⟩A―=x∗Ay―=y∗A∗x=⟨x,y⟩A, and ⟨x,x⟩A=x∗Ax>0 for x≠0.

  • (b) From S∗AS=I and S∗BS=D we get A=(S∗)−1S−1 and B=(S∗)−1DS−1, hence B−λA=(S∗)−1(D−λI)S−1. Taking determinants with Theorem 7.5.4, and using det(S∗)=detS―, det(B−λA)=det(D−λI)detS―detS=1|detS|2∏i(di−λ), the last step by Theorem 7.4.6. Since |detS|2≠0, the roots of det(B−λA) are exactly d1,…,dn; and λ is a generalized eigenvalue if and only if B−λA is singular, that is if and only if det(B−λA)=0 (Theorem 3.4.4). The di are real because D=S∗BS is self-adjoint, so its diagonal entries equal their own conjugates.

  • (c) Inverting A=(S∗)−1S−1 gives A−1=SS∗, so A−1B=SS∗(S∗)−1DS−1=SDS−1. This proves the theorem.

Part (c) explains the phenomenon. The matrix A−1B is what one would naively form to turn Bx=λAx into an ordinary eigenvalue problem, and it is usually not self-adjoint, so there is no reason from Chapter 12 for its eigenvalues to be real. But it is self-adjoint with respect to the inner product ⟨⋅,⋅⟩A, and reality and the orthogonal eigenbasis come from that inner product rather than the standard one. The congruence S is exactly the change of variable that turns ⟨⋅,⋅⟩A into the standard inner product.

Example (A pencil that does not commute)

Let A=(2112),B=(0336). Check that A≻O, that AB≠BA, and that B is indefinite. Find the generalized eigenvalues and an A-orthonormal basis of generalized eigenvectors, and write down S.

Solution. Setting up. A is symmetric with leading principal minors 2>0 and 4−1=3>0, so A≻O by Theorem 13.1.5. Its own eigenvalues are 1 and 3. The products are AB=(312615),BA=(361215), which differ, so Chapter 12’s theorem does not apply. Also detB=−9<0, so B has one positive and one negative eigenvalue and is neither positive nor negative semidefinite.

The pencil. B−λA=(−2λ3−λ3−λ6−2λ), so det(B−λA)=−2λ(6−2λ)−(3−λ)2=4λ2−12λ−9+6λ−λ2=3λ2−6λ−9=3(λ−3)(λ+1). The generalized eigenvalues are λ=−1 and λ=3, both real, as Theorem 13.4.2 (b) promises.

Eigenvectors. For λ=−1, B+A=(2448), whose kernel is spanned by x1=(2,−1). For λ=3, B−3A=(−6000), whose kernel is spanned by x2=(0,1). Checking directly: Bx1=(−3,0) and Ax1=(3,0), so Bx1=−Ax1; and Bx2=(3,6)=3(1,2)=3Ax2.

Normalizing. x1⊤Ax1=(2,−1)⋅(3,0)=6 and x2⊤Ax2=(0,1)⋅(1,2)=2, while x1⊤Ax2=(2,−1)⋅(1,2)=0: the two are already A-orthogonal, as they must be, having different generalized eigenvalues. Scaling to A-length 1, S=(2/60−1/61/2),S⊤AS=I2,S⊤BS=(−1003). So in the coordinates x=Sy the two forms read x⊤Ax=y12+y22 and x⊤Bx=−y12+3y22. The signs (−,+) match the signs of the eigenvalues of B itself, which are 3±32; Chapter 14 shows that this is no coincidence.

The problem Bx=λAx with A≻O is the one an engineer meets first: for a vibrating structure, A is the mass matrix and B the stiffness matrix, the generalized eigenvalues are the squared natural frequencies, and the A-orthonormal eigenvectors are the normal modes, in which the motion decouples into independent one-dimensional oscillations.

13.4.4. When neither form is definite

Definiteness of one of the two matrices is not decoration.

Warning. Two self-adjoint matrices, neither definite, need not be simultaneously diagonalizable by congruence. Take the real symmetric pair A=(100−1),B=(0110). Suppose S⊤AS and S⊤BS were both diagonal for some invertible real S, say DA and DB. Since A is invertible, so is DA, and from A=(S⊤)−1DAS−1 and B=(S⊤)−1DBS−1 we get A−1B=SDA−1S⊤(S⊤)−1DBS−1=S(DA−1DB)S−1, so A−1B would be similar to a real diagonal matrix and would have real eigenvalues. But A−1=A here, and A−1B=(01−10) has characteristic polynomial λ2+1, with roots ±i. So no such S exists — and the pencil has no generalized eigenvalues in R at all.

The obstruction in the warning is exactly the failure of part (c) of Theorem 13.4.2. That part is in fact the right way to test a pair: if A is invertible, a necessary condition for simultaneous diagonalization by congruence is that A−1B be diagonalizable with real eigenvalues, and the theorem says that A≻O is enough to guarantee it.

13.4.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define what it means for two matrices to be congruent, and say which of similarity and congruence is the natural relation for a form.
  • (b) State Theorem 13.4.1, with all hypotheses.
  • (c) Name two differences between Theorem 13.4.1 and Theorem 12.7.1.
  • (d) Determine whether the following statement is correct, and justify your answer: the generalized eigenvalues of (A,B) are eigenvalues of B.
  • (e) For A≻O and B self-adjoint, what inner product makes A−1B self-adjoint?

Solution.

  • (a) A and C are congruent if C=S∗AS for some invertible S. Congruence is the natural relation for a form, since the substitution x=Sy turns x∗Ax into y∗(S∗AS)y; similarity S−1AS is the natural relation for an operator.

  • (b) If A,B∈Mn(F) are self-adjoint and A≻O, there is an invertible S with S∗AS=In and S∗BS real diagonal.

  • (c) Chapter 12’s theorem assumes the operators commute and are normal, and delivers a unitary change of basis preserving eigenvalues; this one assumes nothing about commuting but assumes one matrix is positive definite, and delivers a merely invertible S under which eigenvalues are not preserved.

  • (d) Incorrect. In Example (A pencil that does not commute) the generalized eigenvalues are −1 and 3, while the eigenvalues of B are 3±32. They agree when A=I, and not in general.

  • (e) ⟨x,y⟩A=y∗Ax (Theorem 13.4.2 (a)).

B. Practice

Exercise (B1: A generalized eigenvalue problem)

Let A=(1112),B=(2221).

  • (a) Verify that A≻O and find the generalized eigenvalues of (A,B).
  • (b) Find generalized eigenvectors and an invertible S with S⊤AS=I2 and S⊤BS diagonal.

Solution.

  • (a) The leading principal minors of A are 1>0 and 2−1=1>0, so A≻O by Theorem 13.1.5. Then B−λA=(2−λ2−λ2−λ1−2λ), so det(B−λA)=(2−λ)(1−2λ)−(2−λ)2=(2−λ)[(1−2λ)−(2−λ)]=(2−λ)(−1−λ)=(λ−2)(λ+1). The generalized eigenvalues are 2 and −1.

  • (b) For λ=2: B−2A=(000−3), with kernel spanned by x1=(1,0). For λ=−1: B+A=(3333), with kernel spanned by x2=(1,−1). Check: Bx1=(2,2)=2Ax1 since Ax1=(1,1); and Bx2=(0,1) while Ax2=(0,−1), so Bx2=−Ax2.

Now x1⊤Ax1=(1,0)⋅(1,1)=1 and x2⊤Ax2=(1,−1)⋅(0,−1)=1, and x1⊤Ax2=(1,0)⋅(0,−1)=0. Both are already A-unit vectors, so S=(110−1),S⊤AS=I2,S⊤BS=(200−1).

Exercise (B2: Whitening by hand)

Let A=diag(4,9) and B=(4669). Follow the two steps of the proof of Theorem 13.4.1: compute A−1/2, then C=A−1/2BA−1/2, diagonalize C, and write down S and S⊤BS.

Solution. A is diagonal with positive entries, so A1/2=diag(2,3) and A−1/2=diag(12,13). Then C=(120013)(4669)(120013)=(1111). Its eigenvalues are 2, with unit eigenvector 12(1,1), and 0, with unit eigenvector 12(1,−1). So U=12(111−1) and D=diag(2,0), and S=A−1/2U=12(121213−13),S⊤AS=I2,S⊤BS=(2000). As a check, det(B−λA)=(4−4λ)(9−9λ)−36=36λ2−72λ=36λ(λ−2), whose roots 0 and 2 are the diagonal entries of S⊤BS.

Exercise (B3: A pair that resists)

Let A=(0110) and B=(1000). Determine whether there is an invertible real S making S⊤AS and S⊤BS both diagonal. Justify your answer.

Solution. There is not. Both matrices are symmetric and A is invertible, with A−1=A. If such an S existed, the computation in the warning above would give A−1B=S(DA−1DB)S−1, so A−1B would be diagonalizable. But A−1B=(0110)(1000)=(0010), which is nonzero with (A−1B)2=O, hence has 0 as its only eigenvalue and is not diagonalizable (a diagonalizable matrix with only the eigenvalue 0 is O). Here the generalized eigenvalues are both 0 and real, so reality of the spectrum is not the obstruction; diagonalizability is.

C. Going deeper

Exercise (C1: The A-inner product)

Let A≻O and B be self-adjoint in Mn(F), and write ⟨x,y⟩A=y∗Ax.

  • (a) Prove that ⟨⋅,⋅⟩A is an inner product on Fn.
  • (b) Prove that T=TA−1B is self-adjoint on (Fn,⟨⋅,⋅⟩A).
  • (c) Deduce Theorem 13.4.2 (a) and (b) from the spectral theorem applied to T, without using Theorem 13.4.1.

Solution.

  • (a) Sesquilinearity in the first slot is clear from the formula. Conjugate symmetry: ⟨y,x⟩A―=x∗Ay―=y∗A∗x=y∗Ax=⟨x,y⟩A, using A∗=A. Positive definiteness: ⟨x,x⟩A=x∗Ax>0 for x≠0, which is Definition 13.1.1 for A≻O.

  • (b) For all x,y, ⟨Tx,y⟩A=y∗AA−1Bx=y∗Bx, and ⟨x,Ty⟩A=(A−1By)∗Ax=y∗B∗A−1Ax=y∗Bx, using (A−1)∗=A−1 and B∗=B. The two agree, so T is self-adjoint for this inner product (Definition 11.6.1).

  • (c) By Theorem 12.5.1 (over R) or Theorem 12.4.2 (over C) applied to the self-adjoint T on the inner product space (Fn,⟨⋅,⋅⟩A), there is a basis s1,…,sn of Fn, orthonormal for ⟨⋅,⋅⟩A, with Tsi=disi and di∈R (Theorem 12.2.1). The equation A−1Bsi=disi is Bsi=diAsi, and si∗Asj=⟨sj,si⟩A=δij; this is (a). For (b), λ is a generalized eigenvalue exactly when A−1B−λI is singular, that is when λ is an eigenvalue of A−1B, and those are d1,…,dn.

Exercise (C2: Signs of the generalized eigenvalues)

Let A≻O and B be self-adjoint in Mn(F), with generalized eigenvalues d1,…,dn.

  • (a) Prove that B⪰O if and only if every di≥0, and B≻O if and only if every di>0.
  • (b) Deduce that if A≻O and B≻O, then detB/detA=∏idi>0.

Solution.

  • (a) Let S be as in Theorem 13.4.1, so S∗BS=D=diag(d1,…,dn). For x∈Fn put y=S−1x; as x runs over Fn so does y, and x≠0 exactly when y≠0. Then x∗Bx=y∗S∗BSy=y∗Dy=∑idi|yi|2. If every di≥0, this is ≥0 for all y, so B⪰O. Conversely, taking y=ei gives di≥0. The same argument with strict inequalities gives the second claim, using that ∑idi|yi|2>0 for y≠0 when every di>0.

  • (b) Taking determinants in S∗BS=D and S∗AS=I gives |detS|2detB=∏idi and |detS|2detA=1. Dividing, detB/detA=∏idi, which is >0 by (a).

Exercise (C3: Dropping definiteness of A)

Let A=(1000) and B=(0110), so that A⪰O but A⊁O.

  • (a) Compute det(B−λA) and deduce that the pair has no generalized eigenvalues at all.
  • (b) Prove that no invertible S∈M2(R) makes S⊤AS and S⊤BS both diagonal.

Hint for (b): compare the degree in λ of det(B−λA) on both sides.

Solution.

  • (a) B−λA=(−λ110), with determinant −1. This is never 0, so B−λA is invertible for every λ and there is no x≠0 with Bx=λAx.

  • (b) Suppose S⊤AS=diag(a1,a2) and S⊤BS=diag(b1,b2). As in the proof of Theorem 13.4.2 (b), det(B−λA)=1(detS)2(b1−λa1)(b2−λa2). By (a) the left side is the constant −1, so the right side is a nonzero constant. It is nonzero, so b1b2≠0 and hence det(S⊤BS)≠0; it is constant in λ, so a1=a2=0, which forces S⊤AS=O and therefore A=O. That is false, so no such S exists. (Alternatively: rank(S⊤AS)=rankA=1, so exactly one ai is nonzero, and the right side then has degree 1 in λ, not 0.)

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.