Skip to content

Singular Value Decomposition (SVD) : Practice Problems

Type
Practice problems
Problems
12
Levels
Easy · Medium · Hard

Singular Value Decomposition (SVD) is one of the most powerful factorizations in linear algebra. Every real m×n m \times n matrix A A of rank r r admits a decomposition A=UΣVT A = U \Sigma V^T , where U U and V V are orthogonal matrices and Σ \Sigma is a diagonal matrix carrying the singular values σ1≥σ2≥⋯≥σr>0 \sigma_1 \geq \sigma_2 \geq \cdots \geq \sigma_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 A^T A and AAT A A^T

The singular values of A A are the positive square roots of the eigenvalues of the symmetric positive semidefinite matrix ATA A^T A (equivalently of AAT A A^T ). 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) A = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix} .

  1. Compute ATA A^T A and find its eigenvalues.
  2. State the singular values σ1≥σ2 \sigma_1 \geq \sigma_2 of A A and explain why the SVD of A A is trivial in this case.
Hint
For a diagonal matrix with non-negative entries, ATA=A2 A^T A = A^2 . The eigenvalues of a diagonal matrix are its diagonal entries. What is the relationship between the eigenvalues of ATA A^T A and the singular values of A A ?
View Solution
Solution to question 1: ATA=(3001)T(3001)=(9001). A^T A = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix}^T \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 9 & 0 \\ 0 & 1 \end{pmatrix}. The eigenvalues of ATA A^T A are λ1=9 \lambda_1 = 9 and λ2=1 \lambda_2 = 1 .

Solution to question 2: The singular values are σ1=9=3 \sigma_1 = \sqrt{9} = 3 and σ2=1=1 \sigma_2 = \sqrt{1} = 1 . Since A A is already diagonal with positive entries, we have U=V=I2 U = V = I_2 and Σ=A \Sigma = A , giving the trivial SVD A=I⋅A⋅I A = I \cdot A \cdot I .

Problem 2: Singular Values of a 2 × 3 Rectangular Matrix

Easy

Let A=(101020) A = \begin{pmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \end{pmatrix} .

  1. Compute ATA A^T A (a 3×3 3 \times 3 matrix) and determine its eigenvalues.
  2. List the singular values of A A in decreasing order and determine the rank of A A .
Hint
Since A A is 2×3 2 \times 3 , the matrix ATA A^T A is 3×3 3 \times 3 but has at most 2 2 nonzero eigenvalues (because rank(ATA)=rank(A) \text{rank}(A^T A) = \text{rank}(A) ). It may be easier to compute AAT A A^T (a 2×2 2 \times 2 matrix) first, find its eigenvalues, and remember that the nonzero eigenvalues coincide.
View Solution
Solution to question 1: AAT=(101020)(100210)=(2004). AA^T = \begin{pmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 2 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 2 & 0 \\ 0 & 4 \end{pmatrix}. The nonzero eigenvalues of ATA A^T A equal those of AAT AA^T : λ1=4,  λ2=2 \lambda_1 = 4,\; \lambda_2 = 2 . The third eigenvalue of ATA A^T A is 0 0 .

Solution to question 2: σ1=4=2,σ2=2,σ3=0. \sigma_1 = \sqrt{4} = 2, \quad \sigma_2 = \sqrt{2}, \quad \sigma_3 = 0. The rank of A A equals the number of nonzero singular values, so rank(A)=2 \text{rank}(A) = 2 .

Problem 3: Singular Values via the Characteristic Polynomial

Medium

Let A=(21121−1) A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \\ 1 & -1 \end{pmatrix} .

  1. Compute ATA A^T A and find its characteristic polynomial.
  2. Determine the singular values of A A .
  3. Identify the rank of A A and state the dimensions of the four fundamental subspaces.
Hint
ATA A^T A is a 2×2 2 \times 2 symmetric matrix. The characteristic polynomial is λ2−tr(ATA) λ+det⁡(ATA)=0 \lambda^2 - \text{tr}(A^T A)\,\lambda + \det(A^T A) = 0 . Use the trace and determinant formulae to avoid expanding by hand.
View Solution
Solution to question 1: ATA=(21112−1)(21121−1)=(6336). A^T A = \begin{pmatrix} 2 & 1 & 1 \\ 1 & 2 & -1 \end{pmatrix} \begin{pmatrix} 2 & 1 \\ 1 & 2 \\ 1 & -1 \end{pmatrix} = \begin{pmatrix} 6 & 3 \\ 3 & 6 \end{pmatrix}. Characteristic polynomial: det⁡(ATA−λI)=(6−λ)2−9=λ2−12λ+27=0. \det(A^T A - \lambda I) = (6-\lambda)^2 - 9 = \lambda^2 - 12\lambda + 27 = 0.
Solution to question 2: λ=12±144−1082=12±62  ⟹  λ1=9,  λ2=3. \lambda = \frac{12 \pm \sqrt{144 - 108}}{2} = \frac{12 \pm 6}{2} \implies \lambda_1 = 9,\; \lambda_2 = 3. Therefore σ1=3 \sigma_1 = 3 and σ2=3 \sigma_2 = \sqrt{3} .

Solution to question 3: Both singular values are nonzero, so rank(A)=2 \text{rank}(A) = 2 . The four subspaces have dimensions: Col(A)⊆R3 \text{Col}(A) \subseteq \mathbb{R}^3 has dimension 2 2 ; Null(A)⊆R2 \text{Null}(A) \subseteq \mathbb{R}^2 has dimension 0 0 ; Row(A)⊆R2 \text{Row}(A) \subseteq \mathbb{R}^2 has dimension 2 2 ; Null(AT)⊆R3 \text{Null}(A^T) \subseteq \mathbb{R}^3 has dimension 1 1 .

Full SVD Computation: Constructing U, Σ, and V

Once the singular values are known, the right singular vectors (columns of V V ) are obtained as unit eigenvectors of ATA A^T A , and the left singular vectors (columns of U U ) follow from ui=1σiAvi u_i = \frac{1}{\sigma_i} A v_i . Constructing the complete factorization A=UΣVT A = U \Sigma V^T by hand is the core computational skill in SVD.

Problem 4: Full SVD of a 2 × 2 Matrix

Easy

Let A=(0200) A = \begin{pmatrix} 0 & 2 \\ 0 & 0 \end{pmatrix} .

  1. Compute ATA A^T A and find its eigenvalues and unit eigenvectors.
  2. Construct the matrices V V , Σ \Sigma , and U U , then write the full SVD A=UΣVT A = U \Sigma V^T .
  3. Verify the factorization by multiplying UΣVT U \Sigma V^T and checking that the product equals A A .
Hint
ATA A^T A will have one nonzero eigenvalue. For the left singular vectors, use u1=1σ1Av1 u_1 = \frac{1}{\sigma_1} A v_1 and then complete U U with any unit vector orthogonal to u1 u_1 .
View Solution
Solution to question 1: ATA=(0020)(0200)=(0004). A^T A = \begin{pmatrix} 0 & 0 \\ 2 & 0 \end{pmatrix}\begin{pmatrix} 0 & 2 \\ 0 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 4 \end{pmatrix}. Eigenvalues: λ1=4 \lambda_1 = 4 , λ2=0 \lambda_2 = 0 . Unit eigenvectors: v1=(01) v_1 = \begin{pmatrix}0\\1\end{pmatrix} , v2=(10) v_2 = \begin{pmatrix}1\\0\end{pmatrix} .

Solution to question 2: V=(0110),Σ=(2000). V = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad \Sigma = \begin{pmatrix} 2 & 0 \\ 0 & 0 \end{pmatrix}. u1=12Av1=12(0200)(01)=(10). u_1 = \frac{1}{2} A v_1 = \frac{1}{2}\begin{pmatrix}0&2\\0&0\end{pmatrix}\begin{pmatrix}0\\1\end{pmatrix} = \begin{pmatrix}1\\0\end{pmatrix}. Choose u2=(01) u_2 = \begin{pmatrix}0\\1\end{pmatrix} to complete an orthonormal basis. Thus: U=(1001)=I2,A=I2(2000)(0110). U = \begin{pmatrix}1&0\\0&1\end{pmatrix} = I_2, \quad A = I_2 \begin{pmatrix}2&0\\0&0\end{pmatrix} \begin{pmatrix}0&1\\1&0\end{pmatrix}.
Solution to question 3: UΣVT=(1001)(2000)(0110)=(2000)(0110)=(0200)=A.✓ U\Sigma V^T = \begin{pmatrix}1&0\\0&1\end{pmatrix}\begin{pmatrix}2&0\\0&0\end{pmatrix}\begin{pmatrix}0&1\\1&0\end{pmatrix} = \begin{pmatrix}2&0\\0&0\end{pmatrix}\begin{pmatrix}0&1\\1&0\end{pmatrix} = \begin{pmatrix}0&2\\0&0\end{pmatrix} = A. \checkmark

Problem 5: Full SVD of a 2 × 3 Matrix

Medium

Let A=(110001) A = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} .

  1. Find all singular values of A A .
  2. Determine the right singular vectors (columns of V V ), including those spanning Null(A) \text{Null}(A) .
  3. Determine the left singular vectors (columns of U U ) and write the full SVD.
Hint
Compute AAT AA^T (a 2×2 2\times 2 matrix) to find the nonzero singular values and the columns of U U efficiently. Then use vi=1σiATui v_i = \frac{1}{\sigma_i} A^T u_i for the columns of V V corresponding to nonzero σi \sigma_i . For the null-space column of V V , solve Ax=0 Ax = 0 .
View Solution
Solution to question 1: AAT=(110001)(101001)=(2001). AA^T = \begin{pmatrix}1&1&0\\0&0&1\end{pmatrix}\begin{pmatrix}1&0\\1&0\\0&1\end{pmatrix} = \begin{pmatrix}2&0\\0&1\end{pmatrix}. Eigenvalues of AAT AA^T : λ1=2 \lambda_1 = 2 , λ2=1 \lambda_2 = 1 . Singular values: σ1=2 \sigma_1 = \sqrt{2} , σ2=1 \sigma_2 = 1 .

Solution to question 2: Unit eigenvectors of AAT AA^T : u1=(10) u_1 = \begin{pmatrix}1\\0\end{pmatrix} , u2=(01) u_2 = \begin{pmatrix}0\\1\end{pmatrix} . Right singular vectors: v1=12ATu1=12(110),v2=ATu2=(001). v_1 = \frac{1}{\sqrt{2}}A^T u_1 = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\1\\0\end{pmatrix}, \quad v_2 = A^T u_2 = \begin{pmatrix}0\\0\\1\end{pmatrix}. For v3 v_3 , solve Ax=0 Ax = 0 : the null space is spanned by (1−10) \begin{pmatrix}1\\-1\\0\end{pmatrix} , so v3=12(1−10) v_3 = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\\0\end{pmatrix} .

Solution to question 3: U=I2,Σ=(200010),V=12(10110−1020). U = I_2, \quad \Sigma = \begin{pmatrix}\sqrt{2}&0&0\\0&1&0\end{pmatrix}, \quad V = \frac{1}{\sqrt{2}}\begin{pmatrix}1&0&1\\1&0&-1\\0&\sqrt{2}&0\end{pmatrix}. The full SVD is A=UΣVT A = U\Sigma V^T , which can be verified by direct multiplication.

Problem 6: SVD of a Rank-1 Matrix

Medium

Let A=abT A = \mathbf{a}\mathbf{b}^T where a=(212)∈R3 \mathbf{a} = \begin{pmatrix}2\\1\\2\end{pmatrix} \in \mathbb{R}^3 and b=(34)∈R2 \mathbf{b} = \begin{pmatrix}3\\4\end{pmatrix} \in \mathbb{R}^2 .

  1. Without computing ATA A^T A , identify the single nonzero singular value of A A in terms of ∥a∥ \|\mathbf{a}\| and ∥b∥ \|\mathbf{b}\| .
  2. Write the complete SVD A=UΣVT A = U\Sigma V^T explicitly, including the null-space columns of U U and V V .
Hint
A rank-1 matrix A=abT A = \mathbf{a}\mathbf{b}^T has exactly one nonzero singular value. Try computing ATAx A^T A x for x=b^ x = \hat{\mathbf{b}} (the unit vector in the direction of b \mathbf{b} ) and identify the eigenvalue directly.
View Solution
Solution to question 1: ATA=(abT)T(abT)=baTabT=∥a∥2 bbT. A^T A = (\mathbf{a}\mathbf{b}^T)^T(\mathbf{a}\mathbf{b}^T) = \mathbf{b}\mathbf{a}^T\mathbf{a}\mathbf{b}^T = \|\mathbf{a}\|^2\, \mathbf{b}\mathbf{b}^T. The only nonzero eigenvalue of bbT \mathbf{b}\mathbf{b}^T is ∥b∥2 \|\mathbf{b}\|^2 , so the sole nonzero eigenvalue of ATA A^T A is ∥a∥2∥b∥2 \|\mathbf{a}\|^2\|\mathbf{b}\|^2 . Hence: σ1=∥a∥ ∥b∥=3⋅5=15. \sigma_1 = \|\mathbf{a}\|\,\|\mathbf{b}\| = 3 \cdot 5 = 15. (Here ∥a∥=4+1+4=3 \|\mathbf{a}\| = \sqrt{4+1+4}=3 and ∥b∥=9+16=5 \|\mathbf{b}\|=\sqrt{9+16}=5 .)

Solution to question 2: v1=b∥b∥=15(34),u1=1σ1Av1=a∥a∥=13(212). v_1 = \frac{\mathbf{b}}{\|\mathbf{b}\|} = \frac{1}{5}\begin{pmatrix}3\\4\end{pmatrix}, \quad u_1 = \frac{1}{\sigma_1}Av_1 = \frac{\mathbf{a}}{\|\mathbf{a}\|} = \frac{1}{3}\begin{pmatrix}2\\1\\2\end{pmatrix}. Complete V V with any unit vector orthogonal to v1 v_1 , e.g., v2=15(4−3) v_2 = \frac{1}{5}\begin{pmatrix}4\\-3\end{pmatrix} . Complete U U with any orthonormal basis for the orthogonal complement of u1 u_1 in R3 \mathbb{R}^3 . The SVD is: A=13(212)⋅15⋅15(34)=(683468). A = \frac{1}{3}\begin{pmatrix}2\\1\\2\end{pmatrix} \cdot 15 \cdot \frac{1}{5}\begin{pmatrix}3&4\end{pmatrix} = \begin{pmatrix}6&8\\3&4\\6&8\end{pmatrix}.

Fundamental Subspaces and the Geometry of SVD

The columns of U U and V V provide orthonormal bases for the four fundamental subspaces of A 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 4 \times 3 matrix A A is A=UΣVT A = U\Sigma V^T , where Σ \Sigma has diagonal entries σ1=5, σ2=2, σ3=0 \sigma_1 = 5,\, \sigma_2 = 2,\, \sigma_3 = 0 . Let u1,u2,u3,u4 u_1, u_2, u_3, u_4 be the columns of U U and v1,v2,v3 v_1, v_2, v_3 be the columns of V V .

  1. Write a basis for each of the four fundamental subspaces of A A in terms of the ui u_i and vj v_j .
  2. State the rank of A A and confirm the rank–nullity theorem for both A A and AT A^T .
Hint
The first r r columns of V V span the row space, while the remaining columns of V V span the null space. Analogously, the first r r columns of U 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 r = 2 (two nonzero singular values).
  • Column space Col(A)=span{u1,u2}⊆R4 \text{Col}(A) = \text{span}\{u_1, u_2\} \subseteq \mathbb{R}^4 .
  • Left null space Null(AT)=span{u3,u4}⊆R4 \text{Null}(A^T) = \text{span}\{u_3, u_4\} \subseteq \mathbb{R}^4 .
  • Row space Row(A)=span{v1,v2}⊆R3 \text{Row}(A) = \text{span}\{v_1, v_2\} \subseteq \mathbb{R}^3 .
  • Null space Null(A)=span{v3}⊆R3 \text{Null}(A) = \text{span}\{v_3\} \subseteq \mathbb{R}^3 .

Solution to question 2: rank(A)=2. \text{rank}(A) = 2. Rank–nullity for A ⁣:R3→R4 A \colon \mathbb{R}^3 \to \mathbb{R}^4 : dim⁡Row(A)+dim⁡Null(A)=2+1=3 \dim\text{Row}(A) + \dim\text{Null}(A) = 2 + 1 = 3 . \checkmark
Rank–nullity for AT ⁣:R4→R3 A^T \colon \mathbb{R}^4 \to \mathbb{R}^3 : dim⁡Col(A)+dim⁡Null(AT)=2+2=4 \dim\text{Col}(A) + \dim\text{Null}(A^T) = 2 + 2 = 4 . \checkmark

Problem 8: Orthogonal Projection via SVD

Medium

Let A=(100111) A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix} with SVD A=UΣVT A = U\Sigma V^T .

  1. Compute the SVD of A A (find U U , Σ \Sigma , V V ).
  2. Use the SVD to write the orthogonal projection matrix P P onto Col(A) \text{Col}(A) as P=UrUrT P = U_r U_r^T , where Ur U_r contains only the columns of U U corresponding to nonzero singular values.
  3. Verify that P2=P P^2 = P and PT=P P^T = P .
Hint
Start by computing ATA A^T A (a 2×2 2\times 2 matrix). Once you have Ur U_r , the projection formula is P=UrUrT P = U_r U_r^T . For the idempotency check, use the fact that the columns of Ur U_r are orthonormal: UrTUr=I U_r^T U_r = I .
View Solution
Solution to question 1: ATA=(2112),λ1=3,  λ2=1,σ1=3,  σ2=1. A^T A = \begin{pmatrix}2&1\\1&2\end{pmatrix}, \quad \lambda_1 = 3,\; \lambda_2 = 1, \quad \sigma_1=\sqrt{3},\; \sigma_2=1. Unit eigenvectors of ATA A^T A : v1=12(11) v_1 = \tfrac{1}{\sqrt{2}}\begin{pmatrix}1\\1\end{pmatrix} , v2=12(1−1) v_2 = \tfrac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\end{pmatrix} . Then: u1=13Av1=16(112),u2=Av2=12(1−10). u_1 = \frac{1}{\sqrt{3}}Av_1 = \frac{1}{\sqrt{6}}\begin{pmatrix}1\\1\\2\end{pmatrix}, \quad u_2 = Av_2 = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\\0\end{pmatrix}. Choose u3⊥u1,u2 u_3 \perp u_1, u_2 in R3 \mathbb{R}^3 , e.g., u3=13(11−1) u_3 = \frac{1}{\sqrt{3}}\begin{pmatrix}1\\1\\-1\end{pmatrix} .

Solution to question 2: Since rank(A)=2 \text{rank}(A) = 2 , take Ur=[u1∣u2] U_r = [u_1 \mid u_2] . Then: P=UrUrT=u1u1T+u2u2T=16(112)(112)+12(1−10)(1−10). P = U_r U_r^T = u_1 u_1^T + u_2 u_2^T = \frac{1}{6}\begin{pmatrix}1\\1\\2\end{pmatrix}\begin{pmatrix}1&1&2\end{pmatrix} + \frac{1}{2}\begin{pmatrix}1\\-1\\0\end{pmatrix}\begin{pmatrix}1&-1&0\end{pmatrix}. P=12(10130113131343)(simplified form). P = \frac{1}{2}\begin{pmatrix}1&0&\tfrac{1}{3}\\0&1&\tfrac{1}{3}\\\tfrac{1}{3}&\tfrac{1}{3}&\tfrac{4}{3}\end{pmatrix} \quad \text{(simplified form)}.
Solution to question 3: P2=(UrUrT)(UrUrT)=Ur(UrTUr)UrT=UrIUrT=P P^2 = (U_r U_r^T)(U_r U_r^T) = U_r (U_r^T U_r) U_r^T = U_r I U_r^T = P . \checkmark
PT=(UrUrT)T=UrUrT=P P^T = (U_r U_r^T)^T = U_r U_r^T = P . \checkmark

Low-Rank Approximation and the Eckart–Young Theorem

The Eckart–Young–Mirsky theorem states that the best rank-kk approximation of A A in both the 2-norm and the Frobenius norm is the truncated SVD Ak=∑i=1kσiuiviT A_k = \sum_{i=1}^k \sigma_i u_i v_i^T . This result underpins image compression, noise reduction, and principal component analysis.

Problem 9: Best Rank-1 Approximation

Medium

Let A=(3002) A = \begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix} .

  1. Write the SVD of A A and identify its outer-product expansion A=σ1u1v1T+σ2u2v2T A = \sigma_1 u_1 v_1^T + \sigma_2 u_2 v_2^T .
  2. Compute the best rank-1 approximation A1=σ1u1v1T A_1 = \sigma_1 u_1 v_1^T and find the approximation error ∥A−A1∥F \|A - A_1\|_F .
  3. Verify that no rank-1 matrix B B satisfies ∥A−B∥F<∥A−A1∥F \|A - B\|_F < \|A - A_1\|_F .
Hint
For a diagonal matrix, the SVD is trivial. The Frobenius norm of the error ∥A−Ak∥F \|A - A_k\|_F equals σk+12+⋯+σr2 \sqrt{\sigma_{k+1}^2 + \cdots + \sigma_r^2} — the square root of the sum of the discarded squared singular values.
View Solution
Solution to question 1: A A is already diagonal with positive entries, so U=V=I2 U = V = I_2 and Σ=A \Sigma = A . The outer-product expansion is: A=3(10)(10)+2(01)(01). A = 3 \begin{pmatrix}1\\0\end{pmatrix}\begin{pmatrix}1&0\end{pmatrix} + 2\begin{pmatrix}0\\1\end{pmatrix}\begin{pmatrix}0&1\end{pmatrix}.
Solution to question 2: A1=3(10)(10)=(3000). A_1 = 3\begin{pmatrix}1\\0\end{pmatrix}\begin{pmatrix}1&0\end{pmatrix} = \begin{pmatrix}3&0\\0&0\end{pmatrix}. ∥A−A1∥F=∥(0002)∥F=2=σ2. \|A - A_1\|_F = \left\|\begin{pmatrix}0&0\\0&2\end{pmatrix}\right\|_F = 2 = \sigma_2.
Solution to question 3: By the Eckart–Young theorem, A1 A_1 is the best rank-1 approximation and ∥A−A1∥F=σ2=2 \|A - A_1\|_F = \sigma_2 = 2 is the minimum possible error over all rank-1 matrices. Any other rank-1 matrix B B satisfies ∥A−B∥F≥σ2=2 \|A - B\|_F \geq \sigma_2 = 2 .

Problem 10: Low-Rank Approximation and Frobenius Error

Hard

A data matrix A∈R4×4 A \in \mathbb{R}^{4 \times 4} has singular values σ1=10, σ2=6, σ3=2, σ4=1 \sigma_1 = 10,\, \sigma_2 = 6,\, \sigma_3 = 2,\, \sigma_4 = 1 .

  1. Compute ∥A∥F2 \|A\|_F^2 , ∥A∥2 \|A\|_2 , and the condition number κ(A)=σ1/σ4 \kappa(A) = \sigma_1/\sigma_4 .
  2. Determine the rank-2 approximation error in both the Frobenius norm and the spectral (2-norm).
  3. What percentage of the total “energy” (Frobenius norm squared) is captured by the rank-2 approximation A2 A_2 ?
  4. If a rank-1 approximation must capture at least 90% of the energy, is A1 A_1 sufficient? Justify your answer.
Hint
Recall: ∥A∥F2=∑iσi2 \|A\|_F^2 = \sum_i \sigma_i^2 , ∥A∥2=σ1 \|A\|_2 = \sigma_1 , ∥A−Ak∥F2=∑i=k+1rσi2 \|A - A_k\|_F^2 = \sum_{i=k+1}^r \sigma_i^2 , and ∥A−Ak∥2=σk+1 \|A - A_k\|_2 = \sigma_{k+1} .
View Solution
Solution to question 1: ∥A∥F2=102+62+22+12=100+36+4+1=141. \|A\|_F^2 = 10^2 + 6^2 + 2^2 + 1^2 = 100 + 36 + 4 + 1 = 141. ∥A∥2=σ1=10,κ(A)=σ1σ4=101=10. \|A\|_2 = \sigma_1 = 10, \quad \kappa(A) = \frac{\sigma_1}{\sigma_4} = \frac{10}{1} = 10.
Solution to question 2: ∥A−A2∥F=σ32+σ42=4+1=5≈2.24. \|A - A_2\|_F = \sqrt{\sigma_3^2 + \sigma_4^2} = \sqrt{4+1} = \sqrt{5} \approx 2.24. ∥A−A2∥2=σ3=2. \|A - A_2\|_2 = \sigma_3 = 2.
Solution to question 3: ∥A2∥F2∥A∥F2=100+36141=136141≈96.5%. \frac{\|A_2\|_F^2}{\|A\|_F^2} = \frac{100 + 36}{141} = \frac{136}{141} \approx 96.5\%. The rank-2 approximation captures approximately 96.5% 96.5\% of the total energy.

Solution to question 4: ∥A1∥F2∥A∥F2=100141≈70.9%<90%. \frac{\|A_1\|_F^2}{\|A\|_F^2} = \frac{100}{141} \approx 70.9\% < 90\%. A rank-1 approximation captures only about 70.9% 70.9\% of the energy, which is below the 90% threshold. Therefore A1 A_1 is not sufficient; at least a rank-2 approximation is required.

Moore–Penrose Pseudoinverse and Least-Squares Problems

The Moore–Penrose pseudoinverse A+=VΣ+UT A^+ = V \Sigma^+ U^T generalizes matrix inversion to non-square and rank-deficient matrices. It yields the minimum-norm least-squares solution x^=A+b \hat{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) A = \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix} .

  1. Verify that A A is rank-deficient and compute its SVD.
  2. Construct the pseudoinverse A+=VΣ+UT A^+ = V\Sigma^+ U^T , where Σ+ \Sigma^+ replaces each nonzero σi \sigma_i by 1/σi 1/\sigma_i .
  3. Find the minimum-norm least-squares solution to Ax=b Ax = b for b=(36) b = \begin{pmatrix}3\\6\end{pmatrix} .
Hint
Notice that the second row of A A is exactly twice the first row. The rank is 1. After finding the SVD, the pseudoinverse replaces the single nonzero singular value σ1 \sigma_1 by 1/σ1 1/\sigma_1 in Σ+ \Sigma^+ . The minimum-norm solution is then x^=A+b \hat{x} = A^+ b .
View Solution
Solution to question 1: The rows of A A are proportional, so rank(A)=1 \text{rank}(A) = 1 . We have: ATA=(5101020),eigenvalues: λ1=25,  λ2=0. A^T A = \begin{pmatrix}5&10\\10&20\end{pmatrix}, \quad \text{eigenvalues: } \lambda_1 = 25,\; \lambda_2 = 0. Singular value: σ1=5 \sigma_1 = 5 . Unit eigenvector: v1=15(12) v_1 = \tfrac{1}{\sqrt{5}}\begin{pmatrix}1\\2\end{pmatrix} . Left singular vector: u1=15Av1=15(12) u_1 = \tfrac{1}{5}Av_1 = \tfrac{1}{\sqrt{5}}\begin{pmatrix}1\\2\end{pmatrix} .

Solution to question 2: Σ+=(1/5000),A+=v1⋅1σ1⋅u1T=125(1224). \Sigma^+ = \begin{pmatrix}1/5 & 0 \\ 0 & 0\end{pmatrix}, \quad A^+ = v_1 \cdot \frac{1}{\sigma_1} \cdot u_1^T = \frac{1}{25}\begin{pmatrix}1&2\\2&4\end{pmatrix}.
Solution to question 3: x^=A+b=125(1224)(36)=125(1530)=(0.61.2). \hat{x} = A^+ b = \frac{1}{25}\begin{pmatrix}1&2\\2&4\end{pmatrix}\begin{pmatrix}3\\6\end{pmatrix} = \frac{1}{25}\begin{pmatrix}15\\30\end{pmatrix} = \begin{pmatrix}0.6\\1.2\end{pmatrix}. Since b=(36) b = \begin{pmatrix}3\\6\end{pmatrix} lies in Col(A) \text{Col}(A) , the system is consistent and x^ \hat{x} is the minimum-norm solution.

Problem 12: SVD, Pseudoinverse, and Theoretical Properties

Hard

Let A A be a real m×n m \times n matrix with full SVD A=UΣVT A = U\Sigma V^T .

  1. Prove that ∣det⁡(A)∣=σ1σ2⋯σn |\det(A)| = \sigma_1 \sigma_2 \cdots \sigma_n when A A is square (m=n m = n ).
  2. Show that ∥A∥F2=tr(ATA)=σ12+σ22+⋯+σr2 \|A\|_F^2 = \text{tr}(A^T A) = \sigma_1^2 + \sigma_2^2 + \cdots + \sigma_r^2 .
  3. Let A=UΣVT A = U\Sigma V^T be invertible. Derive an explicit SVD for A−1 A^{-1} and identify the singular values of A−1 A^{-1} in terms of those of A A .
  4. Using the pseudoinverse, show that AA+A=A A A^+ A = A and A+AA+=A+ A^+ A A^+ = A^+ (two of the four Moore–Penrose conditions).
Hint
For (1), use the multiplicativity of the determinant: det⁡(A)=det⁡(U)det⁡(Σ)det⁡(VT) \det(A) = \det(U)\det(\Sigma)\det(V^T) and recall that det⁡(U)=±1 \det(U) = \pm 1 for any orthogonal matrix. For (2), use ∥A∥F2=tr(ATA) \|A\|_F^2 = \text{tr}(A^T A) and the cyclic property of the trace. For (4), substitute A+=VΣ+UT A^+ = V\Sigma^+ U^T and A=UΣVT A = U\Sigma V^T directly.
View Solution
Solution to question 1: det⁡(A)=det⁡(UΣVT)=det⁡(U)det⁡(Σ)det⁡(VT). \det(A) = \det(U\Sigma V^T) = \det(U)\det(\Sigma)\det(V^T). Since U U and V V are orthogonal, ∣det⁡(U)∣=∣det⁡(V)∣=1 |\det(U)| = |\det(V)| = 1 . The matrix Σ \Sigma is diagonal with entries σ1,…,σn \sigma_1, \ldots, \sigma_n , so det⁡(Σ)=σ1⋯σn \det(\Sigma) = \sigma_1 \cdots \sigma_n . Therefore: ∣det⁡(A)∣=σ1σ2⋯σn.□ |\det(A)| = \sigma_1 \sigma_2 \cdots \sigma_n. \qquad \square
Solution to question 2: ∥A∥F2=tr(ATA)=tr(VΣTUTUΣVT)=tr(VΣTΣVT)=tr(ΣTΣVTV)=tr(ΣTΣ). \|A\|_F^2 = \text{tr}(A^T A) = \text{tr}(V\Sigma^T U^T U \Sigma V^T) = \text{tr}(V\Sigma^T\Sigma V^T) = \text{tr}(\Sigma^T\Sigma V^T V) = \text{tr}(\Sigma^T\Sigma). The matrix ΣTΣ \Sigma^T \Sigma is diagonal with entries σ12,…,σr2,0,…,0 \sigma_1^2, \ldots, \sigma_r^2, 0, \ldots, 0 , so: ∥A∥F2=σ12+σ22+⋯+σr2.□ \|A\|_F^2 = \sigma_1^2 + \sigma_2^2 + \cdots + \sigma_r^2. \qquad \square
Solution to question 3: If A A is invertible, then m=n m = n and all σi>0 \sigma_i > 0 . From A=UΣVT A = U\Sigma V^T we get: A−1=(VT)−1Σ−1U−1=VΣ−1UT. A^{-1} = (V^T)^{-1}\Sigma^{-1}U^{-1} = V\Sigma^{-1}U^T. This is itself an SVD (with the roles of U U and V V swapped) since V V and U U are orthogonal and Σ−1 \Sigma^{-1} is diagonal with positive entries. The singular values of A−1 A^{-1} are 1/σn≥⋯≥1/σ1 1/\sigma_n \geq \cdots \geq 1/\sigma_1 (in decreasing order).

Solution to question 4: Substitute A=UΣVT A = U\Sigma V^T and A+=VΣ+UT A^+ = V\Sigma^+ U^T : AA+A=(UΣVT)(VΣ+UT)(UΣVT)=UΣ(Σ+Σ)VT. AA^+A = (U\Sigma V^T)(V\Sigma^+ U^T)(U\Sigma V^T) = U\Sigma(\Sigma^+\Sigma) V^T. For each index i≤r i \leq r : (Σ+Σ)ii=(1/σi)⋅σi=1 (\Sigma^+\Sigma)_{ii} = (1/\sigma_i)\cdot\sigma_i = 1 , and zero elsewhere. Hence ΣΣ+Σ=Σ \Sigma\Sigma^+\Sigma = \Sigma , giving AA+A=UΣVT=A AA^+A = U\Sigma V^T = A . \checkmarkSimilarly: A+AA+=(VΣ+UT)(UΣVT)(VΣ+UT)=VΣ+(ΣΣ+)UT=VΣ+UT=A+.✓□ A^+AA^+ = (V\Sigma^+ U^T)(U\Sigma V^T)(V\Sigma^+ U^T) = V\Sigma^+(\Sigma\Sigma^+)U^T = V\Sigma^+ U^T = A^+. \checkmark \qquad \square