Mehmet Emre Tiryaki
Back to Notes

Singular Value Decomposition

Thin SVD

Let A∈Mm,nA \in M_{m,n} with m≤nm \le n. There are a unitary U∈MmU \in M_m, a diagonal Σ=diag(σ1,…,σm)∈Mm\Sigma = \mathrm{diag}(\sigma_1, \ldots, \sigma_m) \in M_m with σ1≥⋯≥σm≥0\sigma_1 \ge \cdots \ge \sigma_m \ge 0, and W∈Mm,nW \in M_{m,n} with orthonormal rows such that

A=UΣWA = U \Sigma W

Proof

  1. AA∗AA^* is Hermitian PSD, so AA∗=UDU∗AA^* = UDU^* with D=diag(σ12,…,σm2)D = \mathrm{diag}(\sigma_1^2, \ldots, \sigma_m^2), σi≥0\sigma_i \ge 0 decreasing. Let kk be the last index with σk>0\sigma_k > 0, and μi\mu_i the columns of UU.
  2. Define the iith row of WW as 1σiμi∗A\frac{1}{\sigma_i} \mu_i^* A for i=1,…,ki = 1, \ldots, k. These are orthonormal, since 1σiσjμi∗AA∗μj=σj2σiσjμi∗μj\frac{1}{\sigma_i \sigma_j} \mu_i^* AA^* \mu_j = \frac{\sigma_j^2}{\sigma_i \sigma_j} \mu_i^* \mu_j.
  3. For i=k+1,…,mi = k+1, \ldots, m define the rows in any way so they are orthonormal to the others, by Gram-Schmidt.
  4. For i=k+1,…,mi = k+1, \ldots, m, AA∗μi=0⇒μi∗AA∗μi=0⇒∥A∗μi∥22=0⇒μi∗A=0⃗TAA^*\mu_i = 0 \Rightarrow \mu_i^*AA^*\mu_i = 0 \Rightarrow \|A^*\mu_i\|_2^2 = 0 \Rightarrow \mu_i^*A = \vec{0}^T. So U∗A=ΣWU^*A = \Sigma W.

SVD

For A∈Mm,nA \in M_{m,n} there are unitary U∈MmU \in M_m and V∈MnV \in M_n, and a diagonal Σ∈Mm,n\Sigma \in M_{m,n} with σ1=Σ11≥σ2=Σ22≥⋯≥0\sigma_1 = \Sigma_{11} \ge \sigma_2 = \Sigma_{22} \ge \cdots \ge 0, such that

A=UΣV∗A = U \Sigma V^*

Proof If m≤nm \le n, complete the rows of WW to a unitary matrix by Gram-Schmidt,

A=UΣW=U[Σ0][WGram-Schmidt]A = U \Sigma W = U \begin{bmatrix} \Sigma & 0 \end{bmatrix} \begin{bmatrix} W \\ \text{Gram-Schmidt} \end{bmatrix}

If m>nm > n, take the SVD A∗=UΣV∗A^* = U\Sigma V^*, then A=VΣ∗U∗A = V\Sigma^*U^* is an SVD.

Consequences

Let A=UΣV∗A = U\Sigma V^* with columns μi\mu_i of UU and viv_i of VV, and kk such that σk>0\sigma_k > 0, σk+1=0\sigma_{k+1} = 0. Then

  1. A=∑i=1kσiμivi∗A = \sum_{i=1}^{k} \sigma_i \mu_i v_i^*,
  2. rank A=k\mathrm{rank}\, A = k, range A=span{μ1,…,μk}\mathrm{range}\, A = \mathrm{span}\{\mu_1, \ldots, \mu_k\}, null(A)=span{vk+1,…,vn}\mathrm{null}(A) = \mathrm{span}\{v_{k+1}, \ldots, v_n\},
  3. rank A∗=k\mathrm{rank}\, A^* = k, range A∗=span{v1,…,vk}\mathrm{range}\, A^* = \mathrm{span}\{v_1, \ldots, v_k\}, null(A∗)=span{μk+1,…,μm}\mathrm{null}(A^*) = \mathrm{span}\{\mu_{k+1}, \ldots, \mu_m\},
  4. ∥A∥F=∥Σ∥F=∑σi2\|A\|_F = \|\Sigma\|_F = \sqrt{\sum \sigma_i^2} and ∥A∥2=max⁡x≠0∥Ax∥2∥x∥2=σ1\|A\|_2 = \max_{x \neq 0} \frac{\|Ax\|_2}{\|x\|_2} = \sigma_1.

Polar Decomposition

For A∈MnA \in M_n, A=PWA = PW with PP PSD and WW unitary.

(⇒)(\Rightarrow) From the SVD,

A=UΣV∗=UΣU∗⏟P UV∗⏟WA = U\Sigma V^* = \underbrace{U\Sigma U^*}_{P} \, \underbrace{UV^*}_{W}

(⇐)(\Leftarrow) Conversely, a polar decomposition gives an SVD. Let P=UΣU∗P = U\Sigma U^* and V:=W∗UV := W^*U. Then A=PW=UΣU∗W=UΣV∗A = PW = U\Sigma U^*W = U\Sigma V^*.