Question

In: Computer Science

Using the bisection method, find the root of the following function: f(x)=cos(2x) - x Use the...

Using the bisection method, find the root of the following function:

f(x)=cos(2x) - x

Use the following initial values: xl=0 and xu=2
NOTE: Perform only 3 iterations.

Solutions

Expert Solution

Find a root of an equation f(x)=cos(2x)-x between 0 and 2, using Bisection method

Solution:
Here cos(2x)-x=0

Let f(x)=cos(2x)-x

Here

x 0 1 2
f(x) 1 -1.4161 -2.6536



Here f(0)=1>0 and f(1)=-1.4161<0

∴ Root lies between 0 and 1


1st iteration :

Here f(0)=1>0 and f(1)=-1.4161<0

∴ Now, Root lies between 0 and 1

x0=0+12=0.5

f(x0)=f(0.5)=cos(1)-0.5=0.0403>0


2nd iteration :

Here f(0.5)=0.0403>0 and f(1)=-1.4161<0

∴ Now, Root lies between 0.5 and 1

x1=0.5+12=0.75

f(x1)=f(0.75)=cos(1.5)-0.75=-0.6793<0


3rd iteration :

Here f(0.5)=0.0403>0 and f(0.75)=-0.6793<0

∴ Now, Root lies between 0.5 and 0.75

x2=0.5+0.752=0.625

f(x2)=f(0.625)=cos(1.25)-0.625=-0.3097<0


Related Solutions

Use the secant Method to find a root for the function: f(x) = x^3 + 2x^2...
Use the secant Method to find a root for the function: f(x) = x^3 + 2x^2 + 10x -20, with x_0 = 2, and x_1 = 1.
Use the False Position method to find a guess of the root of f(x) = cos(x2...
Use the False Position method to find a guess of the root of f(x) = cos(x2 ) with lower and upper bounds of 0 and 2, respectively. Then, narrow the interval and find a new guess of the root using False Position. What is your relative approximate error? a. 8.47% answer b. 12.45% c. 0.112 d. 0.243 e. None of the above Please provide complete solution how the answer is a thumbs up for correct and neat solution! step by...
USING BISECTION METHOD, FIND THE ROOT OF 0.5e^x - 5x + 2 = 0 ON THE...
USING BISECTION METHOD, FIND THE ROOT OF 0.5e^x - 5x + 2 = 0 ON THE INTERVAL [ 0 , 1 ] UP TO 3 DECIMAL PLACES. USE NEWTON'S METHOD TO APPROXIMATE THE ROOT OF f(x)=x^2-5    IN THE INTERVAL  [ 2 , 3 ] UP TO 4 DECIMAL PLACES.
Use the bisection method to approximate the root of f(x)=x-cosx in the range [0.0,1.5]. Stop when...
Use the bisection method to approximate the root of f(x)=x-cosx in the range [0.0,1.5]. Stop when the error is less than 0.002%
Use Newton's method to find the absolute maximum value of the function f(x) = 3x cos(x),...
Use Newton's method to find the absolute maximum value of the function f(x) = 3x cos(x), 0 ≤ x ≤ π; correct to six decimal places.
Use f(x) = ?2x, g(x) = square root of x and h(x) = |x| to find...
Use f(x) = ?2x, g(x) = square root of x and h(x) = |x| to find and simplify expressions for the following functions and state the domain of each using interval notation. a . (h ? g ? f)(x) b. (h ? f ? g)(x) (g ? f ? h)(x)
Consider the root of function f(x) = x 3 − 2x − 5. The function can...
Consider the root of function f(x) = x 3 − 2x − 5. The function can be rearranged in the form x = g(x) in the following three ways: (a) x = g(x) = x3 − x − 5 (b) x = g(x) = (x 3 − 5)/2 (c) x = g(x) = thirdroot(2x + 5) For each form, apply fixed-point method with an initial guess x0 = 0.5 to approximate the root. Use the error tolerance = 10-5 to...
Use the Fixed-Point Iteration Method to find the root of f ( x ) = x...
Use the Fixed-Point Iteration Method to find the root of f ( x ) = x e^x/2 + 1.2 x - 5 in the interval [1,2].
use bisection to find the real root x = sin(x) + 1 with the initial guesses...
use bisection to find the real root x = sin(x) + 1 with the initial guesses of x l = 0 and x u = 3. perform the computation until the approximate error falls below 5%
Find the root of the function f(x) = 8 - 4.5 ( x - sin x...
Find the root of the function f(x) = 8 - 4.5 ( x - sin x ) in the interval [2,3]. Exhibit a numerical solution using Newton method.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT