The Singular Value Decomposition
The singular value decomposition factors any m×n matrix as A = UΣVᵀ, with orthogonal U and V and a nonnegative diagonal Σ of singular values. The singular values are the square roots of the eigenvalues of AᵀA, and they describe the matrix geometrically as a rotation, an axiswise stretch, and another rotation, exposing rank, the four fundamental subspaces, and a best low-rank approximation.
╌╌╌╌
Diagonalization requires a square matrix with enough independent eigenvectors, and even that can fail. The Spectral Theorem supplies an orthogonal in the symmetric case, but neither result covers a rectangular matrix. The singular value decomposition has no such restriction: any matrix factors as with and orthogonal and nonnegative diagonal. The three factors describe the geometry of .
Stretching, measured by AᵀA
For a symmetric matrix, measures how much stretches its eigenvector: if with , then . A rectangular has no eigenvectors, but the quantity still has a largest value on the unit sphere, and finding it leads straight to . Because
maximizing is a constrained optimization of the quadratic form of . That matrix is symmetric, since , and positive semidefinite, since the form equals . Its eigenvalues are therefore real and nonnegative.
For example, take , which maps the unit sphere in onto an ellipse in . Compute
with eigenvalues , , and unit eigenvectors
The maximum of is , attained at , so the longest output has length , reached in the direction . The second-largest stretch, over directions orthogonal to , is at , with . These are the semi-axes of the image ellipse.
Singular values
The identity follows from . In the example, the singular values are , , and . The number of nonzero singular values equals the rank.
Counting nonzero singular values is the numerically dependable way to find rank. Counting pivots after row reduction is fragile: rounding easily turns a true zero into a tiny nonzero pivot and reports full rank. In practice, singular values below a small threshold are treated as zero, and the count of the rest is the effective rank.
The decomposition
Normalizing the image vectors produces the left half of the factorization.
The columns of are right singular vectors, the columns of are left singular vectors, and the diagonal of holds the singular values. The construction:
- Right singular vectors. Take , the orthonormal eigenvectors of .
- Singular value matrix. Place on the diagonal of , padded with zeros to size .
- Left singular vectors. For set , a unit vector; then . Extend to an orthonormal basis of .
By construction and are orthogonal, and . Right-multiplying by , and using , gives . The singular values are determined by , but and are not unique.
A rectangular example
Extending U when there are zero singular values
When , the left singular vectors from image normalization fall short of a full basis and must be extended.
The rank-one expansion
Expanding columnwise, as with the spectral decomposition, writes as a sum of rank-one pieces, one per nonzero singular value:
Each term is an rank-one matrix, and the singular values order the terms by size: the term contributes most, then the term, and so on. Truncating the sum after terms yields the best rank- approximation of , the basis for compression and denoising.
The four fundamental subspaces
The SVD produces orthonormal bases for all four subspaces associated with at once, sorted by whether their singular value is zero. With rank :
- Column space. is an orthonormal basis for , by the orthogonal-image-basis theorem.
- Left null space. is an orthonormal basis for .
- Row space. is an orthonormal basis for .
- Null space. is an orthonormal basis for , since exactly when .
The action of is transparent in these bases: it sends each row-space basis vector to in the column space, and annihilates the null-space vectors. This ties together the four fundamental subspaces with the orthogonality that the SVD makes explicit.
The singular values also complete the Invertible Matrix Theorem: for a square , invertibility is equivalent to having nonzero singular values, to , and to .
Condition number and least squares
Two applications follow immediately from the factorization, both explored in more depth in the numerical module. Because and preserve lengths, any sensitivity in solving is carried by alone. For an invertible , the ratio of the largest to smallest singular value is the condition number
which measures how much a relative error in can be amplified in ; a large signals an ill-conditioned system in which roundoff is amplified. The conditioning lesson develops this bound.
The reduced SVD keeps only the first columns, with (), ( invertible), and (). It defines the pseudoinverse (Moore–Penrose inverse)
which gives the minimum-length least-squares solution of as . Substituting the reduced SVD shows , the orthogonal projection of onto , so minimizes exactly as the normal equations require.
Computing by hand suits small examples, but in practice it is avoided: forming squares the errors in . Stable algorithms compute the SVD directly from by iterative bidiagonalization.
╌╌ END ╌╌