On this page
An eigenvalue decomposition needs a square matrix, and even then its eigenvectors need not be orthogonal. Singular value decomposition works for every matrix, and tells you in three steps what it does to space. Below we work one 2×2 example by hand, then use the idea to shrink an image.
What is singular value decomposition (SVD)?
The SVD writes a matrix as A = UΣVᵀ, where U is orthogonal, Σ is diagonal and V is orthogonal, and A can be any matrix (MIT 18.06SC notes on the SVD). The same notes give the key relation Avᵢ = σᵢuᵢ: the matrix sends each column vᵢ of V to a column uᵢ of U, scaled by a number σᵢ.
Those numbers σ₁ ≥ σ₂ ≥ … ≥ 0 are the singular values. They are the positive square roots of the eigenvalues of AᵀA, and the columns of V are the eigenvectors of AᵀA (MIT 18.06SC). That one fact is the whole recipe for computing an SVD by hand.
Why does A = UΣVᵀ mean rotate, stretch, rotate?
Read the product right to left, as it acts on a vector x. Vᵀ turns x (an orthogonal matrix keeps lengths and angles: a rotation, possibly with a reflection). Σ stretches along the axes by σ₁, σ₂. U turns the result again.
So, for an invertible 2×2 matrix like ours, the unit circle becomes an ellipse, with semi-axes σ₁ along u₁ and σ₂ along u₂. The directions v₁ and v₂ on the circle land exactly on those axes, as the diagram at the top shows for the matrix we work next.
How do you compute the SVD of a 2×2 matrix by hand?
Take A with rows (3, 0) and (4, 5). Follow these steps.
Form AᵀA. Its rows are (25, 20) and (20, 25).
Find its eigenvalues. The characteristic equation (25 − λ)² = 400 gives λ = 45 and λ = 5.
Take square roots: σ₁ = √45 = 3√5 ≈ 6.71 and σ₂ = √5 ≈ 2.24.
Find unit eigenvectors of AᵀA: v₁ = (1, 1)/√2 for 45, and v₂ = (−1, 1)/√2 for 5.
Get U from uᵢ = Avᵢ/σᵢ. Av₁ = (3, 9)/√2, so u₁ = (1, 3)/√10. Av₂ = (−3, 1)/√2, so u₂ = (−3, 1)/√10.
Check. UΣVᵀ multiplies back to rows (3, 0) and (4, 5). Quicker: σ₁σ₂ = 15 = det A.
In words: Vᵀ turns the plane 45° clockwise, Σ stretches one axis by about 6.71 and the other by about 2.24, and U turns everything about 71.6° anticlockwise, since u₁ points at angle tan⁻¹3.
How does SVD compress an image?
Write the SVD as a sum of rank-one pieces, A = σ₁u₁v₁ᵀ + σ₂u₂v₂ᵀ + …, largest first. Keeping the first k terms gives a rank-k matrix. Carl Eckart and Gale Young studied exactly this problem, approximating one matrix by another of lower rank as a least-squares problem, and found that it always has a solution which is usually unique (Eckart and Young, Psychometrika, 1936). That best approximation is the truncated SVD.
Try it on our example. The first term alone is σ₁u₁v₁ᵀ, with rows (1.5, 1.5) and (4.5, 4.5). The sum of squared entries of A is 9 + 0 + 16 + 25 = 50, and the leftover error has squared size exactly σ₂² = 5. One term carries 45 of the 50.
A greyscale photo is just a big matrix of brightness values. Storing a rank-k version of an m × n image needs only k(m + n + 1) numbers: k columns of U, k rows of Vᵀ and k singular values (Golpayegani and Bouguila, PatchSVD, 2024). For a 1000 × 1000 image, that is 1,000,000 numbers for the original against 50 × 2001 = 100,050 numbers at k = 50, about a tenth. The same paper notes that JPEG works differently, transforming 8 × 8 pixel blocks with the discrete cosine transform, so treat SVD as a clear model of compression, not what your phone runs.
Where do students usually go wrong?
Taking eigenvalues of A instead of AᵀA. Singular values are never negative; eigenvalues can be.
Forgetting the square root. The eigenvalues of AᵀA are σ², not σ.
Listing σ values out of order. Largest first, with U and V columns in the same order.
Skipping normalisation. Every column of U and V needs length 1.
Not checking. Multiply back, or compare σ₁σ₂ with |det A|.
If eigenvalues and eigenvectors still feel shaky, start there: the Fermi Concept Library has every concept in mathematics, each with its own lesson and its place in the map. When you are working through practice questions, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.
Next step: pick your own 2×2 matrix, run the six steps, and sketch where the unit circle goes.



