20.5  The Hoffman–Wielandt Theorem

Section 04 showed that for a normal A, every eigenvalue of A+E lies within ‖E‖2 of some eigenvalue of A. That answers “how far”, one perturbed eigenvalue at a time. It does not answer “which goes where”: it never says that the eigenvalues of the two matrices can be paired off, each with a partner of its own. This section proves that for two normal matrices they can, with the total squared distance of the pairs bounded by ‖A−B‖F2. The proof is short once the right tool is in hand, and the tool is Birkhoff’s theorem from Chapter 19 §07. We then sharpen the result for Hermitian matrices, where the pairing is simply the decreasing order, and show that without normality the inequality fails for every pairing.

Throughout, the field is C, and eigenvalues are listed with algebraic multiplicity. For a Hermitian matrix, λ1(A)≥⋯≥λn(A) is the decreasing list, as in Chapter 17.

20.5.1. One-sided bounds do not pair eigenvalues

Recall Corollary 20.4.3 (a): if A∈Mn(C) is normal and E∈Mn(C) is arbitrary, then every eigenvalue μ of A+E satisfies mini|λi−μ|≤‖E‖2, where λ1,…,λn are the eigenvalues of A. The statement starts from a perturbed eigenvalue and finds a partner for it. Nothing in it stops two perturbed eigenvalues from choosing the same partner.

Here is the smallest case. Let A=(0001),A+E=(150025),E=(1500−35). Then ‖E‖2=35, and both perturbed eigenvalues are within 35 of an eigenvalue of A, as the corollary promises. But if each one goes to its nearest eigenvalue of A, both go to 0: the distances are 15 and 25 to 0, against 45 and 35 to 1. The nearest-eigenvalue map is not a bijection, and the eigenvalue 1 is left without a partner. A pairing does exist here, 0↔15 and 1↔25, with distances 15 and 35, but finding it was not the corollary’s doing.

Why ask for a pairing at all? Because it is what “the eigenvalues move a little” should mean. Chapter 16’s Corollary 16.7.4 is a pairing statement: the eigenvalues of a nearby matrix can be numbered so that each is close to its counterpart. It gives no rate. For Hermitian matrices, Weyl’s Corollary 17.3.6 gives a pairing with a rate, and the pairing is the decreasing order. For normal matrices with complex eigenvalues there is no decreasing order, and the pairing has to be found.

To say this precisely, let λ1,…,λn and μ1,…,μn be two lists of complex numbers. A pairing of them is a permutation σ∈Sn, which matches λi with μσ(i). Its cost, in the sense of this section, is the sum of squared distances ∑i=1n|λi−μσ(i)|2. A one-sided statement, “every μj is within r of some λi”, is a statement about sets. A pairing is a statement about lists with multiplicity, and it is strictly stronger.

Quick check. Let A=diag(0,0,1) and B=diag(0,1,1). Show that every eigenvalue of B is an eigenvalue of A and conversely, so each one-sided distance is 0. What is the smallest possible largest distance maxi|λi−μσ(i)| over all pairings σ?

Solution. Both matrices have the eigenvalue set {0,1}, so every eigenvalue of either one is at distance 0 from an eigenvalue of the other. As lists, A has (0,0,1) and B has (0,1,1). Any pairing must send one of the two 0’s of A to a 1 of B, since B has only one 0. So every pairing has largest distance at least 1, and the identity pairing attains 1. Sets that agree can still be far apart as lists.

20.5.2. Birkhoff turns weights into a permutation

The proof below will produce a sum of the form ∑i,jsijcij, in which cij=|λi−μj|2 is the cost of pairing λi with μj, and the weights sij form a doubly stochastic matrix. Such a sum is a fractional pairing: every λi spreads a total weight 1 over the μj, and every μj receives a total weight 1. A genuine pairing is the special case where each weight is 0 or 1, that is, where (sij) is a permutation matrix. The lemma says that fractional pairings never beat the best genuine one.

Recall Definition 18.8.4: S∈Mn(R) is doubly stochastic if its entries are nonnegative and every row and every column adds up to 1; the set of such matrices is Ωn. Recall also Definition 3.4.2: Pσ is the matrix whose j-th column is eσ(j), so its entry in position (σ(j),j) is 1 for each j, and all its other entries are 0.

Lemma 20.5.1 (A Fractional Pairing Is Never Cheaper)

Let C=(cij)∈Mn(R) and S=(sij)∈Ωn. Then there is a permutation σ∈Sn with ∑j=1ncσ(j)j ≤ ∑i,j=1nsijcij.

Idea. Write f(X)=∑i,jxijcij, a linear function of X. Birkhoff’s theorem writes S as an average of permutation matrices, so f(S) is the same average of the numbers f(Pσ), and an average is at least its smallest term.

Proof. Let f(X)=∑i,jxijcij for X∈Mn(R); it is linear in X. By Theorem 19.7.2, S=∑k=1mtkPσk for some permutations σ1,…,σm and weights tk≥0 with ∑ktk=1. By linearity, f(S)=∑k=1mtkf(Pσk) ≥ (∑k=1mtk)minkf(Pσk)=minkf(Pσk), where the inequality uses tk≥0. Let σ be a σk attaining the minimum. The only nonzero entries of Pσ are the 1’s in positions (σ(j),j), so f(Pσ)=∑jcσ(j)j. Hence ∑jcσ(j)j≤f(S), as claimed.

In the language of Chapter 18, this is Corollary 18.8.6 applied to Ωn. With the Frobenius inner product ⟨X,C⟩=tr(C⊤X)=∑i,jxijcij, the function f is X↦⟨X,C⟩. The set Ωn is nonempty, compact, and convex (Chapter 18 §08), so the minimum of f over it is attained at an extreme point, and by Theorem 19.7.2 the extreme points are the permutation matrices. The proof above uses the second form of Birkhoff’s theorem instead, so no compactness argument appears in it.

20.5.3. The theorem

We can now prove that two normal matrices have a pairing of their eigenvalues whose cost is at most the squared Frobenius distance between the matrices.

Theorem 20.5.2 (Hoffman–Wielandt Theorem)

Let A,B∈Mn(C) be normal, with eigenvalues λ1,…,λn and μ1,…,μn respectively, each listed with algebraic multiplicity in any order. Then there is a permutation σ∈Sn with ∑i=1n|λi−μσ(i)|2 ≤ ‖A−B‖F2.

Idea. Step roadmap.

① Diagonalize both. The spectral theorem gives A=UΛU∗ and B=VMV∗ with U,V unitary and Λ,M diagonal. The two orthonormal bases of eigenvectors are different, and the unitary W=U∗V records how they sit relative to each other.

② Compute the distance. The Frobenius norm does not see unitary factors, so ‖A−B‖F=‖ΛW−WM‖F. The (i,j) entry of ΛW−WM is (λi−μj)wij, so ‖A−B‖F2=∑i,j|wij|2|λi−μj|2. This is a fractional pairing with weights |wij|2.

③ Round it. The weights form a doubly stochastic matrix, because the rows and the columns of a unitary matrix are unit vectors. The lemma replaces the fractional pairing by a genuine one that costs no more.

Proof. By Corollary 12.4.3, since A and B are normal, there are unitary U,V∈U(n) with A=UΛU∗,B=VMV∗, where Λ=diag(λ1,…,λn) and M=diag(μ1,…,μn) in the given orders. Put W=U∗V, which is unitary as a product of unitary matrices. Since U∗U=I and V∗V=I, U∗(A−B)V=ΛU∗V−U∗VM=ΛW−WM. By Lemma 11.7.5, applied with the unitary factors U∗ on the left and V on the right, ‖A−B‖F=‖ΛW−WM‖F. The (i,j) entry of ΛW is λiwij and that of WM is wijμj, since multiplying by a diagonal matrix on the left scales rows and on the right scales columns. Hence

‖A−B‖F2=∑i,j=1n|wij|2|λi−μj|2.
(20.5.1)

Let S=(sij) with sij=|wij|2. Its entries are nonnegative. Row i adds up to ∑j|wij|2=(WW∗)ii=1, and column j adds up to ∑i|wij|2=(W∗W)jj=1, since W is unitary. So S∈Ωn. Apply Lemma 20.5.1 to S and the real matrix C with cij=|λi−μj|2. It gives τ∈Sn with ∑j=1n|λτ(j)−μj|2 ≤ ∑i,jsijcij=‖A−B‖F2, the equality being Eq. 20.5.1. Put σ=τ−1. As j runs over 1,…,n, so does i=τ(j), and j=σ(i); so the left-hand side is ∑i|λi−μσ(i)|2. This proves the theorem.

Both hypotheses were used in the first line and nowhere else: normality is what makes the diagonalizing matrices unitary. The rest of the proof is bookkeeping and Birkhoff’s theorem, which is where Chapter 19 §07’s theorem earns its keep.

In words: the eigenvalues of a normal matrix, as a list with multiplicity, are a 1-Lipschitz function of the matrix, when matrices are measured in the Frobenius norm and lists by their best pairing. In particular every pair in the best pairing is within ‖A−B‖F, so each eigenvalue of B has its own partner among those of A within that distance. This is a matching bound, with a constant, valid for all normal matrices at once. Compare Corollary 16.7.4, which gives a matching with no constant for all matrices, and Corollary 20.4.3, which gives a constant with no matching.

The theorem asserts that some pairing is cheap. The proof does not say which, beyond what the lemma gives, but the cheapest of the n! pairings certainly works, since it costs no more than any other. The next example shows that a pairing chosen by any other rule can fail.

Example (A Hermitian and a diagonal matrix)

Let A=(2112),B=(i002+i). Both are normal. Compute ‖A−B‖F2, the cost of both pairings of the eigenvalues, and the matrix S of the proof. Which pairings satisfy the conclusion of Theorem 20.5.2?

Solution. A is real symmetric, hence Hermitian and normal, and B is diagonal, hence normal. The eigenvalues of A are λ1=3 and λ2=1, with unit eigenvectors 12(1,1) and 12(1,−1): indeed A(1,1)=(3,3) and A(1,−1)=(1,−1). Those of B are μ1=i and μ2=2+i, with eigenvectors e1,e2.

The distance. A−B=(2−i11−i), so ‖A−B‖F2=|2−i|2+1+1+|−i|2=5+1+1+1=8.

The costs. The four squared distances cij=|λi−μj|2 are c11=|3−i|2=10,c12=|1−i|2=2,c21=|1−i|2=2,c22=|−1−i|2=2. The identity pairing 3↔i, 1↔2+i costs c11+c22=12. The swap 3↔2+i, 1↔i costs c12+c21=4.

The weights. With U=12(111−1) and V=I, W=U∗, and every entry of W has modulus 12. So S=12J, and Eq. 20.5.1 reads ‖A−B‖F2=12(10+2+2+2)=8, the average of the two costs, 12(12+4). An average lies between its terms, so the cheaper pairing, the swap with cost 4, satisfies 4≤8. The identity pairing, with cost 12>8, does not.

Warning. The theorem does not say that the given numbering works. In the example, the lists (3,1) and (i,2+i), paired in the order written, cost 12>8=‖A−B‖F2. Complex numbers have no natural order to sort by, so, unlike the Hermitian case below, there is no rule fixed in advance that always picks a good pairing. The safe reading is: the cheapest pairing satisfies the inequality.

20.5.4. Normality cannot be dropped

The proof used normality once, in its first line, to make the diagonalizing matrices unitary. For diagonalizable matrices A=XΛX−1 and B=YMY−1 with X, Y not unitary, Lemma 11.7.5 no longer applies, and ‖A−B‖F is no longer the norm of ΛW−WM with W=X−1Y. The failure is real, not an artifact of the proof.

Example (Every pairing fails)

Let A=(130−1),B=(131−1). Show that A and B are diagonalizable but not normal, and that the inequality of Theorem 20.5.2 fails for every pairing of their eigenvalues.

Solution. A is triangular with eigenvalues 1 and −1. The matrix B has trace 0 and determinant −1−3=−4, so its characteristic polynomial is x2−4 and its eigenvalues are 2 and −2. Each has two distinct eigenvalues, so each is diagonalizable (Theorem 9.4.1). Neither is normal: A∗A=(13310)≠(10−3−31)=AA∗,B∗B=(22210)≠(10−2−22)=BB∗. The difference A−B has a single nonzero entry, −1 in position (2,1), so ‖A−B‖F2=1.

There are two pairings. The one that matches signs, 1↔2 and −1↔−2, costs 12+12=2. The other, 1↔−2 and −1↔2, costs 32+32=18. Both exceed 1, so no pairing satisfies the inequality.

The entry 3 is what makes this work, and the failure is not confined to a perturbation as large as 1. Put δ>0 in the corner instead: Bδ=(13δ−1) has determinant −1−3δ and eigenvalues ±1+3δ, each of which moves by 1+3δ−1, about 32δ for small δ. So the cheaper pairing costs about 2(32δ)2=92δ2, well above ‖A−Bδ‖F2=δ2. With an entry m in place of 3 the cost is about 12m2δ2, so the inequality fails for small δ as soon as m>2. A large entry above the diagonal is exactly what Chapter 12 §11 measured as departure from normality, and it is what makes the eigenvalues sensitive.

A Jordan block shows that no constant can repair the inequality. Let A=J2(0) and, for ε>0, Bε=(01ε0). Then A has the eigenvalue 0 twice, Bε has characteristic polynomial x2−ε and eigenvalues ±ε, and ‖A−Bε‖F2=ε2. Both pairings cost the same, (ε)2+(ε)2=2ε, and 2εε2=2ε⟶∞(ε→0+). So there is no constant K with minσ∑i|λi−μσ(i)|2≤K‖A−B‖F2 for all pairs of matrices. This is Example (A Jordan block’s eigenvalues move like ε1/k) of Chapter 16 read in the language of pairings: the eigenvalues move like ε while the matrix moves by ε.

Warning. Diagonalizable is not enough, and one normal matrix is not enough. In Example (Every pairing fails) both matrices are diagonalizable, and every pairing fails. Nor does it help to make just one of the two matrices normal: for A=J2(0) and the Hermitian B=(0110), with eigenvalues ±1, both pairings cost 1+1=2, while ‖A−B‖F2=1. The theorem needs both matrices normal.

20.5.5. Hermitian matrices: the pairing is the order

When both matrices are Hermitian, the eigenvalues are real, and there is a natural guess for the best pairing: largest with largest, second with second, and so on. The guess is right, and the reason is a fact about real numbers alone.

Lemma 20.5.3 (The Sorted Pairing Is Cheapest)

Let a1≥a2≥⋯≥an and b1≥b2≥⋯≥bn be real numbers. Then for every σ∈Sn, ∑i=1n(ai−bi)2 ≤ ∑i=1n(ai−bσ(i))2.

Idea. Expanding the squares, ∑iai2 and ∑ibσ(i)2=∑jbj2 do not depend on σ, so the claim is that the cross term ∑iaibσ(i) is largest at the identity. If σ puts a smaller b before a larger one in two neighboring positions, swapping those two values can only increase the cross term, and it removes one inversion. Repeating the swap sorts σ into the identity.

Proof. For every σ, since σ is a bijection, ∑ibσ(i)2=∑jbj2, and so ∑i=1n(ai−bσ(i))2=∑iai2+∑jbj2−2g(σ),g(σ)=∑i=1naibσ(i). It therefore suffices to show g(σ)≤g(id) for every σ. The set Sn is finite, so g attains a maximum on it; among the permutations where it does, choose one, σ, with the fewest inversions (Definition 7.3.1). Suppose σ≠id. Then σ(i)>σ(i+1) for some i, since a permutation with σ(1)<σ(2)<⋯<σ(n) is the identity. Let σ′ agree with σ except that σ′(i)=σ(i+1) and σ′(i+1)=σ(i). Then g(σ′)−g(σ)=(ai−ai+1)(bσ(i+1)−bσ(i)) ≥ 0, because ai≥ai+1, and σ(i+1)<σ(i) gives bσ(i+1)≥bσ(i). So σ′ also maximizes g. Now count inversions. The pair of positions (i,i+1) is an inversion of σ and not of σ′. A pair involving neither i nor i+1 sees the same values under both. For a position p∉{i,i+1}, the two pairs joining p to i and to i+1 compare σ(p) with the same two values σ(i),σ(i+1) under σ and under σ′, from the same side, so together they contain the same number of inversions. Hence σ′ has one inversion fewer than σ, contradicting the choice of σ. So σ=id maximizes g, and g(σ)≤g(id) for every σ. This proves the lemma.

The move is an exchange argument: to show that an arrangement is optimal, show that repairing one local defect never makes things worse. The inequality ∑iaibσ(i)≤∑iaibi is known as the rearrangement inequality.

Example (Three numbers, six pairings)

Let a=(4,2,1) and b=(3,0,−1), both decreasing. Compute ∑i(ai−bσ(i))2 for all six σ∈S3, and find the cheapest and the dearest.

Solution. The nine squared distances (ai−bj)2, with i the row and j the column, are (11625149414). A pairing picks one entry from each row and each column. Writing σ by its values (σ(1),σ(2),σ(3)), (1,2,3):1+4+4=9,(1,3,2):1+9+1=11,(2,1,3):16+1+4=21,(2,3,1):16+9+4=29,(3,1,2):25+1+1=27,(3,2,1):25+4+4=33. The identity, which pairs the two sorted lists in order, costs 9, the least of the six, as Lemma 20.5.3 says. The dearest is the reversed pairing (3,2,1), at 33.

One exchange step of the proof is visible here. The permutation (1,3,2) has the single inversion σ(2)>σ(3); undoing it gives the identity and lowers the cost by 2, which is 2(a2−a3)(b2−b3)=2⋅1⋅1.

Corollary 20.5.4 (Hoffman–Wielandt for Hermitian Matrices)

Let A,B∈Mn(C) be Hermitian. Then ∑i=1n(λi(A)−λi(B))2 ≤ ‖A−B‖F2.

Proof. Hermitian matrices are normal (Proposition 11.6.7 (c)) and have real eigenvalues. By Theorem 20.5.2 applied to the lists λ1(A),…,λn(A) and λ1(B),…,λn(B), there is σ∈Sn with ∑i(λi(A)−λσ(i)(B))2≤‖A−B‖F2, where |t|2=t2 for real t. Both lists are decreasing, so by Lemma 20.5.3 the sorted pairing costs no more than σ. This proves the corollary.

This is the Frobenius-norm companion of Weyl’s bound. Put E=A−B, Hermitian. By the spectral theorem E=UDU∗ with U unitary and D=diag(λ1(E),…,λn(E)), so Lemma 11.7.5 gives ‖E‖F2=‖D‖F2=∑iλi(E)2, while ‖E‖2=maxi|λi(E)| by Lemma 17.3.5. So Weyl’s Corollary 17.3.6 says maxi|λi(A)−λi(B)| ≤ maxi|λi(E)|, and Corollary 20.5.4 says ∑i(λi(A)−λi(B))2 ≤ ∑iλi(E)2. In both, a norm of the vector of shifts λ(A)−λ(B) is bounded by the same norm of λ(E): the ∞-norm for Weyl, the 2-norm for Hoffman–Wielandt.

Neither implies the other. For E=tI with t>0, every eigenvalue shifts by t; Weyl’s bound t is exact for each shift, while Hoffman–Wielandt alone allows a single shift as large as ‖E‖F=nt. For a rank-one E=txx∗ with ‖x‖2=1, ‖E‖F=‖E‖2=t; Weyl lets every eigenvalue move by up to t, while Hoffman–Wielandt says that the squared shifts together use up at most t2, so if one eigenvalue moves by t, none of the others moves at all.

Remark. Lidskii’s inequality contains both. Chapter 17 §07 proved λ(A)−λ(B)≺λ(A−B) (the remark after Theorem 17.7.2), and Weyl’s bound follows from it there, as Corollary 17.7.3 (a). Chapter 21 shows that a majorization x≺y gives ∑iϕ(xi)≤∑iϕ(yi) for every convex ϕ; with ϕ(t)=t2 this is Corollary 20.5.4 again, and Chapter 21 turns the same majorization into one bound for every unitarily invariant norm. Nothing here depends on that route; the proof above goes through Birkhoff’s theorem, Theorem 19.7.2.

Quick check. Let A=diag(3,1) and B=(2112). Compute ‖A−B‖F2 and both sides of Corollary 20.5.4. What does the reversed pairing λ1(A)↔λ2(B), λ2(A)↔λ1(B) cost?

Solution. A−B=(1−1−1−1), so ‖A−B‖F2=4. The eigenvalues of B are 3 and 1 (as in Example (A Hermitian and a diagonal matrix)), the same as those of A. So the left side of the corollary is 0≤4: two matrices at Frobenius distance 2 can have identical spectra, and the inequality is only an upper bound. The reversed pairing costs (3−1)2+(1−3)2=8>4. Even for Hermitian matrices, the pairing matters.

20.5.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the Hoffman–Wielandt theorem, with its hypotheses.
  • (b) True or false: if A and B are normal, the eigenvalues of B listed in any order satisfy ∑i|λi−μi|2≤‖A−B‖F2. Justify your answer.
  • (c) True or false: the Hoffman–Wielandt inequality holds for every pair of diagonalizable matrices. Justify your answer.
  • (d) For normal A and B, what bound does the theorem give on the distance between an eigenvalue of B and its partner?
  • (e) Where exactly does Birkhoff’s theorem (Theorem 19.7.2) enter the proof, and what would be missing without it?
  • (f) For Hermitian A, B with E=A−B of rank one, explain why at most one eigenvalue can move by the full amount ‖E‖2.

Solution.

  • (a) If A,B∈Mn(C) are normal, with eigenvalues λ1,…,λn and μ1,…,μn listed with multiplicity, then there is a permutation σ with ∑i|λi−μσ(i)|2≤‖A−B‖F2.

  • (b) False. In Example (A Hermitian and a diagonal matrix), the order (3,1) and (i,2+i) costs 12>8. Only a suitable pairing, for instance the cheapest one, is guaranteed.

  • (c) False. In Example (Every pairing fails) both matrices have two distinct eigenvalues, hence are diagonalizable, and both pairings cost more than ‖A−B‖F2=1.

  • (d) Each summand is at most the whole sum, so |λi−μσ(i)|≤‖A−B‖F for every i, for the pairing σ of the theorem.

  • (e) The proof writes ‖A−B‖F2 as ∑i,jsij|λi−μj|2 with (sij) doubly stochastic, a fractional pairing. Birkhoff’s theorem, through Lemma 20.5.1, replaces it by a genuine pairing that costs no more. Without it, we would know only that a weighted average of the costs |λi−μj|2 is small, which does not produce a permutation.

  • (f) For Hermitian E of rank one, E has at most one nonzero eigenvalue, so ‖E‖F2=∑iλi(E)2=‖E‖22. By Corollary 20.5.4 the squared shifts add up to at most ‖E‖22. If one shift equals ‖E‖2 in absolute value, the others are 0.

B. Practice

Exercise (B1: A pair of normal matrices)

Let A=(0220),B=(100−1+2i). Check that both are normal, compute ‖A−B‖F2 and the costs of both pairings of the eigenvalues, and compute the matrix S of the proof of Theorem 20.5.2. Hence decide which pairings satisfy the Hoffman–Wielandt inequality.

Solution. A is real symmetric, hence normal, and B is diagonal, hence normal. A(1,1)=(2,2) and A(1,−1)=(−2,2), so A has eigenvalues λ1=2, λ2=−2 with unit eigenvectors 12(1,±1). B has eigenvalues μ1=1, μ2=−1+2i.

A−B=(−1221−2i), so ‖A−B‖F2=1+4+4+5=14.

The squared distances are c11=|2−1|2=1, c12=|3−2i|2=13, c21=|−3|2=9, c22=|−1−2i|2=5. The identity pairing costs 1+5=6, and the swap costs 13+9=22.

With U=12(111−1) and V=I, W=U∗ has all entries of modulus 12, so S=12J, and indeed 12(1+13+9+5)=14. Hence the identity pairing satisfies the inequality, 6≤14, and the swap does not, 22>14.

Exercise (B2: Hermitian, compared with Weyl)

Let A=(200010000),B=(21012000−1). Compute λ(A), λ(B), ‖A−B‖F, and ‖A−B‖2. Verify Corollary 20.5.4 and Corollary 17.3.6 for this pair. Hence say which of the two bounds is closer to the truth here.

Solution. λ(A)=(2,1,0). The top-left block of B has eigenvalues 3 and 1 (with eigenvectors (1,1) and (1,−1)), and the last entry is −1, so λ(B)=(3,1,−1). The shifts are λi(B)−λi(A)=1,0,−1.

E=B−A=(01011000−1), so ‖E‖F2=1+1+1+1=4 and ‖E‖F=2. Its top-left block has characteristic polynomial x2−x−1, with roots 1±52, and its last eigenvalue is −1. By Lemma 17.3.5, ‖E‖2=1+52≈1.618.

Hoffman–Wielandt: 12+02+(−1)2=2≤4. Weyl: each |shift|≤1≤1.618. Hence both hold. Weyl overestimates the largest shift by a factor of about 1.6; Hoffman–Wielandt overestimates the sum of squares by a factor of 2. Neither is sharp here, and neither dominates.

Exercise (B3: Sorting)

Let a=(5,2,−1) and b=(4,3,0). Compute ∑i(ai−bσ(i))2 for all six σ∈S3. Hence confirm Lemma 20.5.3, and say which pairing is the most expensive.

Solution. Write σ by its values (σ(1),σ(2),σ(3)). Then (1,2,3):1+1+1=3,(1,3,2):1+4+16=21,(2,1,3):4+4+1=9,(2,3,1):4+4+25=33,(3,1,2):25+4+16=45,(3,2,1):25+1+25=51. The identity, which pairs the sorted lists in order, costs 3, the least of the six, as the lemma says. The most expensive is (3,2,1), which pairs the largest a with the smallest b and so on: the reversed order. Exercise C1 (b) shows this is no accident.

C. Going deeper

Exercise (C1: The most expensive pairing)
  • (a) Let A,B∈Mn(C) be normal, with eigenvalues λi and μi. Prove that there is also a permutation σ with ∑i|λi−μσ(i)|2≥‖A−B‖F2.
  • (b) Deduce that for Hermitian A,B, ∑i=1n(λi(A)−λn+1−i(B))2 ≥ ‖A−B‖F2.

Hint for (b): apply Lemma 20.5.3 to the list −λn+1−i(B).

Solution.

  • (a) Apply Lemma 20.5.1 to the same S∈Ωn as in the proof of Theorem 20.5.2 and to the matrix −C, where cij=|λi−μj|2. It gives τ with −∑jcτ(j)j≤−∑i,jsijcij=−‖A−B‖F2, by Eq. 20.5.1. Multiplying by −1 and putting σ=τ−1, as in that proof, gives ∑i|λi−μσ(i)|2≥‖A−B‖F2.

  • (b) Write ai=λi(A) and ci=λi(B), and let bi=−cn+1−i. Both (ai) and (bi) are decreasing, the second because cn+1−i increases with i. Let π∈Sn, and let σ(i)=n+1−π(i), which is again a permutation, with bσ(i)=−cπ(i). By Lemma 20.5.3, ∑i(ai−bi)2≤∑i(ai−bσ(i))2, that is, ∑i(ai+cn+1−i)2 ≤ ∑i(ai+cπ(i))2. Expanding both sides, the squares ∑iai2 and ∑jcj2 cancel, and what remains is ∑iaicn+1−i≤∑iaicπ(i). Hence ∑i(ai−cπ(i))2=∑iai2+∑jcj2−2∑iaicπ(i) ≤ ∑i(ai−cn+1−i)2. So the reversed pairing i↦n+1−i is the most expensive of all. By (a) some pairing costs at least ‖A−B‖F2, so the most expensive one does too, which is the claim.

Exercise (C2: Each eigenvalue keeps its own disc)

Let A∈Mn(C) be normal with distinct eigenvalues λ1,…,λn, and let δ=mini≠j|λi−λj|. Let B be normal with ‖A−B‖F<δ/2. Prove that each open disc {z:|z−λi|<δ/2} contains exactly one eigenvalue of B, counted with multiplicity. Explain why Corollary 20.4.3 alone does not give this.

Solution. The discs are pairwise disjoint: if |z−λi|<δ/2 and |z−λj|<δ/2 with i≠j, the triangle inequality (Theorem 0.6.4) gives |λi−λj|<δ, contradicting the definition of δ. By Theorem 20.5.2 there is σ with ∑i|λi−μσ(i)|2≤‖A−B‖F2<δ2/4, so |λi−μσ(i)|<δ/2 for every i. Thus the entry μσ(i) of the list lies in the i-th disc, and, the discs being disjoint, in no other. Since σ is a bijection, every entry of the list μ1,…,μn is μσ(i) for exactly one i. So the i-th disc contains exactly one entry of the list, namely μσ(i), which is the claim.

Corollary 20.4.3 (a), with ‖A−B‖2≤‖A−B‖F<δ/2 (Proposition 16.3.4, or both norms being 0 if A=B, the case the proposition excludes), puts every eigenvalue of B in the union of the discs, but, as in the first example of this section, it allows two of them to fall in the same disc and leave another disc empty.

Exercise (C3: A Jordan block of any size)

Let n≥2, ε>0, A=Jn(0), and B=Jn(0)+εEn1, where En1 is the matrix unit.

  • (a) Show that the characteristic polynomial of B is xn−ε, and hence that every pairing of the eigenvalues of A and B costs nε2/n.
  • (b) Deduce that the Hoffman–Wielandt inequality fails for every pairing whenever 0<ε<nn/(2n−2), and that the ratio of the cost to ‖A−B‖F2 tends to ∞ as ε→0+.

Hint for (a): expand det(xI−B) along the first column.

Solution.

  • (a) xI−B has x on the diagonal, −1 on the superdiagonal, −ε in position (n,1), and zeros elsewhere. Expanding along the first column, the (1,1) entry x multiplies the determinant of an upper triangular matrix with diagonal x, which is xn−1. The (n,1) entry −ε carries the sign (−1)n+1 and multiplies the determinant of the matrix left after deleting row n and column 1, which is lower triangular with diagonal entries −1, hence has determinant (−1)n−1. So det(xI−B)=xn+(−1)n+1(−ε)(−1)n−1=xn−ε. Its roots are the n complex numbers z with zn=ε, each of modulus ε1/n (these are Chapter 16’s computation in Example (A Jordan block’s eigenvalues move like ε1/k)). Every eigenvalue of A is 0, so every pairing costs ∑i|0−μσ(i)|2=nε2/n.

  • (b) A−B=−εEn1, so ‖A−B‖F2=ε2. The inequality fails for every pairing exactly when nε2/n>ε2, that is, ε2−2/n<n, that is, ε<n1/(2−2/n)=nn/(2n−2); for n=2 this is ε<2, as in the text. The ratio is nε2/n/ε2=nε−(2n−2)/n, and the exponent −(2n−2)/n is negative, so the ratio tends to ∞ as ε→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.