Calculus/Newton's Method
Newton's Method (also called the Newton-Raphson method) is a recursive algorithm for approximating the root of a differentiable function. We know simple formulas for finding the roots of linear and quadratic equations, and there are also more complicated formulae for cubic and quartic equations. At one time it was hoped that there would be formulas found for equations of quintic and higher-degree, though it was later shown by Neils Henrik Abel that no such equations exist. The Newton-Raphson method is a method for approximating the roots of polynomial equations of any order. In fact the method works for any equation, polynomial or not, as long as the function is differentiable in a desired interval.
|
Let As you recursively calculate, the xn + 1's often become increasingly better approximations of the function's root. |
In order to explain Newton's method, imagine that x0 is already very close to a zero of
. We know that if we only look at points very close to x0 then
looks like it's tangent line. If x0 was already close to the place where
was zero, and near x0 we know that
looks like its tangent line, then we hope the zero of the tangent line at x0 is a better approximation then x0 itself.
The equation for the tangent line to
at x0 is given by
Now we set y = 0 and solve for x.
This value of x we feel should be a better guess for the value of x where
We choose to call this value of x1, and a little algebra we have
If our intuition was correct and x1 is in fact a better approximation for the root of
, then our logic should apply equally well at x1. We could look to the place where the tangent line at x1 is zero. We call x2, following the algebra above we arrive at the formula
And we can continue in this way as long as we wish. At each step, if your current approximation is xn our new approximation will be 
[edit] Examples
Find the root of the function.

As you can see xn is gradually approaching zero (which we know is the root of
). One can approach the function's root with arbitrary accuracy.
Answer:has a root at
.
[edit] Notes
This method fails when
. In that case, one should choose a new starting place. Occasionally it may happen that
and
have a common root. To detect whether this is true, we should first find the solutions of
, and then check the value of
at these places.
Newton's method also may not converge for every function, take as an example:
For this function choosing any x1 = r − h then x2 = r + h would cause successive approximations to alternate back and forth, so no amount of iteration would get us any closer to the root than our first guess.
Newton's method may also fail to converge on a root if the function has a local maximum or minimum that does not cross the x-axis. As an example, consider
with initial guess x0 = 0. In this case, Newton's method will be fooled by the function, which dips toward the x-axis but never crosses it in the vicinity of the initial guess.








.

.

