Mathematical Physicsundergraduate

Newton–Raphson Method

Also known as: Newton's method · Newton iteration · Tangent method

Near a root the curve looks like its tangent. So follow the tangent to where it crosses zero and use that as the next guess. Each step squares the error, giving quadratic convergence once you're close.

xn+1=xnf(xn)f(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}
Live simulation
warming up the physics…

The parabola f(x)=x²−a is drawn; starting from the slider's initial guess, a tangent line is built at the current point and slides down to the x-axis, marking the next iterate. The iteration index cycles with time so you watch the guesses hop toward √a and pile up on the root.

Equivalent forms

Δx=f/f\Delta x = -f/f'
xn+1=12(xn+axn) (for a)x_{n+1} = \tfrac12\left(x_n + \frac{a}{x_n}\right)\ (\text{for } \sqrt a)
Quadratic convergence: near the root the number of correct digits roughly doubles every iteration — a handful of steps reach machine precision.