The equation has a root that no finite decimal can write down, and an equation like has no formula for its root at all. Still, a calculator gives instantly. Behind that number is an iteration, a rule that turns one guess into a better one. Here are the two classic rules, one that cannot fail once a root is trapped and one that is far faster when it works.
Key terms
Bracketing
Definition An interval with brackets a root of if is continuous on and and have opposite signs, that is
A bracketing method keeps a bracket at every step and shrinks it.
In plain words You have trapped the root between two numbers, one where is negative and one where it is positive.
Example For we have and , so brackets a root, namely .
Continuity and sign change
Definition This is the intermediate value theorem applied to roots. If is continuous on and , then there is at least one in with . Without continuity the conclusion can fail, and a sign change can also come from a vertical asymptote rather than a root.
In plain words A continuous graph cannot get from below the axis to above it without crossing. Continuity is what makes a bracket trustworthy.
Example The function has and , opposite signs, yet it has no root in . The theorem does not apply because is not continuous at . By contrast is continuous with
so has a root in .
Bisection and its error bound
Definition Let be continuous on with . The bisection method starts from the bracket . At step it computes the midpoint . If it stops. Otherwise it keeps whichever half, or , still has a sign change, and calls it . The brackets are nested, the bracket has length , and there is a root of that lies in every bracket. Since is the midpoint of a bracket containing ,
In plain words Each step cuts the bracket in half, so each step buys one more correct binary digit. It is slow but it is guaranteed, and you know the error in advance.
Example For on the first steps are these.
| sign of | ||||
|---|---|---|---|---|
To guarantee you need
Since and , the first that works is .
Newton iteration and the tangent construction
Definition Let be differentiable at the current guess with . The tangent line to the graph at is . Setting and solving for gives the next guess
Newton’s method repeats this step from a starting value .
In plain words Replace the curve by its tangent line, see where the line hits the axis, and use that point as the new guess. Near a root the curve and its tangent are almost the same, so the new guess is much better.
Example For the rule becomes
Starting at gives this table.
Four steps reach the accuracy that bisection needs about 40 steps for.
Initial guess
Definition The initial guess is the starting value of the iteration. Newton’s method has no bracket, so whether the iterates converge, and to which root, depends on . A common practice is to locate a root roughly first, for example by a plot or a few bisection steps, and then start Newton’s method close to it.
In plain words Newton’s method is only as good as where you start. Start close and it flies, start far and it may wander off.
Example The function has the single root , and its Newton step is
From the iterates are about , , and then essentially . From they are about , , , , growing without bound.
Derivative zero
Definition The Newton step needs . If the tangent line is horizontal and, unless , never meets the axis, so is undefined. If is merely close to zero, the step is huge and throws the next guess far away. At a root with (a multiple root) the method usually still converges from nearby starting values, but only linearly.
In plain words A flat tangent points nowhere useful. Avoid starting near a turning point of the graph.
Example For with we get and the formula would divide by zero. With the next guess is
very far from .
Cycles and divergence
Definition Newton’s iterates need not converge. They can form a cycle, meaning that for some period we have for all while the values are not all equal. They can also diverge, either with or by wandering without settling down.
In plain words The tangent can send you back and forth between the same two points forever, or keep pushing you farther away.
Example Take , so . From ,
so the iterates cycle and never approach the real root near . For divergence take , where the step simplifies to . Every nonzero start doubles in size and flips sign at each step.
Local convergence conditions
Definition Suppose is continuous on an open interval containing a root , with and . Choose so small that lies in that interval, has no zero on , and
Such a always exists, because stays bounded as shrinks. Then for every in the Newton iterates are defined, stay in , converge to , and satisfy
This is called quadratic convergence. The estimate comes from Taylor’s formula, which gives
for some between and . The condition makes each error at most times the previous one, so the iterates never leave . The word local matters. The theorem promises nothing for starting values far from .
In plain words Close enough to a simple root, the error gets squared at each step, so the number of correct digits roughly doubles every time.
Example In the table the errors go , then , then . Each is about times the square of the previous one, which fits
Check yourself
- How many bisection steps on guarantee that the midpoint is within of a root?
Show the answer
You need , so . Since , the smallest choice is , that is .
- Write the Newton step for and do one step from .
Show the answer
The step is
From it gives . The true root is .
- Why does Newton’s method fail for from any real starting value?
Show the answer
The function has no real root, since . The iterates can never converge to a real number with . They jump around, and from the step is not even defined because .