What is it?
To solve , replace by its tangent line at the current guess and jump to where the tangent hits zero: . Near a simple root the number of correct digits doubles every step.
Why does it exist?
Equations like or have no formula for their solution, and nonlinear systems in engineering have thousands of unknowns. Newton's insight: we cannot solve , but we can solve its linear approximation exactly — and repeat.
Intuition
Stand on the curve at , slide down the tangent until you hit the -axis, step up to the curve again. If the curve is close to straight near the root, each tangent lands very close. The step is "how far, at the current slope, until I reach zero". It fails when the slope is nearly flat (huge jumps) or when the start is in the wrong basin.
Formal definition
Theorem (local quadratic convergence). Let near a root with . Then there is such that for every with the iterates converge to and
Idea of the proof
Taylor at : . Divide by and use the definition of : .
Formulas
- systems: solve a linear system with the Jacobian each step
- optimization: Newton applied to
How is it computed?
x = x0
repeat:
step = f(x) / df(x)
x = x - step
until |step| < tol·|x| or too many iterations
In practice add safeguards: fall back to bisection if the step leaves a bracketing interval, and damp the step () far from the root.
Example
as the root of : — the Babylonian method, 4000 years old. From : , , , , … The correct digits go 1, 3, 6, 12: doubling each step.
Interactive visualization
| k | xk | f(xk) | |xk − x*| | digits |
|---|
Why does it matter?
Newton's method is inside your CPU (division and square roots refine an initial approximation by Newton steps), inside every nonlinear solver of engineering software, inside implicit physics integrators and inverse kinematics, and — applied to — it is the prototype of all second-order optimization methods.
Where it shows up in computing
The default solver for nonlinear equations and systems, usually with safeguards.
Hardware and libraries compute and from a table guess refined by Newton iterations.
Solving for joint angles that reach a target is a Newton (Gauss–Newton) iteration with the robot Jacobian.
Implicit integrators for stiff systems (cloth, soft bodies) solve a nonlinear system with Newton each step.
Where it shows up in AI
Newton's method on uses the Hessian: .
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
Exercises
Write the Newton iteration for and do two steps from .
Solution
. , (root ).
Use the demo with and . What happens, and why?
Solution
, : a 2-cycle. The tangents bounce between 0 and 1 forever; the real root () is in another basin.
Derive the Newton iteration that computes using only multiplications and subtractions.
Solution
Take : . No division needed — this is how many processors divide.