Wize Linear Algebra Textbook > Matrix Decompositions

Singular Values and Singular Vectors

Singular Values: How Much a Matrix Stretches, and in Which Directions

The problem singular values solve

Eigenvalues describe how a square matrix acts along directions it preserves. Many matrices have no such directions to work with: a rectangular matrix has no eigenvalues at all, and even a square matrix can have a badly behaved or incomplete eigenvector basis.


Singular values fix this. They exist for every real matrix, square or not, they are always real and nonnegative, and they measure the one thing that always makes sense: how much the matrix stretches vectors.

Definition through a symmetric companion

Let A be an m × n real matrix. Form the n × n matrix ATA. Two facts make it a good companion:


  • It is symmetric, so it has a full orthonormal eigenvector basis and real eigenvalues.
  • It is positive semidefinite, because for any vector x, xT(ATA)x = (Ax)T(Ax) = ||Ax||2 >= 0. So every eigenvalue λi of ATA satisfies λi >= 0 and its square root is a real number.


The singular values of A are σi = sqrt(λi), listed in decreasing order σ1 >= σ2 >= ... >= 0. The orthonormal eigenvectors vi of ATA are the right singular vectors.


Whenever σi > 0, the corresponding left singular vector is defined by ui = A vi / σi, and these ui are automatically orthonormal.


Assembling all of this into the factorisation A = U Σ VT is the business of the companion concept; here the objects themselves are the subject.


You may start from A AT instead. It is m × m and has the same nonzero eigenvalues as ATA, with the roles of u and v exchanged.


For a tall matrix, ATA is the smaller and easier of the two; for a wide matrix, A AT is. The extra eigenvalues of the larger one are all zero.

Worked example: a shear

Take A = [[1, 1], [0, 1]], the shear that fixes the horizontal axis. Then


ATA = [[1, 1], [1, 2]], with trace 3 and determinant 1, so its eigenvalues solve λ2 - 3λ + 1 = 0, giving λ = (3 ± sqrt(5))/2, that is 2.618 and 0.382.


Taking square roots, σ1 = 1.618 and σ2 = 0.618. Now compare with the eigenvalues of A itself, which are 1 and 1, since A is upper triangular with ones on the diagonal.


The shear has no eigenvalue larger than 1, yet it stretches some vectors by more than 60 %. Singular values and eigenvalues are different quantities; for normal matrices, including symmetric matrices, the singular values equal the absolute values of the eigenvalues.

Geometry: circles become ellipses

The clean geometric statement is this: A maps the unit sphere onto an ellipsoid whose semi-axis lengths are exactly the singular values, with the axis directions given by the left singular vectors. The unit vector sent to the longest axis is v1, and A v1 = σ1 u1.


Consequences worth memorising:


  • σ1 is the maximum stretch: σ1 = max over nonzero x of ||Ax|| / ||x||. This is the definition of the operator 2-norm, so σ1 = ||A||2.
  • For a square matrix, σn is the minimum stretch, and σn = 0 exactly when A is singular. An invertible square matrix has 2-norm condition number κ2 = σ1/σn. Singular matrices are conventionally assigned infinite condition number; the quotient itself is undefined when σn = 0.
  • In exact arithmetic, the number of nonzero singular values equals rank(A). In floating-point work, singular values support an estimate of numerical rank by counting values above a stated tolerance; exact rank cannot in general be determined reliably from rounded data.
  • For a square matrix, the product of the singular values equals |det A|, since the ellipsoid's volume scales by that product.


Example of the geometry: the diagonal matrix [[2, 0], [0, 0.5]] has singular values 2 and 0.5, and it takes the unit circle to an ellipse stretched twofold horizontally and halved vertically.


Its determinant is 1, so area is preserved even though shape is not: a single number like the determinant cannot reveal that the matrix is distorting space by a factor of four between its two axes, while the singular values say so immediately.

Computing them by hand

  1. Form ATA, or A AT if that is smaller.
  2. Find its eigenvalues from the characteristic polynomial. For a 2 × 2 matrix, use λ2 - (trace)λ + (determinant) = 0.
  3. Take nonnegative square roots and sort in decreasing order.
  4. Check: the sum of the λ values must equal the trace of ATA, which also equals the sum of the squares of all entries of A. For a square A, the product of the σ values must equal |det A|.

Check yourself

If a computation returns a negative singular value, or a singular value of a 2 × 2 matrix that exceeds the square root of the sum of all squared entries, something has gone wrong: singular values are nonnegative by construction, and the sum of their squares is fixed by the entries of A.

Let A be a real m × n matrix. Which of the following correctly defines the singular values of A?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A 2 × 2 real matrix A has singular values 5 and 2. Which statement must be true?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Let A = [[3, 0], [4, 5]], meaning the first row is (3, 0) and the second row is (4, 5).

Compute ATA, find its eigenvalues, and give the singular values of A in decreasing order together with the corresponding unit right singular vectors. Then verify your singular values using the determinant of A.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors