Last modified: July 01, 2022
This article is written in: πΊπΈ
Newton's Method
Newton's method (or the Newton-Raphson method) is a powerful root-finding algorithm that exploits both the value of a function and its first derivative to rapidly refine approximations to its roots. Unlike bracketing methods that work by enclosing a root between two points, Newton's method is an open method, requiring only a single initial guess. When it does converge, it does so very quickly, often achieving quadratic convergence. However, the method offers no guarantees of convergence from any arbitrary starting point, and it requires that you can compute (or approximate) the derivative of the function.
Physically and geometrically, Newton's method can be viewed as follows: starting from an initial guess , you draw the tangent line to the curve at the point . The intersection of this tangent line with the -axis provides a better approximation to the root than , assuming certain conditions on the function and the initial guess. Repeating this procedure iteratively refines the approximation.
Conceptual Illustration:
Imagine the curve :
At , the tangent line is drawn. Its intersection with the x-axis is the next approximation . Repeating this yields even better approximations rapidly converging to the exact root .
Mathematical Formulation
Let be a differentiable function. We wish to solve:
Newton's method starts with an initial guess and generates a sequence defined by:
where is the first derivative of .
Geometric Derivation:
Consider the first-order Taylor expansion of around :
If is the root we want (i.e., ), we set the above approximation to zero and solve for :
This gives the iterative scheme for Newtonβs method.
Derivation
I. Assumption of Differentiability:
We assume is at least once differentiable near the root. This allows us to use local linearization.
II. Local Linear Approximation:
Near a guess , write:
III. Solving for the Root of the Linear Approximation:
Set in the linear approximation:
Hence:
IV. Iteration:
Define:
As , if the sequence converges, $x_n \to x^f(x^)=0f$ is well-behaved and the initial guess is sufficiently close to the actual root), Newton's method converges quadratically to the root.
Algorithm Steps
Input:
- A differentiable function .
- Its derivative .
- An initial guess .
- A tolerance or maximum iteration count .
Initialization:
Set iteration counter .
Iteration:
I. Evaluate and .
II. If , the method cannot proceed (division by zero). Stop or choose a new .
III. Update:
IV. Check Convergence:
- If or , stop.
- If , stop.
V. Increment and repeat from step I.
Output:
- Approximate root .
- Number of iterations performed.
Example
Function:
Known Root:
satisfies .
Apply Newton's Method:
- Initial guess: .
- Derivative:
Iteration 1:
- Update:
Iteration 2:
- Evaluate
- Evaluate
- Update:
Iteration 3:
- Evaluate
- Update:
After a few iterations, we have , which is very close to the actual root .
Advantages
- Fast convergence makes Newton's method highly efficient when the initial guess is close to the actual root and , as it exhibits quadratic convergence.
- Simplicity in implementation requires only evaluations of the function and its derivative at each step, making the method conceptually straightforward.
- Fewer iterations are typically needed to achieve a desired accuracy compared to bracketing methods like the bisection method, assuming the method converges.
Limitations
- Requirement of the derivative means that must either be computable or approximated, which can be challenging or computationally expensive for certain functions.
- No guaranteed convergence occurs if the initial guess is far from the root, or if is small or zero near the approximation, potentially leading to divergence.
- Wrong root or complex behavior may arise in cases where the function has multiple roots or inflection points, causing convergence to an unintended root or erratic behavior.
- Division by zero is a critical issue if at any iteration, requiring safeguards or modifications to the standard algorithm to handle such cases.