advanced28 min studyLesson 33 in Mathematics

Root finding and safeguarded Newton iteration

Combine local speed with brackets, residual interpretation, and stopping rules that survive difficult starting points.

On this page

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.

bn−an=2−n(b0−a0),∣mn−r∣≤bn−an2b_n-a_n=2^{-n}(b_0-a_0),\qquad |m_n-r|\le\frac{b_n-a_n}{2}
For a continuous function and a maintained sign-changing interval, there is a root r in the current bracket. The midpoint bound follows from interval geometry, not from a small function residual.↔ Scroll wide equations horizontally.

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.

xn+1=xn−f(xn)f′(xn),en+1≈f′′(r)2f′(r)en2x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)},\qquad e_{n+1}\approx\frac{f''(r)}{2f'(r)}e_n^2
The update requires a usable nonzero derivative. The asymptotic error expression assumes a sufficiently smooth function, a simple root r, and iterates already sufficiently close to r.↔ Scroll wide equations horizontally.

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.

∣f′(x)∣≥m>0⟹∣x^−r∣≤∣f(x^)∣m|f'(x)|\ge m>0\quad\Longrightarrow\quad |\widehat x-r|\le\frac{|f(\widehat x)|}{m}
The derivative lower bound must hold on the segment between the candidate and the root, with the function differentiable there. A single derivative sample is not this certificate.↔ Scroll wide equations horizontally.

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.

  1. 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.

  2. The first update is 1.5−0.25/3=17/12≈1.416666667. Its residual is (17/12)²−2=1/144≈0.006944444.

  3. 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.

  4. 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.

The result

Two local steps improve rapidly, and a derivative bound converts the residual into a defensible root-position bound.

Explore the model

Interactive lab

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.

A tangent model has a limited scopeThis 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. Current readings: y at chosen x: 0.608; Tangent slope · 2ax: 1.35; Signed area · ax³/3: 0.182. All parameters are adjustable with the labeled controls below.−2.4−1.201.22.4−9−4.504.59xy(x, ax²)
y = ax²TangentSigned integral
y at chosen x
0.608
Tangent slope · 2ax
1.35
Signed area · ax³/3
0.182
t = 0 s

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.

Check your understanding

A residual is 10⁻⁸, but the derivative near the root is about 10⁻⁶. What root-position error scale does local linearization suggest?

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.

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.