THE
SECANT METHOD
71
computer's unit round [see (1.2.12)]. They recommend the use of h .when
lx,-
x,_d
is
smaller than
h.
The cost of the secant method in function
evaluations
will rise slightly, but probably by not more than one
or
two.
The secant method
is
well
recommended as
an
efficient and easy-to-use
rootfinding procedure for a wide variety
of
problems.
It
also has the advantage of
not
requiring a knowledge of
f'(x),
unlike Newton's method.
In
Section
2.8,
the
secant method
will form
an
important
part
of another rootfind.ing algorithm that
is guaranteed to converge.
Comparison of Newton's rnetbod
and
the
secant method Newton's method and
the secant method are closely related.
If
the approximation
is used
in the Newton formula (2.2.1), we obtain the secant formula (2.3.1). The
conditions for convergence are almost the same [for example, see (2.2.6) and
(2.3.4) for conditions on the initial error], and the error formulas are similar [see
"(2.2.2)
and
(2.3.3)]. Nonetheless, there are two major differences. Newton's
method-requires-two function evaluations per iterate, that
of
f(x,)
and
f'(x,),
whereas the secant method requires only one function evaluation per iterate, that
of
f(x,.)
[provided the needed function value
f(x,_
1
)
is retained from the last
iteration]. Newton's method
is
generally more expensive per iteration. On the
other hand, Newton's method converges more rapidly [order
p = 2
vs.
the secant
method's
p = 1.62], and consequently it will require fewer iterations to attain a
given desired accuracy.
An
analysis of the effect
of
these two differences in the
secant and Newton methods
is
given below.
We now consider the expenditure of time necessary to reach a desired root a
within
a desired tolerance of t:.
To
simplify the analysis, we assume that the
initial guesses are quite close to the desired root. Define
xn+l
n;:::O
·and
let x
0
= x
0
•
We define
.X
1
based on the following convergence formula. From
(2.2.3) and
(2.3.10), respectively,
l
f"(a)
I
n
~
0, c =
2
/'(
a)
r=
1 +
v'5
2