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

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.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

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

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

When a deep space probe launched, corrections may be necessary to place the probe on a precisely calculated trajectory. Radio elementary provides a stream of vectors, \({{\bf{x}}_{\bf{1}}},....,{{\bf{x}}_k}\), giving information at different times about how the probe’s position compares with its planned trajectory. Let \({X_k}\) be the matrix \(\left[ {{x_{\bf{1}}}.....{x_k}} \right]\). The matrix \({G_k} = {X_k}X_k^T\) is computed as the radar data are analyzed. When \({x_{k + {\bf{1}}}}\) arrives, a new \({G_{k + {\bf{1}}}}\) must be computed. Since the data vector arrive at high speed, the computational burden could be serve. But partitioned matrix multiplication helps tremendously. Compute the column-row expansions of \({G_k}\) and \({G_{k + {\bf{1}}}}\) and describe what must be computed in order to update \({G_k}\) to \({G_{k + {\bf{1}}}}\).

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.)

Suppose Ais a \(3 \times n\) matrix whose columns span \({\mathbb{R}^3}\). Explain how to construct an \(n \times 3\) matrix Dsuch that \(AD = {I_3}\).

Suppose Tand U are linear transformations from \({\mathbb{R}^n}\) to \({\mathbb{R}^n}\) such that \(T\left( {U{\mathop{\rm x}\nolimits} } \right) = {\mathop{\rm x}\nolimits} \) for all x in \({\mathbb{R}^n}\) . Is it true that \(U\left( {T{\mathop{\rm x}\nolimits} } \right) = {\mathop{\rm x}\nolimits} \) for all x in \({\mathbb{R}^n}\)? Why or why not?

How many rows does \(B\) have if \(BC\) is a \({\bf{3}} \times {\bf{4}}\) matrix?

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