Newton's Method
From Wiki
Newton's Method is a fast way of finding roots of equations by iteration.
Contents |
[edit] Basics
In general, the following algorithm can be used to find the roots of an equation having the special form
. Solutions of this equation are also sometimes called fixed points.
- 1. Make an initial guess
and use the above equation to iterate to get further guesses
.
- 2. Show that this sequence of iterates
converges to a limit, i.e. show that
.
- 3. Show that
, i.e. show that the limit is a root of the equation.
This algorithm only works in certain cases. In particular,
and
must be continuous in the interval
and
. Furthermore, the iterates
defined recursively by
must all lie in the interval
. If we now choose
to be in the interval it can be shown that the iterates will always converge to
.
[edit] Deriving Newton's Method
The above root-finding algorithm can also be used to solve equations of the form
.
A solution
of
is also a solution of
. Conversely, if
is a solution of
then it is also a solution of
.
is even a solution of
where
is a continuous function that is not zero close to
. Let us now look at the iterates
and let us try to choose a function
so that these iterates converge as fast as possible.
We now compute
.
Now, because of
we have
. If we now set
we have
. This turns out to be an optimal choice with rapid convergence and allows us to use the above iteration algorithm because
for all
sufficiently close to
, which immediately follows from the continuity of
.
We finally arrive at Newton's Method, an iteration scheme to rapidly solve the equation
:
[edit] The Initial Guess
The initial guess
needs to be chosen sufficiently close to
, so that
. We can verify this by using the
computed above with
:
We can now use this to make sure our initial guess is close enough:
[edit] Computing Square Roots with Newton's Method
As an example, let us compute
using Newton's Method. We want to iteratively solve the equation
The iterates for this function look like this:
Starting with an initial guess of 1.4 we see that this sequence of iterates converges quickly:
