top of page

10.3 The Newton-Raphson Method

A-level Maths Year 2 · Edexcel 9MA0 · Chapter 10: Numerical Methods

A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: using tangents to home in on a root quickly, and knowing when the method fails. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Explain how the Newton-Raphson method uses tangents to find a root
  • Apply xₙ₊₁ = xₙ − (f(xₙ))/(f′(xₙ)) to find successive approximations
  • Use Newton-Raphson with polynomial, exponential, log and trigonometric functions
  • Explain why the method fails when the starting value is at or near a stationary point

Key words

  • Tangent: A straight line that touches the curve at a point and has the same gradient as the curve there.
  • Newton- Raphson method: An iterative method that uses the tangent at each approximation to find a better one.
  • Starting value: The first approximation x₀. It should be close to the root.
  • Stationary point: A point where f′(x) = 0. The tangent there is horizontal.
  • Recurrence relation: A rule that gives each term from the one before, such as xₙ₊₁ = g(xₙ).

Where the formula comes from

Start at x₀, near a root α. Draw the tangent to y = f(x) at (x₀, f(x₀)). Where the tangent crosses the x-axis gives x₁, usually much closer to α. Repeat from x₁.

The tangent has gradient f′(x₀) = (f(x₀))/(x₀ − x₁), because it rises f(x₀) over the horizontal distance x₀ − x₁. Rearranging gives the formula.

Formula: Newton-Raphson: xₙ₊₁ = xₙ − (f(xₙ))/(f′(xₙ))

Worked example: finding the next approximation

f(x) = x³ + x² − 7. Taking x₀ = 1.5, find x₁.
f′(x) = 3x² + 2x
f(1.5) = 3.375 + 2.25 − 7 = −1.375 and f′(1.5) = 6.75 + 3 = 9.75
x₁ = 1.5 − (−1.375)/9.75 = 1.5 + 0.14102...

Answer: x₁ = 1.6410 (4 d.p.)

Repeating the method

Newton-Raphson usually converges very fast: once you are close, the number of correct decimal places roughly doubles each time. Store the formula on your calculator using ANS.

Worked example: continuing

Continue from the example above: xₙ₊₁ = xₙ − (xₙ³ + xₙ² − 7)/(3xₙ² + 2xₙ)
x₁ = 1.641026, x₂ = 1.631151, x₃ = 1.631099, x₄ = 1.631099
The values agree to 6 d.p. A sign change at 1.6305 and 1.6315 proves the root is 1.631 to 3 d.p.

Answer: α = 1.631 (3 d.p.)

  • 0; xₙ 1.5; f(xₙ) −1.375
  • 1; xₙ 1.641026; f(xₙ) 0.1122...
  • 2; xₙ 1.631151; f(xₙ) 0.000581...
  • 3; xₙ 1.631099; f(xₙ) 0.0000000155...

Other types of function

The method works for any function you can differentiate. Use radians for trigonometric functions, and the product or chain rule where needed.

Worked example: a product with ln x

Use Newton-Raphson with x₀ = 2 to find a root of x ln x − 2 = 0 to 3 decimal places.
f(x) = x ln x − 2, so by the product rule f′(x) = ln x + 1
x₁ = 2 − (2 ln 2 − 2)/(ln 2 + 1) = 2.362464
x₂ = 2.345783, x₃ = 2.345751

Answer: the root is 2.346 (3 d.p.)

Worked example: showing a formula

Show that Newton-Raphson for f(x) = x² − 10 gives xₙ₊₁ = (xₙ² + 10)/(2xₙ).
xₙ₊₁ = xₙ − (xₙ² − 10)/(2xₙ) = (2xₙ² − (xₙ² − 10))/(2xₙ) = (xₙ² + 10)/(2xₙ)

Answer: this formula finds √10

When Newton-Raphson fails

If f′(x₀) = 0, the tangent is horizontal and never meets the x-axis: the formula divides by zero. If f′(x₀) is close to 0, the tangent is nearly flat and x₁ lands a long way off, perhaps near a different root.

Worked example: a bad starting value

f(x) = x³ − 3x + 1. Explain why x₀ = 1 fails, and find x₁ when x₀ = 1.1.
f′(x) = 3x² − 3, so f′(1) = 0: the formula would divide by zero.
x₀ = 1.1: f(1.1) = −0.969, f′(1.1) = 0.63, x₁ = 1.1 + 0.969/0.63 = 2.638

Answer: x₁ = 2.638 is much further from the nearby roots 0.347 and 1.532

Common mistakes

  • Writing xₙ + (f(xₙ))/(f′(xₙ)). The formula has a minus sign.
  • Differentiating wrongly, for example forgetting the product rule for x ln x.
  • Starting at or near a stationary point, where f′(x₀) = 0 or is very small.
  • Using degrees for a trigonometric function. Newton-Raphson needs radians.
  • Rounding x₁ before using it to find x₂. Keep full accuracy.

Revision questions

Try these, then check your answers below each one.

Question 1. Which is the Newton-Raphson formula? (Choose from: xₙ₊₁ = xₙ − (f(xₙ))/(f'(xₙ)); xₙ₊₁ = xₙ + (f(xₙ))/(f'(xₙ)); xₙ₊₁ = xₙ − (f'(xₙ))/(f(xₙ)); xₙ₊₁ = f(xₙ) − (xₙ)/(f'(xₙ)).)

Answer: xₙ₊₁ = xₙ − (f(xₙ))/(f'(xₙ))

Working: The tangent at xₙ has gradient f'(xₙ), so it meets the axis at xₙ₊₁ = xₙ − (f(xₙ))/(f'(xₙ)).

Question 2. Apply the Newton-Raphson method once to f(x) = x² − 7 with x₀ = 3. Give x₁ to 4 decimal places.

Answer: 2.6667

Working: f(3) = 2, f'(3) = 6, so x₁ = 3 − 2/6 = 2.6667.

Question 3. True or false? The Newton-Raphson method fails for f(x) = x³ − 3x² + 2 with x₀ = 2.

Answer: True

Working: f'(x) = 3x² − 6x, so f'(2) = 12 − 12 = 0. The tangent at x = 2 is horizontal, so the formula divides by zero: true.

Related lessons

Continue in the full course

This lesson is section 10.3 of our free A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 2 course.

 

 

 

 

 

 

 

bottom of page