Singular Value Decomposition
Singular Value Decomposition (SVD) factors any real or complex matrix into , where and are orthogonal/unitary and is diagonal with nonnegative entries. Key result: every linear map is a rotation, followed by an axis-aligned stretch, followed by another rotation. Where it applies: dimensionality reduction, least squares, image compression, pseudoinverses, numerical rank. Who/when: roots in Beltrami (1873) and Jordan (1874); modern numerical algorithm by Golub–Kahan (1965).
Any linear transformation can be decomposed into three geometric stages: rotate the input (via ), scale along orthogonal axes (via ), then rotate again into the output space (via ). The orthonormal vectors that get scaled cleanly — without shearing — are the singular vectors, and the scale factors are the singular values. This works even when eigenvectors fail to exist or fail to be orthogonal.
Formal Statement
Let (the real case is included). A singular value decomposition of is a factorization
Derivation hint: this is the definition; existence is proven below via the spectral theorem applied to . where:
- is unitary (); its columns are the left singular vectors.
- is unitary (); its columns are the right singular vectors.
- is a rectangular diagonal matrix with entries on the diagonal, where . These are the singular values.
- denotes the conjugate transpose of (just the transpose in the real case).
The number of nonzero singular values equals . The defining relations connecting the three factors are
Derivation hint: read off column of and of .
When , the bottom rows of are zero, and the last columns of contribute nothing. The thin SVD keeps only the first active components:
Derivation hint: expand the matrix product column-by-column and discard terms multiplied by zero singular values. Here , is square diagonal with positive entries, and . The rightmost form expresses as a sum of rank-one matrices.
Every matrix admits a singular value decomposition. The singular values are uniquely determined by . The singular vectors are unique up to: 1. sign (or unit-modulus phase) when the corresponding singular value is simple and nonzero; 2. an orthogonal/unitary rotation within each eigenspace when a singular value is repeated.
The singular values of are the nonnegative square roots of the eigenvalues of (equivalently ):
Derivation hint: substitute and use , ; the cross terms collapse leaving diagonal Gram matrices. Thus the right singular vectors are eigenvectors of , the left singular vectors are eigenvectors of , and are the shared nonzero eigenvalues.
Why It Holds / Derivation
We construct the decomposition explicitly.
Step 1 — Symmetrize. Form . This matrix is Hermitian and positive semidefinite: for any , .
Step 2 — Apply the spectral theorem. Because is Hermitian, it has an orthonormal eigenbasis with real eigenvalues . Define . Let be the number of strictly positive eigenvalues.
Step 3 — Define left singular vectors. For set
Derivation hint: this normalizes ; check using .
Step 4 — Verify orthonormality of the . Compute
Derivation hint: use then orthonormality and . So is orthonormal in .
Step 5 — Complete the bases. Extend to an orthonormal basis of (Gram–Schmidt). Set the remaining . The already form a full orthonormal basis of .
Step 6 — Assemble. By construction for all (for , since ). Collecting columns, , hence since is unitary.
∎Suppose . Then , which exhibits as the eigenvalues of . Eigenvalues are invariants of a matrix, independent of any factorization. Hence the multiset , and therefore as ordered nonnegative reals, is uniquely determined by .
∎The Italian mathematician Eugenio Beltrami first derived the singular value decomposition in 1873 for real square matrices, motivated by the study of bilinear forms and their invariants under change of basis. He sought a canonical form for a bilinear form under independent orthogonal substitutions of the and variables — exactly the geometry of and . Camille Jordan rediscovered it independently in 1874, and the theory was later extended by Sylvester, Autonne (to complex matrices, 1915), and Eckart–Young, who in 1936 proved the celebrated low-rank approximation theorem that made the SVD indispensable to applied mathematics.
Building Intuition
Picture the unit sphere in . A general linear map deforms it into an ellipsoid in . The SVD reads off the geometry of that ellipsoid directly:
- The right singular vectors are the directions on the input sphere that map onto the ellipsoid's principal axes.
- The singular values are the lengths of those semi-axes — how far the sphere stretches in each principal direction.
- The left singular vectors are the output directions in which the principal axes point.
The largest singular value is the maximum stretch factor; it equals the operator norm . The smallest nonzero singular value measures how close is to being rank-deficient. The ratio is the condition number, governing how sensitively the output reacts to input perturbations.
Engineers often think of as a gain spectrum: feed orthogonal "modes" into the system and they emerge as orthogonal modes amplified by gains . A signal aligned with comes out strongest; one aligned with comes out weakest. Noise hidden in directions with tiny is what makes inverse problems unstable — which is precisely why regularization throttles small singular values.
Worked Examples
Given: . Find its singular values.
Step 1 — Form :
Derivation hint: multiply (rows = columns of ) by ; the entry is .
Step 2 — Eigenvalues of : Solve :
Derivation hint: a matrix has eigenvalues .
Step 3 — Singular values: , .
Check: product . ✓
Given: . Build its rank-1 SVD approximation.
Step 1 — and eigenvalues:
Derivation hint: gives .
Step 2 — Right singular vectors (eigenvectors of ):
Derivation hint: for solve , giving .
Step 3 — Left singular vectors via :
Derivation hint: , then divide by .
Step 4 — Rank-1 approximation :
Derivation hint: ; the outer product places in the top row.
Approximation error (Frobenius) .
Common Misconceptions
A frequent error is conflating singular values with eigenvalues. They coincide only when is symmetric positive semidefinite. In general:
- Eigenvalues can be negative or complex; singular values are always real and nonnegative.
- Eigenvectors need not be orthogonal; singular vectors always are.
- The eigendecomposition may not exist (defective matrices); the SVD always exists.
For a symmetric matrix with a negative eigenvalue , the corresponding singular value is , with a sign absorbed into a singular vector.
The rotation matrix
Derivation hint: , so all singular values equal 1; eigenvalues are . has complex eigenvalues and no real eigenvectors — its eigenanalysis over is empty. Yet its SVD is trivial: since , every singular value equals , and is already an SVD. The matrix is a pure rotation: it stretches nothing, only turns the plane. This shows the SVD captures geometry that eigenvalues miss entirely.
Repeated singular values produce non-unique singular vectors: any orthonormal rotation within the shared subspace is valid. For the identity matrix , every orthonormal pair works as right singular vectors. Never assume your computed and match someone else's down to signs — only the are canonical.
Connections
The SVD sits at the crossroads of several fundamental topics:
- It generalizes the Spectral Theorem: for symmetric PSD matrices the two decompositions coincide.
- It defines the Moore-Penrose Pseudoinverse via , where inverts the nonzero singular values.
- It underlies Principal Component Analysis: the principal components are the right singular vectors of the mean-centered data matrix.
- It computes all four Fundamental Subspaces at once: columns of split into range and left null space; columns of split into row space and null space.
- It quantifies stability through the Condition Number .
- It is the engine of Least Squares solutions when the normal equations are ill-conditioned.
Real-World Applications
Historical Development
Subtleties & Limits
Several practical and theoretical frontiers remain active:
- Large-scale and streaming SVD. Computing even a truncated SVD of a billion-row matrix is costly; randomized SVD algorithms (Halko–Martinsson–Tropp, 2011) approximate the top components quickly, but optimal bounds for adversarial or streaming data are still studied.
- Tensor generalizations. There is no single canonical SVD for tensors of order ; competing notions (CP decomposition, Tucker/HOSVD) trade off uniqueness, computability, and best-approximation guarantees, and finding best low-rank tensor approximations can be NP-hard and even ill-posed.
- Perturbation theory. While singular values are stable (Weyl's inequality bounds their shift by ), singular vectors tied to closely-spaced singular values can swing wildly under perturbation — quantified by the gap-dependent Davis–Kahan and Wedin theorems.
- Sparse and structured SVD. Enforcing sparsity or nonnegativity (NMF) destroys orthogonality and the clean optimization landscape, leaving heuristic algorithms without global guarantees.
See Also
Eigenvalues and Eigenvectors · Spectral Theorem · Principal Component Analysis · Moore-Penrose Pseudoinverse · Polar Decomposition · Least Squares · Condition Number · Fundamental Subspaces · Matrix Norms