Question

In: Computer Science

A. Consider the function ?(?)=?3−?−1f(x)=x3−x−1. What is the value of x after the third iteration of...

A. Consider the function ?(?)=?3−?−1f(x)=x3−x−1. What is the value of x after the third iteration of the Secant Method if starting guess values are 1 and 2.

Select one:

a. 1.3372

b. 1.3285

c. 1.3230

d. 1.3229

e. 0.0

B. find the value of x at the third iteration using Newton’s Method. Starting value x=1.

Solutions

Expert Solution

a) option a) 1.3372

Secant Method

f(x) = x3 - x - 1

x0 = 1 and x1 = 2

First iteration:

x2 =( x0*f1 - f0*x1) / (f1 - f0)

f0 = -1

f1 = 5

x2 = 1.16667

---------------------

Second iteration:
x1 = 2 and x2 = 1.16667
Also f1 = 5 and f2 = -0.578704
x3 = 1.25311

--------------------

Third iteration:
x2 = 1.16667 and x3 = 1.25311
Also f2 = -0.578704 and f3 = -0.285363
x4 = 1.33721

So value after third iteration is 1.3372.

=================================================================================

=================================================================================

B)

f(x) = x^3 - x - 1

initially x0 = 1

Using newton method

x1 = x0 - f(x0)/f'(x0)

f'(x) = derivate of f(x) = 3x2 - 1

----------------

First iteration:

x1 = 1 - [ (-1)/(2)]

x1 = 1.5

-----------------

second iteration:

x2 = 1.34783

------------------

third iteration:

x3 = 1.3252

------------------

So value after three iteration is 1.3252

======================================================

Please upvote.


Related Solutions

For this problem, consider the function f(x) = x3 - 9x2 +15x + 3.
  For this problem, consider the function f(x) = x3 - 9x2 +15x + 3. A. Determine the intervals on which f(x) is increasing and intervals on which f(x) is decreasing. B. Determine all relative (local) extrema of f(x). C. Determine intervals on which f(x) is concave up and intervals on which f(x) is concave down. D. Determine all inflection points of f(x).
consider the function f(x) = 1 + x3  e-.3x a. what is f'(x) b. what is f''(x)...
consider the function f(x) = 1 + x3  e-.3x a. what is f'(x) b. what is f''(x) c. what are the critical points of f(x) d. are the critical points a local min or local max or neither? e. find the inflection points f. if we define f(x) to have the domain of [2,50] compute the global extreme of f(x) on that interval
Consider the function f(x)=A(1+x/3) for –1 < x < 1. Find the value of A that...
Consider the function f(x)=A(1+x/3) for –1 < x < 1. Find the value of A that makes this function a pdf. Find the probability that X<1/2. Find the cdf of X. Use the cdf to find the probability that X > -1/2.
Consider the function f(x)= x3 x2 − 1 Express the domain of the function in interval...
Consider the function f(x)= x3 x2 − 1 Express the domain of the function in interval notation: Find the y-intercept: y=   . Find all the x-intercepts (enter your answer as a comma-separated list): x=   . On which intervals is the function positive?   On which intervals is the function negative?   Does f have any symmetries? f is even;f is odd;     f is periodic;None of the above. Find all the asymptotes of f (enter your answers as equations): Vertical asymptote (left):   ; Vertical...
1. The function f(x, y) = ln(x3 + 2) / (y2 + 3) (this function is...
1. The function f(x, y) = ln(x3 + 2) / (y2 + 3) (this function is of a fraction format) : a. has a stationary point at (1, 0) b. has a stationary point at (0, 0) c. has a stationary point at (0, 1) d. has no stationary points 2. Which of the following functions don’t have unit elasticity at P = 6? a. Demand: Qd = 24 - 2 P b. Demand: Qd = 10/P c. Demand: log...
Consider the function and the value of a. f(x) = −2 x − 1 , a...
Consider the function and the value of a. f(x) = −2 x − 1 , a = 9. (a) Use mtan = lim h→0 f(a + h) − f(a) h to find the slope of the tangent line mtan = f '(a). mtan =   (b)Find the equation of the tangent line to f at x = a. (Let x be the independent variable and y be the dependent variable.)   
1.Consider the function: f(x, y) = 2020 + y3-3xy + x3. a) Find fx(x, y), and...
1.Consider the function: f(x, y) = 2020 + y3-3xy + x3. a) Find fx(x, y), and fye(x, y). b) Find all critical points of f(x, y). c) Classify the critical points of f(x, y) (as local max, local min, saddle). 2.Consider f(x) = 2x-x2and g(x) = x2 a) [2 points] Find the intersection points (if any) of the graphs of f(x) and g(x). b) [4 points] Graph the functions f(x) and g(x), and shade the region bounded by: f(x), g(x),...
1. What is value of X after following operation int X=0x 45; X = X<<3 ;...
1. What is value of X after following operation int X=0x 45; X = X<<3 ; X= What is value of X after following operation int x=0x 40; X = X>>3 ; X= What is value of X after following operation int x=0X FF; X = X & 0x0F; X= What is value of X after following operation int x=0x FF; X = ~X ; X= What is value of X after following operation int X=0x FF; X = X...
Find the derivative of the following function. Do not use limits. f(x)=x5+(x3/3)-5x2+2x-3. Then, calculate the value...
Find the derivative of the following function. Do not use limits. f(x)=x5+(x3/3)-5x2+2x-3. Then, calculate the value of that derivative at x=1.
3. Given is the function f : Df → R with F(x1, x2, x3) = x...
3. Given is the function f : Df → R with F(x1, x2, x3) = x 2 1 + 2x 2 2 + x 3 3 + x1 x3 − x2 + x2 √ x3 . (a) Determine the gradient of function F at the point x 0 = (x 0 1 , x0 2 , x0 3 ) = (8, 2, 4). (b) Determine the directional derivative of function F at the point x 0 in the direction given...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT