top of page

14.2 The Newton-Raphson Method

OCR A-level Maths Year 2 · H240 · Chapter 14: Numerical Solution of Equations

What is in the full lesson (10 activities)

Every item below opens free in the course.

A free OCR A-level Maths Year 2 lesson for OCR A Level Mathematics A (H240) from OBA School: using tangents to find fast approximations to roots (OCR H240: 1.09d). 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 the Newton-Raphson method using a tangent to the curve
  • Use xₙ₊₁ = xₙ − (f(xₙ))/(f'(xₙ)) to find approximations to a root
  • Carry out the iteration efficiently on a calculator and recognise rapid convergence
  • Combine Newton-Raphson with a change of sign to give a root to a stated accuracy
  • Apply the method to equations involving exponentials, logarithms and trigonometric functions

Key words

  • Iteration: Repeating a process, using each output as the next input.
  • Tangent: The straight line that touches the curve at a point and has the same gradient there.
  • xₙ: The nth approximation to the root; x₀ is the starting value.
  • Converge: The approximations get closer and closer to a fixed value.

Where the formula comes from

Start at x₀, near a root. The tangent at (x₀, f(x₀)) is a good straight-line approximation to the curve, and it is easy to find where a straight line crosses the x-axis. That crossing point is x₁, usually much closer to the root.

Worked example: deriving the formula

The tangent at (xₙ, f(xₙ)) is y − f(xₙ) = f'(xₙ)(x − xₙ).
It meets the x-axis when y = 0: −f(xₙ) = f'(xₙ)(x − xₙ), so x = xₙ − (f(xₙ))/(f'(xₙ))

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

Key fact: Newton-Raphson: xₙ₊₁ = xₙ − (f(xₙ))/(f'(xₙ))

Using the method

Write down f(x) and f'(x) first. On a calculator, type x₀ and press =, then type the formula with ANS in place of xₙ and keep pressing =. Write down each value to more decimal places than you need.

Worked example: a cubic

Use Newton-Raphson with x₀ = 2 to find a root of x³ − 3x − 4 = 0 to 4 decimal places.
f(x) = x³ − 3x − 4, f'(x) = 3x² − 3. f(2) = −2, f'(2) = 9, so x₁ = 2 − (−2)/9 = 2.222222...
x₂ = 2.196215..., x₃ = 2.195823..., x₄ = 2.195823...

Answer: the root is 2.1958 to 4 d.p.

Newton-Raphson usually converges very fast: once you are close, the number of correct decimal places roughly doubles at each step.

Worked example: a trigonometric equation

Solve x = cos x (x in radians) using x₀ = 1.
f(x) = x − cos x, f'(x) = 1 + sin x. x₁ = 1 − (1 − cos 1)/(1 + sin 1) = 0.750364...
x₂ = 0.739113..., x₃ = 0.739085...

Answer: x = 0.73909 to 5 d.p.

Proving the accuracy of a root

Newton-Raphson gives approximations, not proof. To show that a root is correct to a given accuracy, use a change of sign at the bounds, as in 14.1.

Worked example: combining the two methods

Show that the root of x³ − 3x − 4 = 0 found above is 2.196 to 3 d.p.
f(2.1955) = −0.00371 0. Change of sign and f is continuous.

Answer: so 2.1955 < α < 2.1965, and α = 2.196 (3 d.p.)

Worked example: square roots by Newton-Raphson

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

Answer: (1/2)(xₙ + a/(xₙ)), as required

Equations from contexts

Rearrange the equation to f(x) = 0 first. For an intersection of two curves y = g(x) and y = h(x), use f(x) = g(x) − h(x). Choose x₀ from a sketch or a change of sign.

Worked example: an intersection

Find where y = ln x meets y = 3 − x, using x₀ = 2, to 3 d.p.
f(x) = ln x + x − 3, f'(x) = 1/x + 1. x₁ = 2 − (ln 2 − 1)/1.5 = 2.204569...
x₂ = 2.207939..., x₃ = 2.207940...

Answer: x = 2.208 (3 d.p.), at the point (2.208, 0.792)

Common mistakes

  • Using (f'(xₙ))/(f(xₙ)) instead of (f(xₙ))/(f'(xₙ)).
  • Rounding each xₙ before using it. Keep full calculator accuracy.
  • Using degrees in a trigonometric equation. Always use radians.
  • Claiming an answer is correct to 3 d.p. from the iterations alone, without a change of sign check.
  • Differentiating f wrongly; check f'(x) before you start iterating.

Revision questions

Try these, then check your answers below each one.

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

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

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

Question 2. Use Newton-Raphson on f(x) = x² − 3 with x₀ = 2 to find x₁.

Answer: 1.75

Working: x₁ = 2 − 1/4 = 1.75.

Question 3. Use Newton-Raphson on f(x) = x³ − x − 1 with x₀ = 1.5 to find x₁, to 4 decimal places.

Answer: 1.3478

Working: x₁ = 1.5 − 0.875/5.75 = 1.3478.

Related lessons

Continue in the full course

This lesson is section 14.2 of our free OCR 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.

Continue lesson 14.2 in the free course →

 

 

 

 

 

 

 

bottom of page