Every Matrix Is Three Simple Matrices
The SVD says something surprisingly strong about arbitrary matrices. It “is a factorization of a real or complex matrix into a rotation, followed by a scaling, followed by another rotation.” No assumptions about squareness, symmetry, or invertibility are needed: it “generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any matrix.”
Formally, the SVD of an complex matrix is a factorization
where “is an complex unitary matrix, is an rectangular diagonal matrix with non-negative real numbers on the diagonal, is an complex unitary matrix,” and is the conjugate transpose of . Unitary means the transformation preserves lengths and angles, so all the stretching lives in the diagonal middle factor and nowhere else.
The idea
The diagonal entries of rank the matrix’s own directions by importance, and cutting the list short is not a heuristic but the provably optimal compression. Keep only the largest and you get the best rank- approximation under the Frobenius norm, a result “known as the Eckart-Young theorem, as it was proved by those two authors in 1936.” That is unusual. A greedy truncation that happens to be globally optimal is the reason SVD sits under image compression, recommender systems, and dimensionality reduction rather than competing with them.
What the Singular Values Actually Measure
The diagonal entries “are known as the singular values of .” They are not arbitrary. “Conventionally they are arranged in descending order (from largest to smallest), which uniquely determines ,” and their count carries structural information: “the number of non-zero singular values, allowing repetitions, is equal to , the rank of .” A matrix with three nonzero singular values has rank three, however large it is.
The geometric reading is the one worth keeping. Take the unit sphere in . The linear map “maps this sphere onto an ellipsoid in . Non-zero singular values are simply the lengths of the semi-axes of this ellipsoid.” So the rotate-scale-rotate story is literal: the first rotation lines up the sphere’s axes with the directions the matrix cares about, the scaling stretches each by its singular value, and the second rotation places the resulting ellipsoid in the output space. The largest singular value is the longest semi-axis, the direction the matrix amplifies most.
The paired vector sets name those directions. “The columns of and the columns of are called left-singular vectors and right-singular vectors” of . Each comes with an input direction and an output direction .
This is the connection to eigenvalues, and also the departure from them. Eigendecomposition needs a square matrix with a suitable eigenbasis; the SVD needs nothing, which is why it is the workhorse for the rectangular, rank-deficient, noisy matrices that data actually produces.
Truncation Is Optimal
The approximation problem is stated plainly: “low-rank approximation refers to the process of approximating a given matrix by a matrix of lower rank. More precisely, it is a minimization problem, in which the cost function measures the fit between a given matrix (the data) and an approximating matrix (the optimization variable), subject to a constraint that the approximating matrix has reduced rank.”
The reason this matters beyond storage is modeling: “the rank constraint is related to a constraint on the complexity of a model that fits the data.” Rank is a complexity budget.
The solution is the SVD, applied by amputation. “In the case that the approximation is based on minimizing the Frobenius norm of the difference between and under the constraint that , it turns out that the solution is given by the SVD of ,” with the truncated being “the same matrix as except that it contains only the largest singular values (the other singular values are replaced by zero).” Equivalently you keep the first terms of
The result “is referred to as the matrix approximation lemma or Eckart-Young-Mirsky theorem.” Its history is layered: the problem “was originally solved by Erhard Schmidt in the infinite dimensional context of integral operators … and later rediscovered by C. Eckart and G. Young. L. Mirsky generalized the result to arbitrary unitarily invariant norms.”
Example
Greyscale image compression is the cleanest demonstration. An image stored as an matrix “can be efficiently represented by keeping the first singular values and corresponding vectors,” and the truncated sum above “gives an image with the best 2-norm error out of all rank- approximations.”
The accounting is direct. Storing “requires only floating-point numbers compared to integers.” The reason a small suffices is empirical rather than algebraic: “since the singular values of most natural images decay quickly, most of their variance is often captured by a small .”
Where It Shows Up
“Mathematical applications of the SVD include computing the pseudoinverse, matrix approximation, and determining the rank, range, and null space of a matrix. The SVD is also extremely useful in many areas of science, engineering, and statistics, such as signal processing, least squares fitting of data, and process control.”
The rank, range, and null space entries are worth pausing on, because in floating point those are otherwise ill-posed questions. Counting nonzero singular values gives a numerically meaningful rank in a way that row-reduction does not, since you can threshold small singular values instead of testing exact zeros.
The list of relatives explains why the same idea keeps reappearing under different names. Low-rank approximation “is closely related to numerous other techniques, including principal component analysis, factor analysis, total least squares, latent semantic analysis, orthogonal regression, and dynamic mode decomposition.” Latent semantic analysis in information retrieval and principal component analysis in machine learning are, structurally, this one factorization applied to different matrices.
Warning
The compression guarantee is about a specific error measure, not about perceptual or semantic quality. Eckart-Young minimizes the Frobenius norm of the residual, so the retained content is whatever carries the most squared magnitude. On images the practical task “becomes finding an approximation that balances retaining perceptual fidelity with the number of vectors required to reconstruct the image,” which is a judgment the theorem does not make for you. Optimal in norm is not the same as optimal for the application.
Related Notes
- Eigenvalues and Eigenvectors - the decomposition SVD generalizes to non-square matrices
- Matrices and Linear Transformations - the rotate, scale, rotate reading of a matrix
- Linear Algebra Fundamentals - rank, range, and null space, which singular values expose
- PCA and Dimensionality Reduction - the statistical face of the same truncation
- Vectors and Dot Products - orthonormality is what makes the outer factors distortion-free
Sources
- Singular value decomposition (Wikipedia) - the factorization and the shapes of U, Sigma, and V, singular values as ellipsoid semi-axes, the rank count, the Eckart-Young theorem, the truncated sum, and the image-compression storage figures.
- Low-rank approximation (Wikipedia) - low-rank approximation as a constrained minimization, rank as a model-complexity constraint, the Eckart-Young-Mirsky naming and history, and the related techniques including PCA and latent semantic analysis.