Newton–Raphson Method

Visualize root-finding through tangent-line iteration \(x_{n+1}=x_n-m\,f(x_n)/f'(x_n)\) — watch quadratic convergence, study multiplicity, and explore failure modes step by step.

\[x_{n+1} = x_n - m\cdot\frac{f(x_n)}{f'(x_n)},\quad n=0,1,2,\ldots\quad(m=1:\;\text{standard};\;\;m\ge2:\;\text{modified})\]
Example
Set to 1 for standard Newton-Raphson. Use m=2 for double roots, m=3 for triple roots to restore quadratic convergence.

Keyboard shortcuts: Press P to play or stop animation. Press S to step one iteration. Press R to reset. Press A to show all steps at once.
Use the dropdown to select an example function, or type a custom function below.

Step \(n\)
0
\(x_n\)
\(f(x_n)\)
Error \(|e_n|\)
Conv. rate
Status
Newton Diagram — \(y=f(x)\), tangent lines, root

Newton–Raphson diagram. Current example: x squared minus 2. Starting point x₀ is 6.0. No steps shown yet. Click diagram to set a new starting point. Scroll to zoom, drag to pan, double-click to reset view.

Convergence — \(\log_{10}|e_n|\) vs. \(n\)
Select an example to see the formula and analysis.