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).

The Singular Value Decomposition expresses an arbitrary matrix as a product , where the columns of and form orthonormal bases of the output and input spaces, and holds the singular values — nonnegative real numbers measuring how much stretches space along principal directions. Unlike eigendecomposition, the SVD exists for every matrix, including rectangular and singular ones, making it the most universal matrix factorization. It matters because it simultaneously reveals rank, null space, range, conditioning, and the optimal low-rank approximation of a matrix. A surprising fact: truncating the SVD after the largest singular values gives the provably best rank- approximation in both the spectral and Frobenius norms — a single decomposition solves an entire family of optimization problems.

The Core Insight

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

Singular Value Decomposition

Let (the real case is included). A singular value decomposition of is a factorization

1
⟳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

2
⟳read off column of and of .

Reduced (Thin) SVD

When , the bottom rows of are zero, and the last columns of contribute nothing. The thin SVD keeps only the first active components:

3
⟳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.

Existence and Uniqueness

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.

Relation to Eigendecomposition

The singular values of are the nonnegative square roots of the eigenvalues of (equivalently ):

4
⟳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

Existence of the SVD

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
5
⟳this normalizes ; check using .
Step 4 — Verify orthonormality of the . Compute
6
⟳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.

Uniqueness of Singular Values

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 .

Eugenio Beltrami | 1835–1900

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.

The geometry of SVD: a unit circle (right singular vectors) maps to an ellipse whose semi-axes are the singular values along the left singular vectors.

v₁ v₂ unit circle (input) A = UΣVᵀ σ₁u₁ σ₂u₂ ellipse (output)

Geometric reading

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

A 2×2 matrix by hand

Given: . Find its singular values. Step 1 — Form :
7
⟳multiply (rows = columns of ) by ; the entry is .
Step 2 — Eigenvalues of : Solve :
8
⟳a matrix has eigenvalues .
Step 3 — Singular values: , . Check: product . ✓

Best rank-1 approximation

Given: . Build its rank-1 SVD approximation. Step 1 — and eigenvalues:
9
⟳ gives .
Step 2 — Right singular vectors (eigenvectors of ):
10
⟳for solve , giving .
Step 3 — Left singular vectors via :
11
⟳, then divide by .
Step 4 — Rank-1 approximation :
12
⟳; the outer product places in the top row.
Approximation error (Frobenius) .

Common Misconceptions

SVD is not the eigendecomposition

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.

A matrix with no real eigenvalues but a clean SVD

The rotation matrix

13

⟳, 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.

Singular values are sorted, but vectors are not unique

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

  1. Image compression (PCA / Eckart–Young). A grayscale image is a matrix; keeping the top singular triplets reproduces the image with a fraction of the data. A image kept at rank 50 needs roughly numbers instead of .
  1. Latent Semantic Analysis (information retrieval). A term–document matrix is truncated via SVD to expose latent topics, letting search engines match "car" to documents about "automobiles."
  1. Recommender systems (Netflix Prize). Low-rank SVD-style factorizations of the sparse user–item rating matrix predict unseen ratings; the winning approaches were built on matrix factorization.
  1. Principal Component Analysis. Genomics, finance, and face recognition ("eigenfaces") reduce high-dimensional data to its dominant singular directions.
  1. Total Least Squares & line/plane fitting. When both coordinates carry error, the best-fit subspace is spanned by the top right singular vectors of the centered data.
  1. Numerical rank and noise filtering. Engineers determine the effective rank of a measured matrix by thresholding small singular values — distinguishing signal from noise in control systems and radar.
  1. Solving ill-posed inverse problems. Tikhonov regularization and truncated SVD damp the contributions of tiny , stabilizing deconvolution in tomography and seismology.

Historical Development

  • 1873 — Beltrami. Derives the SVD for real square matrices from the theory of bilinear forms.
  • 1874 — Jordan. Independently obtains the decomposition, also studying canonical forms of bilinear forms.
  • 1889 — Sylvester. Reaches the same result for real matrices and introduces the term "canonical multipliers."
  • 1902–1915 — Autonne. Extends the SVD to complex and rectangular matrices, connecting it to polar decomposition.
  • 1907 — Schmidt. Develops the infinite-dimensional analog for integral operators (the Hilbert–Schmidt theory), giving the optimal low-rank approximation in that setting.
  • 1936 — Eckart & Young. Prove that truncating the SVD yields the best low-rank approximation in the Frobenius norm — the theorem that powers data science today.
  • 1955 — Mirsky. Generalizes Eckart–Young to all unitarily invariant norms, including the spectral norm.
  • 1965 — Golub & Kahan. Publish the first stable numerical algorithm (Golub–Kahan bidiagonalization), making SVD practical on computers.
  • 1970 — Golub & Reinsch. Refine the algorithm into the standard routine still used in LAPACK and NumPy today.

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

Before this

Where this leads