Singular Value Decomposition (SVD) is one of the most powerful factorizations in linear algebra. Every real m×n matrix A of rank r admits a decomposition A=UΣVT, where U and V are orthogonal matrices and Σ is a diagonal matrix carrying the singular valuesσ1≥σ2≥⋯≥σr>0. Mastering SVD opens the door to topics such as low-rank approximation, the Moore–Penrose pseudoinverse, principal component analysis (PCA), least-squares problems, and matrix norm analysis. The problems below are organized from foundational computation to advanced applications and cover the full range of difficulty levels tested in undergraduate and graduate linear algebra courses.
Contents5 sections
Computing Singular Values from ATA and AAT
The singular values of A are the positive square roots of the eigenvalues of the symmetric positive semidefinite matrix ATA (equivalently of AAT). Practicing their computation on small matrices builds the intuition needed for every subsequent topic in SVD theory.
Problem 1: Singular Values of a 2 × 2 Diagonal Matrix
Easy
Consider the matrix A=(3001).
Compute ATA and find its eigenvalues.
State the singular values σ1≥σ2 of A and explain why the SVD of A is trivial in this case.
Hint
For a diagonal matrix with non-negative entries, ATA=A2. The eigenvalues of a diagonal matrix are its diagonal entries. What is the relationship between the eigenvalues of ATA and the singular values of A?
View Solution
Solution to question 1:ATA=(3001)T(3001)=(9001).
The eigenvalues of ATA are λ1=9 and λ2=1.
Solution to question 2:
The singular values are σ1=9=3 and σ2=1=1. Since A is already diagonal with positive entries, we have U=V=I2 and Σ=A, giving the trivial SVD A=I⋅A⋅I.
Problem 2: Singular Values of a 2 × 3 Rectangular Matrix
Easy
Let A=(100210).
Compute ATA (a 3×3 matrix) and determine its eigenvalues.
List the singular values of A in decreasing order and determine the rank of A.
Hint
Since A is 2×3, the matrix ATA is 3×3 but has at most 2 nonzero eigenvalues (because rank(ATA)=rank(A)). It may be easier to compute AAT (a 2×2 matrix) first, find its eigenvalues, and remember that the nonzero eigenvalues coincide.
View Solution
Solution to question 1:AAT=(100210)101020=(2004).
The nonzero eigenvalues of ATA equal those of AAT: λ1=4,λ2=2. The third eigenvalue of ATA is 0.
Solution to question 2:σ1=4=2,σ2=2,σ3=0.
The rank of A equals the number of nonzero singular values, so rank(A)=2.
Problem 3: Singular Values via the Characteristic Polynomial
Medium
Let A=21112−1.
Compute ATA and find its characteristic polynomial.
Determine the singular values of A.
Identify the rank of A and state the dimensions of the four fundamental subspaces.
Hint
ATA is a 2×2 symmetric matrix. The characteristic polynomial is λ2−tr(ATA)λ+det(ATA)=0. Use the trace and determinant formulae to avoid expanding by hand.
View Solution
Solution to question 1:ATA=(21121−1)21112−1=(6336).
Characteristic polynomial:
det(ATA−λI)=(6−λ)2−9=λ2−12λ+27=0. Solution to question 2:λ=212±144−108=212±6⟹λ1=9,λ2=3.
Therefore σ1=3 and σ2=3.
Solution to question 3:
Both singular values are nonzero, so rank(A)=2. The four subspaces have dimensions: Col(A)⊆R3 has dimension 2; Null(A)⊆R2 has dimension 0; Row(A)⊆R2 has dimension 2; Null(AT)⊆R3 has dimension 1.
Full SVD Computation: Constructing U, Σ, and V
Once the singular values are known, the right singular vectors (columns of V) are obtained as unit eigenvectors of ATA, and the left singular vectors (columns of U) follow from ui=σi1Avi. Constructing the complete factorization A=UΣVT by hand is the core computational skill in SVD.
Problem 4: Full SVD of a 2 × 2 Matrix
Easy
Let A=(0020).
Compute ATA and find its eigenvalues and unit eigenvectors.
Construct the matrices V, Σ, and U, then write the full SVD A=UΣVT.
Verify the factorization by multiplying UΣVT and checking that the product equals A.
Hint
ATA will have one nonzero eigenvalue. For the left singular vectors, use u1=σ11Av1 and then complete U with any unit vector orthogonal to u1.
View Solution
Solution to question 1:ATA=(0200)(0020)=(0004).
Eigenvalues: λ1=4, λ2=0. Unit eigenvectors: v1=(01), v2=(10).
Solution to question 2:V=(0110),Σ=(2000).u1=21Av1=21(0020)(01)=(10).
Choose u2=(01) to complete an orthonormal basis. Thus:
U=(1001)=I2,A=I2(2000)(0110). Solution to question 3:UΣVT=(1001)(2000)(0110)=(2000)(0110)=(0020)=A.✓
Problem 5: Full SVD of a 2 × 3 Matrix
Medium
Let A=(101001).
Find all singular values of A.
Determine the right singular vectors (columns of V), including those spanning Null(A).
Determine the left singular vectors (columns of U) and write the full SVD.
Hint
Compute AAT (a 2×2 matrix) to find the nonzero singular values and the columns of U efficiently. Then use vi=σi1ATui for the columns of V corresponding to nonzero σi. For the null-space column of V, solve Ax=0.
View Solution
Solution to question 1:AAT=(101001)110001=(2001).
Eigenvalues of AAT: λ1=2, λ2=1. Singular values: σ1=2, σ2=1.
Solution to question 2:
Unit eigenvectors of AAT: u1=(10), u2=(01). Right singular vectors:
v1=21ATu1=21110,v2=ATu2=001.
For v3, solve Ax=0: the null space is spanned by 1−10, so v3=211−10.
Solution to question 3:U=I2,Σ=(200100),V=211100021−10.
The full SVD is A=UΣVT, which can be verified by direct multiplication.
Problem 6: SVD of a Rank-1 Matrix
Medium
Let A=abT where a=212∈R3 and b=(34)∈R2.
Without computing ATA, identify the single nonzero singular value of A in terms of ∥a∥ and ∥b∥.
Write the complete SVD A=UΣVT explicitly, including the null-space columns of U and V.
Hint
A rank-1 matrix A=abT has exactly one nonzero singular value. Try computing ATAx for x=b^ (the unit vector in the direction of b) and identify the eigenvalue directly.
View Solution
Solution to question 1:ATA=(abT)T(abT)=baTabT=∥a∥2bbT.
The only nonzero eigenvalue of bbT is ∥b∥2, so the sole nonzero eigenvalue of ATA is ∥a∥2∥b∥2. Hence:
σ1=∥a∥∥b∥=3⋅5=15.
(Here ∥a∥=4+1+4=3 and ∥b∥=9+16=5.)
Solution to question 2:v1=∥b∥b=51(34),u1=σ11Av1=∥a∥a=31212.
Complete V with any unit vector orthogonal to v1, e.g., v2=51(4−3). Complete U with any orthonormal basis for the orthogonal complement of u1 in R3. The SVD is:
A=31212⋅15⋅51(34)=636848.
Fundamental Subspaces and the Geometry of SVD
The columns of U and V provide orthonormal bases for the four fundamental subspaces of A: the column space, row space, null space, and left null space. Understanding this geometric interpretation is essential for applying SVD to projection, least-squares, and dimensionality reduction problems.
Problem 7: Fundamental Subspaces from the SVD
Easy
Suppose the full SVD of a 4×3 matrix A is A=UΣVT, where Σ has diagonal entries σ1=5,σ2=2,σ3=0. Let u1,u2,u3,u4 be the columns of U and v1,v2,v3 be the columns of V.
Write a basis for each of the four fundamental subspaces of A in terms of the ui and vj.
State the rank of A and confirm the rank–nullity theorem for both A and AT.
Hint
The first r columns of V span the row space, while the remaining columns of V span the null space. Analogously, the first r columns of U span the column space, and the remaining columns span the left null space.
View Solution
Solution to question 1:
The rank is r=2 (two nonzero singular values).
Column spaceCol(A)=span{u1,u2}⊆R4.
Left null spaceNull(AT)=span{u3,u4}⊆R4.
Row spaceRow(A)=span{v1,v2}⊆R3.
Null spaceNull(A)=span{v3}⊆R3.
Solution to question 2:rank(A)=2.
Rank–nullity for A:R3→R4: dimRow(A)+dimNull(A)=2+1=3. \checkmark
Rank–nullity for AT:R4→R3: dimCol(A)+dimNull(AT)=2+2=4. \checkmark
Problem 8: Orthogonal Projection via SVD
Medium
Let A=101011 with SVD A=UΣVT.
Compute the SVD of A (find U, Σ, V).
Use the SVD to write the orthogonal projection matrix P onto Col(A) as P=UrUrT, where Ur contains only the columns of U corresponding to nonzero singular values.
Verify that P2=P and PT=P.
Hint
Start by computing ATA (a 2×2 matrix). Once you have Ur, the projection formula is P=UrUrT. For the idempotency check, use the fact that the columns of Ur are orthonormal: UrTUr=I.
View Solution
Solution to question 1:ATA=(2112),λ1=3,λ2=1,σ1=3,σ2=1.
Unit eigenvectors of ATA: v1=21(11), v2=21(1−1). Then:
u1=31Av1=61112,u2=Av2=211−10.
Choose u3⊥u1,u2 in R3, e.g., u3=3111−1.
Solution to question 2:
Since rank(A)=2, take Ur=[u1∣u2]. Then:
P=UrUrT=u1u1T+u2u2T=61112(112)+211−10(1−10).P=2110310131313134(simplified form). Solution to question 3:P2=(UrUrT)(UrUrT)=Ur(UrTUr)UrT=UrIUrT=P. \checkmark PT=(UrUrT)T=UrUrT=P. \checkmark
Low-Rank Approximation and the Eckart–Young Theorem
The Eckart–Young–Mirsky theorem states that the best rank-k approximation of A in both the 2-norm and the Frobenius norm is the truncated SVDAk=∑i=1kσiuiviT. This result underpins image compression, noise reduction, and principal component analysis.
Problem 9: Best Rank-1 Approximation
Medium
Let A=(3002).
Write the SVD of A and identify its outer-product expansion A=σ1u1v1T+σ2u2v2T.
Compute the best rank-1 approximation A1=σ1u1v1T and find the approximation error ∥A−A1∥F.
Verify that no rank-1 matrix B satisfies ∥A−B∥F<∥A−A1∥F.
Hint
For a diagonal matrix, the SVD is trivial. The Frobenius norm of the error ∥A−Ak∥F equals σk+12+⋯+σr2 — the square root of the sum of the discarded squared singular values.
View Solution
Solution to question 1:A is already diagonal with positive entries, so U=V=I2 and Σ=A. The outer-product expansion is:
A=3(10)(10)+2(01)(01). Solution to question 2:A1=3(10)(10)=(3000).∥A−A1∥F=(0002)F=2=σ2. Solution to question 3:
By the Eckart–Young theorem, A1 is the best rank-1 approximation and ∥A−A1∥F=σ2=2 is the minimum possible error over all rank-1 matrices. Any other rank-1 matrix B satisfies ∥A−B∥F≥σ2=2.
Problem 10: Low-Rank Approximation and Frobenius Error
Hard
A data matrix A∈R4×4 has singular values σ1=10,σ2=6,σ3=2,σ4=1.
Compute ∥A∥F2, ∥A∥2, and the condition number κ(A)=σ1/σ4.
Determine the rank-2 approximation error in both the Frobenius norm and the spectral (2-norm).
What percentage of the total “energy” (Frobenius norm squared) is captured by the rank-2 approximation A2?
If a rank-1 approximation must capture at least 90% of the energy, is A1 sufficient? Justify your answer.
Hint
Recall: ∥A∥F2=∑iσi2, ∥A∥2=σ1, ∥A−Ak∥F2=∑i=k+1rσi2, and ∥A−Ak∥2=σk+1.
View Solution
Solution to question 1:∥A∥F2=102+62+22+12=100+36+4+1=141.∥A∥2=σ1=10,κ(A)=σ4σ1=110=10. Solution to question 2:∥A−A2∥F=σ32+σ42=4+1=5≈2.24.∥A−A2∥2=σ3=2. Solution to question 3:∥A∥F2∥A2∥F2=141100+36=141136≈96.5%.
The rank-2 approximation captures approximately 96.5% of the total energy.
Solution to question 4:∥A∥F2∥A1∥F2=141100≈70.9%<90%.
A rank-1 approximation captures only about 70.9% of the energy, which is below the 90% threshold. Therefore A1 is not sufficient; at least a rank-2 approximation is required.
Moore–Penrose Pseudoinverse and Least-Squares Problems
The Moore–Penrose pseudoinverseA+=VΣ+UT generalizes matrix inversion to non-square and rank-deficient matrices. It yields the minimum-norm least-squares solution x^=A+b to inconsistent or underdetermined linear systems, making it indispensable in data fitting, signal processing, and control theory.
Problem 11: Pseudoinverse of a Rank-Deficient Matrix
Medium
Let A=(1224).
Verify that A is rank-deficient and compute its SVD.
Construct the pseudoinverse A+=VΣ+UT, where Σ+ replaces each nonzero σi by 1/σi.
Find the minimum-norm least-squares solution to Ax=b for b=(36).
Hint
Notice that the second row of A is exactly twice the first row. The rank is 1. After finding the SVD, the pseudoinverse replaces the single nonzero singular value σ1 by 1/σ1 in Σ+. The minimum-norm solution is then x^=A+b.
View Solution
Solution to question 1:
The rows of A are proportional, so rank(A)=1. We have:
ATA=(5101020),eigenvalues: λ1=25,λ2=0.
Singular value: σ1=5. Unit eigenvector: v1=51(12). Left singular vector: u1=51Av1=51(12).
Solution to question 2:Σ+=(1/5000),A+=v1⋅σ11⋅u1T=251(1224). Solution to question 3:x^=A+b=251(1224)(36)=251(1530)=(0.61.2).
Since b=(36) lies in Col(A), the system is consistent and x^ is the minimum-norm solution.
Problem 12: SVD, Pseudoinverse, and Theoretical Properties
Hard
Let A be a real m×n matrix with full SVD A=UΣVT.
Prove that ∣det(A)∣=σ1σ2⋯σn when A is square (m=n).
Show that ∥A∥F2=tr(ATA)=σ12+σ22+⋯+σr2.
Let A=UΣVT be invertible. Derive an explicit SVD for A−1 and identify the singular values of A−1 in terms of those of A.
Using the pseudoinverse, show that AA+A=A and A+AA+=A+ (two of the four Moore–Penrose conditions).
Hint
For (1), use the multiplicativity of the determinant: det(A)=det(U)det(Σ)det(VT) and recall that det(U)=±1 for any orthogonal matrix. For (2), use ∥A∥F2=tr(ATA) and the cyclic property of the trace. For (4), substitute A+=VΣ+UT and A=UΣVT directly.
View Solution
Solution to question 1:det(A)=det(UΣVT)=det(U)det(Σ)det(VT).
Since U and V are orthogonal, ∣det(U)∣=∣det(V)∣=1. The matrix Σ is diagonal with entries σ1,…,σn, so det(Σ)=σ1⋯σn. Therefore:
∣det(A)∣=σ1σ2⋯σn.□ Solution to question 2:∥A∥F2=tr(ATA)=tr(VΣTUTUΣVT)=tr(VΣTΣVT)=tr(ΣTΣVTV)=tr(ΣTΣ).
The matrix ΣTΣ is diagonal with entries σ12,…,σr2,0,…,0, so:
∥A∥F2=σ12+σ22+⋯+σr2.□ Solution to question 3:
If A is invertible, then m=n and all σi>0. From A=UΣVT we get:
A−1=(VT)−1Σ−1U−1=VΣ−1UT.
This is itself an SVD (with the roles of U and V swapped) since V and U are orthogonal and Σ−1 is diagonal with positive entries. The singular values of A−1 are 1/σn≥⋯≥1/σ1 (in decreasing order).
Solution to question 4:
Substitute A=UΣVT and A+=VΣ+UT:
AA+A=(UΣVT)(VΣ+UT)(UΣVT)=UΣ(Σ+Σ)VT.
For each index i≤r: (Σ+Σ)ii=(1/σi)⋅σi=1, and zero elsewhere. Hence ΣΣ+Σ=Σ, giving AA+A=UΣVT=A. \checkmarkSimilarly:
A+AA+=(VΣ+UT)(UΣVT)(VΣ+UT)=VΣ+(ΣΣ+)UT=VΣ+UT=A+.✓□