13.9  The Singular Value Decomposition

Chapter 12 answered one question completely: an operator has an orthonormal basis of eigenvectors exactly when it is normal. That answer is useless for a 3×5 matrix, which has no eigenvalues at all — the equation Ax=λx is not even type-correct, because Ax and x live in different spaces. This section shows that every matrix, of every shape, still admits an orthonormal-to-orthogonal description, and that the numbers in it are the eigenvalues of a positive semidefinite matrix we already understand. It is the most-used factorization in applied linear algebra, and the whole of it comes from applying the spectral theorem to A∗A.

Throughout, F is R or C, A∗ is the conjugate transpose (the transpose when F=R), and unitary means unitary over C and orthogonal over R, as in Definition 11.7.2. Both Fm and Fn carry their standard inner products.

13.9.1. Where to look when there are no eigenvalues

Let A∈Mm×n(F). There is exactly one square matrix that can be built from A at no cost, and Chapter 11 has already used it twice: the n×n matrix A∗A of the normal equations. It is self-adjoint, since (A∗A)∗=A∗A∗∗=A∗A, and it is positive semidefinite for the reason that makes every argument in this chapter work:

⟨A∗Ax,x⟩=⟨Ax,Ax⟩=‖Ax‖2≥0.
(13.9.1)

So A∗A⪰O, and Theorem 13.1.4 says its eigenvalues are nonnegative real numbers, while the spectral theorem supplies an orthonormal basis of Fn consisting of its eigenvectors. Those eigenvalues are attached to A, they exist for every shape of A, and Eq. 13.9.1 says what they measure: how much A stretches.

A rectangular matrix has no eigenvalues of its own, but A∗A does, and their square roots are the stretching factors of A.

Definition 13.9.1 (Singular Values)

Let A∈Mm×n(F) and put p=min(m,n). Let λ1≥λ2≥⋯≥λn≥0 be the eigenvalues of A∗A∈Mn(F), listed with multiplicity in decreasing order. The singular values of A are σi(A):=λi(i=1,…,p), so that σ1(A)≥σ2(A)≥⋯≥σp(A)≥0. We write σi when A is clear.

Clause by clause. The list has exactly p=min(m,n) entries, not n: when n>m the matrix A∗A has rank rankA≤m<n by Corollary 11.6.6 (b), so λm+1=⋯=λn=0 and the discarded eigenvalues are all zero. The square root is the ordinary nonnegative real square root, available because every λi≥0. The ordering is decreasing, matching the book’s convention λ1(A)≥⋯≥λn(A) for the eigenvalues of a Hermitian matrix, and it is part of the definition: “the second singular value” means a definite number. Finally, the singular values are attached to A itself, with no choices made, because the eigenvalue list of A∗A is.

Four examples, simplest first.

  1. The identity. A=In gives A∗A=In, so every σi=1. More generally a unitary U∈Mn(F) has U∗U=I, so all its singular values are 1. A unitary matrix stretches nothing in any direction, and the list of singular values says exactly that.
  2. A rectangular diagonal matrix. If A∈Mm×n(F) has aii=di for i≤p and all other entries 0, then A∗A=diag(|d1|2,…) and the singular values are |d1|,…,|dp| sorted downwards. The absolute value matters: the singular values of diag(1,−2) are 2,1.
  3. A positive semidefinite matrix. If A⪰O then A∗A=A2, whose eigenvalues are λi(A)2 with λi(A)≥0, so σi(A)=λi(A). For the matrices this chapter started with, singular values and eigenvalues coincide.
  4. A single row. For A=a∗∈M1×n(F) with a≠0, p=1 and A∗A=aa∗, whose nonzero eigenvalue is ‖a‖2. So σ1=‖a‖. The degenerate case A=O has every σi=0, and it matters: it is the only matrix with σ1=0, since σ1=0 forces A∗A=O and then ‖Ax‖2=0 for every x by Eq. 13.9.1.

Now the nonexample, by minimal change. Replace “square roots of the eigenvalues of A∗A” by “absolute values of the eigenvalues of A”. For A⪰O, and more generally for any normal A, the two agree (Exercise (C3: Singular values equal to eigenvalue moduli)). But the second recipe is undefined for a nonsquare matrix, and for N=(0100) it returns 0,0, while N∗N=diag(0,1) gives the singular values 1,0. The clause that fails is the one that does all the work: A∗A is positive semidefinite for every A, whereas A itself may have no useful spectrum.

Warning. Singular values are not eigenvalues. The matrix N above has both eigenvalues equal to 0 and largest singular value 1: it annihilates e1 but sends e2 to a unit vector, so calling it “small” because its spectrum is {0} is wrong. Singular values are always real and nonnegative; eigenvalues need not be either. The two lists agree, after taking absolute values, exactly for normal matrices — this is Exercise (C3: Singular values equal to eigenvalue moduli), and Chapter 12’s Schur inequality is what makes the converse true.

Quick check. What are the singular values of an orthogonal projection P∈Mn(F) onto an r-dimensional subspace?

Solution. P∗P=P2=P, because an orthogonal projection is self-adjoint and idempotent. So the eigenvalues of P∗P are those of P, namely 1 with multiplicity r and 0 with multiplicity n−r. Sorted downwards, the singular values are σ1=⋯=σr=1 and σr+1=⋯=σn=0. This is also Example 3 above, since P⪰O.

13.9.2. The theorem

Here is the payoff. The eigenvectors of A∗A are an orthonormal basis of the domain; the claim is that A carries them to an orthogonal list in the codomain, whose lengths are the singular values.

Theorem 13.9.1 (Singular Value Decomposition)

Let A∈Mm×n(F), let p=min(m,n), and let σ1≥⋯≥σp≥0 be its singular values. Then there are unitary matrices U∈Mm(F) and V∈Mn(F) such that A=UΣV∗, where Σ∈Mm×n(R) has (Σ)ii=σi for i=1,…,p and every other entry 0. Moreover the number of nonzero σi equals rankA.

Idea. Picture the 2×2 real case. A matrix carries the unit circle to an ellipse, and an ellipse has two perpendicular axes; the theorem says that the two unit vectors sent to the ends of those axes are themselves perpendicular. That is exactly what Chapter 12’s principal axis theorem (Theorem 12.5.5) said about the level curves of a quadratic form, and the link is that ‖Ax‖2=x∗(A∗A)x is a quadratic form, with matrix A∗A. So the plan is: ① diagonalize A∗A by the spectral theorem, getting an orthonormal basis v1,…,vn with A∗Avi=σi2vi; ② compute ⟨Avi,Avj⟩ and watch the eigenvalue equation force it to be σi2δij, so the images are already orthogonal; ③ normalize the nonzero ones to unit vectors ui, and, if there are fewer than m of them, pad the list out to an orthonormal basis of Fm; ④ read AV=UΣ off column by column.

Proof. Step 1: diagonalize A∗A. The matrix A∗A∈Mn(F) is self-adjoint, and Eq. 13.9.1 makes it positive semidefinite in the sense of Definition 13.1.1. By the spectral theorem in matrix form — Corollary 12.5.2 when F=R, Corollary 12.4.3 when F=C, each of which allows the eigenvalues to be listed in a prescribed order — there is a unitary V∈Mn(F) with columns v1,…,vn such that A∗Avi=λivi,λ1≥⋯≥λn≥0, the eigenvalues being nonnegative by Theorem 13.1.4. Set σi=λi for all i≤n; for i≤p these are the singular values of Definition 13.9.1.

Step 2: the images are orthogonal. For all i,j, using ⟨x,y⟩=y∗x and the eigenvalue equation, ⟨Avi,Avj⟩=⟨A∗Avi,vj⟩=λi⟨vi,vj⟩=λiδij, the first equality by Definition 11.6.1 and the last because V is unitary, so its columns are orthonormal (Theorem 11.7.3 (f)). In particular ‖Avi‖2=λi=σi2, so

Avi=0⟺σi=0.
(13.9.2)

Step 3: normalize, and count. Let r be the number of indices with σi>0; since the σi decrease, these are i=1,…,r. For i≤r put ui:=1σiAvi, which is legitimate because σi≠0. By Step 2, ⟨ui,uj⟩=λiδij/(σiσj)=δij for i,j≤r, so (u1,…,ur) is an orthonormal list in Fm.

We claim r=rankA. Any x∈Fn is x=∑icivi since (v1,…,vn) is a basis, and then Ax=∑i≤rciσiui by Eq. 13.9.2. Hence imA=span(u1,…,ur), and the ui are orthonormal, hence independent (Theorem 11.1.4), so rankA=r. In particular r≤min(m,n)=p, so every index i with σi>0 satisfies i≤p, and the nonzero singular values are exactly σ1,…,σr.

Step 4: pad the list. If r=m the list (u1,…,ur) is already an orthonormal basis of Fm, and we set U=(u1∣⋯∣um). If r<m, apply Corollary 11.2.3 to the orthonormal list (u1,…,ur) in Fm: there are ur+1,…,um making (u1,…,um) an orthonormal basis of Fm. Either way let U∈Mm(F) have these columns; it is unitary because its columns are orthonormal (Theorem 11.7.3 (f)). Note that the padding vectors are not determined by A, and nothing below uses any property of them beyond orthonormality.

Step 5: read off the columns. Let Σ∈Mm×n(R) be as in the statement. Column i of UΣ is U times column i of Σ, which is σiei for i≤p and 0 for i>p; so column i of UΣ is σiui for i≤p and 0 for i>p. Column i of AV is Avi. Compare:

  • for i≤r, Avi=σiui by the definition of ui;
  • for r<i≤p, σi=0, so both columns are 0 by Eq. 13.9.2;
  • for i>p (possible only when n>m), we have i>p≥r, so σi=0 and Avi=0, and both columns are 0.

Hence AV=UΣ. Since V is unitary, V−1=V∗, so A=UΣV∗. This proves the theorem.

A factorization A=UΣV∗ as in the theorem is called a singular value decomposition of A, the columns ui of U are left singular vectors and the columns vi of V are right singular vectors. The two equations to keep in mind are the ones the proof produced,

Avi=σiui,A∗ui=σivi(i≤r),
(13.9.3)

the second obtained by applying A∗ to the first and using A∗Avi=σi2vi. In words: A matches up two orthonormal bases, one in each space, stretching the i-th direction by σi, and A∗ runs the same correspondence backwards with the same factors.

Remark. The last item on the invertibility list. For a square A∈Mn(F), the count at the end of the theorem says that all n singular values are nonzero exactly when rankA=n, which is invertibility (Theorem 7.5.3 (d)). This is the item Chapter 3 promised when it began the list (Theorem 3.4.4), later grown in Theorem 7.5.3, Theorem 9.2.6, and Theorem 13.1.6, and it is the last one the book adds.

Here is the picture the Idea described, in the real 2×2 case.

Diagram. Labels: A, cvec v_1, cvec v_2, the unit circle, sigma_1cvec u_1, sigma_2cvec u_2, its image, an ellipse, A carries a pair of perpendicular unit vectors to the\\ semi-axes of an ellipse; their lengths are sigma_1 and sigma_2

Compare the principal axes figure of Chapter 12 §05. There the ellipse was a level curve x⊤Ax=1 of a quadratic form and the axes lay along the eigenvectors of a symmetric A; here the ellipse is the image of the unit circle under an arbitrary A. The two pictures are the same picture, because ‖Ax‖2=x∗(A∗A)x is a quadratic form with matrix A∗A, and the right singular vectors of A are its principal axes. A large σi now means a long semi-axis, whereas in Theorem 12.5.5 a large λi meant a short one; the reason is that the two pictures are related by taking reciprocals of square roots.

13.9.3. What is unique and what is not

The singular values were defined before the theorem, so they cannot depend on any choice. What needs saying is the converse: any factorization of the stated shape recovers them.

Theorem 13.9.2 (The Singular Values Are Determined)

Let A∈Mm×n(F) and suppose A=UΣV∗ with U,V unitary and Σ∈Mm×n(R) of the shape in Theorem 13.9.1, with diagonal entries s1≥⋯≥sp≥0. Then si=σi(A) for every i. Moreover:

  • (a) the columns of V are forced to be an orthonormal basis of Fn consisting of eigenvectors of A∗A, with A∗Avi=σi2vi for every i≤n, where σi:=0 for p<i≤n; and any such basis occurs;
  • (b) once V is chosen, ui=Avi/σi is forced for every i≤r=rankA, while ur+1,…,um may be any orthonormal basis of (imA)⊥.

Proof. From A=UΣV∗ and U∗U=Im, A∗A=VΣ∗U∗UΣV∗=V(Σ∗Σ)V∗, and Σ∗Σ∈Mn(R) is the diagonal matrix with entries s12,…,sp2 followed by zeros. So A∗A is unitarily diagonalized with this diagonal, and its eigenvalue list in decreasing order is therefore s12≥⋯≥sp2≥0≥… — already sorted, since the si are. Comparing with Definition 13.9.1 gives si2=σi(A)2, hence si=σi(A) because both are nonnegative.

  • (a) The displayed equation says the i-th column of V satisfies A∗Avi=σi2vi, and the columns of a unitary matrix are orthonormal. Conversely, given any orthonormal basis of eigenvectors of A∗A ordered by decreasing eigenvalue, Steps 2–5 of the proof of Theorem 13.9.1 build a factorization from it.

  • (b) For i≤r we have σi≠0, and comparing column i of AV=UΣ gives Avi=σiui, so ui=Avi/σi. For i>r the corresponding column of Σ is zero, so ui is unconstrained by the equation AV=UΣ; the only constraint left is that (u1,…,um) be orthonormal, which says exactly that (ur+1,…,um) is an orthonormal basis of span(u1,…,ur)⊥=(imA)⊥.

So Σ is unique and U,V are not. The freedom is of two kinds, and both are visible in small cases. If A∗A has a repeated eigenvalue, any orthonormal basis of that eigenspace may be used: A=I2 has Σ=I2 and I2=UI2U∗ for every unitary U, with V=U. If the eigenvalues are distinct, each vi is still free up to a scalar of modulus 1, and replacing vi by cvi replaces ui by cui, leaving σiuivi∗ unchanged because cc―=1.

Remark. That last observation is why the factorization is worth having even though it is not unique: the products σiuivi∗ are what later sections use, and those are unchanged by the phase freedom. Section 12 will define the pseudoinverse through a singular value decomposition and will have to check exactly this.

13.9.4. The compact form, and the four subspaces

Steps 3 and 5 of the proof produced more than the statement recorded: they located imA and kerA inside the two bases. Writing the factorization so that only the nonzero singular values appear makes this visible.

Theorem 13.9.3 (Compact Singular Value Decomposition)

Let A∈Mm×n(F) have rank r and let A=UΣV∗ be as in Theorem 13.9.1, with columns u1,…,um and v1,…,vn. Then A=∑i=1rσiuivi∗, a sum of r matrices of rank 1. Equivalently A=UrΣrVr∗, where Ur∈Mm×r(F) and Vr∈Mn×r(F) hold the first r columns of U and V, and Σr=diag(σ1,…,σr) is square and invertible.

Proof. Write A=(UΣ)V∗. The columns of UΣ are σ1u1,…,σpup followed by zero columns, as computed in Step 5 of Theorem 13.9.1, and the rows of V∗ are v1∗,…,vn∗. By the outer product expansion of a matrix product (Corollary 8.1.3), A=∑i=1p(σiui)vi∗=∑i=1rσiuivi∗, the terms with i>r vanishing because σi=0 there. Each uivi∗ is nonzero with all columns multiples of ui, hence of rank 1. The same computation with the truncated matrices gives UrΣrVr∗=∑i≤rσiuivi∗, and Σr is invertible because its diagonal entries σ1,…,σr are nonzero.

Corollary 13.9.4 (The Four Fundamental Subspaces from the Compact Form)

With the notation of Theorem 13.9.3:

  • (a) (u1,…,ur) is an orthonormal basis of imA=col(A);
  • (b) (ur+1,…,um) is an orthonormal basis of kerA∗;
  • (c) (v1,…,vr) is an orthonormal basis of imA∗;
  • (d) (vr+1,…,vn) is an orthonormal basis of kerA.

Idea. Two of the four were proved on the way to Theorem 13.9.1. The other two come for free by applying the same statements to A∗, whose singular value decomposition is A∗=VΣ∗U∗ — the roles of u and v simply swap.

Proof. Part (a). Step 3 of Theorem 13.9.1 showed imA=span(u1,…,ur), and these r vectors are orthonormal.

Part (d). By Eq. 13.9.2, Avi=0 exactly for i>r, and for x=∑icivi we computed Ax=∑i≤rciσiui. Since the ui are independent and the σi nonzero for i≤r, Ax=0 if and only if c1=⋯=cr=0, that is, x∈span(vr+1,…,vn).

Parts (b) and (c). Taking conjugate transposes, A∗=VΣ∗U∗, and Σ∗∈Mn×m(R) has the same diagonal σ1,…,σp. So this is a singular value decomposition of A∗, with the columns of V as left singular vectors and those of U as right singular vectors, and rankA∗=rankA=r by Corollary 11.6.6 (a). Now the two parts just proved, applied to A∗ instead of A, give exactly (c) and (b).

This is the cleanest possible form of Theorem 11.6.5. That theorem said the four subspaces come in two orthogonal pairs, Fn=kerA⊕imA∗ and Fm=imA⊕kerA∗. The corollary hands over orthonormal bases of all four at once, out of two matrices, and adds the missing piece of information: how A maps one pair to the other. Restricted to imA∗, the map A is a bijection onto imA, and in the bases (v1,…,vr) and (u1,…,ur) its matrix is the diagonal Σr. Every matrix, after an orthonormal change of basis on each side, is a positive diagonal matrix padded with zeros.

Quick check. Let A∈Mm×n(F) have rank r. Using Corollary 13.9.4, what is dim⁡kerA∗, and why does the answer not depend on which singular value decomposition was used?

Solution. The list (ur+1,…,um) has m−r members, so dim⁡kerA∗=m−r. It cannot depend on the factorization because r=rankA is determined by A (Theorem 13.9.2), and in any case the answer agrees with dim⁡(imA)⊥=m−rankA from Theorem 11.6.5 and Theorem 11.3.2.

13.9.5. Two computations and one comparison

The Frobenius norm. From ‖A‖F2=tr(A∗A) and A∗A=V(Σ∗Σ)V∗, or directly from Lemma 11.7.5, ‖A‖F2=‖UΣV∗‖F2=‖Σ‖F2=∑i=1pσi2. So the Frobenius norm is the Euclidean length of the singular value list. Section 11 turns this one identity into the best low-rank approximation theorem.

The largest stretch. Let x=∑icivi be a unit vector, so ∑i|ci|2=1 by Theorem 11.9.2. Then Ax=∑i≤rciσiui, and since the ui are orthonormal, Pythagoras (Theorem 11.1.3) gives ‖Ax‖2=∑i≤rσi2|ci|2≤σ12∑i|ci|2=σ12, with equality at x=v1. So σ1=max{‖Ax‖:‖x‖=1}: the largest singular value is the largest factor by which A can lengthen a vector. Chapter 16 gives that quantity a name, the operator norm ‖A‖2, and this computation is why ‖A‖2=σ1.

Against the eigenvalues. For a normal A∈Mn(C), write A=UDU∗ with D=diag(λ1,…,λn) by Corollary 12.4.3. Then A∗A=UD∗DU∗=Udiag(|λ1|2,…,|λn|2)U∗, so the singular values of A are the moduli |λi|, sorted downwards. For a general matrix there is no relation at all in one direction — N=(0100) has spectrum {0} and σ1=1 — and only the crude bound |λ|≤σ1 in the other, since Ax=λx with ‖x‖=1 gives |λ|=‖Ax‖≤σ1.

Example (A singular value decomposition of a 2 by 3 matrix)

Find a singular value decomposition of A=(10101−1)∈M2×3(R), and read off orthonormal bases of its four fundamental subspaces.

Solution. Here m=2, n=3, p=2. The proof asks for the eigenvectors of the 3×3 matrix A⊤A, but there is a shortcut worth taking whenever m<n: run the proof on A⊤ instead. It produces A⊤=VΣ⊤U⊤, and transposing that equation gives A=UΣV⊤, which is what we want. The eigenvalue computation then lives in the smaller matrix AA⊤=(2−1−12).

Step 1. The characteristic polynomial of AA⊤ is x2−4x+3=(x−1)(x−3), so the eigenvalues are 3 and 1 and the singular values are σ1=3, σ2=1. For λ=3, AA⊤−3I=(−1−1−1−1) gives x1=−x2, and for λ=1 we get x1=x2. Normalizing, u1=12(1,−1),u2=12(1,1). Both singular values are nonzero, so r=rankA=2.

Steps 2–4. The roles of u and v are swapped along with the roles of A and A⊤, so here vi=A⊤ui/σi: v1=A⊤(1,−1)23=16(1,−1,2),v2=A⊤(1,1)2=12(1,1,0). This time the padding step is needed, since r=2<3: a unit vector orthogonal to both is v3=13(−1,1,1).

Step 5. Assembling, U=12(11−11),Σ=(300010), V=(1612−13−16121326013),A=UΣV⊤. As a check, ‖A‖F2=1+0+1+0+1+1=4 and σ12+σ22=3+1=4.

The four subspaces (Corollary 13.9.4), with r=2: col(A) has the orthonormal basis u1,u2, which is all of R2, so nul(A⊤)={0}; row(A)=col(A⊤) has the orthonormal basis v1,v2; and nul(A)=span(v3) is the line through (−1,1,1). The last is easy to verify directly: A(−1,1,1)=(−1+1,1−1)=0.

13.9.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the singular values of a matrix A∈Mm×n(F). How many are there?
  • (b) State the singular value decomposition, with the size and the defining property of each factor.
  • (c) True or false: the singular values of A are the absolute values of its eigenvalues. Justify your answer.
  • (d) How many nonzero singular values does A have, and why?
  • (e) Given a compact singular value decomposition A=∑i≤rσiuivi∗, write down orthonormal bases of all four fundamental subspaces of A.
  • (f) True or false: in A=UΣV∗ the three factors are determined by A. Justify your answer.

Solution.

  • (a) They are σi=λi for i=1,…,min(m,n), where λ1≥⋯≥λn≥0 are the eigenvalues of A∗A with multiplicity (Definition 13.9.1). There are min(m,n) of them.

  • (b) Theorem 13.9.1: A=UΣV∗ with U∈Mm(F) unitary, V∈Mn(F) unitary, and Σ∈Mm×n(R) having σ1≥⋯≥σp≥0 in positions (i,i) and zeros elsewhere.

  • (c) False. N=(0100) has both eigenvalues 0 and singular values 1,0. The statement is true for normal matrices (Exercise (C3: Singular values equal to eigenvalue moduli)), and for a nonsquare matrix it does not even make sense.

  • (d) Exactly rankA, by Theorem 13.9.1. The reason is that Avi=0 precisely when σi=0, so the vi with σi=0 span kerA.

  • (e) (u1,…,ur) for imA; (ur+1,…,um) for kerA∗; (v1,…,vr) for imA∗; (vr+1,…,vn) for kerA (Corollary 13.9.4).

  • (f) False for U and V, true for Σ (Theorem 13.9.2). For instance I2=UI2U∗ for every unitary U. The freedom is: any orthonormal eigenbasis of A∗A may be used for V, and the last m−r columns of U may be any orthonormal basis of (imA)⊥.

B. Practice

Exercise (B1: A 2 by 2 decomposition)

Find a singular value decomposition A=UΣV⊤ of A=(3045)∈M2(R), and compare the singular values with the eigenvalues of A.

Solution. A⊤A=(25202025), with characteristic polynomial x2−50x+(625−400)=x2−50x+225, whose roots are 45 and 5. So σ1=35 and σ2=5.

For λ=45 the equation −20x1+20x2=0 gives v1=12(1,1); for λ=5, v2=12(1,−1). Then u1=Av135=(3,9)310=110(1,3),u2=Av25=(3,−1)10. Hence U=110(133−1),Σ=(35005),V=12(111−1), and UΣV⊤=A. Check: σ12+σ22=45+5=50=9+16+25=‖A‖F2.

The eigenvalues of A are 3 and 5, the diagonal entries of a triangular matrix. They are not the singular values, not even after reordering: A is not normal, since A⊤A≠AA⊤=(9121241). Note, however, that σ1σ2=15=|detA|, as Exercise (C2: The adjoint and the determinant) explains.

Exercise (B2: When the left singular vectors must be padded)

Find a singular value decomposition of A=(100110)∈M3×2(R), saying explicitly where the padding step of Theorem 13.9.1 is used.

Solution. A⊤A=diag(2,1), already diagonal with decreasing diagonal, so V=I2, v1=e1, v2=e2, and σ1=2, σ2=1. Both are nonzero, so r=2. Then u1=12Ae1=12(1,0,1),u2=Ae2=(0,1,0). Here r=2<3=m, so Step 4 of Theorem 13.9.1 applies: extend (u1,u2) to an orthonormal basis of R3. A vector orthogonal to both is (1,0,−1), so take u3=12(1,0,−1). Then U=(12012010120−12),Σ=(200100),V=I2, and UΣV⊤=UΣ=A. The vector u3 is not determined by A beyond its line: −u3 would do just as well. By Corollary 13.9.4, nul(A⊤)=span(u3), which is confirmed by A⊤(1,0,−1)=(1−1,0)=0.

Exercise (B3: Compact form and the four subspaces)

For A=(221122)∈M3×2(R), find the compact singular value decomposition A=∑i≤rσiuivi⊤, and hence orthonormal bases of all four fundamental subspaces.

Solution. A⊤A=(9999), with eigenvalues 18 and 0, so σ1=32, σ2=0, and r=1. An eigenvector for 18 is v1=12(1,1), and for 0 it is v2=12(1,−1). Then u1=Av132=(4,2,4)2⋅32=13(2,1,2), a unit vector since 4+1+4=9. The compact form is A=32u1v1⊤, and multiplying out gives back A.

Four subspaces: col(A)=span(13(2,1,2)) and row(A)=span(12(1,1)), both one-dimensional; nul(A)=span(12(1,−1)); and nul(A⊤) is the plane {y:2y1+y2+2y3=0}, for which an orthonormal basis is 12(1,0,−1) and 132(1,−4,1). (Any orthonormal basis of that plane is a legitimate (u2,u3), which is the freedom described in Theorem 13.9.2 (b).)

Exercise (B4: Determine whether)

Determine which of the following statements are correct. For those that are correct, prove them; for those that are not, give a counterexample.

  • (a) If every eigenvalue of A∈Mn(C) is 0, then every singular value of A is 0.
  • (b) σi(cA)=|c|σi(A) for every scalar c.
  • (c) σi(A2)=σi(A)2 for every square A.
  • (d) A is invertible if and only if n=m and every singular value of A is nonzero.

Solution.

  • (a) Incorrect. N=(0100) has spectrum {0}, while N∗N=diag(0,1) gives σ1=1.

  • (b) Correct. (cA)∗(cA)=c―cA∗A=|c|2A∗A, whose eigenvalues are |c|2λi; taking square roots and noting that multiplying by |c|2≥0 preserves the decreasing order gives the claim.

  • (c) Incorrect, with the same N: N2=O has both singular values 0, while σ1(N)2=1. (It is correct for A⪰O, and more generally for normal A, because then the singular values are the moduli of the eigenvalues and A2 has eigenvalues λi2.)

  • (d) Correct. If A∈Mn(F) then, by Theorem 13.9.1, the number of nonzero singular values is rankA, and A is invertible exactly when rankA=n (Theorem 7.5.3 (d)). A nonsquare matrix is never invertible.

C. Going deeper

Exercise (C1: The Frobenius norm and the largest singular value)

Let A∈Mm×n(F) with singular values σ1≥⋯≥σp.

  • (a) The text obtained ‖A‖F2=∑i=1pσi2 from unitary invariance. Prove it a second way, directly from ‖A‖F2=tr(A∗A) and the eigenvalues of A∗A, without invoking Lemma 11.7.5.
  • (b) Deduce that σ1≤‖A‖F, and determine exactly when equality holds.

Solution.

  • (a) Take a singular value decomposition A=UΣV∗ (Theorem 13.9.1). By Lemma 11.7.5, applied once on each side, ‖A‖F=‖UΣV∗‖F=‖Σ‖F. The only nonzero entries of Σ are σ1,…,σp on the diagonal, so ‖Σ‖F2=∑iσi2.

  • (b) Every term of ∑iσi2 is nonnegative, so σ12≤∑iσi2=‖A‖F2, and taking nonnegative square roots gives σ1≤‖A‖F. Equality holds if and only if σ2=⋯=σp=0, that is, if and only if rankA≤1 (Theorem 13.9.1).

Exercise (C2: The adjoint and the determinant)

Let A∈Mm×n(F).

  • (a) Prove that A and A∗ have the same nonzero singular values, with the same multiplicities.
  • (b) Suppose m=n. Prove that |detA|=σ1σ2⋯σn.
  • (c) Hence give a formula for |detA| in terms of A∗A only, and check it on A=(3045).

Solution.

  • (a) If A=UΣV∗ is a singular value decomposition, then A∗=VΣ∗U∗ with V,U unitary and Σ∗∈Mn×m(R) carrying the same diagonal entries σ1,…,σp. By Theorem 13.9.2 this is a singular value decomposition of A∗, so the singular value list of A∗ is σ1,…,σp as well. (The two lists have the same length p=min(m,n), so they are in fact equal, not merely equal in their nonzero parts.)

  • (b) Take determinants in A=UΣV∗. By Theorem 7.5.4, detA=detU⋅detΣ⋅detV∗. A unitary U has |detU|=1, since det(U∗)det(U)=det(I)=1 and det(U∗)=detU―, so |detU|2=1. The same holds for V∗. And detΣ=σ1⋯σn by Theorem 7.4.6. Taking absolute values gives |detA|=σ1⋯σn.

  • (c) Squaring, |detA|2=∏iσi2=det(A∗A), so |detA|=det(A∗A). For the given A, detA=15 and det(A⊤A)=625−400=225=152.

Exercise (C3: Singular values equal to eigenvalue moduli)

Let A∈Mn(C) have eigenvalues λ1,…,λn listed with algebraic multiplicity and ordered so that |λ1|≥⋯≥|λn|.

  • (a) Prove that if A is normal, then σi(A)=|λi| for every i.
  • (b) Prove the converse: if σi(A)=|λi| for every i, then A is normal.

Hint for (b): compare two expressions for ‖A‖F2.

Solution.

  • (a) Suppose A is normal. By Corollary 12.4.3, A=UDU∗ with U unitary and D=diag(λ1,…,λn). Then A∗A=UD∗U∗UDU∗=Udiag(|λi|2)U∗, so the eigenvalues of A∗A are |λ1|2,…,|λn|2 with multiplicity. These are already in decreasing order by hypothesis, so σi(A)=|λi| for every i by Definition 13.9.1.

  • (b) Suppose σi(A)=|λi| for every i. By Exercise (C1: The Frobenius norm and the largest singular value) (a), ∑i=1n|λi|2=∑i=1nσi2=‖A‖F2. Schur’s inequality (Theorem 12.11.1) says ∑i|λi|2≤‖A‖F2 with equality if and only if A is normal. We have equality, so A is normal.

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.