4.5.40 · D1Linear Algebra (Full)

Foundations — Singular Value Decomposition (SVD) — full derivation

3,037 words14 min readBack to topic

This is the prerequisite page for Singular Value Decomposition (SVD) — full derivation. Read it first. We will name every symbol the parent note fires at you, draw the picture behind it, and explain why the derivation cannot proceed without it.

Throughout, watch for two families of special vectors: (the right singular vectors, columns of , living in input space) and (the left singular vectors, columns of , living in output space). We define them carefully in §5; when the "Why" bullets below mention them, treat them for now as "the special input/output directions SVD will produce."


0. What even is a matrix? (the picture)

  • Plain words: rows and columns of numbers.
  • The picture: a transformation of space. A grid of arrows before; the same arrows moved after.
  • Why the topic needs it: SVD is a claim about what this machine does to space — it says the messy motion is always "spin, stretch, spin". So we must first see a matrix as motion, not as a spreadsheet.

Figure s01 (below): the same grid of arrows shown twice — untouched on the left, and after the machine has acted on the right. The amber and white arrows are the two coordinate axes; notice they tilt and stretch, proving is motion of space, not a spreadsheet.

Figure — Singular Value Decomposition (SVD) — full derivation

Shape notation. We write .


1. Vectors, length, and the dot product

appears on line one of the parent's proof, so you must be fluent in it.

  • Why the topic needs it: the proof line is nothing but the dot-product-is-squared-length trick. Each singular value turns out to be literally the length of a stretched special input vector .

Figure s02 (below): an arrow with its horizontal and vertical legs drawn in cyan. The amber hypotenuse is ; the labels show that dotting with itself, , is Pythagoras — the squared length.

Figure — Singular Value Decomposition (SVD) — full derivation

2. Orthonormal, Kronecker delta, and orthogonal matrices

Figure s03 (below): the unit axes before (left) and after an orthogonal matrix acts (right). The white unit circle stays a unit circle and the amber/cyan axes keep their length and right angle — they only rotate. This is the picture of and .

Figure — Singular Value Decomposition (SVD) — full derivation

3. Diagonal matrices — the pure stretch

First, the word we are about to lean on:

Here is the last nonzero stretch — the first singular values are positive and the rest are zero, where is the rank just defined above.


4. Rank, span, and the four fundamental subspaces

The Four Fundamental Subspaces are the four rooms every matrix lives in. SVD hands you an orthonormal basis for all four at once — that is why we name them here.


5. The special vectors , , and the matrices ,

We can now define precisely what was promised at the top.


6. Eigenvalues, eigenvectors, and why is friendly

Full detail lives in Eigenvalues and Eigenvectors.

To extend the orthonormal into a full basis, the parent invokes the Gram-Schmidt Process — the standard machine for turning any spanning set into an orthonormal one.


7. Putting the alphabet together

Symbol Says out loud Picture Role in SVD
the matrix motion of space the thing we decompose
transpose mirror across diagonal builds
dot product length & angle measures
Kronecker delta identity grid encodes orthonormality
orthogonal rotations the two spins (left/right singular vectors)
diagonal pure stretch the singular values
eigen-pair invariant direction and right vectors
rank output dimension count of nonzero

Prerequisite map

Real numbers and vectors

Dot product and length

Orthonormal sets and delta

Orthogonal matrices U and V

Symmetric matrix A-transpose-A

Positive semi-definite

Eigenvalues and eigenvectors

Spectral Theorem

Gram-Schmidt completion

Diagonal stretch Sigma

SVD A = U Sigma V-transpose

Rank and subspaces


Equipment checklist

Test yourself — reveal only after answering.

I can read and say which space is input, which is output
Input is ( columns), output is ( rows).
I can compute a transpose
Flip across the main diagonal: row becomes column ; an matrix becomes .
I can write squared length as a dot product
.
I know what means geometrically
The two arrows are perpendicular.
I can state what equals
if , else .
I can define an orthogonal matrix two ways
Columns are orthonormal; equivalently (so ), a rotation/reflection.
I can describe what a diagonal matrix does to space
Stretches each coordinate axis independently, no rotation.
I can write the eigenvalue equation
— direction preserved, length scaled by .
I know why is symmetric and PSD
; and .
I know what the (real) Spectral Theorem grants me
A real symmetric matrix has an orthonormal eigenbasis with real eigenvalues.
I can define rank and the null space
Rank = dimension of the output image; null space = inputs sent to .
I can name the four fundamental subspaces
Row space and null space (input side), column space and left null space (output side).

Ready? Proceed to Singular Value Decomposition (SVD) — full derivation. Related destinations once you understand SVD: Low-Rank Approximation, Principal Component Analysis (PCA), Moore-Penrose Pseudoinverse.