Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 5, Problem 3P

Determine the real root of f ( x ) = 25 + 82 x 90 x 2 + 44 x 3 8 x 4 + 0.7 x 5 :

(a) Graphically.

(b) Using bisection to determine the root to ε s = 10 % . Employ initial guesses of x l = 0.5 and  x u = 1.0 .

(c) Perform the same computation as in (b) but use the false-position method and ε s = 0.2 % .

(a)

Expert Solution
Check Mark
To determine

The real roots of the equation f(x)=25+82x90x2+44x38x4+0.7x5 using the graphical method.

Answer to Problem 3P

Solution:

The approximate real root of the equation is 0.6.

Explanation of Solution

Given Information:

The equation f(x)=25+82x90x2+44x38x4+0.7x5.

Calculation:

The graph of the function can be plotted using MATLAB.

Code:

% (a)

clc;

x=linspace(-1,1);

y1=0.7*x.^58*x.^4+44*x.^390*x.^2+82*x25;

y2=0;

plot(x,y1);

hold on

line([-1,1],[y2,y2])

Output:

This gives the following plot:

Numerical Methods for Engineers, Chapter 5, Problem 3P

The roots of an equation can be represented graphically by the x-coordinate of the point where the graph cuts the x-axis. From the plot, the only zeros of the equation can be approximated as 0.6.

(b)

To calculate: The root of the equation f(x)=25+82x90x2+44x38x4+0.7x5 using the bisection method by assuming xl and xu to be 0.5 and 1 respectively with the stopping criteria being the iteration where εs falls below 10%.

Solution:

The root of the equation can be approximated as 0.59375.

Given Information:

The equation f(x)=25+82x90x2+44x38x4+0.7x5.

Formula Used:

A root of an equation can be obtained using the bisection method as follows:

1. Choose 2 values x, say a andb such that f(a)f(b)<0.

2. Now, estimate the root by x1=a+b2.

3. If, f(a)f(x1)<0, the root would lie between a and x1. Now assume the next root to be x2=a+x12. If, f(a)f(x1)>0, the root would lie between b and x1. Now assume the next root to be x2=b+x12 and if f(a)f(x1)=0, the root is x1.

Calculation:

For the provided function:

f(0.5)=25+82(0.5)90(0.5)2+44(0.5)38(0.5)4+0.7(0.5)5=1.47812f(1)=25+82(1)90(1)2+44(1)38(1)4+0.7(1)5=3.7

Hence,

f(0.5)f(1)<0

Now take the first root to be,

x1=0.5+12=0.75

Now,

f(0.75)=25+82(0.75)90(0.75)2+44(0.75)38(0.75)4+0.7(0.75)5=2.07236

Thus, f(0.5)f(0.75)<0. This implies that the root would be between 0.5 and 0.75.

Now, the second root would be:

x2=0.5+0.752=0.625

The approximate error can be computed as:

εa=(|0.6250.750.625|×100)%=20%

The approximate relative percentage error is 200%.

Now,

f(0.625)=25+82(0.625)90(0.625)2+44(0.625)38(0.625)4+0.7(0.625)5=0.68199

Thus, f(0.5)f(0.625)<0. This implies that the root would be between 0.5 and 0.625.

Now, the third root would be:

x3=0.5+0.6252=0.5625

The approximate error can be computed as:

εa=(|0.56250.6250.5625|×100)%=11.1%

The approximate error is 11.1%.

Now,

f(0.5625)=25+82(0.5625)90(0.5625)2+44(0.5625)38(0.5625)4+0.7(0.5625)5=0.28199

Thus, f(0.5625)f(0.625)<0. This implies that the root would be between 0.375 and 0.625.

Now, the fourth root would be:

x4=0.5625+0.6252=0.59375

The approximate error can be computed as:

εa=(|0.593750.56250.59375|×100)%=5.26%

The approximate error is 5.26%.

As εa is less than 10%, the process is stopped and root can be approximated as 0.59375.

(c)

To calculate: The root of the equation f(x)=25+82x90x2+44x38x4+0.7x5 using the false-position method by assuming xl and xu to be 0.5 and 1 respectively with the stopping criteria being the iteration where εs falls below 0.2%.

Solution:

The root of the equation can be approximated as 0.57956.

Given Information:

The equation f(x)=25+82x90x2+44x38x4+0.7x5.

Formula Used:

A root of an equation can be obtained using the false-position method as follows:

1. Choose 2 values x, say a andb such that f(a)f(b)<0.

2. Now, estimate the root by x1=bf(b)(ab)f(a)f(b).

3. If, f(a)f(x1)<0, the root would lie between a and x1. Now assume the next root to be x2=x1f(x1)(ax1)f(a)f(x1). If, f(a)f(x1)>0, the root would lie between x1 and b Now assume the next root to be x2=bf(b)(x1b)f(xi)f(b) and if f(a)f(x1)=0, the root is x1.

Calculation:

For the provided function:

f(0.5)=25+82(0.5)90(0.5)2+44(0.5)38(0.5)4+0.7(0.5)5=1.47812f(1)=25+82(1)90(1)2+44(1)38(1)4+0.7(1)5=3.7

Hence,

f(0.5)f(1)<0

Now take the first root to be,

x1=0.5(1.47812)(0.51)1.478123.7=0.64273

Now,

f(0.64273)=25+82(0.64273)90(0.64273)2+44(0.64273)38(0.64273)4+0.7(0.64273)5=0.91879

Thus, f(0.5)f(0.6473)<0. This implies that the root would be between 0.5 and 0.64273.

Now, the second root would be:

x2=0.5(1.47812)(0.50.64273)1.478120.91879=0.58802

The approximate error can be computed as:

εa=(|0.588020.642730.58802|×100)%=9.4%

The approximate relative percentage error is 200%.

Now,

f(0.58802)=25+82(0.58802)90(0.58802)2+44(0.58802)38(0.58802)4+0.7(0.58802)5=0.13729

Thus, f(0.5)f(0.58802)<0. This implies that the root would be between 0.5 and 0.58802.

Now, the third root would be:

x3=0.5(1.47812)(0.50.58802)1.478120.13729=0.58054

The approximate error can be computed as:

εa=(|0.580540.588020.58054|×100)%=1.29%

The approximate error is 1.29%.

Now,

f(0.58054)=25+82(0.58054)90(0.58054)2+44(0.58054)38(0.58054)4+0.7(0.58054)5=0.01822

Thus, f(0.5)f(0.58054)<0. This implies that the root would be between 0.5 and 0.58054.

Now, the fourth root would be:

x4=0.5(1.47812)(0.50.58054)1.478120.01822=0.57956

The approximate error can be computed as:

εa=(|0.576560.580540.57956|×100)%=0.17%

The approximate error is 0.17%.

As εa is less than 0.2%, the process is stopped and root can be approximated as 0.57956.

(b)

Expert Solution
Check Mark
To determine

To calculate: The root of the equation f(x)=25+82x90x2+44x38x4+0.7x5 using the bisection method by assuming xl and xu to be 0.5 and 1 respectively with the stopping criteria being the iteration where εs falls below 10%.

Answer to Problem 3P

Solution:

The root of the equation can be approximated as 0.59375.

Explanation of Solution

Given Information:

The equation f(x)=25+82x90x2+44x38x4+0.7x5.

Formula Used:

A root of an equation can be obtained using the bisection method as follows:

1. Choose 2 values x, say a andb such that f(a)f(b)<0.

2. Now, estimate the root by x1=a+b2.

3. If, f(a)f(x1)<0, the root would lie between a and x1. Now assume the next root to be x2=a+x12. If, f(a)f(x1)>0, the root would lie between b and x1. Now assume the next root to be x2=b+x12 and if f(a)f(x1)=0, the root is x1.

Calculation:

For the provided function:

f(0.5)=25+82(0.5)90(0.5)2+44(0.5)38(0.5)4+0.7(0.5)5=1.47812f(1)=25+82(1)90(1)2+44(1)38(1)4+0.7(1)5=3.7

Hence,

f(0.5)f(1)<0

Now take the first root to be,

x1=0.5+12=0.75

Now,

f(0.75)=25+82(0.75)90(0.75)2+44(0.75)38(0.75)4+0.7(0.75)5=2.07236

Thus, f(0.5)f(0.75)<0. This implies that the root would be between 0.5 and 0.75.

Now, the second root would be:

x2=0.5+0.752=0.625

The approximate error can be computed as:

εa=(|0.6250.750.625|×100)%=20%

The approximate relative percentage error is 200%.

Now,

f(0.625)=25+82(0.625)90(0.625)2+44(0.625)38(0.625)4+0.7(0.625)5=0.68199

Thus, f(0.5)f(0.625)<0. This implies that the root would be between 0.5 and 0.625.

Now, the third root would be:

x3=0.5+0.6252=0.5625

The approximate error can be computed as:

εa=(|0.56250.6250.5625|×100)%=11.1%

The approximate error is 11.1%.

Now,

f(0.5625)=25+82(0.5625)90(0.5625)2+44(0.5625)38(0.5625)4+0.7(0.5625)5=0.28199

Thus, f(0.5625)f(0.625)<0. This implies that the root would be between 0.375 and 0.625.

Now, the fourth root would be:

x4=0.5625+0.6252=0.59375

The approximate error can be computed as:

εa=(|0.593750.56250.59375|×100)%=5.26%

The approximate error is 5.26%.

As εa is less than 10%, the process is stopped and root can be approximated as 0.59375.

(c)

To calculate: The root of the equation f(x)=25+82x90x2+44x38x4+0.7x5 using the false-position method by assuming xl and xu to be 0.5 and 1 respectively with the stopping criteria being the iteration where εs falls below 0.2%.

Solution:

The root of the equation can be approximated as 0.57956.

Given Information:

The equation f(x)=25+82x90x2+44x38x4+0.7x5.

Formula Used:

A root of an equation can be obtained using the false-position method as follows:

1. Choose 2 values x, say a andb such that f(a)f(b)<0.

2. Now, estimate the root by x1=bf(b)(ab)f(a)f(b).

3. If, f(a)f(x1)<0, the root would lie between a and x1. Now assume the next root to be x2=x1f(x1)(ax1)f(a)f(x1). If, f(a)f(x1)>0, the root would lie between x1 and b Now assume the next root to be x2=bf(b)(x1b)f(xi)f(b) and if f(a)f(x1)=0, the root is x1.

Calculation:

For the provided function:

f(0.5)=25+82(0.5)90(0.5)2+44(0.5)38(0.5)4+0.7(0.5)5=1.47812f(1)=25+82(1)90(1)2+44(1)38(1)4+0.7(1)5=3.7

Hence,

f(0.5)f(1)<0

Now take the first root to be,

x1=0.5(1.47812)(0.51)1.478123.7=0.64273

Now,

f(0.64273)=25+82(0.64273)90(0.64273)2+44(0.64273)38(0.64273)4+0.7(0.64273)5=0.91879

Thus, f(0.5)f(0.6473)<0. This implies that the root would be between 0.5 and 0.64273.

Now, the second root would be:

x2=0.5(1.47812)(0.50.64273)1.478120.91879=0.58802

The approximate error can be computed as:

εa=(|0.588020.642730.58802|×100)%=9.4%

The approximate relative percentage error is 200%.

Now,

f(0.58802)=25+82(0.58802)90(0.58802)2+44(0.58802)38(0.58802)4+0.7(0.58802)5=0.13729

Thus, f(0.5)f(0.58802)<0. This implies that the root would be between 0.5 and 0.58802.

Now, the third root would be:

x3=0.5(1.47812)(0.50.58802)1.478120.13729=0.58054

The approximate error can be computed as:

εa=(|0.580540.588020.58054|×100)%=1.29%

The approximate error is 1.29%.

Now,

f(0.58054)=25+82(0.58054)90(0.58054)2+44(0.58054)38(0.58054)4+0.7(0.58054)5=0.01822

Thus, f(0.5)f(0.58054)<0. This implies that the root would be between 0.5 and 0.58054.

Now, the fourth root would be:

x4=0.5(1.47812)(0.50.58054)1.478120.01822=0.57956

The approximate error can be computed as:

εa=(|0.576560.580540.57956|×100)%=0.17%

The approximate error is 0.17%.

As εa is less than 0.2%, the process is stopped and root can be approximated as 0.57956.

(c)

Expert Solution
Check Mark
To determine

To calculate: The root of the equation f(x)=25+82x90x2+44x38x4+0.7x5 using the false-position method by assuming xl and xu to be 0.5 and 1 respectively with the stopping criteria being the iteration where εs falls below 0.2%.

Answer to Problem 3P

Solution:

The root of the equation can be approximated as 0.57956.

Explanation of Solution

Given Information:

The equation f(x)=25+82x90x2+44x38x4+0.7x5.

Formula Used:

A root of an equation can be obtained using the false-position method as follows:

1. Choose 2 values x, say a andb such that f(a)f(b)<0.

2. Now, estimate the root by x1=bf(b)(ab)f(a)f(b).

3. If, f(a)f(x1)<0, the root would lie between a and x1. Now assume the next root to be x2=x1f(x1)(ax1)f(a)f(x1). If, f(a)f(x1)>0, the root would lie between x1 and b Now assume the next root to be x2=bf(b)(x1b)f(xi)f(b) and if f(a)f(x1)=0, the root is x1.

Calculation:

For the provided function:

f(0.5)=25+82(0.5)90(0.5)2+44(0.5)38(0.5)4+0.7(0.5)5=1.47812f(1)=25+82(1)90(1)2+44(1)38(1)4+0.7(1)5=3.7

Hence,

f(0.5)f(1)<0

Now take the first root to be,

x1=0.5(1.47812)(0.51)1.478123.7=0.64273

Now,

f(0.64273)=25+82(0.64273)90(0.64273)2+44(0.64273)38(0.64273)4+0.7(0.64273)5=0.91879

Thus, f(0.5)f(0.6473)<0. This implies that the root would be between 0.5 and 0.64273.

Now, the second root would be:

x2=0.5(1.47812)(0.50.64273)1.478120.91879=0.58802

The approximate error can be computed as:

εa=(|0.588020.642730.58802|×100)%=9.4%

The approximate relative percentage error is 200%.

Now,

f(0.58802)=25+82(0.58802)90(0.58802)2+44(0.58802)38(0.58802)4+0.7(0.58802)5=0.13729

Thus, f(0.5)f(0.58802)<0. This implies that the root would be between 0.5 and 0.58802.

Now, the third root would be:

x3=0.5(1.47812)(0.50.58802)1.478120.13729=0.58054

The approximate error can be computed as:

εa=(|0.580540.588020.58054|×100)%=1.29%

The approximate error is 1.29%.

Now,

f(0.58054)=25+82(0.58054)90(0.58054)2+44(0.58054)38(0.58054)4+0.7(0.58054)5=0.01822

Thus, f(0.5)f(0.58054)<0. This implies that the root would be between 0.5 and 0.58054.

Now, the fourth root would be:

x4=0.5(1.47812)(0.50.58054)1.478120.01822=0.57956

The approximate error can be computed as:

εa=(|0.576560.580540.57956|×100)%=0.17%

The approximate error is 0.17%.

As εa is less than 0.2%, the process is stopped and root can be approximated as 0.57956.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
4. 5. 6. Prove that p (gp) is a tautology using the laws of propositional logic. Prove that p((pVq) → q) is a tautology using the laws of propositional logic. Let us say a natural number n is ok if there are two natural numbers whose sum is n and whose product is n. (Convention: the natural numbers consist of 0, 1, 2,...) (a) Give a logical expression that means "n is ok". (b) Show that 0 and 4 are both ok. (c) Give a logical expression that means "every natural number is ok". (d) Give a logical expression that means "it is not the case that every number is ok". Push the negations into the expression as far as possible.
7. Let E(x, y) be a two-variable predicate meaning "x likes to eat y", where the domain of x is people and the domain of y is foods. Write logical expressions that represent the following English propositions: (a) Alice doesn't like to eat pizza. (b) Everybody likes to eat at least one food. (c) Every student likes to eat at least one food other than pizza. (d) Everyone other than Alice likes to eat at least two different foods. (e) There are two different people that like to eat the same food.
Show all steps. Correct answer is 1/2sec(theta) +Ccos(theta)

Chapter 5 Solutions

Numerical Methods for Engineers

Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
College Algebra
Algebra
ISBN:9781938168383
Author:Jay Abramson
Publisher:OpenStax
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
College Algebra
Algebra
ISBN:9781337282291
Author:Ron Larson
Publisher:Cengage Learning
Text book image
Functions and Change: A Modeling Approach to Coll...
Algebra
ISBN:9781337111348
Author:Bruce Crauder, Benny Evans, Alan Noell
Publisher:Cengage Learning
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Text book image
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Limits and Continuity; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=9brk313DjV8;License: Standard YouTube License, CC-BY