Back to Using Singular Value Decompositions

Exercise 8

Avg difficulty 2.5

In Partial pivoting, we saw how some linear algebraic computations are sensitive to round off error made by a computer. A singular value decomposition can help us understand when this situation can occur.

For instance, consider the matrices A=[1.0001111],B=[1111].A = \begin{bmatrix} 1.0001 & 1 \\ 1 & 1 \\ \end{bmatrix},\hspace{24pt} B = \begin{bmatrix} 1 & 1 \\ 1 & 1 \\ \end{bmatrix}. The entries in these matrices are quite close to one another, but AA is invertible while BB is not. It seems like AA is almost singular. In fact, we can measure how close a matrix is to being singular by forming the condition number, σ1/σn\sigma_1/\sigma_n, the ratio of the largest to smallest singular value. If AA were singular, the condition number would be undefined because the singular value σn=0\sigma_n=0. Therefore, we will think of matrices with large condition numbers as being close to singular.

  1. Define the matrix AA and find a singular value decomposition. What is the condition number of AA?

  2. Define the left singular vectors u1\uvec_1 and u2\uvec_2. Compare the results A−1bA^{-1}\bvec when

    1. b=u1+u2\bvec=\uvec_1+\uvec_2.

    2. b=2u1+u2\bvec=2\uvec_1+\uvec_2.

    Notice how a small change in the vector b\bvec leads to a small change in A−1bA^{-1}\bvec.

  3. Now compare the results A−1bA^{-1}\bvec when

    1. b=u1+u2\bvec=\uvec_1+\uvec_2.

    2. b=u1+2u2\bvec=\uvec_1+2\uvec_2.

    Notice now how a small change in b\bvec leads to a large change in A−1bA^{-1}\bvec.

  4. Previously, we saw that, if we write x\xvec in terms of left singular vectors x=c1v1+c2v2\xvec=c_1\vvec_1+c_2\vvec_2, then we have b=Ax=c1σ1u1+c2σ2u2.\bvec=A\xvec = c_1\sigma_1\uvec_1 + c_2\sigma_2\uvec_2. If we write b=d1u1+d2u2\bvec=d_1\uvec_1+d_2\uvec_2, explain why A−1bA^{-1}\bvec is sensitive to small changes in d2d_2.

Generally speaking, a square matrix AA with a large condition number will demonstrate this type of behavior so that the computation of A−1A^{-1} is likely to be affected by round off error. We call such a matrix ill-conditioned.

Austin, Understanding Linear Algebra, §7.5 Using Singular Value Decompositions, Exercise 8

AI Tutor

Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.