21.5  The Trace Inequality

Sections 3 and 4 built a dictionary: a unitarily invariant norm is a symmetric gauge applied to the list of singular values, and a symmetric gauge respects weak majorization. To use that dictionary we need a supply of inequalities between singular values, and the cleanest source of them is a single scalar inequality about how two matrices pair against each other. This section proves it. The pairing is the Frobenius one, tr(A∗B), and the theorem says that it is largest when the two matrices are aligned: when their singular value decompositions can be written with the same unitary factors.

21.5.1. How large can a pairing be?

Chapter 11 §01 made Mm×n(F) an inner product space with ⟨A,B⟩=tr(B∗A), whose norm is the Frobenius norm ‖A‖F. So tr(A∗B)=⟨B,A⟩ is an inner product of two matrices, and Cauchy–Schwarz (Theorem 11.1.5) already bounds it: |tr(A∗B)| ≤ ‖A‖F‖B‖F=(∑iσi(A)2)1/2(∑iσi(B)2)1/2, using ‖A‖F2=∑iσi(A)2. That bound depends only on the two lists of singular values, which is the right kind of answer; but it is not the best one.

Here is the smallest example. Let A=diag(2,1) and B=I2. Then tr(A∗B)=3, while Cauchy–Schwarz allows 5⋅2≈3.162. The number 3 is σ1(A)σ1(B)+σ2(A)σ2(B), the two lists of singular values multiplied term by term in decreasing order. That is the true bound, and the pairing ∑iσiτi is never larger than the Cauchy–Schwarz product, by Cauchy–Schwarz applied to the two lists.

Two matrices pair as well as their singular values allow, and no better; and the best case is when the two matrices stretch the same directions by the same ranking.

The proof takes the two singular value decompositions apart and finds, sitting between them, a square array of non-negative weights whose rows and columns each add up to at most 1. Everything then reduces to a fact about such arrays, which is worth isolating first.

21.5.2. Weights that do not add up to more than one

Definition 21.5.1 (Doubly Substochastic Matrix)

A matrix D=(dkl)∈Mp(R) is doubly substochastic if

  • (S1) dkl≥0 for all k,l;
  • (S2) ∑l=1pdkl≤1 for every row index k; and
  • (S3) ∑k=1pdkl≤1 for every column index l.

In words: the entries are non-negative, and no row and no column adds up to more than one. Replacing both “≤1” by “=1” gives the doubly stochastic matrices of Definition 18.8.4, so every doubly stochastic matrix is doubly substochastic, and in particular so is every permutation matrix. The zero matrix is doubly substochastic, which the stochastic condition excludes; that degenerate case matters, because it is what lets a substochastic matrix throw weight away instead of merely moving it. A non-example by minimal change: (1100) satisfies (S1) and (S3) but its first row adds to 2, so (S2) fails.

The lemma we need says that such an array of weights cannot help two decreasing non-negative lists pair better than they do term by term.

Lemma 21.5.1 (Substochastic Pairing)

Let x1≥⋯≥xp≥0 and y1≥⋯≥yp≥0 be real numbers, and let D∈Mp(R) be doubly substochastic. Then ∑k=1p∑l=1pdklxkyl ≤ ∑k=1pxkyk.

Idea. Decreasing non-negative lists are non-negative combinations of the “staircase” lists (1,…,1,0,…,0): write xk=∑i≥k(xi−xi+1). Summation by parts in both variables at once turns each side into a non-negative combination of the same coefficients, and all that is left to compare is what multiplies them: on the left a partial sum of D over a top-left rectangle, on the right the number min(i,j). The two substochastic conditions say exactly that an i×j rectangle of D holds at most min(i,j).

Proof. Put xp+1=yp+1=0 and, for 1≤i≤p, write Δxi=xi−xi+1 and Δyi=yi−yi+1. These are ≥0, since the lists are decreasing and xp,yp≥0, and telescoping gives xk=∑i=kpΔxi,yl=∑j=lpΔyj(1≤k,l≤p). Substituting both and exchanging the order of the four finite sums, ∑k,ldklxkyl=∑i=1p∑j=1pΔxiΔyjSij,Sij:=∑k≤i∑l≤jdkl, because the pair (k,l) contributes to (i,j) exactly when k≤i and l≤j. The same substitution with D replaced by the identity matrix gives ∑k=1pxkyk=∑i=1p∑j=1pΔxiΔyjmin(i,j), since the number of k≤min(i,j) is min(i,j).

It remains to compare Sij with min(i,j). Summing (S2) over the i rows k≤i and discarding the non-negative entries with l>j gives Sij≤i; summing (S3) over the j columns l≤j gives Sij≤j. Hence Sij≤min(i,j) for all i,j. Since every Δxi and every Δyj is ≥0, replacing Sij by min(i,j) can only increase the double sum. This proves the lemma.

Taking D to be the permutation matrix of π∈Sp gives ∑kxkyπ(k)≤∑kxkyk: two decreasing lists pair best when they are paired in order. That is the rearrangement inequality, and it is the special case that carries the meaning of the lemma. The general case allows the weights to be spread out and partly thrown away, and says that neither helps.

Quick check. Where does the proof use xp≥0 and yp≥0, rather than just the decrease? Find a doubly substochastic D and a decreasing pair with a negative entry for which the conclusion fails.

Solution. It is used to make Δxp=xp and Δyp=yp non-negative, which is what allows Sij to be replaced by the larger min(i,j) in the last step. Without it the conclusion fails: take p=2, x=(1,−1), y=(1,1) and D=diag(1,0), which is doubly substochastic. The left side is 1 and the right side is 1−1=0, so the asserted inequality 1≤0 is false. The proof breaks at the step named: here Δx2=x2=−1<0 and Δy2=1, so replacing S22=1 by min(2,2)=2 lowers the double sum instead of raising it. Throwing weight away helps when a pairing is negative, and that is exactly what non-negativity rules out.

21.5.3. The trace inequality

Theorem 21.5.2 (Von Neumann’s Trace Inequality)

Let A,B∈Mm×n(F) with F=R or C, and let p=min(m,n). Then |tr(A∗B)| ≤ ∑i=1pσi(A)σi(B). The bound is attained whenever A and B have aligned singular value decompositions, that is, whenever there are unitary U∈Mm(F) and V∈Mn(F) with A=UΣAV∗ and B=UΣBV∗, where ΣA,ΣB∈Mm×n(F) carry σi(A) and σi(B) on the main diagonal and zeros elsewhere.

Idea. Write both singular value decompositions and push the four unitary factors into two: one, M, sits between the two diagonal matrices, the other, N, closes the trace up. Multiplying out, the trace becomes ∑k,lσk(A)σl(B)mklnlk: every pairing of a singular value of A with one of B occurs, weighted by one entry of each unitary. The weights |mklnlk| are exactly where unitarity is spent — each row of M and each column of N is a unit vector, so Cauchy–Schwarz makes the weight array doubly substochastic — and Lemma 21.5.1 finishes.

Proof. Fix singular value decompositions A=U1ΣAV1∗ and B=U2ΣBV2∗ (Theorem 13.8.1), with U1,U2∈Mm(F) and V1,V2∈Mn(F) unitary and ΣA,ΣB as in the statement. Put M:=U1∗U2∈Mm(F),N:=V2∗V1∈Mn(F), both unitary, being products of unitary matrices. Then A∗B=V1ΣA∗MΣBV2∗, so by Theorem 0.9.6 (3), moving the factor V1 to the back, tr(A∗B)=tr(ΣA∗MΣBN). Now compute that trace entry by entry. The matrix ΣA∗∈Mn×m(F) has (k,a) entry σk(A)δka, which vanishes unless k=a≤p, and ΣB has (b,l) entry σb(B)δbl, which vanishes unless b=l≤p. Hence

tr(A∗B)=∑k=1p∑l=1pσk(A)σl(B)mklnlk,
(21.5.1)

all indices being in range because p≤m and p≤n. By the triangle inequality (Theorem 0.6.4), |tr(A∗B)| ≤ ∑k=1p∑l=1pσk(A)σl(B)dkl,dkl:=|mkl||nlk|.

Claim. D=(dkl)k,l≤p is doubly substochastic.

Proof. Each dkl≥0, which is (S1). Fix k≤p. By Cauchy–Schwarz (Theorem 11.1.5) in Rp, and then by extending both sums to their full ranges l≤m and l≤n, which only adds non-negative terms, ∑l=1p|mkl||nlk|≤(∑l=1m|mkl|2)1/2(∑l=1n|nlk|2)1/2=1, because row k of the unitary M and column k of the unitary N are unit vectors. This is (S2), and (S3) is the same computation with the roles of the two indices exchanged: column l of M and row l of N are unit vectors as well.

The lists σ1(A)≥⋯≥σp(A)≥0 and σ1(B)≥⋯≥σp(B)≥0 are decreasing and non-negative (Definition 13.8.1), so Lemma 21.5.1 applies and gives ∑k,lσk(A)σl(B)dkl ≤ ∑k=1pσk(A)σk(B), which is the stated bound.

For the last sentence, suppose A=UΣAV∗ and B=UΣBV∗ with the same U and V. Then A∗B=VΣA∗U∗UΣBV∗=VΣA∗ΣBV∗, and ΣA∗ΣB is the n×n diagonal matrix with entries σi(A)σi(B) for i≤p and zeros after. Taking traces and using Theorem 0.9.6 (3) again, tr(A∗B)=∑i≤pσi(A)σi(B). This proves the theorem.

Three things about the proof are worth keeping. The weight matrix D is where all the information about the two sets of singular directions has gone; the only thing about it that survives is a pair of inequalities. Unitarity is spent exactly once, on the unit rows and columns inside the claim, and nothing else about M and N is used. And the equality case shows the bound is not merely an upper bound to be improved later: it is attained for every prescribed pair of singular value lists.

Warning. The singular values are paired in matching order, and no other pairing gives an upper bound. For A=diag(2,1) and B=diag(20,15) the reversed pairing is 2⋅15+1⋅20=50, while tr(A∗B)=40+15=55. What is true for every permutation π is the lower bound ∑iσi(A)σπ(i)(B)≤∑iσi(A)σi(B), which is the rearrangement inequality above.

Example (A strict case and an equality case)

Let A=(2001),B=(12−12169),B′=(200015). Check that B and B′ have the same singular values, and compare the two sides of Theorem 21.5.2 for the pairs (A,B) and (A,B′).

Solution. For B, B⊤B=(144+256−144+144−144+144144+81)=(40000225), so σ(B)=(20,15) by Definition 13.8.1, and σ(B′)=(20,15) as well since B′ is diagonal with positive decreasing entries. Also σ(A)=(2,1). So both pairs have the same right-hand side, σ1(A)σ1(B)+σ2(A)σ2(B)=2⋅20+1⋅15=55. On the left, tr(A⊤B′)=2⋅20+1⋅15=55: equality. And tr(A⊤B)=2⋅12+1⋅9=33<55: strict.

The reason is visible in the decompositions. Both A and B′ are diagonal with decreasing non-negative entries, so A=IAI∗ and B′=IB′I∗ are aligned. For B, on the other hand, B=U2diag(20,15) with U2=15(3−443), a rotation, so in the notation of the proof M=U1∗U2=U2 and N=I. The weight matrix is D=diag(35,35), doubly substochastic and far from a permutation, and Eq. 21.5.1 reads 2⋅20⋅35+1⋅15⋅35=24+9=33. The rotation has thrown away two fifths of each weight, and that is exactly the loss.

21.5.4. The dual of a unitarily invariant norm

The trace inequality is a statement about a pairing, so it is really a statement about duality. Recall the dual norm of Definition 18.4.4: it measures a vector by the largest value of the pairing against vectors the given norm calls short. On matrices, the pairing to use is the Frobenius one, and the result is exactly as clean as one could hope: dualizing a unitarily invariant norm dualizes its symmetric gauge and nothing else.

Corollary 21.5.3 (Duality of Unitarily Invariant Norms)

Let |||⋅||| be a unitarily invariant norm on Mm×n(F) (Definition 21.4.1) with symmetric gauge Φ on Rp, p=min(m,n), so that |||A|||=Φ(σ(A)) (Lemma 21.4.1). Define |||B|||∗:=max{|tr(B∗A)| : A∈Mm×n(F), |||A|||≤1}. Then |||B|||∗=Φ∗(σ(B)), where Φ∗ is the dual gauge of Definition 21.3.3. In particular |||⋅|||∗ is again a unitarily invariant norm, the trace norm |||⋅|||(p) of Definition 21.4.2 and the spectral norm ‖⋅‖2 are dual to each other, and the Frobenius norm is self-dual.

Idea. Both inequalities are one line each once the trace inequality is available. For ≤, bound the pairing by ∑iσi(A)σi(B) and then by Φ(σ(A))Φ∗(σ(B)), which is what a dual norm is for. For ≥, build the competitor A out of B: take the vector where Φ∗(σ(B)) is attained and hang it on B’s own singular vectors, which makes the pair aligned and turns the trace inequality into an equality.

Proof. Write σ(B)∈Rp for the singular value list of B, and fix a singular value decomposition B=UΣBV∗ (Theorem 13.8.1).

(≤) Let |||A|||≤1. By Theorem 21.5.2 and then by the defining property of a dual norm (Proposition 18.4.6 (b), applied to the norm Φ of Definition 21.3.3), which gives ⟨x,y⟩≤Φ(x)Φ∗(y) for all x,y, |tr(B∗A)|≤∑i=1pσi(A)σi(B)≤Φ(σ(A))Φ∗(σ(B))=|||A|||Φ∗(σ(B))≤Φ∗(σ(B)).

(≥) By Definition 21.3.3 there is x∈Rp with Φ(x)≤1 and ⟨x,σ(B)⟩=Φ∗(σ(B)). We may assume x1≥⋯≥xp≥0. Indeed, replacing each xi by |xi| leaves Φ(x) unchanged, by the sign invariance in Definition 21.3.1, and does not decrease ⟨x,σ(B)⟩ because every σi(B)≥0; sorting the result decreasingly leaves Φ unchanged, by the permutation invariance in Definition 21.3.1, and does not decrease ⟨x,σ(B)⟩ by the rearrangement inequality (Lemma 21.5.1 with a permutation matrix). Since Φ∗(σ(B)) is by definition the largest value of ⟨⋅,σ(B)⟩ on {Φ≤1}, the value is still exactly Φ∗(σ(B)). Now put A:=UXV∗,X∈Mm×n(F) with (X)ii=xi (i≤p) and all other entries 0. Since x1≥⋯≥xp≥0, this is a singular value decomposition of A, so σ(A)=x and |||A|||=Φ(x)≤1. It is aligned with the chosen decomposition of B, so the equality case of Theorem 21.5.2 gives |tr(B∗A)|=∑i=1pxiσi(B)=Φ∗(σ(B)). Hence the maximum is at least Φ∗(σ(B)), and the two bounds together prove the formula. (The maximum is attained, by the competitor just built.)

The remaining claims follow. By Theorem 21.3.5, Φ∗ is a symmetric gauge, so |||⋅|||∗ is the unitarily invariant norm it corresponds to under Theorem 21.4.3. The trace norm is the one with Φ=‖⋅‖1 and the spectral norm the one with Φ=‖⋅‖∞, by Lemma 21.4.1 and Theorem 16.3.3 (c); these gauges are dual to each other by Proposition 18.4.7 (a), (b). The Frobenius norm has Φ=‖⋅‖2, which is self-dual by Proposition 18.4.7 (c). This proves the corollary.

So the two extreme normalized unitarily invariant norms of Section 4 — the smallest, ‖⋅‖2, and the largest, the trace norm, extreme among the normalized ones by Proposition 21.4.4 (c) — are exchanged by duality, and the Frobenius norm sits at the fixed point in the middle. Since Φ∗∗=Φ (Theorem 21.3.5), dualizing twice returns the original norm.

Quick check. What does Corollary 21.5.3 say for B=e1e1∗, a single matrix unit, and |||⋅||| the spectral norm?

Solution. Here σ(B)=(1,0,…,0), and the gauge of the spectral norm is ‖⋅‖∞, whose dual is ‖⋅‖1. So |||B|||∗=‖(1,0,…,0)‖1=1: the largest value of |tr(B∗A)|=|a11| over matrices with ‖A‖2≤1 is 1, attained at A=e1e1∗. An entry of a matrix never exceeds its spectral norm, and for a matrix unit that is sharp.

21.5.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define a doubly substochastic matrix, and say which doubly substochastic matrices are doubly stochastic.
  • (b) State Theorem 21.5.2, with its hypotheses, and say what “aligned” means.
  • (c) Determine whether the following is true for all A,B∈Mn(C), and justify your answer: |tr(AB)|≤∑iσi(A)σi(B).
  • (d) Where in the proof of Theorem 21.5.2 is the unitarity of M and N used, and what exactly is deduced from it?
  • (e) Determine whether the following is true, and justify your answer: if tr(A∗B)=∑iσi(A)σi(B) then A=B.

Solution.

  • (a) A square real matrix with non-negative entries whose every row sum and every column sum is at most 1 (Definition 21.5.1). It is doubly stochastic exactly when all those sums equal 1.

  • (b) For A,B∈Mm×n(F) and p=min(m,n), |tr(A∗B)|≤∑i≤pσi(A)σi(B). The pair is aligned when there are unitary U,V with A=UΣAV∗ and B=UΣBV∗, the same U and V for both; then equality holds.

  • (c) True. Apply Theorem 21.5.2 to the pair A∗ and B, using tr(AB)=tr((A∗)∗B) and σ(A∗)=σ(A), which is Proposition 21.4.4 (a).

  • (d) Only in the claim, and only to say that each row of M and each column of N is a unit vector. Cauchy–Schwarz then makes the weight array doubly substochastic. Nothing else about M and N is used.

  • (e) False. Take A=I2 and B=2I2: both sides are 4, and A≠B. The theorem says that alignment forces equality, and A and B are aligned, with U=V=I; it says nothing that would force the two matrices to be equal.

B. Practice

Exercise (B1: Both sides of the inequality)

Let A=(3001),B=(0420). Compute tr(A⊤B), the singular values of both matrices, and both sides of Theorem 21.5.2. Then find a matrix B″ with the same singular values as B for which equality holds.

Solution. A⊤B=(01220), so tr(A⊤B)=0. Since A is diagonal with positive decreasing entries, σ(A)=(3,1). For B, B⊤B=diag(4,16), so σ(B)=(4,2). The right-hand side is 3⋅4+1⋅2=14, and 0≤14 with a lot to spare: B sends the direction A stretches most to the one it stretches least.

For equality, align: take B″=diag(4,2). Then tr(A⊤B″)=12+2=14, and σ(B″)=(4,2).

Exercise (B2: The trace against the trace norm)

Let A∈Mn(C).

  • (a) Prove that |trA|≤∑i=1nσi(A).
  • (b) Determine all A for which equality holds with A positive semidefinite.

Solution.

  • (a) Apply Theorem 21.5.2 with the pair In and A, in that order: tr(I∗A)=trA, and σi(I)=1 for every i, so |trA|≤∑i1⋅σi(A).

  • (b) For A⪰0 the eigenvalues are non-negative (Theorem 13.1.4) and, by the spectral theorem, A=Udiag(λ1,…,λn)U∗ with λi≥0 decreasing; this is a singular value decomposition, so σi(A)=λi(A). Hence trA=∑iλi=∑iσi(A) by Corollary 12.1.4: equality holds for every positive semidefinite A. (Consistently with the theorem, I and such an A are aligned, with V=U.)

Exercise (B3: A weight matrix)

Let A=diag(5,1) and let B=Udiag(2,1)U∗ with U=12(1−111). Write down the matrices M and N of the proof of Theorem 21.5.2 for this pair, the weight matrix D, and verify Eq. 21.5.1 and the inequality numerically.

Solution. Take U1=V1=I for A, and U2=U, V2=U for B (the decomposition given is a singular value decomposition, since diag(2,1) is diagonal with positive decreasing entries). Then M=U1∗U2=U and N=V2∗V1=U∗, so mklnlk=uklukl―=|ukl|2=12 for all k,l, and D=12(1111), which is doubly stochastic, hence doubly substochastic. Now Eq. 21.5.1 gives tr(A∗B)=12(5⋅2+5⋅1+1⋅2+1⋅1)=182=9, which checks against B=12(3113) and tr(AB)=12(5⋅3+1⋅3)=9. The bound is 5⋅2+1⋅1=11, and 9≤11.

C. Going deeper

Exercise (C1: The triangle inequality for the trace norm)

Write |||A|||(p)=∑iσi(A) for the trace norm of Definition 21.4.2, A∈Mm×n(C).

  • (a) Prove that |||A|||(p)=max{|tr(A∗Q)|:Q∈Mm×n(C), ‖Q‖2≤1}.
  • (b) Hence deduce that |||⋅|||(p) satisfies the triangle inequality, without using Lemma 21.4.2.

Hint: for (a), Corollary 21.5.3 with the spectral norm, read the other way round.

Solution.

  • (a) The spectral norm is a unitarily invariant norm, and its gauge is Φ=‖⋅‖∞ (Lemma 21.4.1, Theorem 16.3.3 (c)). By Corollary 21.5.3 applied to that norm, the maximum in the statement equals Φ∗(σ(A))=‖σ(A)‖1=∑iσi(A), using Proposition 18.4.7 (b).

  • (b) Conjugate transposition is additive, so tr((A+B)∗Q)=tr(A∗Q)+tr(B∗Q) for every Q. Given A,B, choose by (a) a Q with ‖Q‖2≤1 attaining the maximum for A+B; then, by the triangle inequality for the modulus (Theorem 0.6.4) and (a) again, |||A+B|||(p)=|tr((A+B)∗Q)|≤|tr(A∗Q)|+|tr(B∗Q)|≤|||A|||(p)+|||B|||(p). No step used Lemma 21.4.2: the route ran through the trace inequality and duality alone.

Exercise (C2: The nearest unitary, again)

Let A∈Mn(C) with polar decomposition A=W|A| (Theorem 13.9.1).

  • (a) Prove that max{Retr(Q∗A):Q∈Mn(C) unitary}=∑iσi(A), attained at Q=W.
  • (b) Deduce Corollary 13.9.2, that W minimizes ‖A−Q‖F over unitary Q.

Solution.

  • (a) For unitary Q, σi(Q)=1 for every i, so Theorem 21.5.2 gives Retr(Q∗A)≤|tr(Q∗A)|≤∑iσi(A). For attainment, fix a singular value decomposition A=UΣV∗ and recall from the proof of Theorem 13.9.1 that W=UV∗. Then W∗A=VU∗UΣV∗=VΣV∗, whose trace is trΣ=∑iσi(A) by Theorem 0.9.6 (3); it is real.

  • (b) For unitary Q, expanding in the Frobenius inner product, ‖A−Q‖F2=‖A‖F2+n−2Retr(Q∗A), since ‖Q‖F2=tr(Q∗Q)=n. Only the last term depends on Q, and it enters with a minus sign, so minimizing the left side is maximizing Retr(Q∗A). By (a) the maximum is attained at Q=W, which is Corollary 13.9.2.

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.