WHY does this differ from eigen-decomposition? Eigen-decomposition A=PDP−1 only works for square matrices, and gives an orthogonalP only when A is symmetric. SVD works for every matrix, square or not, with two orthogonal bases (one for input space Rn, one for output space Rm).
By the Spectral Theorem, choose orthonormal eigenvectors v1,…,vn:
A⊤Avi=λivi=σi2vi,vi⊤vj=δij.
Order them so σ1≥⋯≥σr>0=σr+1=⋯=σn.
Set V=[v1∣⋯∣vn]. This is orthogonal: V⊤V=In. These are the right singular vectors.
WHY divide by σi? We want ui to be a unit vector. Check:
∥Avi∥2=(Avi)⊤(Avi)=vi⊤A⊤Avi=vi⊤(σi2vi)=σi2.
So ∥Avi∥=σi, and dividing makes ∥ui∥=1. ✓
Are the ui orthonormal? For i=j:
ui⊤uj=σiσj1(Avi)⊤(Avj)=σiσj1vi⊤A⊤Avj=σiσjσj2vi⊤vj=σiσjδij=0. ✓
So {u1,…,ur} is an orthonormal set in Rm. Extend it to a full orthonormal basis u1,…,um (Gram–Schmidt on any completion). Set U=[u1∣⋯∣um].
We have, by construction, for alli:
Avi=σiui(with σi=0 giving Avi=0 for i>r).
Stack these as columns: A[v1…vn]=[σ1u1…σnun], i.e.
AV=UΣ.
Right-multiply by V⊤ (legal since VV⊤=In):
A=UΣV⊤.
Step A: form A⊤A. Why? It's our gateway.
A⊤A=(01−10)(0−110)=(1001)=I.Step B: eigenvalues.λ1=λ2=1⇒σ1=σ2=1. Why? A pure rotation stretches nothing — singular values =1 makes physical sense.
Step C: any orthonormal V works; take V=I, so v1=e1,v2=e2.
Step D:ui=σi1Avi=Avi: u1=Ae1=(0,−1)⊤, u2=Ae2=(1,0)⊤.
So U=(0−110), Σ=I, V⊤=I, and indeed UΣV⊤=A. ✓
What object do we diagonalize first to derive SVD, and why is it safe?
A⊤A — it's always symmetric and positive semi-definite, so the Spectral Theorem gives an orthonormal eigenbasis with real non-negative eigenvalues.
Define the singular values in terms of A⊤A.
σi=λi where λi≥0 are eigenvalues of A⊤A.
How are the left singular vectors ui defined (for σi>0)?
ui=σi1Avi, which guarantees they are unit vectors and correctly paired with vi.
Prove ∥Avi∥=σi.
∥Avi∥2=vi⊤A⊤Avi=vi⊤σi2vi=σi2, so ∥Avi∥=σi.
Why are ui for i=j orthogonal?
ui⊤uj=σiσj1vi⊤A⊤Avj=σiσjδij=0.
What are the dimensions of U,Σ,V for A∈Rm×n?
U is m×m, Σ is m×n, V is n×n.
Which singular vectors span the null space of A?
The right singular vectors vi with σi=0 (i.e. i>r).
Final SVD identity from AV=UΣ?
A=UΣV⊤ (right-multiply by V⊤ since VV⊤=I).
Is SVD restricted to square matrices?
No — it exists for every real m×n matrix, unlike eigen-decomposition.
Geometric meaning of A=UΣV⊤?
Rotate/reflect (by V⊤), stretch along axes (by Σ), rotate/reflect again (by U).
Recall Feynman: explain to a 12-year-old
Imagine a stamp that prints a wonky stretched shape onto paper. SVD says any such stamp does its job in three simple moves: first it spins the paper to a tidy angle, then it stretches it only along straight up-down and left-right directions (by amounts σ1,σ2,…), then it spins the result again. No matter how twisted the stamp looks, it's secretly just spin–stretch–spin. The stretch amounts are the singular values, and they tell you which directions the stamp cares about most (big σ) and which it squashes to nothing (zero σ).
Dekho, SVD ka core idea bahut simple hai: koi bhi matrix A — chahe square ho ya rectangular, chahe symmetric ho ya nahi — actually sirf teen kaam karta hai: ghumao, stretch karo, phir ghumao. Mathematically A=UΣV⊤, jahan U aur V orthogonal hain (matlab pure rotations/reflections, lambai change nahi karte) aur Σ diagonal hai non-negative entries ke saath (sirf stretching). Yeh eigen-decomposition se zyada powerful hai kyunki eigen-decomposition sirf square matrices pe kaam karta hai, par SVD har matrix pe chalta hai.
Derivation ka trick ek hi safe cheez se start hota hai: A⊤A. Yeh hamesha symmetric aur positive semi-definite hota hai, to Spectral Theorem se humein free mein orthonormal eigenvectors mil jaate hain. Inn eigenvectors se hum V banate hain, aur eigenvalues λi ka square root lekar singular values σi=λi define karte hain. Phir har ui=Avi/σi define karte hain — isse ui unit vector ban jaata hai (kyunki ∥Avi∥=σi) aur sahi sign/pairing automatically lock ho jaata hai.
Sabse important baat geometry hai: jab tum unit circle ko A se multiply karte ho, woh ek ellipse ban jaati hai. Ellipse ke axes ki lambai σ1,σ2 hai, aur woh axes u1,u2 directions mein point karte hain. Jo vi ka σi=0 hai, woh null space mein chala jaata hai — matlab A usko zero pe squash kar deta hai. Isi liye SVD matrix ki poori "geometry" ek hi tasveer mein dikha deta hai.
Yeh kyun matter karta hai? PCA, image compression, low-rank approximation, pseudoinverse — sab SVD pe based hain. Bade singular values "important directions" batate hain aur chhote/zero wale ignore kar sakte ho. Exam mein common galti: socho mat ki singular values matrix ke eigenvalues hain — woh $