Newton-Raphson Method

Finds roots of f(x)=0 by following tangents. Converges quadratically near a root and powers optimisation, physics engines, and implied-volatility solvers. x_{n+1} = x_n - f(x_n) / f'(x_n)

Method

• Pick x0. • Compute f and f'. • Step along tangent to x-axis. • Repeat until |f| small.

Limitations

Diverges if f'=0 or x0 far from root; needs derivative.

Example

Solve x^2-2=0 from x0=1: 1 -> 1.5 -> 1.4167 -> 1.4142 (sqrt 2).

Sources

Educational reference only, not professional advice.

All algorithms