Lably
Skip to content

Newton's method

Algorithm for finding zeros of functions

  • 26 min read
  • 9 chapters
Newton's method illustrated using the computer algebra package Maple.
Cham at French Wikipedia · Public domain

Related on Lably

Through Numerical analysis, Real number and Function (mathematics)

x1=x0−f(x0)f′(x0)

is a better approximation of the root than x0. Geometrically, (x1, 0) is the x-intercept of the tangent to the graph of f at (x0, f(x0)): that is, the improved guess, x1, is the unique root of the linear approximation of f at the initial guess, x0. The process is repeated as

xn+1=xn−f(xn)f′(xn)

until a sufficiently precise value is reached. The number of correct digits roughly doubles with each step. This algorithm is first in the class of Householder's methods, and was succeeded by Halley's method. The method can also be extended to complex functions and to systems of equations.

Description

The purpose of Newton's method is to find a root of a function. The idea is to start with an initial guess near a root, approximate the function by its tangent line near the guess, and then take the root of the linear approximation as a next guess at the function's root. This will typically be closer to the function's root than the previous guess, and the method can be iterated.

The best linear approximation to an arbitrary differentiable function f(x) near the point x=xn is the tangent line to the curve, with equation

f(x)≈f(xn)+f′(xn)(x−xn).

The root of this linear function, the place where it intercepts the ⁠x⁠-axis, can be taken as a closer approximate root ⁠xn+1⁠ if f′(xn)≠0:

xn+1=xn−f(xn)f′(xn).

The process can be started with any arbitrary initial guess ⁠x0⁠, though it will generally require fewer iterations to converge if the guess is close to one of the function's roots. The method will usually converge if ⁠f′(x0)≠0⁠. Furthermore, for a root of multiplicity 1, the convergence is at least quadratic (see Rate of convergence) in some sufficiently small neighbourhood of the root: the number of correct digits of the approximation roughly doubles with each additional step. More details can be found in § Analysis below.

Householder's methods are similar but have higher order for even faster convergence. However, the extra computations required for each step can slow down the overall performance relative to Newton's method, particularly if ⁠f⁠ or its derivatives are computationally expensive to evaluate.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Calculus and analysis