7E Singular Value Decomposition


Topics

  • Singular Values
  • SVD for Linear Maps and Matrices


Singular Values



Picture of the Setup

Remark: SVD Setup


Recall the setup for Section 3F about a map T∈L(V,W)T \in \mathscr{L}(V,W) that included the dual spaces, the dual map, and dual bases. In order to connect the dual map to the adjoint, we need to use the inner products on VV and W.W. If we have orthonormal bases for VV and W,W, then the correspondence between these spaces through their inner products will match the correspondence between the basis and dual basis. But recall that our bases were also built around the operator T.T. Here is a refresher.

(u1,…,uk)(u_1, \ldots, u_k) is a basis for ker⁡(T),\ker(T), (v1,…,vℓ)(v_1, \ldots, v_\ell) is an extension so that (u1,…,uk,v1,…,vℓ)(u_1, \ldots, u_k, v_1, \ldots, v_\ell) is a basis for V.V. Then (T(v1),…,T(vℓ))(T(v_1), \ldots, T(v_\ell)) is a basis for T(V),T(V), which can be extended to a basis for WW with the vectors (y1,…,ym).(y_1, \ldots, y_m). We can make our original basis orthonormal by just applying Gram-Schmidt, which keep the first kk vectors as basis vectors for the kernel. So this would not change any of the arguments that followed. However, we didn't construct the basis of V′V' as the dual basis of this basis, so this doesn't help us immediately. We can also apply Gram-Schmidt to (T(v1),…,T(vℓ),y1,…,ym)(T(v_1), \ldots, T(v_\ell), y_1, \ldots, y_m) and this would mean that the inner product correspondence would take these new basis vectors to dual basis vectors. But we would no longer be able to know they were connected to the viv_i's they originally came from. And there does not seem to be an immediate fix for this -- at least not in that section. Finally, there is not a clear connection between the dual basis vectors of V′V' we get from T′T' and the basis vectors for V.V. That's a very important road-block to being able to compute or understand the adjoint map through the dual map.

We will see in this section that 1) T∗TT^* T is an operator that has a basis of eigenvectors with non-negative eigenvalues, and

2) The square root RR of T∗TT^∗ T faithfully represents TT up to an isometry, i.e. there exists an isometry S:V⟶WS: V \longrightarrow W such that T=SR.T = SR.

Another way of thinking about this is that TT has an orthonormal basis (u1,…,uk,e1,…,ek)(u_1,\ldots, u_k, e_1, \ldots, e_k) with the property that (u1,…,uk)(u_1,\ldots, u_k) is a basis for the kernel, and (T(e1),…,T(eℓ))(T(e_1), \ldots, T(e_\ell)) is an orthogonal basis for the range of T.T. (It would only be orthonormal if all of TT's singular values are 1.1.) You can then find any orthonormal basis you like for T(V)⊥T(V)^\perp because that is the kernel of T′T' and those dual vectors will have nothing to do with anything in the range of T∗(W).T^*(W). Furthermore, if we take dual bases of the orthonormal bases just described for VV and WW then T∗T^* sends each of the basis vectors T(vi)T(v_i) back into the span of vi.v_i.

Lemma: Properties of T∗TT^* T

Suppose T∈L(V,W). T \in \mathscr{L}(V,W) . Then a) T∗T T^* T is a positive operator on V. V. b) ker⁡(T∗T)=ker⁡⁡(T) \ker{\left(T^* T\right)}=\ker⁡(T) c) T∗T(V)=T∗(V) T^* T\left(V\right)=T^* (V) d) dim⁡(T(V))=dim⁡(T∗(V))=dim⁡(T∗T(V)) \dim{\left(T\left(V\right)\right)}=\dim{\left(T^* \left(V\right)\right)}=\dim{\left(T^* T\left(V\right)\right)}


Proof:

a) We first verify that T∗T T^* T is self-adjoint: (T∗T)∗=T∗(T∗)∗=T∗T. {\left(T^* T\right)}^* =T^* {\left(T^* \right)}^* =T^* T . To conclude, we let v∈V v∈V and show:

⟨T∗T(v),v⟩=⟨T(v),T(v)⟩=∥T(v)∥2≥0. \left\langle T^* T\left(v\right),v\right\rangle =\left\langle T\left(v\right),T(v)\right\rangle ={\left\lVert T(v)\right\lVert }^{2}\geq 0 .

b) We will show the first inclusion, since the second is clear: If v∈ker⁡(T∗T), \mathrm{v}\in \ker{({\mathrm{T}}^* \mathrm{T})}, then

0=⟨T∗T(v),v⟩=⟨T(v),T(v)⟩=∥T(v)∥2, 0=\left\langle {\mathrm{T}}^* \mathrm{T}\left(\mathrm{v}\right),\mathrm{v}\right\rangle =\left\langle \mathrm{T}\left(\mathrm{v}\right),\mathrm{T}(\mathrm{v})\right\rangle ={\left\lVert \mathrm{T}\left(\mathrm{v}\right)\right\lVert }^{2},

so T(v)=0. \mathrm{T}\left(\mathrm{v}\right)=0. c) This part follows from part (b) and the kernel/range relationship between adjoints:

T∗T(V)=(ker⁡(T∗T)∗)⊥=(ker⁡(T∗T))⊥=(ker⁡(T))⊥=T∗(V). {\mathrm{T}}^* \mathrm{T}\left(\mathrm{V}\right) ={\left(\ker{{\left({\mathrm{T}}^* \mathrm{T}\right)}^* }\right)}^{\perp } ={\left(\ker{\left({\mathrm{T}}^* \mathrm{T}\right)}\right)}^{\perp } ={\left(\ker{\left(\mathrm{T}\right)}\right)}^{\perp }={\mathrm{T}}^* (\mathrm{V}).

d) The first equality follows from the setup in 3F, where the vectors (w1,…, wℓ) \left({\mathrm{w}}_{1},\ldots ,\ {\mathrm{w}}_{\mathrm{\ell }}\right) were a basis for T(V) T(V) and the corresponding dual basis vectors (ω1, …,ωℓ) \left({\mathrm{\omega }}_{1},\ \ldots ,{\mathrm{\omega }}_{\mathrm{\ell }}\right) in W W were a basis for ker⁡⁡(T′). \ker⁡({\mathrm{T}}^{\prime }) . Now, ker⁡⁡(T′) \ker⁡({\mathrm{T}}^{\prime }) and ker⁡⁡(T∗) \ker⁡({\mathrm{T}}^* ) have the same dimension, and in fact if we had constructed our setup for 3F with orthonormal bases and extension (in particular, if Gram-Schmidtt had been applied to the wi {\mathrm{w}}_{\mathrm{i}} 's before extending to a basis for W W ) then they would have been corresponding vectors, i.e., (w1, …, wℓ) \left({\mathrm{w}}_{1},\ \ldots ,\ {\mathrm{w}}_{\mathrm{\ell }}\right) would have also been a basis for ker⁡⁡(T′). \ker⁡({\mathrm{T}}^{\prime }) . The second equality follows directly from part (c).

Definition: Singular Values


Suppose T∈L(V,W).T \in \mathscr{L}(V,W). The singular values of TT are nonnegative square roots the eigenvalues of T∗TT^* T, listed in decreasing order, each included as many times as the dimension of the corresponding eigenspace (i.e. geometric multiplicity).

Lemma: Role of Singular Values

Suppose T∈L(V,W). T \in \mathscr{L}(V,W) . Then a) T T is injective ⟺0 \Longleftrightarrow 0 is not a singular value of T∗T T^* T b) The number of positive singular values of T T equals dim⁡(T(V)). \dim{\left(T\left(V\right)\right)}. c) T T is surjective ⟺\Longleftrightarrow the number of positive singular values of T T is dim⁡(W). dim⁡(W) .


Proof:

a) Since ker⁡(T)=ker⁡⁡(T∗T) \ker{\left(T\right)}=\ker⁡(T^* T) , we can conclude that T T is injective ⇔ ⇔ T∗T T^* T is injective ⟺0 \Longleftrightarrow 0 is not an eigenvalue of T∗T. T^* T. b) Spectral theorem proves this: We have an orthogonal decomposition of eigenspaces and the kernel is just one of them (for λ=0 \lambda=0 ). If you remove the basis vectors that are in the kernel, you have a basis for the range, and that number is the same as the number of positive singular values (remember that we have one sigular value for each dimension for its corresponding eigenspace). c) This follows from part (b): We just established that the range has the same dimension as this number. Now, that's equal to the dimension of W if and only if T T is surjective.

Comparing Eigenvalues and Singular Values

Helpful Table from Axler's Linear Algebra Done Right

PropertyEigenvaluesSingular Values
Applies toLinear operators T∈L(V)T \in \mathscr{L}(V)Linear maps T∈L(V,W)T \in \mathscr{L}(V, W)
Nature of valuesCan be any scalar λ∈F\lambda \in \mathbb{F} (may be complex, negative, or not exist over R).\mathbb{R}).Always real and non-negative (s≥0s \ge 0). Guaranteed to exist.
Associated vectorsOperates on a single non-zero vector v∈Vv \in V such that Tv=λvTv = \lambda v.Connects two orthonormal bases vj∈Vv_j \in V and uj∈Wu_j \in W such that Tvj=sjujT v_j = s_j u_j.
Matrix representationTT has a diagonal matrix with respect to some basis if and only if TT is diagonalizable.TT always has a diagonal matrix with respect to some pair of orthonormal bases (Singular Value Theorem).
Relationship to adjointEigenvalues of T∗TT^* T are the absolute squares of the eigenvalues of TT (only if TT is normal).Singular values of TT are exactly the square roots of the eigenvalues of the positive operator T∗TT^* T.

Corollary: Isometries characterized by having all singular values equal to 11

Suppose S∈L(V,W).S\in L\left(V,W\right). Then SS is an isometry ⟺\Longleftrightarrow all of the singular values of T∗T T^* T are 1.1.


Proof:

We begin by noting that S S is an isometry if and only if S∗ S^* is its inverse, i.e. S∗S=I. S^* S=I . Then the result follows, since the singular values are the diagonal entries of the diagonalized S∗S. S^* S.



SVD for Linear Maps and Matrices



Lemma: Singular Value Decomposition

Suppose T∈L(V,W) T∈L(V,W) and the positive singular values of T T are s1,…, sm. s_{1},\ldots ,\ s_{m} . Then there exist orthonormal lists (e1,…, em) (e_{1},\ldots ,\ e_{m}) in V V and (f1,…, fm) (f_{1},\ldots ,\ f_{m}) in W W such that T(v)=s1⟨v, e1⟩f1+…+sm⟨v,em⟩fm T\left(v\right)=s_{1}\left\langle v,\ e_{1}\right\rangle f_{1}+\ldots +s_{m}\left\langle v,e_{m}\right\rangle f_{m} for every v∈V. v \in V .


Proof:

The orthonormal basis (e1,…, em) (e_{1},\ldots ,\ e_{m}) can be taken as orthonormal bases for each eigenspace (or just apply spectral theorem) for the operator T∗T. T^* T . The orthonormal basis (f1,…,fm) (f_{1},\ldots , f_m) is found by scaling each T(ei) T(e_{i}) by 1si. \frac{1}{s_{i}} . This results in an orthonormal basis for T(V) T(V) because these images are all orthogonal and their norms are their corresponding singular value squared. Here is the verification of that fact:

⟨T(ei),T(ej)⟩=⟨T∗T(ei),ej⟩=⟨si2(ei),ej⟩=si2⟨ei, ej⟩. \left\langle T\left(e_{i}\right),T(e_{j})\right\rangle =\left\langle T^* T\left(e_{i}\right),e_{j}\right\rangle =\left\langle s_{i}^{2}\left(e_{i}\right),e_{j}\right\rangle =s_{i}^{2}\left\langle e_{i},\ e_{j}\right\rangle .

Theorem: Singular Value Decomposition of Adjoint and Pseudoinverse

Suppose T∈L(V,W) T∈L(V,W) and the positive singular values of T T are s1,…, sm. s_{1},\ldots ,\ s_{m} . Let (e1,…, em) (e_{1},\ldots ,\ e_{m}) , and (f1, …, fm) \left(f_{1},\ \ldots ,\ f_{m}\right) be orthonormal lists in V V and W W respectively such that for every v∈V v∈V , T(v)=s1⟨v,e1⟩f1+…+sm⟨v,em⟩fm. T\left(v\right)=s_{1}\left\langle v,e_{1}\right\rangle f_{1}+\ldots +s_{m}\left\langle v,e_{m}\right\rangle f_{m} . Then a)

T∗(w)=s1⟨w,f1⟩e1+…+sm⟨w,fm⟩em, T^* \left(w\right)=s_{1}\left\langle w,f_{1}\right\rangle e_{1}+\ldots +s_{m}\left\langle w,f_{m}\right\rangle e_{m},

b)

T†(w)=⟨w,f1⟩s1e1+…+⟨w,fm⟩smem. T^{\dagger }\left(w\right)=\frac{\left\langle w,f_{1}\right\rangle }{s_{1}}e_{1}+\ldots +\frac{\left\langle w,f_{m}\right\rangle }{s_{m}}e_{m}.

Proof:

a) This is a formula for T∗(w) T^* (w) , so without effecting the outcome we can replace w w with w w projected onto T(V) T(V) , the orthogonal complement of ker⁡⁡(T∗). \ker⁡(T^* ) . Projecting w w this way makes this much easier to compute, since we have such a nice basis for T∗T. T^* T . Projected w w is ⟨w,f1⟩f1+…+⟨w,fm⟩fm \left\langle w,f_{1}\right\rangle f_{1}+\ldots +\left\langle w,f_{m}\right\rangle f_{m} , which is T(⟨w,f1⟩e1+…+⟨w,fm⟩em). T\left(\left\langle w,f_{1}\right\rangle e_{1}+\ldots +\left\langle w,f_{m}\right\rangle e_{m}\right) . Then T∗(w) T^* \left(w\right) is the operator T∗T T^* T applied to ⟨w,f1⟩e1+…+⟨w,fm⟩em. \left\langle w,f_{1}\right\rangle e_{1}+\ldots +\left\langle w,f_{m}\right\rangle e_{m} . Now, T∗T T^* T scales each basis vector by its respective si2 s_{i}^2 , we have

T∗(w)=T∗(⟨w,f1⟩f1+…+⟨w,fm⟩fm) T^* \left(w\right) =T^* \left(\left\langle w,f_{1}\right\rangle f_{1}+\ldots +\left\langle w,f_{m}\right\rangle f_{m}\right)

=T∗T(1s1⟨w,f1⟩e1+…+1sm⟨w,fm⟩em) =T^* T\left( \frac{1}{s_1} \left\langle w,f_{1}\right\rangle e_{1}+\ldots + \frac{1}{s_m} \left\langle w,f_{m}\right\rangle e_{m}\right)

=s121s1⟨w,f1⟩e1+…+sm21sm⟨w,fm⟩em =s_{1}^2 \frac{1}{s_1} \left\langle w,f_{1}\right\rangle e_{1}+\ldots + s_{m}^2 \frac{1}{s_m} \left\langle w,f_{m}\right\rangle e_{m}

=s1⟨w,f1⟩e1+…+sm⟨w,fm⟩em =s_{1} \left\langle w,f_{1}\right\rangle e_{1}+\ldots + s_{m} \left\langle w,f_{m}\right\rangle e_{m}

b) Let us start by retracing the same steps that we took for the last proof. w w was first projected onto the range, T(V). T(V) . This is the first step in computing the pseudoinverse. Then applying T∗ T^* gives us the result s1⟨w,f1⟩e1+…+sm⟨w,fm⟩em. s_{1}\left\langle w,f_{1}\right\rangle e_{1}+\ldots +s_{m}\left\langle w,f_{m}\right\rangle e_{m} . However, this is not something in the pre-image of our projected w. w . It is the v v we are looking for after the application of T∗T. T^* T . But because T∗T T^* T just scales the i i th basis vector by si2 s_{i}^{2} , we can divide each element by si2 s_{i}^{2} to obtain what we want. This is not the only pre-image vector for s1⟨w,f1⟩e1+…+sm⟨w,fm⟩em s_{1}\left\langle w,f_{1}\right\rangle e_{1}+\ldots +s_{m}\left\langle w,f_{m}\right\rangle e_{m} , but it is the one with the smallest norm because adding anything in the kernel of T T , which is the orthogonal complement of the span of these basis vectors, would only increase the norm of the given vector. Therefore T†(w)=⟨w,f1⟩s1e1+…+⟨w,fm⟩smem. T^{\dagger }\left(w\right)=\frac{\left\langle w,f_{1}\right\rangle }{s_{1}}e_{1}+\ldots +\frac{\left\langle w,f_{m}\right\rangle }{s_{m}}e_{m}.

Lemma: Matrix Version of SVD

Suppose A A is an M M -by-n n matrix of rank m≥1. m≥1 . Then there exist an M M -by-m m matrix B B with orthonormal columns, an m m -by-m m diagonal matrix D D with positive numbers on the diagonal, and an n n -by-m m matrix C C with orthonormal columns such that A=BDC∗. A=BDC^* .


Proof:

Let us observe what BDC∗ BDC^* does to a basis vector ei e_{i} from the SVD of A A as an operator, verify that it is sent to fi f_{i} , and then we will check that everything in the kernel of A A , which is the orthogonal complement of the span of these ei e_{i} s, is sent to 0. 0 . First, ei e_{i} is sent by C∗ C^* to the standard i i th basis vector. This is sent to the i i th column of D D , which is si s_{i} times the i i th standard basis vector by D D , and then B B sends this to sifi s_{i}f_{i} , since fi f_{i} is the i i th column of B. B . Now, the kernel of AA is the orthogonal complement of the span of the ei e_i 's, so C∗ C^* has columns all orthogonal to it and it is mapped to 00 by C∗.C^*.