The Singular Value Decomposition
Every linear map distorts space in three ways. It can stretch, rotate, and possibly collapse dimensions. How can we measure this distortion in the cleanest possible way? The Singular Value Decomposition (SVD) answers this question. It finds two orthonormal bases — one for the domain, one for the codomain. Between these bases, the map acts as pure diagonal scaling. No other decomposition applies to every linear map between inner product spaces. This holds regardless of whether the map is square, invertible, or normal. The SVD matters because it isolates exactly the numerical invariants of a linear map. These invariants survive under orthonormal change of basis: the singular values. These numbers quantify how much the map stretches vectors. They measure stretching in the "best-fitting" orthogonal directions. They also generalize eigenvalues to maps that are not even square. Eigenvalues can be complex, negative, or simply nonexistent for a satisfactory basis. Singular values, by contrast, are always real and nonnegative. An orthonormal eigenbasis-like structure always exists for them. The construction proceeds through the positive operator . Its eigenvalues are nonnegative real numbers. Its square roots are precisely the singular values of . This ties the SVD tightly to the theory of Positive Operators and Square Roots. It also connects closely to The Adjoint of a Linear Map. Both are prerequisites for the argument given here. The output is a clean geometric picture. sends an orthonormal basis of eigenvectors of to orthogonal vectors. The lengths of these vectors are the singular values. This article builds the SVD from first principles. It defines singular values via . It proves the existence of the full decomposition with matching orthonormal bases. It shows how to read the decomposition as a diagonal matrix representation. It closes by connecting the SVD to two of its major descendants. These are the Polar Decomposition and Least Squares Approximation.
- Singular values of are the nonnegative square roots of the eigenvalues of the positive operator on .
- The SVD produces orthonormal bases of and of (extendable to all of ) with .
- Every linear map between finite-dimensional inner product spaces admits such a decomposition — no invertibility or squareness required.
- In matrix language, with unitary/orthogonal and diagonal with nonnegative entries.
- The number of nonzero singular values equals ; the largest singular value equals the operator norm .
- Key idea: diagonalize the positive operator , take square roots of its eigenvalues, and transport the eigenbasis forward through to get an orthogonal target basis.
Where this lives today
The SVD underlies principal component analysis in statistics and machine learning, where the singular vectors of a data matrix reveal the directions of maximal variance. It gives the theoretically optimal low-rank matrix approximation (the Eckart–Young theorem), used in image compression, recommender systems, and model reduction. In numerical linear algebra, the SVD provides the most numerically stable way to compute the rank, condition number, and pseudoinverse of a matrix, and underlies the Least Squares Approximation solution to overdetermined linear systems via the Moore–Penrose pseudoinverse. In signal processing, it powers noise reduction and system identification. In quantum information theory, the analogous "Schmidt decomposition" of a bipartite quantum state is precisely an SVD of the state's coefficient matrix, and it quantifies entanglement. In cryptography and coding theory, spectral norms bounded via the largest singular value control error propagation and security parameters of certain lattice-based schemes. The SVD is also the computational engine behind the Polar Decomposition, writing any operator as an isometry composed with a positive operator, which in turn is used in continuum mechanics to separate rotation from stretching in deformation gradients.
Ask the tutor: How does truncating the SVD to its largest singular values give the provably best rank- approximation of a matrix?
Let and be finite-dimensional inner product spaces over ( or ), and let .
Singular values. The operator is positive (self-adjoint with for all ). By the spectral theorem for positive operators, has an orthonormal eigenbasis with nonnegative eigenvalues. The singular values of are the numbers
where are the eigenvalues of (with multiplicity), conventionally listed in decreasing order .
Singular Value Decomposition. A singular value decomposition of consists of:
- an orthonormal basis of consisting of eigenvectors of , with ;
- an orthonormal list in ;
such that
Equivalently, for each , and is represented as a diagonal matrix with entries with respect to the bases and (any extension of) .
Intuition
Think of as a machine that takes an input vector and produces an output vector, possibly changing its length, direction, and even the ambient dimension. The SVD says: however complicated looks in arbitrary coordinates, there is one specific orthonormal basis of the input space that treats as "principal axes." Feed a unit vector along one of these axes, and out comes a vector along a corresponding orthogonal axis in the output space, scaled by a factor — the singular value. Geometrically, maps the unit sphere of to an ellipsoid in (possibly degenerate, if some ). The singular values are exactly the semi-axis lengths of that ellipsoid, and the vectors are the directions in the domain that map onto those semi-axes. This is why the SVD works for every linear map: the image of a sphere under any linear map is always an ellipsoid (possibly flattened into a lower-dimensional one), and every ellipsoid has well-defined principal axes.
The key algebraic fact making this picture rigorous is that is positive, hence orthogonally diagonalizable with nonnegative eigenvalues — a fact borrowed directly from the theory of positive operators. Taking square roots of those eigenvalues gives lengths, not just abstract scalars, and the adjoint relationship (rather than or some asymmetric combination) is exactly what forces the images to be mutually orthogonal, as the proof below verifies.
Let be finite-dimensional inner product spaces over , with , and let . Let be the singular values of (square roots of the eigenvalues of , listed with multiplicity). Then there exists an orthonormal basis of and an orthonormal list in such that
Moreover: 1. The number of nonzero equals . 2. , i.e. the largest singular value is the operator norm . 3. The list can be extended to an orthonormal basis of , and with respect to the bases of and this extended basis of , the matrix of is diagonal with entries (padded with zero rows if ).
Step 1: Set-up via the spectral theorem for positive operators. The operator satisfies , so is self-adjoint. For every ,
using the defining property of the adjoint (see The Adjoint of a Linear Map). Hence is a positive operator. By the spectral theorem for positive (in particular, self-adjoint) operators — established under Positive Operators and Square Roots — there is an orthonormal basis of consisting of eigenvectors of , with corresponding eigenvalues . Define ; these are the singular values of by definition, and we order them (relabeling the if necessary).
Step 2: The images are pairwise orthogonal with the right lengths. For ,
since (orthonormality of the eigenbasis). Also
so .
Step 3: Define and verify the formula. For each with , define
By Step 2, and whenever and both (the orthogonality computed above divides through by nonzero scalars without changing the conclusion). For indices with , choose to be any unit vectors in , orthonormal to each other and to all already chosen for ; this is possible by the Gram–Schmidt procedure applied within a suitable finite-dimensional subspace of (extend the partial orthonormal list to an orthonormal basis of , using , and use as many new vectors as needed). This yields an orthonormal list in , well-defined regardless of whether some vanish, satisfying
since for this is the definition of rearranged, and for both sides equal (the left side because ). Now for arbitrary , since is an orthonormal basis of , we may write
Applying and using linearity together with ,
This proves the main assertion.
Step 4: Rank equals the number of nonzero singular values. From , the range of is spanned by : indeed each such lies in , and every is a linear combination of these (terms with vanish). Since the with are orthonormal, hence linearly independent, they form a basis of . Therefore
Step 5: The largest singular value is the operator norm. Let with . Write with , so by Parseval's identity (orthonormality of ). Then, using that is orthonormal so by the Pythagorean theorem applied to the orthogonal vectors ,
since for all . Hence for all unit , so . Equality is attained at : by Step 2. Therefore .
Step 6: Diagonal matrix representation. By Step 3, is an orthonormal list in ; extend it (via Gram–Schmidt, using ) to an orthonormal basis of where . With respect to the basis of and this basis of , the matrix of has -th column equal to the coordinate vector of in the basis , which is times the standard basis vector in coordinate . Thus the matrix is diagonal (an matrix, square only if ) with diagonal entries and all other entries zero. This completes the proof.
∎Worked examples
Example 1: A non-square, asymmetric real matrix. Let be given, in standard bases, by the matrix
We compute :
This is a symmetric real matrix, hence self-adjoint on with the standard inner product; it is positive since it equals . Its characteristic polynomial is
The eigenvalues are . Both are positive (since ), consistent with positivity of . The singular values of are
Numerically, , so and . Eigenvectors of . For : solve , i.e. . Take , . Normalizing: , so norm . Thus
For : ; take , , normalize by :
As a check, , confirming orthogonality. Computing .
So
Similarly,
So
Check orthogonality: . Good. Since (both singular values are nonzero, the columns of are visibly independent), we extend to an orthonormal basis of by adjoining any unit vector orthogonal to both, e.g. via the cross product , normalized. This exhibits the full diagonal representation
with represented as (padded with a zero row) in the bases and .
Example 2: A singular complex matrix (rank deficient, illustrating a zero singular value). Let be given by
Note the second row is times the first, so ; we expect exactly one nonzero singular value. Compute , so
Check self-adjointness: . Good, and it should be positive since it equals . Eigenvalues: , so , giving , i.e. or . Both nonnegative, as required. Singular values:
Eigenvector for : solve . Take , : vector , norm . So
Eigenvector for : solve . Take : vector , norm . So
Check orthonormality: . Good (using the convention ). Compute :
Norm: So
Since , automatically (check: , confirming), and we choose to be any unit vector orthogonal to in , e.g.
since . This gives the SVD , , matching .
The theorem's proof relies on specifically being positive — this is what forces and lets us take real square roots. If one instead tried to build a "singular value decomposition" from the eigenvalues of an arbitrary self-adjoint operator unrelated to via , the construction collapses. Concretely, let and let be represented by
Suppose we tried to shortcut the construction by diagonalizing itself instead of , treating the eigenvalues of as "singular values." The characteristic polynomial of is , so has no real eigenvalues at all — there is no real orthonormal eigenbasis to even attempt this with. The shortcut fails immediately because is not self-adjoint (), so the spectral theorem for self-adjoint operators simply does not apply to . Contrast this with the correct construction: , which is self-adjoint and positive, with the (repeated) eigenvalue , giving singular values — correctly reflecting that a rotation preserves lengths. The hypothesis "diagonalize ," not "diagonalize itself" or "diagonalize some other self-adjoint operator," is essential; dropping it produces either nonsense (complex eigenvalues where none should appear) or simply the wrong numbers.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| is invertible (square, ) | All ; SVD coincides with writing through its polar decomposition times an isometry. |
| is not injective | Some ; corresponding , since . |
| SVD still exists; the diagonal matrix is rectangular (), padded with zero rows or the list is simply shorter than a full basis of . | |
| already self-adjoint/positive | Singular values equal where are eigenvalues of ; coincide up to sign when . |
| Repeated singular value | The eigenspace of for has dimension ; the choice of orthonormal basis within that eigenspace (and correspondingly of 's) is not unique, but the decomposition still holds for any such choice. |
| Choosing when | These vectors are not determined by — any orthonormal completion works, since regardless of . |
The mathematician behind it
Origins · 1 minEugenio Beltrami and how this was discovered
Beltrami is credited with an early form of the singular value decomposition for real square matrices, published in 1873, arising from his work on bilinear forms and their canonical reduction under orthogonal substitutions. Working independently, Camille Jordan (1874) and James Joseph Sylvester (1889) developed related canonical forms; the theory was later extended to complex matrices and to general linear operators between inner product spaces, with the operator-theoretic viewpoint (via and the spectral theorem for positive operators) becoming standard in twentieth-century functional analysis and numerical linear algebra.
Does every linear map have a singular value decomposition, even if it is not square or not invertible?
Yes. The existence theorem places no restriction on versus , nor does it require to be injective or surjective. The construction only uses that is a positive operator on , which holds for every with finite-dimensional inner product spaces. When is not injective, some singular values equal zero, and the corresponding eigenvectors of span . When is not surjective, the orthonormal list simply does not span all of , and must be extended arbitrarily to a full basis if a genuinely square diagonal matrix representation of 's basis is desired.
How does the SVD relate to eigenvalues of when is a square matrix?
In general, singular values and eigenvalues are different numbers computed from different operators: eigenvalues come from , singular values from . They coincide (up to absolute value) exactly when is normal, i.e. , because normal operators admit an orthonormal eigenbasis with possibly complex eigenvalues , and one can show the singular values equal . For a general (non-normal) square matrix, the eigenvalues can be wildly different from the singular values; a classic example is a nilpotent matrix with all eigenvalues zero but nonzero singular values, since it moves some vectors a positive distance even though it has no long-term "stretching direction" fixed by an eigenvector.
Why are singular values always real and nonnegative, unlike eigenvalues?
Singular values are defined as square roots of eigenvalues of , and is always a positive operator, regardless of what looks like. Positivity means for every , which forces all eigenvalues of to be real and nonnegative — this is a general fact about positive (in particular self-adjoint) operators proved via the spectral theorem. Taking square roots of nonnegative reals always yields nonnegative reals. This is precisely the mechanism that lets singular values exist and behave well even for maps like nilpotent operators or non-square matrices, where genuine eigenvalues may be complex, absent, or degenerate.
What is the connection between the SVD and the operator norm?
The largest singular value equals the operator norm , as proved directly from the Pythagorean identity applied to the orthogonal expansion . More generally, the -th singular value equals the operator norm of restricted to the orthogonal complement of the span of , giving a full hierarchy of "best-fit" norms. This is the theoretical basis for the Eckart–Young theorem: truncating the SVD to its top terms gives the best rank- approximation of in operator norm (and in Frobenius norm), a fact central to low-rank data compression.
Is the SVD unique?
The singular values themselves are unique, since they are determined as the (ordered) eigenvalues of , and eigenvalues with multiplicity are basis-independent invariants of an operator. The orthonormal bases and , however, are generally not unique. Whenever a singular value has multiplicity greater than one, any orthonormal basis of the corresponding eigenspace of works equally well, and the corresponding 's change correspondingly. Whenever a singular value is zero, the associated can be chosen arbitrarily (subject to orthonormality with the rest), since it plays no role in the formula for .
How does the SVD relate to the matrix factorization often seen in linear algebra courses?
This is the same object phrased in matrix language. If has matrix in some initial orthonormal bases, and , are as in the SVD, let be the (unitary or orthogonal) change-of-basis matrix whose columns are the coordinate vectors of , and the matrix whose columns are the coordinate vectors of (extended to a full basis of if needed). Then the diagonal representation of translates exactly into , where is the diagonal matrix of singular values. The operator-theoretic proof given here is basis-free, but choosing any orthonormal bases to write matrices recovers the familiar factorization.
Why is the SVD sometimes described as more fundamental than eigendecomposition?
Eigendecomposition (diagonalization by a single similarity transformation) requires to be a square operator with enough eigenvectors to form a basis — a strong and not always satisfied condition, even among self-adjoint-like operators over if the operator isn't self-adjoint. Even when eigenvectors exist, the change-of-basis matrix need not be orthogonal, so geometric distances and angles are not preserved by the eigenbasis. The SVD, in contrast, exists for every linear map between finite-dimensional inner product spaces, uses genuinely orthonormal bases on both sides, and always yields real nonnegative diagonal entries — properties that make it the natural generalization of diagonalization to arbitrary linear maps.