You are on page 1of 14

Methods to find the roots of a function

Simple Iterative Method


Newton Raphson Method
Find roots of the equation
F(x)=x2-2x-2 at xo=2

X1=xo-f(xo)/f’(xo)
X2=x1-f(x1)/f’(x1)……
Secant Method
xn+1 = (xn-1) f(xn) − xn f(xn−1) / f(xn)- f(xn−1)

For n=1
x2 = xo f(x1) − x1 f(xo) / f(x1)-f(xo)

Q: F(x)=x2-2x-2
xo= 2, x1=3

Find out the roots of the equation using secant method

Note: If x1 is not given Find x1 using newton Raphson method for n=0
X1=xo-f(xo)/f’(xo)=3

You might also like