58
ROOTFINDING
FOR NONLINEAR EQUATIONS
is
no way to predict the possibly better accuracy in an earlier iterate, and thus
there
is
no way
we
can know the iterate
is
sufficiently accurate. For example, c
9
is
sufficiently accurate, but there
was
no way of telling that fact during the
computation.
To examine the speed of convergence, let
en
denote the
nth
value of c in the
algorithm. Then it
is
easy
to
see
that
a = limite"
n
.....
oo
(2.1.4)
where b - a denotes the length of the original interval input into Bisect. Using
the variant (2.0.14) for defining linear convergence,
we
say that the bisection
method converges linearly with a rate of
t.
The actual error may not decrease by
a factor
oft
at
each step, but the average rate of decrease
is
t,
based on (2.1.4).
The preceding example illustrates the result (2.1.4).
There are several deficiencies in the algorithm
Bisect. First, it does not take
account of the limits of machine precision,
as
described in Section 1.2 of Chapter
1.
A practical program would take account of the unit round on the machine [see
(1.2.12)], adjusting the given
t:
if
necessary. The second major problem with
Bisect
is
that it converges
very
slowly when compared with the methods defined
in the following sections. The major advantages of the bisection method are:
(1)
it
is
guaranteed to converge (provided f
is
continuous on [a, b] and (2.1.1)
is
satisfied), and (2) a reasonable error bound
is
available. Methods that at every
step giveJupper and lower bounds on the root
a are called enclosure methods. In
Section 2.8, we describe an enclosure algorithm that combines the previously
stated advantages of the bisection method with the faster convergence of the
secant method (described
in
Section 2.3).
2.2 Newton's Method
Assume that
an
initial estimate x
0
is
known for the desired root a of
f(x)·=
0.
Newton's method
will
produce a sequence of iterates { x": n 2 1
},
which
we
hope
will
converge to
a.
Since x
0
is
assumed close to a, approximate the graph of
y =
f(x)
in the vicinity of its root a by constructing its tangent line at
(x
0
,
/(x
0
)).
Then use the root of this tangent line to approximate a; call this new
approximation
x
1
•
Repeat this process, ad infinitum, to obtain a sequence of
iterates
x". As with the example (2.0.3) beginning this chapter, this leads to the
iteration formula
·
n20
(2.2.1)
The process
is
illustrated in Figure
2.2,
for the iterates x
1
and x
2
•