All revision notes topics

Iteration and Newton-RaphsonAQA A-Level Maths: Revision notes

Section 1

Iterative methods

An iteration (recurrence relation) xn+1=g(xn)x_{n+1}=g(x_n) generates a sequence x0,x1,x2,…x_0,x_1,x_2,\ldots from a starting value. To solve f(x)=0f(x)=0, rearrange it into the form x=g(x)x=g(x). For x3+x−3=0x^3+x-3=0: x3=3−xx^3=3-x, so xn+1=3−xn3x_{n+1}=\sqrt[3]{3-x_n}. With x0=1x_0=1: x1=1.2599x_1=1.2599, x2=1.2028x_2=1.2028, x3=1.2158x_3=1.2158, x4=1.2129x_4=1.2129. If the sequence converges to α\alpha, then α=g(α)\alpha=g(\alpha), so α\alpha is a root of the original equation. Keep full calculator values (use the ANS key) and stop when successive terms agree to the required accuracy.

Key termsiterationrecurrence relationconverge
Exam tip

Rearrange so that xx appears alone on the left; the same equation has many rearrangements and they do not all converge.

Section 2

Staircase and cobweb diagrams

Draw y=xy=x and y=g(x)y=g(x). From x0x_0 go vertically to the curve, horizontally to the line y=xy=x, and repeat. If 0<g′(α)<10<g'(\alpha)<1 the path is a staircase that converges from one side. If −1<g′(α)<0-1<g'(\alpha)<0 it is a cobweb spiralling inwards, with terms alternating either side of α\alpha. If ∣g′(α)∣>1|g'(\alpha)|>1 the path moves away from α\alpha and the iteration diverges. For g(x)=3−x3g(x)=\sqrt[3]{3-x}, g′(x)=−13(3−x)−2/3g'(x)=-\frac13(3-x)^{-2/3}, which is about −0.23-0.23 at α=1.213\alpha=1.213, so it converges in a cobweb.

Key termsstaircase diagramcobweb diagramdiverge
Common mistake

Drawing the lines the wrong way round. Always go vertically to the curve first, then horizontally to y=xy=x.

Section 3

Newton-Raphson method

The Newton-Raphson method uses tangents. The tangent at xnx_n meets the xx-axis at xn+1=xn−f(xn)f′(xn).x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}. For f(x)=x2−7f(x)=x^2-7, f′(x)=2xf'(x)=2x, so xn+1=xn−xn2−72xnx_{n+1}=x_n-\frac{x_n^2-7}{2x_n}. With x0=3x_0=3: x1=83=2.6667x_1=\frac83=2.6667, x2=2.6458x_2=2.6458, close to 7=2.64575\sqrt7=2.64575. For f(x)=x3−2x−5f(x)=x^3-2x-5 with x0=2x_0=2: x1=2.1x_1=2.1, x2=2.094568x_2=2.094568, x3=2.094551x_3=2.094551, so α=2.0946\alpha=2.0946 (4 d.p.). The method usually converges very quickly when x0x_0 is close to the root.

Key termsNewton-Raphsontangent
Common mistake

Adding instead of subtracting f(xn)f′(xn)\frac{f(x_n)}{f'(x_n)}, or forgetting to differentiate.

Exam tip

Check your answer by evaluating ff at values just above and below it to confirm a sign change.

Section 4

How the methods can fail

Iteration: the sequence diverges if ∣g′∣>1|g'|>1 near the root. The rearrangement xn+1=xn3+13x_{n+1}=\frac{x_n^3+1}{3} for x3−3x+1=0x^3-3x+1=0 has g′(x)=x2g'(x)=x^2, which is greater than 1 at the root 1.5321.532, so starting at 1.61.6 gives 1.6991.699, 1.9671.967, moving away. Newton-Raphson: it fails if f′(xn)=0f'(x_n)=0 (a horizontal tangent never meets the axis and the formula divides by zero). It can also converge to a different root, or oscillate, if x0x_0 is near a stationary point or far from the root. For f(x)=x3−3x+1f(x)=x^3-3x+1, f′(1)=0f'(1)=0, so x0=1x_0=1 fails.

Key termsstationary pointdivision by zero
Exam tip

In a 'show that it fails' question, state the value of g′g' or f′f' and say what it means for the sequence.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Iteration and Newton-Raphson

  1. The equation x3+x−3=0x^3+x-3=0 has a root α\alpha between 1 and 2. A student uses the iteration xn+1=3−xn3x_{n+1}=\sqrt[3]{3-x_n} with x0=1x_0=1.
    Find x2x_2 and x3x_3, giving each to 4 decimal places.2 marks
  2. The Newton-Raphson method is used to approximate 7\sqrt7 by solving f(x)=0f(x)=0, where f(x)=x2−7f(x)=x^2-7, with starting value x0=3x_0=3.
    Find x2x_2, giving your answer to 4 decimal places.2 marks
  3. The equation f(x)=0f(x)=0, where f(x)=x3−2x−5f(x)=x^3-2x-5, has a root α\alpha close to 2. The Newton-Raphson method is used with x0=2x_0=2.
    Show that the Newton-Raphson iteration is xn+1=xn−xn3−2xn−53xn2−2x_{n+1}=x_n-\frac{x_n^3-2x_n-5}{3x_n^2-2}, and hence show that x1=2.1x_1=2.1.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).