Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Exercises 42–44 show how to use the condition number of a matrix Ato estimate the accuracy of a computed solution of \(Ax = b\). If the entries of Aand b are accurate to about rsignificant digits and if the condition number of Ais approximately \({\bf{1}}{{\bf{0}}^k}\) (with ka positive integer), then the computed solution of \(Ax = b\) should usually be accurate to at least \(r - k\) significant digits.

43. Repeat Exercise 42 for the matrix in Exercise 10.

Short Answer

Expert verified

The solution has approximately 11 decimal places, and the calculated answer

(\({{\bf{x}}_1}\)) is accurate.

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Obtain the condition number of matrix A

Consider matrix A as shown below:

\(A = \left[ {\begin{array}{*{20}{c}}5&3&1&7&9\\6&4&2&8&{ - 8}\\7&5&3&{10}&9\\9&6&4&{ - 9}&{ - 5}\\8&5&2&{11}&4\end{array}} \right]\)

Obtain thecondition number of matrix A by using the MATLAB command shown below:

\[\begin{array}{l} > > {\rm{ A }} = {\rm{ }}\left[ {{\rm{5 3 1 7 9; 6 4 2 8 }} - {\rm{8; 7 5 3 10 9; 9 6 4 }} - {\rm{9 }} - {\rm{5; 8 5 2 11 4}}} \right];\\ > > {\rm{ C}} = {\rm{cond}}\left( {\rm{A}} \right)\end{array}\]

It gives the output 68622.

Thus, thecondition number of matrix A is 68622.

By comparing with thecondition number of A, that is \({10^k}\), the required condition number is approximately in between \({10^4}\) and \({10^5}\).

02

Obtain the solution by using the MATLAB command

It is discovered that x and\({{\bf{x}}_1}\)agree to at least 11 or 12 significant digits if it run multiple experiments with MATLAB, which properly captures 16 digits.

Obtain a random matrix by using the MATLAB command shown below:

\( > > {\bf{x}} = {\rm{rand}}\left( {5,1} \right)\)

\({\bf{x}} = \left[ {\begin{array}{*{20}{c}}{.2190}\\{.0470}\\{.6789}\\{.6793}\\{.9347}\end{array}} \right]\)

Now, compute\({\bf{b}} = A{\bf{x}}\)by using the MATLAB command shown below:

\(\begin{array}{l} > > {\rm{ A }} = {\rm{ }}\left[ {{\rm{5 3 1 7 9; 6 4 2 8 }} - {\rm{8; 7 5 3 10 9; 9 6 4 }} - {\rm{9 }} - {\rm{5; 8 5 2 11 4}}} \right];\\ > > x = \left[ {.2190{\rm{; }}{\rm{.0470; }}{\rm{.6789; }}{\rm{.6793; }}{\rm{.9347}}} \right]{\rm{;}}\\ > > b = A*x\end{array}\)

The output is \({\bf{b}} = A{\bf{x}} = \left[ {\begin{array}{*{20}{c}}{15.0821}\\{.8165}\\{19.0097}\\{ - 5.8188}\\{14.5557}\end{array}} \right]\).

03

Obtain the MATLAB solution

Compute\({{\bf{x}}_1}\)of\(A{\bf{x}} = {\bf{b}}\)by using the MATLAB command shown below:

\(\begin{array}{l} > > {\rm{ A }} = {\rm{ }}\left[ {{\rm{5 3 1 7 9; 6 4 2 8 }} - {\rm{8; 7 5 3 10 9; 9 6 4 }} - {\rm{9 }} - {\rm{5; 8 5 2 11 4}}} \right];\\ > > b = \left[ {15.0821{\rm{; }}{\rm{.8165; 19}}{\rm{.0097; }} - {\rm{5}}{\rm{.8188; 14}}{\rm{.5557}}} \right]{\rm{;}}\\ > > {x_1} = A\backslash b\end{array}\)

The output is\({{\bf{x}}_1} = \left[ {\begin{array}{*{20}{c}}{.2190}\\{.0470}\\{.6789}\\{.6793}\\{.9347}\end{array}} \right]\).

Obtain the difference between x and\({{\bf{x}}_1}\).

\({\bf{x}} - {{\bf{x}}_1} = \left[ {\begin{array}{*{20}{c}}{.3165}\\{ - .6743}\\{.3343}\\{.0158}\\{ - .0005}\end{array}} \right] \times {10^{ - 11}}\)

Thus, the solution has approximately 11 decimal places, and the calculated answer (\({{\bf{x}}_1}\)) is accurate.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

In exercises 11 and 12, mark each statement True or False. Justify each answer.

a. The definition of the matrix-vector product \(A{\bf{x}}\) is a special case of block multiplication.

b. If \({A_{\bf{1}}}\), \({A_{\bf{2}}}\), \({B_{\bf{1}}}\), and \({B_{\bf{2}}}\) are \(n \times n\) matrices, \[A = \left[ {\begin{array}{*{20}{c}}{{A_{\bf{1}}}}\\{{A_{\bf{2}}}}\end{array}} \right]\] and \(B = \left[ {\begin{array}{*{20}{c}}{{B_{\bf{1}}}}&{{B_{\bf{2}}}}\end{array}} \right]\), then the product \(BA\) is defined, but \(AB\) is not.

A useful way to test new ideas in matrix algebra, or to make conjectures, is to make calculations with matrices selected at random. Checking a property for a few matrices does not prove that the property holds in general, but it makes the property more believable. Also, if the property is actually false, you may discover this when you make a few calculations.

37. Construct a random \({\bf{4}} \times {\bf{4}}\) matrix Aand test whether \(\left( {A + I} \right)\left( {A - I} \right) = {A^2} - I\). The best way to do this is to compute \(\left( {A + I} \right)\left( {A - I} \right) - \left( {{A^2} - I} \right)\) and verify that this difference is the zero matrix. Do this for three random matrices. Then test \(\left( {A + B} \right)\left( {A - B} \right) = {A^2} - {B^{\bf{2}}}\) the same way for three pairs of random \({\bf{4}} \times {\bf{4}}\) matrices. Report your conclusions.

Suppose block matrix \(A\) on the left side of (7) is invertible and \({A_{{\bf{11}}}}\) is invertible. Show that the Schur component \(S\) of \({A_{{\bf{11}}}}\) is invertible. [Hint: The outside factors on the right side of (7) are always invertible. Verify this.] When \(A\) and \({A_{{\bf{11}}}}\) are invertible, (7) leads to a formula for \({A^{ - {\bf{1}}}}\), using \({S^{ - {\bf{1}}}}\) \(A_{{\bf{11}}}^{ - {\bf{1}}}\), and the other entries in \(A\).

Explain why the columns of an \(n \times n\) matrix Aspan \({\mathbb{R}^{\bf{n}}}\) when

Ais invertible. (Hint:Review Theorem 4 in Section 1.4.)

Let \(A = \left[ {\begin{array}{*{20}{c}}B&{\bf{0}}\\{\bf{0}}&C\end{array}} \right]\), where \(B\) and \(C\) are square. Show that \(A\)is invertible if an only if both \(B\) and \(C\) are invertible.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free