Singular Value Decomposition (SVD)

Subtopic: Decompositions

The SVD factors any matrix — even rectangular ones — into rotation, scaling, and rotation: A=U⁢Σ⁢VT A equals U Sigma V to the T power.

It reveals the fundamental structure of linear maps and enables dimensionality reduction, pseudoinverses, and matrix approximation. SVD is arguably the most important matrix factorization in applied mathematics.

Introduction

Eigendecomposition only works for square matrices, and only some of those. SVD works for every matrix. It decomposes a linear map into: rotate input space → stretch along coordinate axes → rotate to output space.

This universal factorization makes SVD the Swiss army knife of linear algebra.

Definition

Any m×n m times n matrix A A can be factored as A=U⁢Σ⁢VT, A equals U Sigma V to the T power comma where:

  • U U is m×m m times m orthogonal (columns are left singular vectors)

  • Σ Sigma is m×n m times n diagonal with nonnegative entries (singular values σ1≥σ2≥⋯≥0 sigma sub 1 is greater than or equal to sigma sub 2 is greater than or equal to dot dot dot is greater than or equal to 0)

  • V V is n×n n times n orthogonal (columns are right singular vectors)

Geometric Interpretation

Multiplying by A A transforms vectors in three steps:

  • VT V to the T power rotates or reflects in the input space

  • Σ Sigma stretches along coordinate axes (by σi sigma sub i)

  • U U rotates or reflects into the output space

The singular values σi sigma sub i are the stretching factors along principal axes. The unit sphere maps to an ellipsoid; the σi sigma sub i are the semi-axis lengths.

Relation to Eigenvalues

The singular values σi sigma sub i are the square roots of the eigenvalues of AT⁢A A to the T power A (or A⁢AT A A to the T power):

σi=λi⁢(AT⁢A) sigma sub i equals the square root of lamda sub i times open paren A to the T power A close paren.

  • Columns of V V are eigenvectors of AT⁢A A to the T power A

  • Columns of U U are eigenvectors of A⁢AT A A to the T power

For symmetric positive definite matrices, singular values equal eigenvalues.

Worked Example

Find the SVD of:

A=(300200) A equals the 3 by 2 matrix Row 1: 3 0 Row 2: 0 2 Row 3: 0 0

This is already "SVD-ready." The singular values are σ1=3 sigma sub 1 equals 3, σ2=2. sigma sub 2 equals 2 period

U=(100010001),Σ=(300200),V=(1001) U equals the 3 by 3 matrix Row 1: 1 0 0 Row 2: 0 1 0 Row 3: 0 0 1 comma Sigma equals the 3 by 2 matrix Row 1: 3 0 Row 2: 0 2 Row 3: 0 0 comma V equals the 2 by 2 matrix Row 1: 1 0 Row 2: 0 1

Verify: U⁢Σ⁢VT=A U Sigma V to the T power equals A

The Truncated SVD

Keeping only the k k largest singular values gives the best rank-k approximation:

Ak=∑i=1k(σi)⁢ui⁢viT A sub k equals the sum from i equals 1 to k of open paren sigma sub i close paren u sub i v sub i to the T power

This minimizes ‖A-Ak‖ the metric of A minus A sub k among all rank-k matrices (in both Frobenius and spectral norms).

Crucial for dimensionality reduction: keep the most important directions, discard noise.

Key Properties

  • rank⁡(A)= rank of A equals number of nonzero singular values

  • ∥A∥=σ1 the metric of A equals sigma sub 1 (spectral norm = equals largest singular value)

  • ∥A∥=∑σi2 the metric of A equals the square root of the sum of sigma sub i squared (Frobenius norm)

  • Condition number =σmax⁡()σmin⁡() equals the fraction with numerator sigma sub max of open paren close paren and denominator sigma sub min of open paren close paren

  • Pseudoinverse: A+=V⁢Σ+⁢UT A raised to the plus power equals V Sigma raised to the plus power U to the T power, where Σ+ Sigma raised to the plus power inverts the nonzero σi sigma sub i

Applications

In image compression, SVD keeps the largest singular values, dramatically reducing storage with small quality loss.

In recommendation systems, SVD reveals latent factors connecting users and items (e.g., the Netflix Prize).

In PCA, the principal components are the right singular vectors; singular values determine component importance.

In least squares, the pseudoinverse (via SVD) solves A⁢x≈b A x almost equals b when A A is not invertible.

Summary

The SVD factors A=U⁢Σ⁢VT A equals U Sigma V to the T power into orthogonal matrices and a diagonal matrix of singular values. It works for any matrix and reveals rank, norms, and condition number. Truncated SVD gives optimal low-rank approximations. Singular values are the square roots of the eigenvalues of AT⁢A A to the T power A. Applications span dimensionality reduction, compression, recommendation, and solving ill-conditioned systems.