Newton-Raphson method: finding roots numerically
The Newton-Raphson method finds an approximate root of an equation . Starting from an estimate , it repeatedly uses
When the starting value is suitable and the iteration converges, the approximations usually become accurate very quickly.
Prerequisites
Section titled “Prerequisites”You should be able to:
- rearrange an equation into the form ;
- differentiate polynomial, exponential, logarithmic and trigonometric functions;
- find the equation and intercepts of a tangent;
- substitute accurately using a calculator;
- round to decimal places and significant figures.
Review differentiating standard functions, tangents to curves, and locating roots by a change of sign if needed.
Why the formula works
Section titled “Why the formula works”Suppose is an estimate of a root. At the point , the tangent to has equation
Use the point where this tangent crosses the -axis as the next estimate. At that intercept, and , so
Provided ,
which gives
Geometrically, each step follows the tangent down to the axis. If the graph is nearly straight near the root, that tangent intercept is a much better estimate than .
Applying Newton-Raphson
Section titled “Applying Newton-Raphson”Use this reliable process:
- Write the equation as .
- Find .
- Substitute both into the Newton-Raphson formula.
- Choose or use the given starting value .
- Calculate , retaining full calculator precision.
- Stop only when you have enough evidence for the requested accuracy.
Worked example 1: a polynomial root
Section titled “Worked example 1: a polynomial root”Use Newton-Raphson with to solve
Let
The iteration is
Now substitute repeatedly:
Thus the root is approximately
to decimal places.
Do not round before calculating . Store each value or use the calculator’s previous answer key.
Self-check 1
Section titled “Self-check 1”For , use to find and .
Answer
Since ,
Therefore
and
Equations not initially equal to zero
Section titled “Equations not initially equal to zero”Newton-Raphson applies to , so first move every term to one side. Different correct choices of can produce different iterations, even though they have the same roots.
Worked example 2: an exponential equation
Section titled “Worked example 2: an exponential equation”Find the solution of
near , using .
Define
Hence
The iterates are
Therefore the required solution is to decimal places.
The equation actually has another positive solution. A starting value near that root may converge to it instead. A numerical method finds a root, not automatically every root.
Worked example 3: deriving a given iteration
Section titled “Worked example 3: deriving a given iteration”Show that Newton-Raphson applied to
can be written as
Take
Then
The domain condition matters because must be defined.
Self-check 2
Section titled “Self-check 2”Derive a Newton-Raphson iteration for
Answer
Let , so . Therefore
Angles must be in radians when differentiating and evaluating these functions.
Accuracy and stopping
Section titled “Accuracy and stopping”Two successive displayed values agreeing is useful evidence of convergence, but it is not by itself a proof that the rounded root is correct. A slowly changing or temporarily stalled sequence can mislead.
For a secure final answer:
- iterate using extra guard digits;
- identify the proposed rounded value;
- if justification is required, use a change of sign at its rounding boundaries.
Worked example 4: justify the rounded answer
Section titled “Worked example 4: justify the rounded answer”Newton-Raphson gives the root of as
To prove that correct to decimal places, test the boundaries and :
The polynomial is continuous, so a root lies between these boundaries. Also,
throughout this short interval, so the root there is unique. Every number in the interval rounds to to decimal places. Therefore
See change of sign and rounding boundaries for the full justification method.
When Newton-Raphson works quickly
Section titled “When Newton-Raphson works quickly”Let be a root with
If is already close to and is sufficiently smooth, Newton-Raphson usually converges quadratically. Roughly, once the approximations are close enough, the number of correct digits can double at each step.
The method is fast because the tangent captures the local slope as well as the current function value. This advantage depends on being near a simple root and away from places where is zero or very small.
Failure modes and misconceptions
Section titled “Failure modes and misconceptions”Newton-Raphson is powerful, but it is not guaranteed to converge.
A zero or small derivative
Section titled “A zero or small derivative”If , the formula divides by zero. If is merely very small, the correction
can be enormous and send the next estimate far away.
For , choosing fails immediately because .
Cycling
Section titled “Cycling”For
the iteration started at gives
so it cycles and never approaches a root.
Convergence to a different root
Section titled “Convergence to a different root”If a function has several roots, the starting value affects which root is reached. The nearest root is not always the one obtained because the tangent may cross the axis elsewhere.
A repeated root
Section titled “A repeated root”At a repeated root, often . Convergence can become much slower. For example, applying the usual formula to
gives
so the error only halves each time. The usual rapid quadratic convergence is lost.
Read when numerical iteration fails for broader comparisons and recovery strategies.
Common mistakes
Section titled “Common mistakes”- Using the wrong derivative: differentiate exactly as defined.
- Forgetting to set the equation equal to zero: Newton-Raphson finds zeros of .
- Using in the denominator: every quantity on the right uses the current value .
- Rounding during iteration: retain the full stored value until the final answer.
- Claiming proof from stable decimals: verify rounding boundaries when the question asks for justification.
- Ignoring domains: logarithms, square roots and denominators can make an iterate invalid.
- Using degrees with trigonometric calculus: standard derivatives assume radians.
- Assuming every starting value works: inspect the graph or use a sign-changing interval to choose a sensible start.
Mixed self-check
Section titled “Mixed self-check”Let
- Write down the Newton-Raphson iteration.
- Starting with , calculate and to decimal places.
- Explain briefly why there is only one real root.
Answer
Since ,
Then
and
Finally,
for every real . Hence is strictly increasing and can have at most one real root. Since, for example, , continuity also proves that a root exists. Therefore it has exactly one real root.
What to learn next
Section titled “What to learn next”- Compare this tangent method with fixed point iteration.
- Learn the reliable bracketing argument in locating roots using a change of sign.
- Study when numerical iteration fails before choosing a method in unfamiliar problems.
- Use checking answers to distinguish a plausible decimal from a justified result.