/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q42Q Exercises 42鈥44 show how to us... [FREE SOLUTION] | 91影视

91影视

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.

42. Find the condition number of the matrix A in Exercise 9. Construct a random vector x in \({\mathbb{R}^{\bf{4}}}\) and compute \({\bf{b}} = A{\bf{x}}\). Then use your matrix program to compute the solution \({{\bf{x}}_{\bf{1}}}\) of \(Ax = b\). To how many digits do x and \({{\bf{x}}_{\bf{1}}}\) agree? Find out the number of digits your matrix program stores accurately, and report how many digits of accuracy are lost when \({{\bf{x}}_{\bf{1}}}\) is

used in place of the exact solution x.

Short Answer

Expert verified

The solution has approximately 12 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{aligned}{*{20}{c}}4&0&{ - 3}&{ - 7}\\{ - 6}&9&9&9\\7&{ - 5}&{10}&{19}\\{ - 1}&2&4&{ - 1}\end{aligned}} \right)\)

Obtain thecondition numberof matrix A using the MATLAB command shown below:

\(\begin{aligned}{l} > > {\rm{ A }} = {\rm{ }}\left( {{\rm{4 0 }} - {\rm{3 }} - {\rm{7; }} - {\rm{6 9 9 9; 7 }} - {\rm{5 10 19; }} - {\rm{1 2 4 }} - {\rm{1}}} \right);\\ > > {\rm{ C}} = {\rm{cond}}\left( {\rm{A}} \right)\end{aligned}\)

It gives the output 23683.

Thus, thecondition number of matrix A is 23683.

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

02

Obtain the solution by using the MATLAB command

It is found that x and\({{\bf{x}}_1}\)agree to at least 12 or 13significant 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( {4,1} \right)\)

\({\bf{x}} = \left( {\begin{aligned}{*{20}{c}}{0.9501}\\{0.2131}\\{0.6068}\\{0.4860}\end{aligned}} \right)\)

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

\(\begin{aligned}{l} > > {\rm{ }}A{\rm{ }} = {\rm{ }}\left( {{\rm{4 0 }} - {\rm{3 }} - {\rm{7; }} - {\rm{6 9 9 9; 7 }} - {\rm{5 10 19; }} - {\rm{1 2 4 }} - {\rm{1}}} \right){\rm{;}}\\ > > x = \left( {0.9501{\rm{; 0}}{\rm{.2131; 0}}{\rm{.6068; 0}}{\rm{.4860}}} \right){\rm{;}}\\ > > b = A*x\end{aligned}\)

The output is \({\bf{b}} = A{\bf{x}} = \left( {\begin{aligned}{*{20}{c}}{ - 3.8493}\\{5.5795}\\{20.7973}\\{.8467}\end{aligned}} \right)\).

03

Obtain the MATLAB solution

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

\(\begin{aligned}{l} > > {\rm{ }}A{\rm{ }} = {\rm{ }}\left( {{\rm{4 0 }} - {\rm{3 }} - {\rm{7; }} - {\rm{6 9 9 9; 7 }} - {\rm{5 10 19; }} - {\rm{1 2 4 }} - {\rm{1}}} \right){\rm{;}}\\ > > b = \left( { - {\rm{3}}{\rm{.8493; 5}}{\rm{.5795; 20}}{\rm{.7973; 0}}{\rm{.8467}}} \right){\rm{;}}\\ > > {x_1} = A\backslash b\end{aligned}\)

The output is\({{\bf{x}}_1} = \left( {\begin{aligned}{*{20}{c}}{.9501}\\{.2311}\\{.6068}\\{.4860}\end{aligned}} \right)\).

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

\({\bf{x}} - {{\bf{x}}_1} = \left( {\begin{aligned}{*{20}{c}}{.0171}\\{.4858}\\{ - .2360}\\{.2456}\end{aligned}} \right) \times {10^{ - 12}}\)

Thus, the solution has approximately 12 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 91影视!

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

Explain why a set \(\left\{ {{{\mathop{\rm v}\nolimits} _1},{{\mathop{\rm v}\nolimits} _2},{{\mathop{\rm v}\nolimits} _3},{{\mathop{\rm v}\nolimits} _4}} \right\}\) in \({\mathbb{R}^5}\) must be linearly independent when \(\left\{ {{{\mathop{\rm v}\nolimits} _1},{{\mathop{\rm v}\nolimits} _2},{{\mathop{\rm v}\nolimits} _3}} \right\}\) is linearly independent and \({{\mathop{\rm v}\nolimits} _4}\) is not in Span \(\left\{ {{{\mathop{\rm v}\nolimits} _1},{{\mathop{\rm v}\nolimits} _2},{{\mathop{\rm v}\nolimits} _3}} \right\}\).

Let \(T:{\mathbb{R}^n} \to {\mathbb{R}^n}\) be an invertible linear transformation, and let Sand U be functions from \({\mathbb{R}^n}\) into \({\mathbb{R}^n}\) such that \(S\left( {T\left( {\mathop{\rm x}\nolimits} \right)} \right) = {\mathop{\rm x}\nolimits} \) and \(\)\(U\left( {T\left( {\mathop{\rm x}\nolimits} \right)} \right) = {\mathop{\rm x}\nolimits} \) for all x in \({\mathbb{R}^n}\). Show that \(U\left( v \right) = S\left( v \right)\) for all v in \({\mathbb{R}^n}\). This will show that Thas a unique inverse, as asserted in theorem 9. (Hint: Given any v in \({\mathbb{R}^n}\), we can write \({\mathop{\rm v}\nolimits} = T\left( {\mathop{\rm x}\nolimits} \right)\) for some x. Why? Compute \(S\left( {\mathop{\rm v}\nolimits} \right)\) and \(U\left( {\mathop{\rm v}\nolimits} \right)\)).

The solutions \(\left( {x,y,z} \right)\) of a single linear equation \(ax + by + cz = d\)

form a plane in \({\mathbb{R}^3}\) when a, b, and c are not all zero. Construct sets of three linear equations whose graphs (a) intersect in a single line, (b) intersect in a single point, and (c) have no points in common. Typical graphs are illustrated in the figure.

Three planes intersecting in a line.

(a)

Three planes intersecting in a point.

(b)

Three planes with no intersection.

(c)

Three planes with no intersection.

(肠鈥)

Suppose the system below is consistent for all possible values of \(f\) and \(g\). What can you say about the coefficients \(c\) and \(d\)? Justify your answer.

27. \(\begin{array}{l}{x_1} + 3{x_2} = f\\c{x_1} + d{x_2} = g\end{array}\)

In Exercises 23 and 24, key statements from this section are either quoted directly, restated slightly (but still true), or altered in some way that makes them false in some cases. Mark each statement True or False, and justify your answer. (If true, give the approximate location where a similar statement appears, or refer to a de铿乶ition or theorem. If false, give the location of a statement that has been quoted or used incorrectly, or cite an example that shows the statement is not true in all cases.) Similar true/false questions will appear in many sections of the text.

23.

a. Every elementary row operation is reversible.

b. A \(5 \times 6\)matrix has six rows.

c. The solution set of a linear system involving variables \({x_1},\,{x_2},\,{x_3},........,{x_n}\)is a list of numbers \(\left( {{s_1},\, {s_2},\,{s_3},........,{s_n}} \right)\) that makes each equation in the system a true statement when the values \ ({s_1},\, {s_2},\, {s_3},........,{s_n}\) are substituted for \({x_1},\,{x_2},\,{x_3},........,{x_n}\), respectively.

d. Two fundamental questions about a linear system involve existence and uniqueness.

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.