Q. 22

Question

Suppose you wish to find a root of f(x)=x3+x2+x+1 in the interval [−3, 2]. Compare the accuracy of Newton’s method as applied in Example 8 with the accuracy of the Bisection Method used in Exercise 80 of Section 1.4 for the same function. Which method gets closest to the root in three iterations? 

Step-by-Step Solution

Verified
Answer

Newton's method gets closest to the root in 3 iterations. 

1Step 1. Given information.

We have been given that the root of the function f(x)=x3+x2+x+1 is to be found in the interval [−3, 2].

We have to compare the accuracy of Newton’s method as applied in Example 8 with the accuracy of the Bisection Method used in Exercise 80 of Section 1.4 for the same function. Which method gets closest to the root in three iterations? 

2Step 2. Newton's method to approximate the roots

Initial guess is x0,fx0=(0,1)

Find the derivative

f(x)=3x2+2x+1

at x0=0

f(3)=3(0)2+2(0)+1=3(0)+2(0)+1=1

Find the tangent line to the curve,

y1=1(x0)y1=xy=x+1

Thus, the root of the tangent line is :

x=-1

3Step 3. Find the derivative for the new guess.

New guess is :

x1,fx1=(1,0)

Find the derivative

f(x)=3x2+2x+1

at x0=0

f(1)=3(1)2+2(1)+1=3(1)+2(1)+1=4

Find the tangent line to the curve,

y0=4(x+1)y=4x4

The root of the tangent line is :

x=-1

4Step 4. repeating the process

New guess is :

x2,fx2=(1,0)

Find the derivative :

f(x)=3x2+2x+1

at x0=0

f(1)=3(1)2+2(1)+1=3(1)+2(1)+1=4

Find the tangent line to the curve,

y0=4(x+1)y=4x4

The root of the tangent line is :

x=-1

Thus, the second and third approximations are equal.

5Step 5. Using bisection method

f(x)=x3+x2+x+1a=3    f(3)=20<0b=2    f(2)=15>0

iteration 1,

m=a+b2=3+22=12=0.5f(m)=123+122+12+1=58>0

because f(m)>0, replace b with m,

a=3    f(3)=20<0b=12    f12=58>0

6Step 6. Using the bisection method (iteration 2).

Iteration 2,

m=a+b2=3122=74=1.75f(m)=743+742+74+1=58>0

Thus, the newton's method get closest to the root in 3 iterations.