Chap2com
Chap2com
f ( xi ) ( xi xi 1 )
xi 1 xi xi f ( xi )
f ( xi ) f ( xi 1 ) f ( xi ) f ( xi 1 )
( xi xi 1 )
Methods of root finding
Example f ( x) x 2 x 0.5
2
x0 0
x1 1
( xi xi 1 )
xi 1 xi f ( xi )
f ( xi ) f ( xi 1 )
Read about modified secant method…
Methods of root finding
Exercises
Use Secant method to find the root of :
6
f ( x) x x 1
Two initial points x0 1 and x1 1.5
( xi xi 1 )
xi 1 xi f ( xi )
f ( xi ) f ( xi 1 )
Methods of root finding
• Exercises
Use Newton' s Method to find a root of :
f ( x) x 3 x 1
Use the initial point : x0 1.
Stop after three iterations , or
if xk 1 xk 0.001, or
if f ( xk ) 0.0001.
Methods of root finding
• Exercise
Use Newton' s Method to find a root of :
f ( x) e x x
Use the initial point : x0 1.
Stop after three iterations , or
if xk 1 xk 0.001, or
if f ( xk ) 0.0001.
Methods of root finding
Exercise:-
In estimating the root of: x-cos(x)=0, to get more than 13 correct
digits:
Therefore,