Newton Raphson

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 7

Mahidlawon, Jane O.

BSIE 2-5

NEWTON-RAPHSON METHOD

1. The equation y3 − 2y − 5 = 0 has a root near y = 2. Starting with y 0 = 2, compute y1, y2, y3, the next
three Newton-Raphson estimates for the root.

f(y)= y3-2y-5 f(xi)


xi+1 = xi -
f'(y)= 3y2-2 f'(xi)

i y f(y) f'(y) rel error


0 2 -1 10
1 2.1 0.061 11.23 0.047619
2 2.094568 0.000186 11.16165 0.002593
3 2.094551 1.74E-09 11.16144 7.944E-06

GRAPH

2. Find the rooot of the function f(x)= e 2x-x-6, correct to four decimal places, use the Newton
Raphson method.
f(x) = e2x-x-6 f(xi)
xi+1 = xi -
f'(x) = 2e2x-1 f'(xi)

i x f(x) f'(x) rel error


0 1 0.389056 13.77811
1 0.971763 0.011564 12.96665 0.029058
2 0.970871 1.11E-05 12.94176 0.000919
3 0.97087 1.026E-11 12.94174 8.836E-07
4 0.97087 0 12.94174 8.167E-13
5 0.97087 0 12.94174 0
6 0.97087 0 12.94174 0
7 0.97087 0 12.94174 0

GRAPH

Root is 0.97087

3. Find the root of the function f(x)= 5x+lnx-10000, correct to four decimal places , use the newton
raphson method.

f(x)= 5x+lnx-10000 f(xi)


xi+1 = xi -
xi+1 = xi -
f'(x)= 1/x+5 f'(xi)

i x f(x) f'(x) rel error


0 1 -9995 6
1 1666.833 -1658.415 5.0006 0.9994
2 1998.476 -0.017506 5.0005 0.165948
3 1998.48 0 5.0005 1.752E-06
4 1998.48 0 5.0005 0

GRAPH

Root is 1998.48

4. A devotee of Newton-Raphson method used the method to solve the equation X 100=0, using
the initial estimate x0=0.1. Calculate the next five Newton Method estimates.

f(xi)
xi+1 = xi -
f'(xi)
f(x)= x100
f'(x)= 100x99

i x f(x) f'(x) rel error


0 0.1 1E-100 1E-97
1 0.099 1E-100 1E-97 0.010101
2 0.098 1E-100 1E-97 0.010204
3 0.097 1E-100 1E-97 0.010309
4 0.096 1E-100 1E-97 0.010417
5 0.095 1E-100 1E-97 0.010526

GRAPH

5. Find the non-zero root of the equation x 2-sinx using newton's method, set the initial guess at
0.5.

f(xi)
xi+1 = xi -
f'(xi)
f(x)= x2-sinx
f'(x)= 2x-cos x

i x f(x) f'(x) rel error


0 0.5 -0.229426 0.122417
1 2.374125 4.942153 5.46792 0.789396
2 1.47028 1.16677 2.840212 0.614744
3 1.059476 0.25039 1.629622 0.387742
4 0.905827 0.033587 1.194618 0.169623
5 0.877712 0.001099 1.116511 0.032032
6 0.876727 1.342E-06 1.113785 0.001123
7 0.876726 2.009E-12 1.113781 1.374E-06
8 0.876726 0 1.113781 2.058E-12
9 0.876726 0 1.113781 0
10 0.876726 0 1.113781 0

GRAPH
6. Find the root of a function f(x)= x 5-x3+2x2-1. The initial guess is at x1=1. Approximate the root to
five decimal places.

f(xi)
xi+1 = xi -
f'(xi)

f(x)= x5-x3+2x2-1
f'(x)= 5x4-3x2+4x

i x f(x) f'(x) rel error


1 1 1 6
2 0.833333 0.212063 3.661265 0.2
3 0.775413 0.016628 3.105453 0.074697
4 0.770058 0.000124 3.059448 0.006953
5 0.770018 6.941E-09 3.059104 5.244E-05
6 0.770018 0 3.059104 2.947E-09
7 0.770018 0 3.059104 0

GRAPH

7. Find the root of a function f(x)= arc tan x-x+1. The initial guess is at x 1=2. Approximate the root
to five decimal places.
f(xi)
xi+1 = xi -
f'(xi)

f(x)= arctan x -x +1
f'(x)= - x2
x2+1

i x f(x) f'(x)
1 2 0.107149 -0.011351
2 11.43997 -8.956366 -0.987687
3 2.371953 -0.200138 -0.038513
4 -2.824732 2.594184 -0.87063
5 0.154929 0.998778 -0.499389
6 2.154931 -0.018612 -0.000346

GRAPH

You might also like