Singular Value Decomposition

Describe any rectangular matrix using orthogonal directions and nonnegative stretches.

Builds on Symmetric Matrices and Quadratic Forms

The bigger question: Which parts of a matrix carry the strongest signal?

On this page

A factorization beyond eigenvectors

Every real m×nm\times n matrix has an SVD A=UΣVTA=U\Sigma V^T. Here UU and VV are square orthogonal matrices and Σ\Sigma is rectangular diagonal with nonnegative entries σ1≥⋯≥σr>0\sigma_1\ge\cdots\ge\sigma_r>0, followed by zeros. The positive singular values count the rank.

The right singular vectors viv_i are input directions, and the left singular vectors uiu_i are output directions, satisfying Avi=σiuiAv_i=\sigma_i u_i. Read the factorization as orthogonal coordinate conversion, axis stretching or collapse, and another orthogonal transformation. Reflections may occur as well as rotations.

Visual guide

VISUAL GUIDEA circle becomes an ellipse
For A = diag(3, 1), unit input directions become an ellipse with semi-axis lengths 3 and 1. These are the singular values. General SVD adds rotations before and after this axis-aligned stretching.-3.7-2.4-1.85-1.2001.851.23.72.4xy
  • Unit input circle
  • Image ellipse
For A = diag(3, 1), unit input directions become an ellipse with semi-axis lengths 3 and 1. These are the singular values. General SVD adds rotations before and after this axis-aligned stretching.

Worked example: different input and output sizes

For A=(300200)A=\begin{pmatrix}3&0\\0&2\\0&0\end{pmatrix}, choose V=I2V=I_2, U=I3U=I_3, and Σ=A\Sigma=A. The unit circle in the input plane becomes an ellipse in the output xyxy-plane, with semiaxes 33 and 22. Its column space has dimension two inside a three-dimensional output space.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

The singular values of a real matrix are…

Hint 1 · Find a starting point

Singular values describe lengths of stretches.

Hint 2 · Take the next step

They are square roots of eigenvalues of AᵀA.

Show the reasoning

Answer: Nonnegative

They cannot be negative, but a rank-deficient matrix has zero singular values.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: singular values are not signed eigenvalues

For A=diag⁡(−3,2)A=\operatorname{diag}(-3,2), eigenvalues are −3,2-3,2, but singular values are 3,23,2. The sign reversal can be carried by an orthogonal factor. Singular values measure nonnegative stretch, not orientation.

The eigenvalues of ATAA^TA are σi2\sigma_i^2, and its orthonormal eigenvectors give the right singular directions. For each positive σi\sigma_i, obtain ui=Avi/σiu_i=Av_i/\sigma_i. Zero singular values require completing an orthonormal basis rather than dividing by zero.

SVD exists even when a matrix is rectangular, singular or not diagonalizable. Its factors are not always unique: singular-vector signs can be paired differently, and repeated singular values allow rotations within their associated subspaces.

Practice

  1. Find the singular values of diag⁡(4,−1)\operatorname{diag}(4,-1).
  2. If a 5×35\times3 matrix has two positive singular values, find its rank and nullity.
  3. What is the largest possible ∥Ax∥\|Ax\| for ∥x∥=1\|x\|=1?
Show worked solutions
  1. 44 and 11.
  2. Rank two and input nullity 3−2=13-2=1.
  3. σ1\sigma_1, attained by a leading right singular vector.
MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →