Singular Value Decomposition (SVD)
Subtopic: Decompositions
The SVD factors any matrix — even rectangular ones — into rotation, scaling, and rotation: .
It reveals the fundamental structure of linear maps and enables dimensionality reduction, pseudoinverses, and matrix approximation. SVD is arguably the most important matrix factorization in applied mathematics.
Introduction
Eigendecomposition only works for square matrices, and only some of those. SVD works for every matrix. It decomposes a linear map into: rotate input space → stretch along coordinate axes → rotate to output space.
This universal factorization makes SVD the Swiss army knife of linear algebra.
Definition
Any matrix can be factored as where:
is orthogonal (columns are left singular vectors)
is diagonal with nonnegative entries (singular values )
is orthogonal (columns are right singular vectors)
Geometric Interpretation
Multiplying by transforms vectors in three steps:
rotates or reflects in the input space
stretches along coordinate axes (by )
rotates or reflects into the output space
The singular values are the stretching factors along principal axes. The unit sphere maps to an ellipsoid; the are the semi-axis lengths.
Relation to Eigenvalues
The singular values are the square roots of the eigenvalues of (or ):
.
For symmetric positive definite matrices, singular values equal eigenvalues.
Worked Example
Find the SVD of:
This is already "SVD-ready." The singular values are ,
Verify:
The Truncated SVD
Keeping only the largest singular values gives the best rank-k approximation:
This minimizes among all rank-k matrices (in both Frobenius and spectral norms).
Crucial for dimensionality reduction: keep the most important directions, discard noise.
Key Properties
number of nonzero singular values
(spectral norm largest singular value)
(Frobenius norm)
Condition number
Pseudoinverse: , where inverts the nonzero
Applications
In image compression, SVD keeps the largest singular values, dramatically reducing storage with small quality loss.
In recommendation systems, SVD reveals latent factors connecting users and items (e.g., the Netflix Prize).
In PCA, the principal components are the right singular vectors; singular values determine component importance.
In least squares, the pseudoinverse (via SVD) solves when is not invertible.
Summary
The SVD factors into orthogonal matrices and a diagonal matrix of singular values. It works for any matrix and reveals rank, norms, and condition number. Truncated SVD gives optimal low-rank approximations. Singular values are the square roots of the eigenvalues of . Applications span dimensionality reduction, compression, recommendation, and solving ill-conditioned systems.