Pure · Numerical methods
1 / 9
The Newton–Raphson method
A fast iteration that uses the tangent — x_(n+1) = x_n − f(x_n)/f'(x_n) — its geometric meaning, why it converges so quickly, and the cases where it fails (a horizontal tangent or a poor starting value).
Pure · Numerical methods
The Newton–Raphson method
A fast iteration that uses the tangent — x_(n+1) = x_n − f(x_n)/f'(x_n) — its geometric meaning, why it converges so quickly, and the cases where it fails (a horizontal tangent or a poor starting value).
Why it works
The iteration works, but slowly, and only for the right rearrangement. The Newton–Raphson method is a cleverer choice of step that homes in on a root astonishingly fast, using the tangent to the curve.Start at a guess . Draw the tangent to at the point . Unless the curve is doing something awkward, that tangent crosses the -axis much closer to the root than was — so take the crossing as your next estimate , and repeat.
To find where the tangent meets the axis: it has gradient and passes through , so its equation is . Setting and solving for gives the crossing, and that is the formula: It converges very fast. Near the root each step roughly doubles the number of correct digits, so two or three steps from a sensible start usually nail several decimal places — far quicker than a plain iteration. You still need , so the method costs a differentiation, but the speed is well worth it.
When it fails. The geometry also shows the traps:
- — a horizontal tangent never meets the axis, and the formula
- Near a stationary point — if is small, the tangent is almost flat and
- A poor starting value can converge to a different root than intended, or