Singular Value Decomposition (SVD)

Volume I, Chapter 1 — Part IV. Complete derivation of the SVD from the spectral theorem, Eckart-Young optimal low-rank approximation, connection to PCA, pseudoinverse, and theoretical foundations of LoRA and matrix completion.

Intermediate

Table of Contents

  1. Learning Objectives
  2. Prerequisites
  3. Notation
  4. Core Intuition
  5. Statement of the SVD
  6. Existence Proof
  7. Geometric Interpretation
  8. Outer Product and Rank Structure
  9. Relationship to Eigendecomposition
  10. The Eckart-Young-Mirsky Theorem
  11. Truncated SVD and PCA
  12. The Moore-Penrose Pseudoinverse
  13. Application: Low-Rank Adaptation (LoRA)
  14. Application: Matrix Completion
  15. Common Pitfalls and Misconceptions
  16. Research Perspective
  17. Summary of Takeaways
  18. Exercises

Learning Objectives

After reading this chapter, you should be able to:

  1. State the SVD theorem and prove existence using the spectral theorem on ATA\mathbf{A}^T\mathbf{A}.
  2. Interpret singular values as axis lengths of the transformation ellipsoid.
  3. Prove the Eckart-Young theorem for optimal rank-kk approximation in the Frobenius norm.
  4. Connect SVD of a centered data matrix to PCA and covariance eigendecomposition.
  5. Define the Moore-Penrose pseudoinverse and solve least-squares problems via SVD.
  6. Explain why low-rank factorization (LoRA, matrix completion) is justified by singular value decay.

Prerequisites


Notation

  • A=UΣVT\mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T — SVD with U,V\mathbf{U}, \mathbf{V} orthogonal
  • σ1σr\sigma_1 \geq \cdots \geq \sigma_r — Singular values, r=rank(A)r = \text{rank}(\mathbf{A})
  • **\*A F, —A 2\** — \mathbf{A}\ — _F, \ — \mathbf{A}\ — _2 — Frobenius and spectral norms
  • Ak\mathbf{A}_k — Rank-kk truncated SVD approximation
  • A+\mathbf{A}^+ — Moore–Penrose pseudoinverse

Core Intuition

Eigendecomposition applies only to square matrices and requires diagonalizability. The Singular Value Decomposition (SVD) applies to every matrix ARm×n\mathbf{A} \in \mathbb{R}^{m \times n} and always exists with orthogonal factors. It reveals that any linear map is a rotation, axis-aligned scaling, and another rotation:

A=UΣVT.(0)\mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T. \tag{0}

The singular values σ1σ20\sigma_1 \geq \sigma_2 \geq \cdots \geq 0 measure the "strength" of each rank-1 component. Truncating small singular values yields the best low-rank approximation — the mathematical justification for PCA, compression, LoRA fine-tuning, and collaborative filtering.

Series context. This is Part IV of Chapter 1. It completes the linear algebra foundation before Positive Definite Matrices.

Interactive: Singular Value Decomposition

v₁v₂

σ₁

2.558

σ₂

0.977

SVD Steps: A = UΣV^T

Original (unit circle)

Matrix A:

Key insight: SVD decomposes any matrix into rotate → stretch → rotate. The unit circle maps to an ellipse. σ₁/σ₂ are the semi-axis lengths. Step through to see each geometric stage.

Statement of the SVD

Theorem 1 (Singular Value Decomposition). For every matrix ARm×n\mathbf{A} \in \mathbb{R}^{m \times n} with rank rr, there exist:

  • Orthogonal URm×m\mathbf{U} \in \mathbb{R}^{m \times m} (left singular vectors)
  • Orthogonal VRn×n\mathbf{V} \in \mathbb{R}^{n \times n} (right singular vectors)
  • Diagonal ΣRm×n\boldsymbol{\Sigma} \in \mathbb{R}^{m \times n} with Σii=σi>0\Sigma_{ii} = \sigma_i > 0 for i=1,,ri = 1, \ldots, r and Σii=0\Sigma_{ii} = 0 otherwise, where σ1σ2σr\sigma_1 \geq \sigma_2 \geq \cdots \geq \sigma_r

such that

A=UΣVT.(1)\mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T. \tag{1}

The σi\sigma_i are the singular values; columns ui\mathbf{u}_i of U\mathbf{U} and vi\mathbf{v}_i of V\mathbf{V} are left and right singular vectors respectively.

Compact SVD. Often written with UrRm×r\mathbf{U}_r \in \mathbb{R}^{m \times r}, Σr=diag(σ1,,σr)\boldsymbol{\Sigma}_r = \text{diag}(\sigma_1, \ldots, \sigma_r), VrRn×r\mathbf{V}_r \in \mathbb{R}^{n \times r}:

A=UrΣrVrT.(2)\mathbf{A} = \mathbf{U}_r \boldsymbol{\Sigma}_r \mathbf{V}_r^T. \tag{2}

Existence Proof

Proof. The matrix ATARn×n\mathbf{A}^T\mathbf{A} \in \mathbb{R}^{n \times n} is symmetric and positive semidefinite, since

xTATAx=Ax20.(3)\mathbf{x}^T \mathbf{A}^T \mathbf{A}\, \mathbf{x} = \|\mathbf{A}\mathbf{x}\|^2 \geq 0. \tag{3}

By the spectral theorem:

ATA=VΛVT,λi0,(4)\mathbf{A}^T\mathbf{A} = \mathbf{V}\boldsymbol{\Lambda}\mathbf{V}^T, \quad \lambda_i \geq 0, \tag{4}

where V\mathbf{V} is orthogonal and Λ=diag(λ1,,λn)\boldsymbol{\Lambda} = \text{diag}(\lambda_1, \ldots, \lambda_n).

Step 1 — Singular values. Define σi=λi\sigma_i = \sqrt{\lambda_i} for i=1,,ri = 1, \ldots, r where r=rank(A)=rank(ATA)r = \text{rank}(\mathbf{A}) = \text{rank}(\mathbf{A}^T\mathbf{A}).

Step 2 — Left singular vectors. For i=1,,ri = 1, \ldots, r, define

ui=1σiAvi.(5)\mathbf{u}_i = \frac{1}{\sigma_i}\mathbf{A}\mathbf{v}_i. \tag{5}

This is well-defined since σi>0\sigma_i > 0 for iri \leq r. Verify orthonormality:

uiTuj=1σiσjviTATAvj=λjσiσjviTvj=σjσiδij=δij.(6)\mathbf{u}_i^T \mathbf{u}_j = \frac{1}{\sigma_i \sigma_j}\mathbf{v}_i^T \mathbf{A}^T \mathbf{A}\, \mathbf{v}_j = \frac{\lambda_j}{\sigma_i \sigma_j}\mathbf{v}_i^T \mathbf{v}_j = \frac{\sigma_j}{\sigma_i}\delta_{ij} = \delta_{ij}. \tag{6}

Step 3 — Extension. Extend {u1,,ur}\{\mathbf{u}_1, \ldots, \mathbf{u}_r\} to an orthonormal basis of Rm\mathbb{R}^m (adding vectors in null(AT)\text{null}(\mathbf{A}^T) if r<mr < m).

Step 4 — Verification. For iri \leq r: Avi=σiui\mathbf{A}\mathbf{v}_i = \sigma_i \mathbf{u}_i by (5). For i>ri > r: λi=0\lambda_i = 0, so Avi2=viTATAvi=0\|\mathbf{A}\mathbf{v}_i\|^2 = \mathbf{v}_i^T\mathbf{A}^T\mathbf{A}\mathbf{v}_i = 0, hence Avi=0\mathbf{A}\mathbf{v}_i = \mathbf{0}.

In matrix form: AV=UΣ\mathbf{A}\mathbf{V} = \mathbf{U}\boldsymbol{\Sigma}, so A=UΣVT\mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T. \blacksquare

Important equation. Equation (1) always exists — no diagonalizability requirement. This universality makes SVD the default tool for rectangular data matrices.


Geometric Interpretation

The map xAx\mathbf{x} \mapsto \mathbf{A}\mathbf{x} decomposes as:

xVTrotate in RnΣscale axes, embed into RmUrotate in Rm.(7)\mathbf{x} \xrightarrow{\mathbf{V}^T} \text{rotate in } \mathbb{R}^n \xrightarrow{\boldsymbol{\Sigma}} \text{scale axes, embed into } \mathbb{R}^m \xrightarrow{\mathbf{U}} \text{rotate in } \mathbb{R}^m. \tag{7}

The unit sphere {x:x=1}\{\mathbf{x} : \|\mathbf{x}\| = 1\} maps to an ellipsoid in Rm\mathbb{R}^m with semi-axis lengths σi\sigma_i along directions ui\mathbf{u}_i.

Visual description. Picture inflating a balloon (sphere) through a pipe (linear map). The balloon emerges as an ellipsoid. The SVD identifies the balloon's original orientation (V\mathbf{V}), how much it stretched along each axis (Σ\boldsymbol{\Sigma}), and the final orientation in output space (U\mathbf{U}).

Relation to four subspaces:

  • col(A)=span(u1,,ur)\text{col}(\mathbf{A}) = \text{span}(\mathbf{u}_1, \ldots, \mathbf{u}_r)
  • row(A)=span(v1,,vr)\text{row}(\mathbf{A}) = \text{span}(\mathbf{v}_1, \ldots, \mathbf{v}_r)
  • null(A)=span(vr+1,,vn)\text{null}(\mathbf{A}) = \text{span}(\mathbf{v}_{r+1}, \ldots, \mathbf{v}_n)
  • null(AT)=span(ur+1,,um)\text{null}(\mathbf{A}^T) = \text{span}(\mathbf{u}_{r+1}, \ldots, \mathbf{u}_m)

Outer Product and Rank Structure

Theorem 2 (Outer Product Expansion).

A=i=1rσiuiviT.(8)\mathbf{A} = \sum_{i=1}^{r} \sigma_i\, \mathbf{u}_i \mathbf{v}_i^T. \tag{8}

Each term σiuiviT\sigma_i \mathbf{u}_i \mathbf{v}_i^T is a rank-1 matrix. The SVD decomposes A\mathbf{A} into rr rank-1 components ordered by magnitude σi\sigma_i.

Proof. (UΣVT)=iσiuiviT(\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T) = \sum_i \sigma_i \mathbf{u}_i \mathbf{v}_i^T by matrix multiplication. \blacksquare

This connects to the outer-product view of matrix multiplication from Matrix Operations.


Relationship to Eigendecomposition

For ARm×n\mathbf{A} \in \mathbb{R}^{m \times n}:

ATA=VΣTΣVT=Vdiag(σ12,,σn2)VT,(9)\mathbf{A}^T\mathbf{A} = \mathbf{V}\boldsymbol{\Sigma}^T\boldsymbol{\Sigma}\mathbf{V}^T = \mathbf{V}\,\text{diag}(\sigma_1^2, \ldots, \sigma_n^2)\,\mathbf{V}^T, \tag{9} AAT=UΣΣTUT=Udiag(σ12,,σm2)UT.(10)\mathbf{A}\mathbf{A}^T = \mathbf{U}\boldsymbol{\Sigma}\boldsymbol{\Sigma}^T\mathbf{U}^T = \mathbf{U}\,\text{diag}(\sigma_1^2, \ldots, \sigma_m^2)\,\mathbf{U}^T. \tag{10}

Right singular vectors are eigenvectors of ATA\mathbf{A}^T\mathbf{A}; left singular vectors are eigenvectors of AAT\mathbf{A}\mathbf{A}^T; singular values are common square roots of eigenvalues.

When A\mathbf{A} is symmetric: SVD coincides with spectral decomposition (up to sign flips of ui=vi\mathbf{u}_i = \mathbf{v}_i).

Hierarchy of factorizations:

Eigendecomposition:A=PΛP1(square, diagonalizable)Spectral theorem:A=QΛQT(symmetric)SVD:A=UΣVT(any matrix)(11)\begin{aligned} \text{Eigendecomposition:} \quad & \mathbf{A} = \mathbf{P}\boldsymbol{\Lambda}\mathbf{P}^{-1} && \text{(square, diagonalizable)} \\ \text{Spectral theorem:} \quad & \mathbf{A} = \mathbf{Q}\boldsymbol{\Lambda}\mathbf{Q}^T && \text{(symmetric)} \\ \text{SVD:} \quad & \mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T && \text{(any matrix)} \end{aligned} \tag{11}

The Eckart-Young-Mirsky Theorem

Definition 1 (Frobenius norm). AF=i,jAij2=i=1rσi2\|\mathbf{A}\|_F = \sqrt{\sum_{i,j} A_{ij}^2} = \sqrt{\sum_{i=1}^r \sigma_i^2}.

Definition 2 (Spectral norm). A2=σ1\|\mathbf{A}\|_2 = \sigma_1 (largest singular value).

Theorem 3 (Eckart-Young-Mirsky). The best rank-kk approximation to A\mathbf{A} in Frobenius norm is

Ak=i=1kσiuiviT=UkΣkVkT,(12)\mathbf{A}_k = \sum_{i=1}^{k} \sigma_i\, \mathbf{u}_i \mathbf{v}_i^T = \mathbf{U}_k \boldsymbol{\Sigma}_k \mathbf{V}_k^T, \tag{12}

with error

AAkF=i=k+1rσi2,AAk2=σk+1.(13)\|\mathbf{A} - \mathbf{A}_k\|_F = \sqrt{\sum_{i=k+1}^{r} \sigma_i^2}, \qquad \|\mathbf{A} - \mathbf{A}_k\|_2 = \sigma_{k+1}. \tag{13}

Proof (Frobenius norm — key steps). Let B\mathbf{B} be any rank-kk matrix. Then dim(null(B))nk\dim(\text{null}(\mathbf{B})) \geq n - k. The space span(v1,,vk+1)\text{span}(\mathbf{v}_1, \ldots, \mathbf{v}_{k+1}) has dimension k+1k+1, so there exists unit z\mathbf{z} in both null spaces. Then:

(AB)z=Azσk+1,(14)\|(\mathbf{A} - \mathbf{B})\mathbf{z}\| = \|\mathbf{A}\mathbf{z}\| \geq \sigma_{k+1}, \tag{14}

since z\mathbf{z} has a component along vk+1\mathbf{v}_{k+1}. Hence ABFσk+1\|\mathbf{A} - \mathbf{B}\|_F \geq \sigma_{k+1}. The truncated SVD achieves equality. \blacksquare

Energy captured:

AkF2AF2=i=1kσi2i=1rσi2.(15)\frac{\|\mathbf{A}_k\|_F^2}{\|\mathbf{A}\|_F^2} = \frac{\sum_{i=1}^{k} \sigma_i^2}{\sum_{i=1}^{r} \sigma_i^2}. \tag{15}

Important equation. Equation (15) quantifies how much of a matrix's structure is captured by its top-kk singular components — the basis for dimensionality reduction and LoRA.


Truncated SVD and PCA

For centered data XRN×d\mathbf{X} \in \mathbb{R}^{N \times d} (rows = samples):

X=UΣVT.(16)\mathbf{X} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T. \tag{16}

Sample covariance:

C=1N1XTX=1N1VΣ2VT.(17)\mathbf{C} = \frac{1}{N-1}\mathbf{X}^T\mathbf{X} = \frac{1}{N-1}\mathbf{V}\boldsymbol{\Sigma}^2\mathbf{V}^T. \tag{17}

Hence:

  • Principal components = columns of V\mathbf{V}
  • Covariance eigenvalues = σi2/(N1)\sigma_i^2 / (N-1)
  • PC scores = XV=UΣ\mathbf{X}\mathbf{V} = \mathbf{U}\boldsymbol{\Sigma}

Numerical advantage. SVD of X\mathbf{X} avoids forming XTX\mathbf{X}^T\mathbf{X}, which squares the condition number. Always prefer SVD over direct covariance eigendecomposition for ill-conditioned data.


The Moore-Penrose Pseudoinverse

Definition 3. The pseudoinverse A+Rn×m\mathbf{A}^+ \in \mathbb{R}^{n \times m} is:

A+=VrΣr1UrT,(18)\mathbf{A}^+ = \mathbf{V}_r \boldsymbol{\Sigma}_r^{-1} \mathbf{U}_r^T, \tag{18}

where Σr1=diag(1/σ1,,1/σr)\boldsymbol{\Sigma}_r^{-1} = \text{diag}(1/\sigma_1, \ldots, 1/\sigma_r).

Theorem 4. The minimum-norm least-squares solution to Ax=b\mathbf{A}\mathbf{x} = \mathbf{b} is x^=A+b\hat{\mathbf{x}} = \mathbf{A}^+\mathbf{b}.

Proof sketch. A+b\mathbf{A}^+\mathbf{b} lies in row(A)\text{row}(\mathbf{A}) and satisfies the normal equations. Minimum norm among all least-squares solutions follows from orthogonality to null(A)\text{null}(\mathbf{A}). \blacksquare

When A\mathbf{A} has full column rank, A+=(ATA)1AT\mathbf{A}^+ = (\mathbf{A}^T\mathbf{A})^{-1}\mathbf{A}^T — the familiar form from Matrix Operations.


Application: Low-Rank Adaptation (LoRA)

Fine-tuning a pretrained weight matrix W0Rd×d\mathbf{W}_0 \in \mathbb{R}^{d \times d} uses:

W=W0+ΔW=W0+BA,BRd×r,  ARr×d,  rd.(19)\mathbf{W} = \mathbf{W}_0 + \Delta\mathbf{W} = \mathbf{W}_0 + \mathbf{B}\mathbf{A}, \quad \mathbf{B} \in \mathbb{R}^{d \times r},\; \mathbf{A} \in \mathbb{R}^{r \times d},\; r \ll d. \tag{19}

SVD justification. If the ideal update ΔW\Delta\mathbf{W}^* has singular values decaying rapidly, then by Eckart-Young:

ΔWBAFi=r+1dσi2,(20)\|\Delta\mathbf{W}^* - \mathbf{B}\mathbf{A}\|_F \geq \sqrt{\sum_{i=r+1}^{d} \sigma_i^2}, \tag{20}

with equality when BA=(ΔW)r\mathbf{B}\mathbf{A} = (\Delta\mathbf{W}^*)_r. Low-rank adaptation is optimal when task-specific changes are approximately low-rank.

Parameter count. Full update: d2d^2. LoRA: 2dr2dr. For d=4096d = 4096, r=16r = 16: reduction factor d/(2r)=128d/(2r) = 128.


Application: Matrix Completion

In collaborative filtering, the rating matrix RRm×n\mathbf{R} \in \mathbb{R}^{m \times n} has entries observed only on a subset Ω\Omega. The low-rank hypothesis: RUVT\mathbf{R} \approx \mathbf{U}\mathbf{V}^T with URm×k\mathbf{U} \in \mathbb{R}^{m \times k}, VRn×k\mathbf{V} \in \mathbb{R}^{n \times k}.

Regularized objective:

minU,V(i,j)Ω(RijuiTvj)2+λ(UF2+VF2).(21)\min_{\mathbf{U}, \mathbf{V}} \sum_{(i,j) \in \Omega} (R_{ij} - \mathbf{u}_i^T \mathbf{v}_j)^2 + \lambda(\|\mathbf{U}\|_F^2 + \|\mathbf{V}\|_F^2). \tag{21}

This is a partial, regularized low-rank factorization. When all entries are observed, the optimum relates to the truncated SVD of R\mathbf{R}.


Common Pitfalls and Misconceptions

Pitfall 1: Confusing SVD with eigendecomposition of A\mathbf{A}. For nonsquare or nonsymmetric A\mathbf{A}, eigenvalues of A\mathbf{A} may be complex or fail to diagonalize. SVD always uses orthogonal factors and real nonnegative singular values.

Pitfall 2: Truncating SVD without checking decay. If singular values decay slowly, rank-kk truncation loses substantial information. Inspect the scree plot (σi\sigma_i vs ii).

Pitfall 3: Applying PCA via SVD without centering. SVD of raw X\mathbf{X} finds directions of maximum variance including the mean offset. Always center columns first.

Pitfall 4: Assuming LoRA rank rr is universally sufficient. Optimal rr depends on task complexity and how quickly ΔW\Delta\mathbf{W}^* singular values decay.

Pitfall 5: Using full SVD for very large matrices. Randomized SVD methods approximate top-kk components in O(mnlogk)O(mn \log k) rather than O(min(mn2,m2n))O(\min(mn^2, m^2 n)).


Research Perspective

The SVD was developed independently by Beltrami (1873), Jordan (1874), and later formalized by Eckart and Young (1936) for low-rank approximation. Golub and Reinsch (1970) provided the first stable numerical algorithm.

In machine learning, latent semantic indexing (Deerwester et al., 1990) applied truncated SVD to term-document matrices. Matrix completion (Candès & Recht, 2009; Netflix Prize) exploited low-rank structure with theoretical guarantees. LoRA (Hu et al., 2021) brought low-rank updates to billion-parameter language models, motivated by the empirical observation that fine-tuning changes are low-rank.

Randomized numerical linear algebra (Halko et al., 2011) enables approximate SVD at scale — essential for modern data pipelines.


Summary of Takeaways

  • SVDA=UΣVT\mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T — Universal factorization
  • Rank-kk approxAk=UkΣkVkT\mathbf{A}_k = \mathbf{U}_k\boldsymbol{\Sigma}_k\mathbf{V}_k^T — PCA, compression
  • Eckart-Young — Optimal in  — F\ — \cdot\ — _F — Justifies LoRA, truncation
  • PseudoinverseA+=VrΣr1UrT\mathbf{A}^+ = \mathbf{V}_r\boldsymbol{\Sigma}_r^{-1}\mathbf{U}_r^T — Least squares
  • Energy ratioi=1kσi2/σi2\sum_{i=1}^k \sigma_i^2 / \sum \sigma_i^2 — Variance explained

Next article: Positive Definite Matrices → — covariance, convexity, and the geometry of optimization.


Exercises

Exercise 1. Compute the SVD of A=[3002]\mathbf{A} = \begin{bmatrix} 3 & 0 \\ 0 & -2 \end{bmatrix}. Identify U\mathbf{U}, Σ\boldsymbol{\Sigma}, V\mathbf{V} and verify (1).

Exercise 2. Prove AF2=iσi2\|\mathbf{A}\|_F^2 = \sum_i \sigma_i^2 and A2=σ1\|\mathbf{A}\|_2 = \sigma_1.

Exercise 3. For rank-1 A=uvT\mathbf{A} = \mathbf{u}\mathbf{v}^T, show the SVD has a single singular value σ1=uv\sigma_1 = \|\mathbf{u}\|\|\mathbf{v}\|.

Exercise 4 (Eckart-Young). For A\mathbf{A} with σ1=5,σ2=3,σ3=1\sigma_1 = 5, \sigma_2 = 3, \sigma_3 = 1, compute AA1F\|\mathbf{A} - \mathbf{A}_1\|_F and the fraction of energy in the rank-1 approximation.

Exercise 5 (PCA). Given centered XR100×5\mathbf{X} \in \mathbb{R}^{100 \times 5} with SVD singular values (10,5,2,0.5,0.1)(10, 5, 2, 0.5, 0.1), compute the proportion of variance explained by the first two principal components.

Exercise 6 (Pseudoinverse). For A=[1111]\mathbf{A} = \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}, compute the SVD and A+\mathbf{A}^+. Verify AA+A=A\mathbf{A}\mathbf{A}^+\mathbf{A} = \mathbf{A}.

Exercise 7 (Conceptual). Explain why ATA\mathbf{A}^T\mathbf{A} and AAT\mathbf{A}\mathbf{A}^T have the same nonzero eigenvalues, and relate them to singular values of A\mathbf{A}.


Appendix: The Polar Decomposition

Every square matrix ARn×n\mathbf{A} \in \mathbb{R}^{n \times n} admits a polar decomposition:

A=QP,(A.1)\mathbf{A} = \mathbf{Q}\mathbf{P}, \tag{A.1}

where Q\mathbf{Q} is orthogonal and P=(ATA)1/2\mathbf{P} = (\mathbf{A}^T\mathbf{A})^{1/2} is symmetric positive semidefinite.

Derivation from SVD. Write A=UΣVT\mathbf{A} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^T. Define Q=UVT\mathbf{Q} = \mathbf{U}\mathbf{V}^T (orthogonal when A\mathbf{A} is square and full rank) and P=VΣVT\mathbf{P} = \mathbf{V}\boldsymbol{\Sigma}\mathbf{V}^T (symmetric PSD). Then A=QP\mathbf{A} = \mathbf{Q}\mathbf{P}.

Interpretation. P\mathbf{P} captures the "stretch" part of the transformation; Q\mathbf{Q} captures the "rotation" part. For symmetric A\mathbf{A}, the polar decomposition coincides with the spectral theorem (Q=I\mathbf{Q} = \mathbf{I}, P=A\mathbf{P} = \mathbf{A} when A0\mathbf{A} \succ 0).

Connection to optimization. The polar decomposition appears in orthogonality constraints on weight matrices (orthogonal regularization) and in analyzing the singular value thresholding operator used in matrix completion algorithms.