When numerical iteration fails: causes and fixes
An iteration can produce numbers without producing the root you want. It may diverge, oscillate, repeat a cycle, leave the function’s domain, encounter division by zero or converge to a different root.
Failure is not just a calculator problem. It usually comes from the iteration formula, the starting value, or the shape of the graph. Recognising the cause lets you choose a better rearrangement, a better starting value or a more reliable method.
Prerequisites
Section titled “Prerequisites”You should be able to:
- generate terms from ;
- use the local convergence test ;
- apply ;
- interpret roots, gradients and tangents graphically;
- identify the domains of square root, logarithmic and rational functions.
Review fixed point iteration and the Newton Raphson method first.
What counts as failure?
Section titled “What counts as failure?”Suppose the intended root is . Successful iteration means
Several other behaviours are possible.
| Behaviour | What the values do | Typical cause |
|---|---|---|
| Divergence | Move farther from the root or grow without bound | A repelling fixed point or unsuitable start |
| Oscillation | Alternate from side to side without settling | A negative multiplier with magnitude at least |
| Cycle | Repeat two or more values | Repeated application of returns to an earlier value |
| Undefined step | Leave the domain or divide by zero | Formula is not defined at an iterate |
| Wrong-root convergence | Settle, but at another root | Starting value lies in another root’s region of attraction |
| False confidence | Consecutive displayed values agree temporarily | Rounding or very slow movement |
The first few terms alone do not prove convergence. Always connect numerical evidence to the formula or graph.
Fixed point failure and the derivative test
Section titled “Fixed point failure and the derivative test”For
let satisfy . If is close to , the error approximately obeys
Therefore:
- makes nearby errors shrink;
- makes nearby errors grow;
- reverses the sign of the error, so values alternate across the root;
- is inconclusive and needs further investigation.
This is a local test. It describes starts sufficiently close to , not every possible .
Worked example 1: a divergent rearrangement
Section titled “Worked example 1: a divergent rearrangement”The equation
has positive root
Consider the valid rearrangement
Here , so
The fixed point is repelling. Even with , close to the root,
The values initially look plausible, but their errors grow. Algebraic equivalence does not guarantee numerical stability.
A better rearrangement for the positive root is
Then
so nearby errors shrink rapidly.
Misconception: If is algebraically correct, its iteration must converge.
Correction: The equation identifies fixed points. The size of determines whether nearby iterates are attracted to or repelled from them.
Self-check 1
Section titled “Self-check 1”For the positive root of , compare
Which iteration is locally convergent?
Answer
The positive root is
For ,
Since ,
For ,
Both are locally convergent. The second should converge faster because its derivative has smaller magnitude. The first alternates because .
Oscillation and cycles
Section titled “Oscillation and cycles”Alternation is not itself failure. If , values alternate with decreasing error and converge. Failure occurs when the alternating error does not shrink.
Worked example 2: an exact two-cycle
Section titled “Worked example 2: an exact two-cycle”Solve using the rearrangement
Starting with gives
The iteration is trapped in the two-cycle . In fact,
for every non-zero , so almost every starting value repeats after two steps. At the positive fixed point ,
The usual derivative test is inconclusive at magnitude , but the identity proves the cycling behaviour.
By contrast, the Babylonian iteration
converges to from any positive start. Averaging damps the oscillation.
Self-check 2
Section titled “Self-check 2”The iteration has fixed point . What happens from ?
Answer
It enters a two-cycle. Since , the distance from is preserved while its sign reverses.
Leaving the domain
Section titled “Leaving the domain”An iteration formula may be equivalent to the original equation only where every operation is valid. During iteration, a value can leave that domain.
Worked example 3: a square root becomes undefined
Section titled “Worked example 3: a square root becomes undefined”Consider
Then
so the values cycle between and . A small rounded error can be worse. If a calculator stores as slightly larger than , then and the next real square root is undefined.
Common domain failures include:
and
Before iterating, state the domain and check whether maps the proposed interval back into itself.
Misconception: A calculator error means the equation has no root.
Correction: It means the chosen formula is undefined at that iterate. The original equation may still have roots.
Why Newton Raphson can fail
Section titled “Why Newton Raphson can fail”Newton Raphson uses
It relies on a tangent at . Trouble occurs when the tangent gives poor information about the nearby root.
Failure 1: a zero or very small derivative
Section titled “Failure 1: a zero or very small derivative”If , the formula divides by zero. If is merely close to zero, the correction
can be enormous.
Worked example 4: a horizontal tangent
Section titled “Worked example 4: a horizontal tangent”Let
Starting at
gives , so is undefined. Geometrically, the tangent is horizontal and never meets the -axis.
Starting near this value makes small, so the tangent’s axis intercept may be very far away. A nearby starting value is not always a good starting value.
Failure 2: cycling
Section titled “Failure 2: cycling”For the same function, start at :
then
Thus
is a two-cycle, even though has a real root near .
Failure 3: convergence to a different root
Section titled “Failure 3: convergence to a different root”Newton Raphson is sensitive to when a function has several roots.
Worked example 5: the starting value selects the root
Section titled “Worked example 5: the starting value selects the root”For
the roots are , and , and
With ,
so the method converges to .
With ,
so it converges to . Newton Raphson finds a root associated with the starting value, not necessarily the root intended by the question.
Self-check 3
Section titled “Self-check 3”Explain why Newton Raphson cannot start at for .
Answer
Since , we have . The formula would require
which is undefined. On the graph, the tangent at is horizontal.
Slow convergence can look like failure
Section titled “Slow convergence can look like failure”When is just below , errors shrink very slowly. If
then after steps
Most of the original error remains. Conversely, rounded calculator displays can repeat even when the exact iterates still move. Agreement of successive displayed values is evidence, not proof of accuracy.
To justify a rounded root, test the two rounding boundaries using a change of sign.
A practical recovery strategy
Section titled “A practical recovery strategy”When an iteration fails:
- Check the formula. Confirm signs, brackets, derivatives and calculator angle mode.
- Check the domain. Identify where and the Newton Raphson quotient are defined.
- Inspect the values. Look for growth, alternation, a repeating cycle or a large jump.
- Use the graph. Locate roots, stationary points and suitable starting regions.
- Test local convergence. For fixed point iteration, evaluate or bound on a known interval.
- Change one feature. Try another rearrangement, choose from a sign-changing bracket, or use bisection.
- Verify the result. Substitute back and justify the requested accuracy.
Bisection is slower but safer when is continuous and a sign-changing bracket is known. It keeps the root trapped inside the current interval. Newton Raphson is faster near a suitable simple root but does not preserve a bracket automatically.
Mixed diagnostic check
Section titled “Mixed diagnostic check”Match each observation to the most likely diagnosis.
- alternates across the root with steadily decreasing error.
- Newton Raphson produces a huge jump when is near a stationary point.
- A logarithmic iteration reports a domain error.
- but .
- The method converges accurately, but to the wrong solution.
Answers
- Convergence with . Alternation alone is not failure.
- is close to zero, making the Newton Raphson correction large.
- The logarithm’s argument has become non-positive.
- The iteration is in a two-cycle.
- The starting value belongs to the region attracted to a different root.
Key conclusions
Section titled “Key conclusions”- A correct rearrangement can still give a divergent iteration.
- For fixed point iteration, predicts local convergence; predicts local divergence.
- The case needs separate analysis.
- Newton Raphson can fail at a horizontal tangent, jump far away, cycle or find another root.
- Domain restrictions apply to every iterate, not only to the final root.
- A graph and a sign-changing bracket help you choose a sensible starting value.
- Repeated decimal displays do not prove the claimed accuracy.
Next, consolidate the whole topic in A-level numerical methods or practise reliable bracketing with locating roots using a change of sign.