Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

SVD Singular Value Decomposition Reference cheat sheet - grade college

Click image to open full size

Singular value decomposition is a matrix factorization used throughout linear algebra, data science, statistics, engineering, and numerical computing. This cheat sheet helps students connect the formula A=UΣVTA = U\Sigma V^T to geometry, rank, least squares, compression, and stability. It is especially useful because SVD works for any real m×nm \times n matrix, including non-square and singular matrices.

The core idea is that a matrix transformation can be broken into a rotation or reflection, a coordinate-wise scaling, and another rotation or reflection. The singular values σi\sigma_i measure the strength of the transformation along special orthogonal directions. The columns of VV are right singular vectors, the columns of UU are left singular vectors, and the diagonal entries of Σ\Sigma are nonnegative singular values.

Key Facts

  • Every real matrix ARm×nA \in \mathbb{R}^{m \times n} has an SVD A=UΣVTA = U\Sigma V^T, where UU and VV have orthonormal columns and Σ\Sigma is diagonal or rectangular diagonal.
  • The singular values satisfy σi0\sigma_i \ge 0 and are usually ordered as σ1σ2σr>0\sigma_1 \ge \sigma_2 \ge \cdots \ge \sigma_r > 0.
  • The right singular vectors are eigenvectors of ATAA^T A, and ATAvi=σi2viA^T A v_i = \sigma_i^2 v_i.
  • The left singular vectors are related by ui=Aviσiu_i = \frac{A v_i}{\sigma_i} for every nonzero singular value σi\sigma_i.
  • The rank of AA equals the number of nonzero singular values, so rank(A)=r\operatorname{rank}(A) = r.
  • The spectral norm of AA is A2=σ1\|A\|_2 = \sigma_1, and the Frobenius norm is AF=iσi2\|A\|_F = \sqrt{\sum_i \sigma_i^2}.
  • The Moore-Penrose pseudoinverse from the SVD is A+=VΣ+UTA^+ = V\Sigma^+ U^T, where each nonzero σi\sigma_i becomes 1σi\frac{1}{\sigma_i}.
  • The best rank-kk approximation in the 22-norm or Frobenius norm is Ak=i=1kσiuiviTA_k = \sum_{i=1}^{k} \sigma_i u_i v_i^T.

Vocabulary

Singular Value Decomposition
A factorization A=UΣVTA = U\Sigma V^T that expresses a matrix as orthogonal directions, nonnegative scalings, and orthogonal directions.
Singular Value
A nonnegative number σi\sigma_i on the diagonal of Σ\Sigma that measures how much AA stretches a corresponding singular vector direction.
Right Singular Vector
A column vector viv_i of VV that is an eigenvector of ATAA^T A and represents an input direction for the transformation.
Left Singular Vector
A column vector uiu_i of UU that gives the output direction produced by Avi=σiuiA v_i = \sigma_i u_i.
Pseudoinverse
The matrix A+=VΣ+UTA^+ = V\Sigma^+ U^T that generalizes the inverse for rectangular or singular matrices and is used in least squares problems.
Low-Rank Approximation
An approximation AkA_k that keeps only the largest kk singular values and their singular vectors to capture the strongest structure in AA.

Common Mistakes to Avoid

  • Confusing eigenvalues with singular values is wrong because singular values are always nonnegative and come from λi(ATA)\sqrt{\lambda_i(A^T A)}, not necessarily from eigenvalues of AA.
  • Forgetting the transpose in A=UΣVTA = U\Sigma V^T is wrong because the right singular vectors must act through VTV^T, not through VV.
  • Assuming SVD requires a square matrix is wrong because SVD exists for every m×nm \times n matrix, including rectangular matrices.
  • Inverting zero singular values in Σ+\Sigma^+ is wrong because only nonzero singular values become 1σi\frac{1}{\sigma_i}, while zeros stay zero.
  • Keeping the smallest singular values for compression is wrong because the largest singular values contain the strongest action and minimize approximation error.

Practice Questions

  1. 1 A matrix has singular values 99, 44, 11, and 00. Find rank(A)\operatorname{rank}(A), A2\|A\|_2, and AF\|A\|_F.
  2. 2 If A=UΣVTA = U\Sigma V^T and Σ\Sigma has nonzero diagonal entries 55, 22, and 12\frac{1}{2}, what are the corresponding nonzero diagonal entries of Σ+\Sigma^+?
  3. 3 For singular values 1212, 66, 33, and 11, write the Frobenius norm error AA2F\|A - A_2\|_F for the best rank-22 approximation.
  4. 4 Explain why SVD can solve least squares problems even when ATAA^T A is singular or poorly conditioned.

Understanding SVD Singular Value Decomposition Reference

A useful way to read an SVD is as a list of independent input-output channels. Start with one right singular direction. A vector pointing exactly in that direction is sent to the matching left singular direction, with its length multiplied by the matching singular value.

Directions with a zero singular value disappear completely under the matrix transformation. Those lost directions form the null space. This explains why some systems have no unique solution.

Different input vectors can produce the same output when their difference lies in the null space. The nonzero left singular directions describe the column space, meaning every output the matrix can actually create.

Singular values reveal more than rank. Their sizes show how sensitive a calculation is to small errors. If the largest singular value is much bigger than the smallest nonzero one, the matrix is ill-conditioned.

A tiny measurement error in an output can then cause a large error when trying to recover an input. This happens because solving a system requires dividing by singular values. Dividing by a very small value magnifies noise.

In numerical work, a value may be treated as zero when it is too small compared with the largest value. This is a practical decision based on machine precision and the accuracy of the data, not just a theorem about exact numbers.

The pseudoinverse is especially important for data that give too many equations or too few. With more equations than unknowns, an exact solution may not exist because measurements disagree slightly. The pseudoinverse chooses an input whose predicted output is as close as possible to the measured output in ordinary distance.

With fewer equations than unknowns, there may be many exact solutions. It selects the one with the smallest length. These choices are useful in fitting a line to noisy data, estimating forces from sensor readings, reconstructing images, and training simple linear models.

Small singular values can make these answers unstable, so analysts often use truncated SVD. They keep only reliable large directions and discard weak directions that mostly amplify noise.

Low-rank approximation works because many real data sets contain repeated patterns. A grayscale image can be stored as a matrix of brightness values. The first few singular components often capture broad lighting, large shapes, and major edges.

Later components add fine detail. Keeping only some components reduces storage, though it removes information. The same idea appears in recommendation systems, document analysis, genetics, and signal processing.

When studying SVD, pay attention to dimensions at every step. Track which vectors live in the input space and which live in the output space.

Remember that singular vectors are not always unique, especially when singular values repeat. What remains meaningful is the subspace spanned by those vectors and the amount of stretching represented by the singular values.