The Master Decomposition
Eigenvalues need square matrices and can be complex. Singular values exist for every matrix and are real and nonnegative: . This is legal because is symmetric with , so its eigenvalues are real and nonnegative.
Meaning: is the largest stretch applies to any unit vector; the number of nonzero 's is the rank; and equals the sum of squares of all entries. The unit circle maps to an ellipse with semi-axes — every matrix, however ugly, is geometrically just rotate–stretch–rotate. Example: has with eigenvalues and , so and . The unit vector goes to and goes to : perpendicular in, perpendicular out, stretched by and .
The singular value decomposition writes : a sum of rank-one layers, ordered by importance . The Eckart–Young theorem: keeping just the first layers gives the best possible rank- approximation, with error exactly .
This is data compression as a theorem: an image is a matrix, most of its singular values are tiny, and storing a few layers reproduces it almost perfectly. Principal component analysis is the same truncation applied to centered data — "find the directions that matter, drop the rest."
For symmetric positive-definite matrices, singular values are the eigenvalues; for the diagonal matrix they are the absolute values — stretch has no sign. For a genuinely non-symmetric matrix the two sets differ, and the singular values are the honest geometry: a matrix with all eigenvalues zero (nilpotent) can still stretch vectors enormously, and its says by how much.
Find the singular values of without solving a characteristic equation.
Show the answerHide the answer
The rows are proportional (row 1 is twice row 2), so has rank and exactly one nonzero singular value: . The sum of the squared singular values is the sum of the squared entries (both equal ), so and . Structure check: , and a rank-one matrix sends to , a stretch of ✓.
Computing the SVD
Every matrix factors as :
- the columns of are orthonormal eigenvectors of (the input directions);
- , listed in decreasing order down the diagonal of ;
- for each , (the output directions), completed to an orthonormal basis if needed.
The key fact is that the images are automatically perpendicular: , which is for and for . So takes one perpendicular set of directions to another, stretching by ; says exactly that, and multiplying by (which is ) gives .
Find the SVD of . has eigenvalues and , with unit eigenvectors and . So and .
Output directions: , so ; , so . Assemble:
Check: , and negates the second row, giving ✓. Also ✓.
Find the SVD of . Every column is a multiple of , so has rank .
A rank-one product has the single singular value , here , with and :
Check against , whose eigenvalues are and : ✓ and . The sum of squared entries is ✓.
Find the singular values of the shear , whose eigenvalues are . has trace and determinant , so and .
Notice , so and . Their product is ✓: the shear preserves area but squeezes the unit circle into a long thin ellipse. The eigenvalues only report that no direction is stretched without also being turned; the singular values report how much stretching actually happens.
Singular values are not the absolute values of the eigenvalues unless is symmetric. The shear above has eigenvalues but : the unit vector is stretched to length , which no eigenvalue predicts. Taking square roots of the eigenvalues of itself is also wrong — the square roots belong to the eigenvalues of .
Find the singular values of , and describe what does to the unit circle.
Show the answerHide the answer
. Both eigenvalues are , so . Every unit vector is stretched by exactly : the unit circle goes to the circle of radius . In fact with a rotation by . Consistency: ✓. (Its eigenvalues are , of modulus — here, unusually, the two notions agree in size.)
Low-Rank Approximation in Practice
Write . The truncation (first layers) is the best rank- approximation, with
the share of the total "energy" (sum of squared entries) that keeps. Storing for an matrix takes numbers instead of .
The layers are orthogonal to each other (their 's and 's are), so squared sizes add like Pythagoras: the squared entries of total , and each discarded layer removes exactly its . The largest stretch of is the largest remaining singular value, . Each layer is one column ( numbers), one row ( numbers) and one weight — hence the storage count.
For , has eigenvalues and (worked in full at the end of the chapter), so , , and . The matching output direction is .
So . The error is , itself rank one, with singular value ✓ — Eckart–Young, visible in the numbers. The energies: has squared entries out of 's .
A grayscale image is a matrix. Its singular values fall off quickly, and the first layers carry of the energy. How many numbers does the rank- approximation need? Each layer stores ( numbers), ( numbers) and ( number).
That is numbers instead of — about of the storage, for an image that keeps of its energy (the relative Frobenius error is ). The saving grows with size: for a image at rank the count is numbers, about of a million.
For , the rank-one layer's share is . Using the singular values themselves gives , which measures nothing: the squared entries of a matrix add up as , not . And the spectral-norm error of is , the first singular value dropped, not , the last one kept.
For , find , , the best rank-one approximation , and the fraction of energy it keeps.
Show the answerHide the answer
, with eigenvalues (along ) and (along ). So and . With : , so . Then — the first row kept, the second dropped. The error has singular value ✓. Energy kept: .
Proofs & Why It Matters
Maximize over unit vectors . That is a quadratic form in the symmetric matrix , and the previous topic proved its maximum on the unit sphere is the largest eigenvalue .
Take square roots: . Significance: is the operator norm — it bounds how much a matrix can amplify errors, which is why (the condition number) decides whether a linear system is numerically trustworthy. Every numerical analyst's first question about a matrix is about its singular values.
Recommendation engines factor the user-movie ratings matrix into a few rank-one "taste" layers; latent semantic analysis does it to word-document counts; noise reduction truncates small singular values because noise spreads evenly across all of them while signal concentrates in the top few. The SVD is the closest thing linear algebra has to a universal tool.
Going Deeper: Worked Problems
Find the singular values of ().
Step 1 — (a , so exactly two singular values).
Step 2 — its eigenvalues: trace , det : .
Step 3 — singular values , .
Step 4 — interpret: maps the plane into 3-space, stretching by along and by along ; the check sum of squared entries () ✓ confirms the arithmetic.
For , find and the error of the best rank-one approximation.
Step 1 — .
Step 2 — eigenvalues: trace , det : .
Step 3 — , .
Step 4 — by Eckart–Young the best rank-one approximation errs by exactly in the spectral norm; the fraction of "energy" captured is . Sanity: ✓ — the product of singular values is always the absolute determinant.