How Newton’s method updates a root by the tangent

Short answer: Newton’s method solves f(x) = 0 by replacing the current guess x with x − f(x)/f'(x), the root of the tangent line. When f is smooth, f’ is nonzero at a simple root, and the guess is close enough, the error squares at every iteration. That quadratic convergence is the reason to use it. A guess outside the basin can diverge, cycle, or walk into a point where the derivative vanishes. The method finds one root and does not search the line for all of them.


What the problem actually asks

A tangent that matches both the value and the derivative is the best linear model of f at the current point. Setting the tangent to zero is one division. The same idea in several variables replaces the derivative by the Jacobian and the division by a linear solve. In one variable the update is the displayed subtraction.

Quadratic convergence does not start at iteration zero. It starts when the guess is close enough that the higher-order terms really are smaller than the square of the error. A bad initial guess has no such promise. Bisection, on a bracket where the function changes sign, converges linearly and does not leave the bracket.


What the algorithm guarantees

If f is twice differentiable near a root r, f'(r) ≠ 0, and x0 is sufficiently close to r, then the iterates converge to r and the error satisfies a quadratic bound. The number of correct digits roughly doubles each step once that regime begins. Each iteration costs one function value and one derivative value. A multiple root, where f’ also vanishes, drops the convergence to linear unless the iteration is modified.

The method can be used for square roots, because sqrt(a) is the positive root of x² − a, and the update simplifies to (x + a/x)/2. That special case is still Newton’s method. A derivative that is zero at the current guess makes the update undefined. The algorithm must stop or the caller must choose another start.


The working steps

  1. Choose a starting guess. If a sign-changing bracket is known and a guaranteed root is required, consider bisection, or use Newton’s method only after bisection has narrowed the bracket.
  2. Evaluate f and f’ at the current guess. If f’ is zero, stop. The tangent does not meet the axis.
  3. Replace x by x − f(x)/f'(x).
  4. Stop when the step is smaller than a tolerance, or when f(x) is, and report which test fired. A small step with a large f means a nearly flat tangent, not necessarily a root.
  5. For a system, replace the division by the solution of J(x) · step = f(x), and subtract the step.

Quadratic convergence is local. It is not a global minimization algorithm, and it is not a substitute for a bracketed method when the function has many roots or the initial guess is a wild estimate. Gradient descent minimizes a scalar loss and uses a step length. Newton’s method for optimization uses the Hessian and is a different update, related and not the same as finding a root of f.


Approaches that look simpler and fail

Approach Why it fails when the derivative at the root is zero
Expect the error to square at a multiple root The standard proof uses f'(r) ≠ 0. A multiple root converges linearly under the unmodified update.
Divide by a measured derivative that underflowed to zero The tangent is vertical in the arithmetic even when the true derivative is only small. The update is meaningless and the iteration should reject that step.
Start from an arbitrary guess and quote quadratic convergence from iteration one The quadratic phase begins near the root. The first steps can increase the error.
Use the root finder as a global optimizer of a loss A root of the derivative is a stationary point and may be a maximum or a saddle. The root test does not compare function values.

A guaranteed bracketed root is bisection or a safeguarded Newton method that falls back to the bracket. Unconstrained minimization with gradients is gradient descent or a Hessian-based Newton method for optimization. One-dimensional root finding near a known simple root is this iteration.


A working example

This Python fragment updates a root by the tangent. For f(x) = x² − 2 the step is (x + 2/x) / 2. Five iterations from 1 print a value within 10⁻⁹ of the square root of 2.

x = 1.0
for _ in range(5):
    x = (x + 2 / x) / 2
assert abs(x * x - 2) < 1e-9
print(f"{x:.8f}")

Where it is used

Newton’s method finds a root of a smooth equation, including the reciprocal iteration some division hardware uses and the integer square root. Optimization calls a related Newton step that uses the Hessian. Gradient descent uses only the slope.


When you can drop this algorithm

Drop plain Newton when no derivative is available or no good start is known. Use a bracketed method or a secant method. Keep Newton when f’ is cheap and a close initial guess makes the quadratic phase real.


Why this stays published

We publish this so a search for Newton’s method returns the tangent update and the local nature of its quadratic convergence. Newton’s method replaces a guess by the root of the tangent line, and near a simple root the number of correct digits roughly doubles at each iteration.

本文由 HoHo 與 AI 協作整理,最後更新於 2026 年 11 月 13 日。

Leave a Reply

Your email address will not be published. Required fields are marked *