Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
52 views4 pages

Week 2

The document discusses using the bisection method and Newton Raphson method to find real roots of equations. It provides an example of using the bisection method to find the root of an equation within 0.01 accuracy after 7 iterations. It then gives the steps to use Newton Raphson method to find a root of the equation -4x + cos x + 2 = 0 to 4 decimal places, starting with an initial value of 0.5.

Uploaded by

Manave R
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views4 pages

Week 2

The document discusses using the bisection method and Newton Raphson method to find real roots of equations. It provides an example of using the bisection method to find the root of an equation within 0.01 accuracy after 7 iterations. It then gives the steps to use Newton Raphson method to find a root of the equation -4x + cos x + 2 = 0 to 4 decimal places, starting with an initial value of 0.5.

Uploaded by

Manave R
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

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.

You might also like