Bisection method:
Thus, with the seventh iteration, we note that the final interval, [1.7266, 1.7344], has
a width less than 0.01 and |f(1.7344)| < 0.01, and therefore we chose b = 1.7344 to
be our approximation of the root.
Find a real root of the equation -4x + cos x + 2 = 0, by Newton Raphson method up to four decimal
places, assuming x0 = 0.5
Given equation: -4x + cos x + 2 = 0
Let f(x) = -4x + cos x + 2
f’(x) = -4 – sin x
Now,
f(0) = -4(0) + cos 0 + 2 = 1 + 2 = 3 > 0
f(1) = -4(1) + cos 1 + 2 = -4 + 0.5403 + 2 = -1.4597 < 0
Thus, a root lies between 0 and 1.
Let us find the first approximation.
x1 = x0 – f(x0)/f’(x0)
= 0.5 – [-4(0.5) + cos 0.5 + 2]/ [-4 – sin 0.5]
= 0.5 – [(-2 + 2 + cos 0.5)/ (-4 – sin 0.5)]
= 0.5 – [cos 0.5/ (-4 – sin 0.5)]
= 0.5 – [0.8775/ (-4 – 0.4794)]
= 0.5 – (0.8775/-4.4794)
= 0.5 + 0.1958
= 0. 6958
Where is the Newton Raphson method used?
Newton Raphson method is an efficient technique to solve the equations numerically. It gives us
better approximations in terms of solutions.