LINEAR-ALGEBRA · Interactive Practice | Unit 28 · Video 1

Two Bases, One Matrix: The Geometric Heart of the SVD

IKey Formulas

Formula Name Description
A=UΣVTA = U\Sigma V^T Singular Value Decomposition Works for any m×nm \times n matrix
Avi=σiuiA v_i = \sigma_i u_i SVD defining relation AA maps orthonormal viv_i to orthonormal uiu_i, scaled by σi\sigma_i
σi=λi(ATA)\sigma_i = \sqrt{\lambda_i(A^T A)} Singular value Square root of an eigenvalue of ATAA^T A; always ≥0\geq 0
A=QΛQTA = Q\Lambda Q^T Spectral theorem (symmetric PD) Special case where U=V=QU = V = Q and Σ=Λ\Sigma = \Lambda

IIVisualization 1 — Rotate, Stretch, Rotate

A=UΣVTA = U\Sigma V^T turns the unit circle into an ellipse in three moves: a rotation, a stretch, another rotation.

💡 Challenge: set σ2=0\sigma_2 = 0 — the ellipse collapses to a segment, so AA has rank 1 and v2v_2 lands in the null space.

IIIVisualization 2 — The Basis That Stays Orthogonal

For A=(210.51.5)A = \bigl(\begin{smallmatrix} 2 & 1 \\ 0.5 & 1.5 \end{smallmatrix}\bigr), only one input basis comes out of AA still perpendicular — the singular vectors v1,v2v_1, v_2.

💡 Challenge: drag b1b_1 until Av1⊥Av2Av_1 \perp Av_2 — that input angle, φ≈39.9°\varphi \approx 39.9\degree, is exactly the SVD basis.

IVVisualization 3 — Singular Values vs Eigenvalues

Singular values are the image ellipse's semi-axes — always real and ≥0\geq 0; the eigenvalues can be negative or even complex.

💡 Try: a 90° rotation a11=0, a12=−1, a21=1, a22=0a_{11}=0,\ a_{12}=-1,\ a_{21}=1,\ a_{22}=0 — both singular values equal 11, yet the eigenvalues are ±i\pm i.

VQuiz Questions

Question 1

Which of the following statements about the SVD A=UΣVTA = U\Sigma V^T is always true for a real m×nm \times n matrix AA?

✅ Correct! This is exactly the structure of the SVD, and it holds for every real matrix.

❌ Not quite. The SVD has no restriction on shape or invertibility — that's why it's called the 'final factorization.'

Show solution

Solution:

The SVD works for every real matrix AA — square, rectangular, singular, or nonsingular. The factorization A=UΣVTA = U\Sigma V^T has:

  • UU is m×mm \times m orthogonal (so UTU=IU^T U = I)
  • VV is n×nn \times n orthogonal (so VTV=IV^T V = I)
  • Σ\Sigma is m×nm \times n diagonal, with entries σ1≥σ2≥⋯≥0\sigma_1 \geq \sigma_2 \geq \cdots \geq 0

There is no requirement that AA be square or invertible. Eigenvalues may not even exist for rectangular AA, but singular values always do.

The case U=VU = V only happens for symmetric positive semidefinite matrices.

Question 2

Consider the rotation matrix A=(0−110)A = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, which rotates vectors by 90°.

What are its singular values?

✅ Correct! A rotation preserves lengths, so both singular values equal 1, even though the eigenvalues are imaginary.

❌ Not quite. Remember: singular values are λi(ATA)\sqrt{\lambda_i(A^T A)}, always non-negative real numbers — never complex, never negative.

Show solution

Solution:

Singular values are the square roots of eigenvalues of ATAA^T A: ATA=(01−10)(0−110)=(1001)=I.A^T A = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I.

The eigenvalues of II are both 1, so σ1=σ2=1\sigma_1 = \sigma_2 = 1. Singular values are always non-negative real numbers, even when AA's eigenvalues are complex (±i\pm i in this case).

Geometrically: a rotation maps the unit circle to itself, so the "ellipse" has both semi-axes equal to 1.

Question 3

True or False: For every real matrix AA, the right singular vectors equal the left singular vectors (that is, U=VU = V).

✅ Correct! The SVD uses two distinct orthonormal bases. U=VU = V only in the symmetric positive semidefinite case.

❌ Not quite. Think about a rectangular matrix — UU is m×mm \times m and VV is n×nn \times n. They can't even be equal in general.

Show solution

Solution:

False. In general, U≠VU \neq V.

  • VV's columns live in the row space of AA (the input space, Rn\mathbb{R}^n).
  • UU's columns live in the column space of AA (the output space, Rm\mathbb{R}^m).

For a rectangular m×nm \times n matrix, UU and VV are even different sizes! They can only be equal in the special case where AA is symmetric positive semidefinite. In that case, A=QΛQTA = Q\Lambda Q^T from the spectral theorem, and we get U=V=QU = V = Q, Σ=Λ\Sigma = \Lambda.

The whole point of the SVD is that we need two orthonormal bases, one for input and one for output — not one basis doing double duty.

Question 4

A 4×34 \times 3 matrix AA has SVD A=UΣVTA = U\Sigma V^T with σ1=4\sigma_1 = 4, σ2=2\sigma_2 = 2, and σ3=0\sigma_3 = 0.

Which statement is correct about the geometry and rank of AA?

✅ Correct! Rank = number of nonzero singular values. The zero singular value collapses one dimension, flattening the ellipsoid into an ellipse.

❌ Not quite. The rank equals the number of nonzero singular values, and any zero singular value means a direction gets crushed to zero (null space).

Show solution

Solution:

The rank of AA equals the number of nonzero singular values. Here σ1=4\sigma_1 = 4 and σ2=2\sigma_2 = 2 are nonzero, but σ3=0\sigma_3 = 0, so rank(A)=2\text{rank}(A) = 2.

Geometrically, AA takes the unit sphere in 3D to a flat ellipse in the plane spanned by u1u_1 and u2u_2, with semi-axes of length 4 and 2. The third direction v3v_3 is squashed to zero: Av3=σ3u3=0.A v_3 = \sigma_3 u_3 = 0.

So v3v_3 lies in the null space of AA.

Note: v3v_3 is not generally an eigenvector of AA — it's a right singular vector, and Av3=0A v_3 = 0 doesn't make v3v_3 an eigenvector: a 4×34 \times 3 matrix has no eigenvectors, since Av3A v_3 lives in R4\mathbb{R}^4. Eigenvectors and singular vectors are different concepts.

Solved: 0 / 4