Newton's method: finding roots with tangents
Home in on a root by following tangent lines, and watch the number of correct digits double. About 8 minutes, University.
What you will do
- A root is where f(x) = 0. Most equations cannot be solved exactly. Newton's method finds an approximate root by following tangent lines down to the axis.
- One tangent at a time. From a guess x_n the tangent crosses the axis at x_n+1 = x_n - f(x_n)f'(x_n).
- Fast convergence. The number of correct digits roughly doubles each step. That is why it is so popular.
- When it fails. If the slope is 0 the tangent never reaches the axis. The engine reports that instead of dividing by zero.