Practice: The Singular Value Decomposition

Recognition · Comparison

The shear A = ( 3 1 0 3 ) has the single eigenvalue 3 with only one independent eigenvector, so it is not diagonalizable over any field. What can be said about its singular value decomposition?

2 hints available, least help first.

Hint 1: Retrieval cue

What property must A T A have for the construction to work, and does it hold here?

Hint 2: Concept cue

Compute A T A and ask whether it is symmetric and has nonnegative eigenvalues.

Direct application

For A = ( 3 0 4 5 ) , the product A T A = ( 25 20 20 25 ) has eigenvalues 45 and 5.

What is σ 1 , the largest singular value? Give your answer as a decimal.

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

How are singular values obtained from the eigenvalues of A T A ?

Hint 2: Concept cue

Compute 45 .

Direct application

For A = ( 3 0 4 5 ) the largest singular value is σ 1 = 3 5 with right singular vector v 1 = 1 2 ( 1 , 1 ) .

The left singular vector is u 1 = A v 1 / σ 1 . What is its first component? Give your answer as a decimal.

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Apply A to v 1 before dividing by anything.

Hint 2: Concept cue

A v 1 = 1 2 ( 3 , 9 ) . Divide the first component by 3 5 .

Direct application

A candidate decomposition of A = ( 2 0 0 − 3 ) has σ 1 = 3 with v 1 = ( 0 , 1 ) and u 1 = ( 0 , − 1 ) .

The check is whether A v 1 = σ 1 u 1 . Compute the second component of A v 1 .

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

The second component of A v is the second row of A dotted with v .

Hint 2: Concept cue

Row 2 of A is ( 0 , − 3 ) and v 1 = ( 0 , 1 ) .

Direct application · Interpretation

A 4 × 6 matrix has singular values σ 1 = 9.2 , σ 2 = 3.7 , σ 3 = 0 , σ 4 = 0 .

What is its rank?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

How many terms does the rank-one expansion have?

Hint 2: Concept cue

Count the nonzero entries among 9.2 , 3.7 , 0 , 0 .

Direct application · Prediction

A matrix has singular values σ 1 = 6 , σ 2 = 3 , σ 3 = 4 (listed here out of order).

Its best rank-1 approximation A 1 is formed from the largest singular value alone. What is ‖ A − A 1 ‖ F ?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Which singular values are discarded when only the largest is kept?

Hint 2: Concept cue

The Frobenius error is the square root of the sum of the squares of the discarded values.

Construction · Direct application · Explanation

(a) For A = ( 2 0 0 − 3 ) , compute A T A , its eigenvalues, and the singular values. Check them against the trace and determinant.

(b) Give V , U and Σ for this A , and verify A v i = σ i u i for each i . Note what is unusual about the relationship between the singular values and the eigenvalues of A .

(c) For B = ( 1 2 2 4 ) , compute the singular values, state the rank, and identify a vector spanning the kernel.

(d) Write the rank-one expansion of B and state the error of its best rank-1 approximation.

(e) A has a negative eigenvalue and B has a zero one. Explain what each does to the singular values, and why singular values are nonetheless always real and nonnegative.

Write your answer, then compare it with the worked solution.

3 hints available, least help first.

Hint 1: Retrieval cue

Check the singular values against ∑ σ i 2 = tr ⁡ ( A T A ) and ∏ σ i = | det A | before computing any vectors.

Hint 2: Concept cue

Order the eigenvalues of A T A decreasingly before taking square roots, and keep V in the same order.

Hint 3: Strategy cue

For part (e), ask what operation is applied to A before any eigenvalue is taken, and what that does to a sign.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) Singular values of A .

A T A = ( 2 0 0 − 3 ) ( 2 0 0 − 3 ) = ( 4 0 0 9 ) .

Diagonal, so the eigenvalues are 4 and 9. Ordering decreasingly, λ 1 = 9 and λ 2 = 4 , giving

σ 1 = 3 , σ 2 = 2 .

Checks. σ 1 2 + σ 2 2 = 9 + 4 = 13 = tr ⁡ ( A T A ) ✓, and σ 1 σ 2 = 6 = | det A | = | − 6 | ✓. (b) The factorisation. The eigenvector for λ 1 = 9 is e 2 = ( 0 , 1 ) and for λ 2 = 4 is e 1 = ( 1 , 0 ) , so in decreasing order

V = ( 0 1 1 0 ) , v 1 = ( 0 , 1 ) , v 2 = ( 1 , 0 ) .

Left singular vectors:

u 1 = A v 1 σ 1 = 1 3 ( 0 − 3 ) = ( 0 − 1 ) , u 2 = A v 2 σ 2 = 1 2 ( 2 0 ) = ( 1 0 ) .

So

U = ( 0 1 − 1 0 ) , Σ = ( 3 0 0 2 ) .

Verification. A v 1 = A ( 0 , 1 ) T = ( 0 , − 3 ) T and σ 1 u 1 = 3 ( 0 , − 1 ) T = ( 0 , − 3 ) T ✓. A v 2 = ( 2 , 0 ) T and σ 2 u 2 = 2 ( 1 , 0 ) T = ( 2 , 0 ) T ✓. Both U and V have orthonormal columns. What is unusual. A is diagonal with eigenvalues 2 and − 3 , and its singular values are 2 and 3. The absolute values of the eigenvalues, reordered. That is what happens for a diagonal (or more generally symmetric) matrix: σ i = | λ i | . The minus sign has not disappeared; it has moved into u 1 , which is ( 0 , − 1 ) rather than ( 0 , 1 ) . (c) B is rank deficient.

B T B = ( 1 2 2 4 ) ( 1 2 2 4 ) = ( 5 10 10 20 ) .

Trace 25, determinant 100 − 100 = 0 , so the eigenvalues are 25 and 0. Hence

σ 1 = 5 , σ 2 = 0 .

Check. σ 1 2 + σ 2 2 = 25 = tr ⁡ ( B T B ) = 5 + 20 ✓, and σ 1 σ 2 = 0 = | det B | ✓. One nonzero singular value, so rank ⁡ B = 1 . Kernel. The right singular vector for λ = 0 spans it. Solving B T B v = 0 , or directly B v = 0 : v 1 + 2 v 2 = 0 gives v ∝ ( 2 , − 1 ) . Checking, B ( 2 , − 1 ) T = ( 2 − 2 , 4 − 4 ) T = ( 0 , 0 ) T ✓. Normalised, v 2 = 1 5 ( 2 , − 1 ) . The other right singular vector is v 1 = 1 5 ( 1 , 2 ) , and u 1 = B v 1 / σ 1 = 1 5 5 ( 5 , 10 ) T = 1 5 ( 1 , 2 ) T . (d) Rank-one expansion of B . Since r = 1 there is a single term:

B = σ 1 u 1 v 1 T = 5 ⋅ 1 5 ( 1 2 ) ⋅ 1 5 ( 1 , 2 ) = ( 1 2 2 4 ) .

The expansion reproduces B exactly, so the best rank-1 approximation is B and the error is

‖ B − B 1 ‖ F = σ 2 2 = 0 .

That is the general statement in a degenerate case: a matrix of rank 1 is already its own best rank-1 approximation, and nothing is discarded. (e) Negative and zero eigenvalues. For A , the eigenvalue − 3 produced the singular value 3 . Squaring in A T A destroys the sign: ( − 3 ) 2 = 9 , and the nonnegative square root is 3. The sign is not lost from the decomposition. It reappears in the left singular vector u 1 = ( 0 , − 1 ) , which records that the map reverses that direction. For B , the eigenvalue 0 produced the singular value 0. Here nothing is destroyed: a direction sent to zero is stretched by a factor of zero, and the two notions agree. This is why σ i = 0 and " B is singular" are the same statement. Why always real and nonnegative. The singular values are λ i ( A T A ) , and every eigenvalue of A T A satisfies

λ i = v i T A T A v i = ‖ A v i ‖ 2 ≥ 0 ,

so each square root is a real nonnegative number. The quantity being rooted is a squared length, which is what makes the sign question disappear before it arises. This also explains the interpretation: σ i = ‖ A v i ‖ is literally how far the unit vector v i is stretched, and a length is never negative.

A complete answer does each of these:

  • computes singular values
  • constructs singular vectors
  • verifies the factorisation
  • reads rank from sigma
  • gives low rank approximation
  • distinguishes from eigenvalues
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.