The Singular Value Decomposition
Every matrix factors as
Definition
For any real
The
Where they come from.
For each
The action, read off. Writing
Rank and the four subspaces. The number of nonzero singular values is
Sum of rank-one pieces.
and truncating after
Two invariants.
Assumptions and scope
Singular values are unique and nonnegative; singular vectors are not unique. A pair
may be replaced by , and a repeated singular value admits any orthonormal basis of its subspace, so an answer differing from a reference by signs may still be correct.The decomposition exists for every real matrix, rectangular or singular. This is the sense in which it is more general than diagonalization, which requires square and non-defective.
Singular values are not eigenvalues. For a symmetric positive semidefinite matrix they coincide; in general
, and a matrix with complex or negative eigenvalues still has real nonnegative singular values.Forming
squares the condition number, so computing an SVD this way is numerically poor. Production algorithms bidiagonalise directly; the route here is for understanding and for hand computation. The Eckart–Young optimality is over all matrices of rank at most
, in the Frobenius and spectral norms. It is not a claim about other norms or about structured approximations such as nonnegative or sparse ones.
Worked material
Example
Four matrices diagonalization could not handle
A rectangular matrix.
A singular square matrix.
A defective matrix. The shear
This is the sharpest contrast available: a matrix with one eigenvector and two singular directions.
A rotation.
Rectangular, singular, defective, and eigenvalue-free over
Non-example
Five errors about singular values
Taking singular values to be eigenvalues. For
Expecting negative or complex singular values. A matrix with eigenvalues
Concluding that a defective matrix has no decomposition. Diagonalization fails for the shear above; the SVD does not. The existence proof needs only that
Flipping one singular vector without its partner. Replacing
Treating the decomposition as unique. With a repeated singular value, any orthonormal basis of that subspace serves, so two correct answers may share no singular vectors at all. The identity matrix has
What separates these. The first three mistake the SVD for diagonalization and import its limitations. The last two mistake a construction with genuine freedom for one with a single answer. Both errors are caught by the same habit: verify the factorisation rather than the vectors.
Common errors
Common misconception
The singular values of a matrix are its eigenvalues, so a matrix with negative or complex eigenvalues has negative or complex singular values, and a defective matrix has no usable decomposition.