The Central Idea
To solve
\[ f(x)=0, \]begin with an estimate \(x_n\).
Use the tangent line to \(y=f(x)\) at \(x_n\) to estimate where the graph crosses the \(x\)-axis.
The resulting update is
\[ \boxed{ x_{n+1} = x_n-\frac{f(x_n)}{f'(x_n)} }. \]Repeating this formula produces successive approximations to a root.
Why Tangent Lines Help
Near a point where a differentiable function is reasonably smooth, its tangent line provides a local linear approximation to the curve.
A nonlinear equation may be difficult to solve directly, but a linear equation is easy to solve.
Newton's method repeatedly replaces the difficult local problem with a simpler tangent-line problem.
The Tangent Line at \(x_n\)
The tangent line to \(y=f(x)\) at
\[ (x_n,f(x_n)) \]has slope
\[ f'(x_n). \]Using point-slope form,
\[ y-f(x_n) = f'(x_n)(x-x_n). \]Finding the Tangent-Line Intercept
Newton's method uses the \(x\)-intercept of the tangent line as the next estimate.
At the \(x\)-intercept,
\[ y=0. \]Therefore,
\[ -f(x_n) = f'(x_n)(x_{n+1}-x_n). \]Deriving Newton's Formula
Divide by \(f'(x_n)\), assuming
\[ f'(x_n)\ne0: \] \[ x_{n+1}-x_n = -\frac{f(x_n)}{f'(x_n)}. \]Add \(x_n\):
\[ \boxed{ x_{n+1} = x_n-\frac{f(x_n)}{f'(x_n)} }. \]The Newton Update
Each step has three computational ingredients:
- evaluate \(f(x_n)\);
- evaluate \(f'(x_n)\);
- subtract the quotient \(f(x_n)/f'(x_n)\) from \(x_n\).
The correction term is
\[ \boxed{ \frac{f(x_n)}{f'(x_n)} }. \]Example: Approximating \(\sqrt{2}\)
To compute \(\sqrt2\), solve
\[ x^2-2=0. \]Define
\[ f(x)=x^2-2. \]Then
\[ f'(x)=2x. \]Newton's formula becomes
\[ x_{n+1} = x_n-\frac{x_n^2-2}{2x_n}. \]Simplifying the \(\sqrt2\) Iteration
Simplify:
\[ x_{n+1} = \frac{2x_n^2-(x_n^2-2)}{2x_n}. \] \[ = \frac{x_n^2+2}{2x_n}. \]Therefore,
\[ \boxed{ x_{n+1} = \frac12\left(x_n+\frac2{x_n}\right) }. \]This is the same square-root iteration encountered earlier as a fixed-point rule.
First Newton Step for \(\sqrt2\)
Choose
\[ x_0=1. \]Then
\[ x_1 = 1-\frac{1^2-2}{2(1)}. \] \[ = 1-\frac{-1}{2}. \] \[ \boxed{x_1=1.5}. \]Second Newton Step
Use
\[ x_1=1.5. \]Then
\[ x_2 = \frac12\left(1.5+\frac2{1.5}\right). \] \[ = \frac12(1.5+1.333333\ldots). \] \[ \boxed{x_2\approx1.416666667}. \]Third Newton Step
Continue:
\[ x_3 = \frac12\left( 1.416666667+\frac2{1.416666667} \right). \]This gives
\[ \boxed{x_3\approx1.414215686}. \]Fourth Newton Step
One more iteration gives
\[ \boxed{x_4\approx1.414213562}. \]Compare this with
\[ \sqrt2\approx1.414213562373\ldots \]Only a few iterations have produced many correct digits.
A Newton Table for \(\sqrt2\)
| \(n\) | \(x_n\) |
|---|---|
| \(0\) | \(1.000000000\) |
| \(1\) | \(1.500000000\) |
| \(2\) | \(1.416666667\) |
| \(3\) | \(1.414215686\) |
| \(4\) | \(1.414213562\) |
The rapid stabilization is typical of Newton's method when it is already near a simple root.
Newton's Method Is an Iteration
Newton's method has the fixed-point form
\[ x_{n+1}=g(x_n) \]with
\[ \boxed{ g(x) = x-\frac{f(x)}{f'(x)} }. \]It is therefore a specialized fixed-point iteration built from the function and its derivative.
Example: Solving \(x^3-x-2=0\)
Let
\[ f(x)=x^3-x-2. \]Then
\[ f'(x)=3x^2-1. \]Newton's iteration is
\[ \boxed{ x_{n+1} = x_n- \frac{x_n^3-x_n-2}{3x_n^2-1} }. \]First Step for the Cubic
Choose
\[ x_0=1.5. \]Compute
\[ f(1.5) = 1.5^3-1.5-2 = -0.125. \]Also,
\[ f'(1.5) = 3(1.5)^2-1 = 5.75. \]Therefore,
\[ x_1 = 1.5-\frac{-0.125}{5.75} \approx1.521739. \]Continuing the Cubic Example
Applying Newton's formula again gives approximately
\[ x_2\approx1.521380, \]followed by
\[ x_3\approx1.521380. \]Thus the real root is
\[ \boxed{x\approx1.52138}. \]This is the same root previously located by bracketing and bisection, but Newton's method reaches it much faster from this suitable starting value.
Newton's Method and Tangent Geometry
At each step:
- start at the point \((x_n,f(x_n))\) on the curve;
- draw the tangent line there;
- find the tangent line's \(x\)-intercept;
- call that intercept \(x_{n+1}\);
- repeat from the new point on the curve.
The geometry explains why the derivative appears in the formula.
Why Newton's Method Can Be Fast
Near a simple root, the tangent line often approximates the curve very accurately.
Under suitable smoothness conditions and with a sufficiently good starting value, Newton's method has quadratic convergence.
Informally, once the method is close enough to the root, the number of correct digits can roughly double from one iteration to the next.
What Is a Simple Root?
A root \(r\) is simple when
\[ f(r)=0 \]and
\[ \boxed{f'(r)\ne0}. \]Graphically, the curve crosses the axis with a nonzero slope at the root.
Newton's fastest standard convergence behavior is associated with simple roots.
Multiple Roots Can Slow Newton's Method
Consider
\[ f(x)=(x-1)^2. \]The root
\[ x=1 \]has multiplicity \(2\).
Since
\[ f'(x)=2(x-1), \]Newton's formula becomes
\[ x_{n+1} = x_n- \frac{(x_n-1)^2}{2(x_n-1)}. \]Newton's Update for the Double Root
For \(x_n\ne1\),
\[ x_{n+1} = x_n-\frac{x_n-1}{2}. \]Therefore,
\[ \boxed{ x_{n+1} = \frac{x_n+1}{2} }. \]The error is only halved at each step, so convergence is linear rather than quadratic.
The Derivative Cannot Be Zero in the Update
Newton's formula contains
\[ \frac{f(x_n)}{f'(x_n)}. \]Therefore, the update is undefined when
\[ \boxed{f'(x_n)=0}. \]A horizontal tangent at the current iterate can cause the method to fail at that step.
Example: Immediate Failure
Consider
\[ f(x)=x^3-1. \]Then
\[ f'(x)=3x^2. \]If we choose
\[ x_0=0, \]then
\[ f'(0)=0. \]Newton's formula would require division by zero, so this starting value is invalid.
A Small Derivative Can Cause a Large Jump
Even when
\[ f'(x_n)\ne0, \]a derivative with very small magnitude can make
\[ \frac{f(x_n)}{f'(x_n)} \]very large.
The next iterate may jump far away from the current region.
The Initial Guess Matters
Newton's method is not globally guaranteed to converge from every starting value.
A poor initial guess may lead to:
- slow convergence;
- large jumps;
- oscillation;
- cycling;
- convergence to a different root;
- an undefined update;
- divergence.
Using a Graph to Choose \(x_0\)
A graph can help identify the approximate location of a root and show the local shape of the function.
Choosing \(x_0\) near the desired root often improves the likelihood of successful convergence.
Graphing is especially useful when several roots are present.
Using a Bracket to Choose \(x_0\)
Suppose a previous method has established
\[ aBracketing can therefore provide a safe preliminary localization before a faster open method is attempted.
Newton's Method Is an Open Method
Bisection maintains an interval guaranteed to contain a root.
Newton's method usually tracks only one current estimate.
Because it does not preserve a bracket automatically, Newton's method is called an open method.
Open methods can be fast, but they generally require more care.
Newton versus Bisection
Bisection offers:
- a guaranteed bracket under its assumptions;
- predictable interval reduction;
- simple error bounds;
- no derivative requirement.
Newton's method offers:
- very fast local convergence;
- a single-value update;
- high precision in relatively few iterations when conditions are favorable.
Newton versus Fixed-Point Iteration
Basic fixed-point iteration uses
\[ x_{n+1}=g(x_n) \]for a chosen rearrangement.
Newton's method chooses the specific function
\[ \boxed{ g(x)=x-\frac{f(x)}{f'(x)} }. \]The derivative-based construction is what gives Newton's method its special local convergence properties.
Stopping by Successive Difference
A common stopping condition is
\[ \boxed{|x_{n+1}-x_n|<\varepsilon}. \]This measures how much the estimate changed during the latest Newton step.
Stopping by Residual
Another common condition is
\[ \boxed{|f(x_n)|<\varepsilon}. \]This checks how closely the current approximation satisfies the original equation.
Combining Stopping Conditions
A practical implementation may require both
\[ |x_{n+1}-x_n|<\varepsilon_x \]and
\[ |f(x_{n+1})|<\varepsilon_f. \]The first controls movement in \(x\).
The second controls the residual.
Why a Small Step Is Not Enough by Itself
A small value of
\[ |x_{n+1}-x_n| \]does not automatically prove that the current estimate is close to a root.
Numerical stagnation, roundoff, or unusual function behavior can make successive estimates similar.
Residual checking provides additional evidence.
Why a Small Residual Is Not Always the Whole Story
A small residual
\[ |f(x_n)| \]can be useful, but the relationship between residual size and actual root error depends on the local behavior of the function.
When \(f'(x)\) is very small, a small residual may correspond to a larger error in \(x\) than expected.
Maximum Iteration Safeguard
Because Newton's method can fail to converge, computational implementations should impose a maximum iteration count.
For example,
\[ \boxed{n\le100}. \]If the stopping criteria are not met within the limit, the algorithm can report nonconvergence rather than continue indefinitely.
Newton's Method in Pseudocode
set x = initial guess
repeat
evaluate f(x)
evaluate f'(x)
if f'(x) = 0
stop with failure
new_x = x - f(x) / f'(x)
if stopping condition is satisfied
return new_x
x = new_x
until maximum iterations are reached
A More Defensive Newton Algorithm
set x = initial guess
repeat
fx = f(x)
dfx = f'(x)
if abs(dfx) is too small
stop or switch methods
new_x = x - fx / dfx
if abs(new_x - x) < x_tolerance
and abs(f(new_x)) < residual_tolerance
return new_x
x = new_x
until maximum iterations are reached
Real numerical software often includes safeguards beyond the basic formula.
Hybrid Methods
Numerical solvers often combine the reliability of bracketing with the speed of Newton's method.
A typical strategy is:
- first locate a root inside a valid bracket;
- attempt a Newton step;
- accept the Newton step when it behaves safely;
- fall back to a bracketing step when necessary.
Hybrid strategies reduce the weaknesses of either method used alone.
Newton's Method for General Square Roots
To approximate
\[ \sqrt{A}, \qquad A>0, \]solve
\[ f(x)=x^2-A=0. \]Since
\[ f'(x)=2x, \]Newton's method becomes
\[ \boxed{ x_{n+1} = \frac12\left(x_n+\frac{A}{x_n}\right) }. \]Example: Approximating \(\sqrt{10}\)
Use
\[ x_{n+1} = \frac12\left(x_n+\frac{10}{x_n}\right) \]with
\[ x_0=3. \]Then
\[ x_1 = \frac12\left(3+\frac{10}{3}\right) = \frac{19}{6} \approx3.166667. \]Continuing gives
\[ x_2\approx3.162281, \] \[ x_3\approx3.162278. \]Thus,
\[ \boxed{\sqrt{10}\approx3.162278}. \]Example: Solving \(\cos x=x\) with Newton's Method
Rewrite as
\[ f(x)=\cos x-x. \]Then
\[ f'(x)=-\sin x-1. \]Newton's formula becomes
\[ \boxed{ x_{n+1} = x_n- \frac{\cos x_n-x_n}{-\sin x_n-1} }. \]Newton Iteration for \(\cos x=x\)
Begin with
\[ x_0=1. \]The first update gives approximately
\[ x_1\approx0.750364. \]The next gives
\[ x_2\approx0.739113, \]followed by
\[ x_3\approx0.739085. \]Therefore,
\[ \boxed{x\approx0.739085}. \]This is much faster than the basic fixed-point iteration \(x_{n+1}=\cos x_n\).
Newton's Method and Local Linearization
The tangent-line equation
\[ f(x) \approx f(x_n)+f'(x_n)(x-x_n) \]is the first-order linear approximation of \(f\) near \(x_n\).
Setting this approximation equal to zero gives
\[ 0 \approx f(x_n)+f'(x_n)(x-x_n), \]which leads directly to Newton's update.
Newton's Method as Error Correction
The quantity
\[ f(x_n) \]tells us how far the current estimate is from satisfying the equation in output space.
Dividing by the slope
\[ f'(x_n) \]converts that output discrepancy into an approximate horizontal correction.
Newton's step subtracts that correction from the current estimate.
Common Error: Forgetting the Derivative
Newton's method is not
\[ x_{n+1}=x_n-f(x_n). \]The derivative is essential:
\[ \boxed{ x_{n+1} = x_n-\frac{f(x_n)}{f'(x_n)} }. \]Common Error: Evaluating \(f\) and \(f'\) at Different Inputs
Both
\[ f(x_n) \]and
\[ f'(x_n) \]must be evaluated at the same current iterate \(x_n\).
Mixing \(f(x_n)\) with \(f'(x_{n-1})\) changes the method.
Common Error: Losing the Minus Sign
The formula is
\[ x_{n+1} = x_n- \frac{f(x_n)}{f'(x_n)}. \]Replacing the subtraction with addition generally sends the iteration in a different direction.
Common Error: Using a Point Where \(f'(x_n)=0\)
If
\[ f'(x_n)=0, \]the standard Newton update is undefined.
Choose a different starting value or switch to another numerical method.
Common Error: Assuming Convergence Is Guaranteed
Newton's method can be extremely effective, but it is not guaranteed to converge from every starting point.
Always monitor the iterates and use stopping and failure conditions.
Common Error: Ignoring Which Root Was Found
If a function has several roots, different initial guesses may converge to different solutions.
The final result should therefore be checked against the intended search region or application.
Common Error: Rounding Too Early
Newton's method often gains precision rapidly.
Rounding every intermediate iterate too aggressively can throw away that advantage.
Retain sufficient internal precision and round the final reported answer according to the required tolerance.
Common Error: Stopping Without Verification
A stable-looking decimal is not enough.
Check the final value by evaluating
\[ f(x_n). \]The residual should be consistent with the claimed accuracy.
A Reliable Newton Workflow
- Rewrite the problem as \(f(x)=0\).
- Compute \(f'(x)\).
- Choose a reasonable initial estimate \(x_0\).
- Evaluate \(f(x_n)\) and \(f'(x_n)\).
- Check that \(f'(x_n)\) is not zero or dangerously small.
- Compute \(x_{n+1}=x_n-f(x_n)/f'(x_n)\).
- Record the new approximation.
- Check the change in \(x\) and the residual.
- Repeat until the stopping conditions are satisfied.
- Verify the final approximation in the original equation.
Example: Full Newton Workflow
Approximate the positive root of
\[ x^2-7=0. \]Define
\[ f(x)=x^2-7, \qquad f'(x)=2x. \]Choose
\[ x_0=3. \]Then
\[ x_1 = 3-\frac{9-7}{6} = 3-\frac13 = \frac83 \approx2.666667. \]Continue the \(\sqrt7\) Workflow
Next,
\[ x_2 = \frac12\left( \frac83+\frac{7}{8/3} \right) \approx2.645833. \]One more step gives
\[ x_3\approx2.645751. \]Therefore,
\[ \boxed{\sqrt7\approx2.645751}. \]Practice 1: Write the Newton Formula
For
\[ f(x)=x^2-5, \]compute \(f'(x)\) and write the Newton update.
Practice 2: First Iteration
For
\[ f(x)=x^2-5 \]with
\[ x_0=2, \]compute \(x_1\).
Practice 3: Second Iteration
Continue Practice 2 and compute \(x_2\).
Practice 4: Cubic Update
For
\[ f(x)=x^3-4, \]write the Newton iteration formula.
Practice 5: Derivative Failure
Explain why
\[ x_0=0 \]is invalid for Newton's method applied to
\[ f(x)=x^3-8. \]Practice 6: Successive-Difference Test
Suppose
\[ x_n=1.414214 \]and
\[ x_{n+1}=1.4142136. \]Does
\[ |x_{n+1}-x_n|<10^{-6} \]hold?
Practice 7: Residual
For
\[ f(x)=x^2-2 \]and
\[ x=1.414, \]compute the residual.
Practice 8: Simple or Multiple Root?
For
\[ f(x)=(x-3)^2, \]determine whether \(x=3\) is a simple root.
Practice 9: Compare Methods
State one reason Newton's method may be faster than bisection and one reason bisection may be more reliable.
Practice 10: Interpret the Geometry
What geometric point becomes \(x_{n+1}\) in Newton's method?
Practice Answers
Practice 1
Since
\[ f(x)=x^2-5, \]we have
\[ f'(x)=2x. \]Therefore,
\[ \boxed{ x_{n+1} = x_n-\frac{x_n^2-5}{2x_n} }. \]Practice 2
\[ x_1 = 2-\frac{2^2-5}{2(2)}. \] \[ = 2-\frac{-1}{4}. \] \[ \boxed{x_1=2.25}. \]Practice 3
\[ x_2 = 2.25-\frac{2.25^2-5}{2(2.25)}. \]Since
\[ 2.25^2-5=0.0625, \]we obtain
\[ x_2 = 2.25-\frac{0.0625}{4.5} \approx2.236111. \]Therefore,
\[ \boxed{x_2\approx2.236111}. \]Practice 4
For
\[ f(x)=x^3-4, \]the derivative is
\[ f'(x)=3x^2. \]Therefore,
\[ \boxed{ x_{n+1} = x_n-\frac{x_n^3-4}{3x_n^2} }. \]Practice 5
For
\[ f(x)=x^3-8, \]we have
\[ f'(x)=3x^2. \]At
\[ x_0=0, \]the derivative is
\[ f'(0)=0. \]Newton's formula would divide by zero, so the update is undefined.
Practice 6
\[ |1.4142136-1.414214| = 0.0000004 = 4\times10^{-7}. \]Since
\[ 4\times10^{-7}<10^{-6}, \]the condition is satisfied.
Practice 7
\[ f(1.414) = 1.414^2-2. \] \[ = 1.999396-2. \] \[ \boxed{f(1.414)=-0.000604}. \]Practice 8
Since
\[ f(x)=(x-3)^2, \]the root \(x=3\) has multiplicity \(2\).
Also,
\[ f'(3)=0. \]Therefore, \(x=3\) is not a simple root.
Practice 9
Newton's method can converge quadratically near a suitable simple root, so it may gain correct digits very rapidly.
Bisection preserves a valid root bracket and has predictable interval reduction, making it more robust under its assumptions.
Practice 10
The next iterate \(x_{n+1}\) is the \(x\)-coordinate where the tangent line at
\[ (x_n,f(x_n)) \]crosses the \(x\)-axis.
What to Remember
- Newton's method solves \(f(x)=0\) using tangent-line approximations.
- The update is \(x_{n+1}=x_n-f(x_n)/f'(x_n)\).
- The method requires derivative information.
- Near a suitable simple root, convergence can be quadratic.
- Multiple roots usually reduce the standard rate of convergence.
- The update fails when \(f'(x_n)=0\).
- A very small derivative can produce a very large Newton step.
- The initial guess strongly affects convergence.
- Stopping criteria should monitor both iterate changes and residuals when appropriate.
- Bracketing and hybrid methods can improve the reliability of Newton-based solvers.
Where We Go Next
Newton's method gains speed by using derivative information. Sometimes, however, a derivative is unavailable, expensive, or inconvenient to evaluate.
The next lesson, Secant Methods, replaces the derivative with a slope estimated from two nearby function values and develops a derivative-free root-finding procedure closely related to Newton's method.