Professional Documents
Culture Documents
lines”.
Introduction:
In this method roots are found using an algorithm, that uses
Newton’s Method.
3
Methodology
A secant line is defined by using two points on graph
of a function f(x). It is necessary to choose these two
initial points as xi and xi-1. Then next point xi+1 is obtained by
computing x-value at which the secant line passing
through the points (xi, f(xi)) and (xi-1, f(xi-1)) has a y-
coordinate of zero.
f(x)
f(xi) B
f(xi-1) C
E D A X
xi+1 xi-1
xi
Secant Method – Derivation
The secant method can also be derived from geometry:
The Geometric Similar Triangles
AB DC
=
AE
f(x)
DE
f(xi) B can be
f (xi ) f (x )
written i-1
xi as =
xi1 xi1 xi1
f(xi-1) C
On rearranging, the
secant method is
E D A
xi
X given as
xi1 x i - f (xi )(xi xi-1 )
xi+1 xi-1
f (x i) f (xi1
)
5
Algorithm
Step 1
f(x)
0
f(x) 0
f(x)
2 2
10 5 0 5 10
10 10
x x guess1 x guess2
f(x
x
)prev. guess
new guess
f S
1
Example:
0
1
0
1
0
1
0
1
0
Table Summary
1
0
Questions