Root finding and safeguarded Newton iteration
Combine local speed with brackets, residual interpretation, and stopping rules that survive difficult starting points.
On this page
The question for today
What you’ll understand
- Derive Newton's step from a local linear model.
- Use continuity and a sign bracket for a robust existence certificate.
- Distinguish residual tolerance from root-position accuracy.
Finding a root means locating an input where a specified function vanishes. A graph can suggest a candidate but cannot distinguish a narrow crossing from a missed oscillation or a near-zero minimum. Different algorithms bring different guarantees: bisection keeps a certified interval, while Newton iteration uses a derivative to move rapidly near a simple root. Reliable software combines these ideas and reports why it stopped. The central question is not how many digits an iterate contains, but what evidence connects that iterate to a root of the intended function.
A bracket is useful mathematical information
If a real continuous function has opposite signs at two interval endpoints, the intermediate value theorem guarantees at least one root between them. Bisection evaluates the midpoint and keeps a half-interval that preserves the sign change. After each successful subdivision the interval width halves. The midpoint's distance to some bracketed root is no larger than half that width, even when the derivative is unavailable. Uniqueness needs a separate argument, such as strict monotonicity throughout the interval.
Continuity is essential. A sign change across a pole does not certify a root, and even-multiplicity roots may touch zero without changing sign. Finite precision adds practical complications: a computed midpoint can round to an endpoint once the interval is extremely narrow. Function values can also overflow or be inaccurate near a singularity. Robust termination therefore checks interval progress, finite evaluations, and a scale-aware tolerance. It does not keep bisecting forever because a requested decimal tolerance is below representable spacing.
A tangent proposes a fast local step
Linearize the function around the current iterate and solve the tangent equation for its zero. This gives Newton's update. Near a simple root, with a sufficiently smooth function and a nonzero derivative, the new error is proportional to the square of the old error in the asymptotic regime. Quadratic convergence explains its speed after a suitable starting point has been found. The conclusion is local; it gives no unconditional promise from an arbitrary initial guess.
A tiny derivative produces a large step, and an iterate can leave the domain, jump to another root, or enter a cycle. Multiple roots generally reduce ordinary Newton convergence to linear unless the method is modified. Safeguarding accepts a Newton proposal only when it is well-defined and makes adequate progress within a maintained bracket; otherwise it falls back to a bracketing step. This trades a little ideal local speed for protection against common global failures. The precise acceptance rules are part of the algorithm.
Stop for a reason tied to the desired answer
A small residual measures how close the function value is to zero, not directly how close the input is to a root. If the derivative magnitude is bounded below by a positive number on an interval joining a candidate to its root, the mean value theorem converts residual into a position bound. Near a flat or repeated root that conversion may be poor. Rescaling the entire function also changes residual size while leaving every root unchanged. A universal unscaled residual threshold is therefore misleading.
Use a combination of bracket width, a scaled step, and a residual interpreted through conditioning. State whether the result certifies a root in an interval or merely records that the iteration stagnated. For vector-valued equations, the derivative becomes a Jacobian and each Newton step requires a linear solve; forming an explicit inverse is unnecessary. The same philosophy survives: inspect the local model, control its domain, and distinguish solving the linearized equation from validating the original nonlinear residual.
Work it through
Newton finds a square root with an error check
Solve f(x)=x²−2 on [1,2], starting from x₀=1.5. Carry out two Newton steps.
The endpoint values are −1 and 2, so continuity gives a root in [1,2]. Since f'(x)=2x>0 on this interval, the root is unique there.
The first update is 1.5−0.25/3=17/12≈1.416666667. Its residual is (17/12)²−2=1/144≈0.006944444.
The second update is 17/12−(1/144)/(17/6)=577/408≈1.414215686. Its residual is exactly 1/166464≈6.0073×10⁻⁶. Both proposals stay in the original interval.
Throughout [1,2], |f'|≥2. Hence the second candidate is within 1/332928≈3.0037×10⁻⁶ of the root. This conservative certificate does not require treating the printed decimal as exact.
Two local steps improve rapidly, and a derivative bound converts the residual into a defensible root-position bound.
The living notebook
Explore the model
Interactive lab · function
A tangent model has a limited scope
Vary a and position x on y=a x². At a=1 and x=1, inspect the tangent slope and predict where that tangent meets the axis. The lab plots this unshifted quadratic and its tangent; it does not plot x²−2, move a Newton iterate, preserve a bracket, or implement a root solver.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA tangent is local information. Safeguards and root error bounds must come from the actual equation.
Pause & reason
Check your understanding
Your turn
Try it yourself
For f(x)=x³−1, take one Newton step from x=2. Then explain why a sign-changing interval can still be valuable.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
The value is seven and the derivative is twelve at the starting point.
Compare with the solution
The step gives 2−7/12=17/12≈1.416666667. Its residual is 4913/1728−1=3185/1728≈1.84317, so one step is not a finished solve. Continuity brackets the unique positive root in [0,2]; a maintained bracket provides a fallback and a width-based certificate even before local rapid convergence begins.
Keep the idea
Take it with you
- Brackets give existence and width information under continuity.
- Newton's quadratic speed is local and depends on a simple root.
- Residuals become position bounds only with sensitivity information.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.