Both have rank two. Yet they do not preserve a two-dimensional signal equally well. leaves the unit circle unchanged, while squeezes it into a needle: the second coordinate still exists in exact arithmetic, but a small amount of noise can overwhelm it.
Rank cannot express this difference. It tells us whether a direction has vanished, but not how close that direction is to vanishing. What we want instead is a description of a matrix in terms of the input directions it acts on, the amount of stretching along each direction, and the output directions those inputs become.
That description is the singular value decomposition. We will build it from the two-dimensional picture, then use the same picture to understand the singular-value spectrum, , low-rank approximation, spectral decomposition, and the spectral norm.
For a real matrix , the singular value decomposition is
and are orthogonal matrices, and is rectangular and diagonal. Its diagonal entries are the singular values,
The product becomes useful when we read it in the order in which it acts on a vector:
Let be the -th column of . The -th entry of is
so reads the coordinate of along the input direction . The diagonal matrix multiplies that coordinate by , and places the result along the output direction . Equivalently,
This equation contains the geometry of the whole decomposition. The form orthogonal input directions; the form orthogonal output directions; and records how much length survives between them. If , the entire direction is erased.
Move , , , and below; the panels follow a fixed vector through , , , and .
xVᵀxΣVᵀxUΣVᵀx = Ax
The unit sphere now has a simple fate. and preserve lengths because they are orthogonal. Only changes length, so maps the unit sphere to an ellipsoid whose semiaxis lengths are the singular values and whose semiaxis directions are the columns of .
The opening example has singular values for and for . Rank sees only that both pairs contain two nonzero numbers:
The singular values tell us what rank leaves out. A value of zero means that a direction is gone. A very small value means that the direction survives algebraically but is fragile numerically, because recovering it requires division by a small number.
For a full-rank square matrix, this fragility is summarized by the two-norm condition number,
The condition number of is : an error aligned with its weak direction can be amplified by a factor on that scale when the map is inverted. If , the inverse does not exist and the condition number is infinite.
The ordered list is called the singular-value spectrum. The qualifier matters. The spectrum of a square matrix usually means its eigenvalues, which may be negative or complex; singular values exist for rectangular matrices and are always nonnegative real numbers.
In high dimensions, the tail of this list is often more informative than exact rank. Given a threshold , we can define an effective rank
Given a truncation point , we can also measure how much squared singular-value mass is retained:
A flat spectrum spreads scale across many directions. A decaying spectrum concentrates it near the front, so a matrix may have full exact rank while behaving like a much lower-dimensional map.
The example below uses ; adjust , , and to see how spectral decay changes effective rank, retained energy, and truncation error.
ε
σ1
σ2
σ3
σ4
σ5
σ6
σ7
σ8
σ9
σ10
σ11
σ12
σ13
σ14
σ15
σ16
Effective rank
rε = 11
Retained energy
E5 = 91.0%
Truncation error
σ6 = 0.301
This is the quantitative advantage of singular values: they turn the binary statement “a direction exists” into a graded description of how strongly that direction survives.
The SVD tells us that the important input directions are the columns of . How can we recover those directions from ?
The useful observation is that squared output length is a quadratic form:
The matrix therefore records how much stretches every input direction, without retaining the final orientation of the output. Substituting the SVD makes this cancellation explicit:
Because , the left singular directions disappear. What remains is an orthogonal spectral decomposition of :
Thus the right singular vectors are eigenvectors of , and the singular values are the square roots of its eigenvalues. For every positive singular value we can then recover the corresponding left singular vector from
When , this formula is undefined; the remaining columns of are supplied by an orthonormal completion. The same argument on the output side gives
There is one common shortcut worth avoiding. For an arbitrary vector ,
not . The diagonal action appears only after has been expressed in the basis, or when itself is one of the .
This eigendecomposition route explains the mathematics, but it is not the preferred numerical implementation of SVD. Explicitly forming squares the condition number and can destroy information in weak directions; stable algorithms work on more directly, typically through bidiagonalization.
The relation describes what does to one special direction. To recover its action on an arbitrary vector, expand
Applying gives
Since this holds for every , the matrix itself can be written as
Each rank-one term is a directional channel: reads one input coordinate, scales it, and writes it into the output space. Keeping only the first channels gives the truncated SVD,
The Eckart–Young theorem says that is the best rank- approximation to in both the spectral and Frobenius norms. In the spectral norm, the error has an especially clean form:
This is why the tail of the bar chart matters: the first discarded bar is exactly the worst remaining directional error.
The rank-one expansion is sometimes loosely called a spectral decomposition, but the distinction is useful. A real symmetric matrix has an orthogonal eigendecomposition
Here the same direction appears on both sides. For a general matrix, the input and output directions and need not agree, so its SVD is not an orthogonal spectral decomposition of itself.
If is symmetric positive semidefinite, then its eigenvalues are nonnegative and its eigendecomposition aligns with its SVD. If is symmetric but indefinite, its singular values are and the signs are absorbed into one set of singular vectors. For an arbitrary matrix, it is and that always have genuine orthogonal spectral decompositions:
One final quantity falls out of the same picture. The spectral norm asks for the largest factor by which can stretch a unit vector:
Set . Orthogonality gives , and therefore
The bound is attained by choosing , so
We can now answer the question posed at the start. A matrix is best understood as a collection of orthogonal directional channels,
Rank counts how many channel gains are nonzero. The singular-value spectrum records all their strengths. Truncation removes the weak channels in the best possible way, and the spectral norm is the gain of the strongest channel. This picture applies to every real matrix; only when the matrix is symmetric do its input and output directions align into an orthogonal spectral decomposition of the matrix itself.