4.5.40 · D5Linear Algebra (Full)

Question bank — Singular Value Decomposition (SVD) — full derivation

1,453 words7 min readBack to topic

Every item leans on the vocabulary already built in the parent note: singular values , right singular vectors (columns of ), left singular vectors (columns of ), the shape-of- matrix , and the gateway object . If a symbol feels unfamiliar, return to the parent derivation first.


True or false — justify

Every matrix has an SVD.
True — the derivation never assumed was square, invertible, or symmetric; it only used that is symmetric PSD, which holds for any real . See Spectral Theorem.
Singular values can be negative if has negative entries.
False — and the eigenvalues of a PSD matrix are , so the square root is real and non-negative by construction, regardless of 's entries.
The matrix is always square.
False — has the shape of (); only when is it square. Otherwise it carries zero-padding rows or columns.
If is symmetric, its singular values equal its eigenvalues.
False in general, true only when is also PSD. For symmetric , , so a negative eigenvalue gives singular value .
and are uniquely determined by .
False — repeated singular values leave freedom to rotate within their shared subspace, and each singular vector's sign can flip (if you flip you must flip to keep ). , however, is unique.
The columns of live in the same space as the columns of .
False — (output space), (input space). SVD uses two separate orthonormal frames, which is exactly what distinguishes it from eigen-decomposition.
Zero singular values contribute nothing to .
True for reconstructing (their outer products vanish), but they are not useless — the corresponding span the null space of , so they encode what destroys.
An orthogonal matrix has all singular values equal to 1.
True — if then has every eigenvalue , so every ; an orthogonal map rotates/reflects without stretching.
The number of nonzero singular values equals the rank of .
True — = number of nonzero eigenvalues of = number of , which the derivation calls .

Spot the error

"To get , just take the eigenvectors of and pair them arbitrarily with the ."
The pairing and sign are not free: eigenvectors of are determined only up to sign, so you might land on and break . Fix: pick first, then define .
" defines all columns of ."
It only defines for (i.e. ). The remaining must be built by extending to a full orthonormal basis, e.g. via Gram–Schmidt.
"Since , the largest singular value is the largest eigenvalue of ."
is the largest eigenvalue of , square-rooted — not an eigenvalue of . For , all eigenvalues of are yet .
" so always."
Only if is square and every . If any then isn't invertible; the correct tool is the pseudoinverse , inverting only the nonzero .
"We divide by merely as a normalisation convenience."
It does more than normalise: it also fixes the correct sign/direction pairing so that the column identity holds exactly. Skip it and the whole assembly step fails.
" and have completely different eigenvalues."
They share all nonzero eigenvalues (both equal ); they differ only in how many extra zero eigenvalues pad the larger matrix. This is why one serves both and .
" diagonal means acts diagonally, so is diagonalizable."
is diagonal in the two SVD frames, not in the standard basis, and in general — that's a change of basis on input and output separately, which is not eigen-diagonalization. A defective (non-diagonalizable) matrix still has an SVD.

Why questions

Why do we start the derivation from instead of itself?
may be rectangular with no eigenvectors at all, but is always symmetric PSD, so the Spectral Theorem hands us an orthonormal eigenbasis with real non-negative eigenvalues for free.
Why must the eigenvalues of be non-negative?
For any , , so is PSD; a PSD matrix's eigenvalues are exactly these values on eigenvectors, hence , which is what lets us take real square roots.
Why does SVD need two orthogonal matrices when eigen-decomposition needs only one?
Eigen-decomposition maps a space to itself, so one basis suffices; a general maps input space to a different output space , so it needs a source frame () and a landing frame ().
Why are the automatically orthonormal without any extra work?
Because , the orthonormality of the (eigenvectors) transfers directly to the .
Why is SVD the natural tool behind Principal Component Analysis (PCA)?
The right singular vectors of the centred data are the eigenvectors of the covariance matrix , and the rank the variance captured along each direction — exactly the principal components.
Why does keeping only the top singular values give the best rank- approximation?
Because the frames are orthonormal, the contributions are independent and additive; dropping the smallest ones removes the least "stretch", which the Eckart–Young theorem shows is optimal — see Low-Rank Approximation.
Why order the singular values ?
The ordering is a convention that makes unique, groups the nonzero values first (cleanly separating rank from the null part), and lets truncation always keep the most significant directions.

Edge cases

What is the SVD of the zero matrix (size )?
All so ; and can be any orthogonal matrices, and holds trivially. Rank is , every spans the null space.
What happens to when (fewer nonzero singular values than output dimensions)?
The formula produces only vectors; the remaining columns are chosen freely as an orthonormal basis of the left null space .
Does SVD exist for a matrix with complex eigenvalues, like a rotation?
Yes — SVD is built from 's real eigenvalues, never 's. A rotation has complex eigenvalues but singular values , correctly reporting "no stretching."
What does look like for a tall, full-column-rank matrix (, )?
An block with the positive singular values on the diagonal and all-zero rows padded below; there are no zero singular values, so all lie in the row space.
If a singular value is repeated, what freedom appears in the singular vectors?
Within the shared eigenspace of any orthonormal rotation of the is valid (and forces a matching rotation of the ); the decomposition is no longer unique but still is.
For a matrix , what is its SVD?
, , and (with if ), so ; the sign lives in , the magnitude in .
What is the null space of when no singular value is zero?
It is : every has so , meaning injective on its domain and ; nothing gets collapsed.

Recall One-line summary of the traps

Singular values come from (real, , never 's eigenvalues); has 's shape; and live in different spaces and are pinned together by ; zeros encode the null space, not garbage.