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

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

In the rest of this exercise set and in those to follow, you should assume that each matrix expression is defined. That is, the sizes of the matrices (and vectors) involved match appropriately.

Let \(A = \left( {\begin{aligned}{*{20}{c}}{\bf{4}}&{ - {\bf{1}}}\\{\bf{5}}&{ - {\bf{2}}}\end{aligned}} \right)\). Compute \({\bf{3}}{I_{\bf{2}}} - A\) and \(\left( {{\bf{3}}{I_{\bf{2}}}} \right)A\).

Suppose P is invertible and \(A = PB{P^{ - 1}}\). Solve for Bin terms of A.

Suppose \({A_{{\bf{11}}}}\) is invertible. Find \(X\) and \(Y\) such that

\[\left[ {\begin{array}{*{20}{c}}{{A_{{\bf{11}}}}}&{{A_{{\bf{12}}}}}\\{{A_{{\bf{21}}}}}&{{A_{{\bf{22}}}}}\end{array}} \right] = \left[ {\begin{array}{*{20}{c}}I&{\bf{0}}\\X&I\end{array}} \right]\left[ {\begin{array}{*{20}{c}}{{A_{{\bf{11}}}}}&{\bf{0}}\\{\bf{0}}&S\end{array}} \right]\left[ {\begin{array}{*{20}{c}}I&Y\\{\bf{0}}&I\end{array}} \right]\]

Where \(S = {A_{{\bf{22}}}} - {A_{21}}A_{{\bf{11}}}^{ - {\bf{1}}}{A_{{\bf{12}}}}\). The matrix \(S\) is called the Schur complement of \({A_{{\bf{11}}}}\). Likewise, if \({A_{{\bf{22}}}}\) is invertible, the matrix \({A_{{\bf{11}}}} - {A_{{\bf{12}}}}A_{{\bf{22}}}^{ - {\bf{1}}}{A_{{\bf{21}}}}\) is called the Schur complement of \({A_{{\bf{22}}}}\). Such expressions occur frequently in the theory of systems engineering, and elsewhere.

Use partitioned matrices to prove by induction that the product of two lower triangular matrices is also lower triangular. [Hint: \(A\left( {k + 1} \right) \times \left( {k + 1} \right)\) matrix \({A_1}\) can be written in the form below, where \[a\] is a scalar, v is in \({\mathbb{R}^k}\), and Ais a \(k \times k\) lower triangular matrix. See the study guide for help with induction.]

\({A_1} = \left[ {\begin{array}{*{20}{c}}a&{{0^T}}\\0&A\end{array}} \right]\).

[M] For block operations, it may be necessary to access or enter submatrices of a large matrix. Describe the functions or commands of your matrix program that accomplish the following tasks. Suppose A is a \(20 \times 30\) matrix.

  1. Display the submatrix of Afrom rows 15 to 20 and columns 5 to 10.
  2. Insert a \(5 \times 10\) matrix B into A, beginning at row 10 and column 20.
  3. Create a \(50 \times 50\) matrix of the form \(B = \left[ {\begin{array}{*{20}{c}}A&0\\0&{{A^T}}\end{array}} \right]\).

[Note: It may not be necessary to specify the zero blocks in B.]

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