A-level Mathematics

9.3 Newton–Raphson and other recurrence relations — Practise

Work through these on your own. Write down the derivative before you substitute. Give four decimal places unless the question says otherwise.

The questions and the answers below come from a set that is checked by computer every time the book is built.

  1. For f(x)=x3+x−1f(x) = x^3 + x - 1, write down f′(x)f'(x).
  2. Use Newton–Raphson on f(x)=x3+x−1f(x) = x^3 + x - 1 with x0=0.7x_0 = 0.7. Find x1x_1 to four decimal places.
  3. Continue the iteration to find x2x_2 for f(x)=x3+x−1f(x) = x^3 + x - 1 from x0=0.7x_0 = 0.7.
  4. State the root of x3+x−1=0x^3 + x - 1 = 0 to four decimal places.
  5. For f(x)=ex−3xf(x) = e^x - 3x, write down f′(x)f'(x).
  6. Use Newton–Raphson on ex=3xe^x = 3x with x0=1.5x_0 = 1.5. Find x1x_1 to four decimal places.
  7. Continue the iteration on ex=3xe^x = 3x to find the root near 1.51.5 to four decimal places.
  8. Use xn+1=12(xn+5xn)x_{n+1} = \dfrac{1}{2}\left(x_n + \dfrac{5}{x_n}\right) with x0=2x_0 = 2. Find x3x_3 to four decimal places.
  9. Continue the recurrence in the previous question to find x4x_4 to five decimal places.
  10. The recurrence xn+1=12(xn+7xn)x_{n+1} = \dfrac{1}{2}\left(x_n + \dfrac{7}{x_n}\right) starts from x0=3x_0 = 3. Find x2x_2 as an exact fraction.
  11. For f(x)=x2−4f(x) = x^2 - 4, work out f′(0)f'(0). Explain why Newton–Raphson fails from x0=0x_0 = 0.
  12. For f(x)=x3−2x+2f(x) = x^3 - 2x + 2 with x0=0x_0 = 0, find x2x_2.
  13. Use Newton–Raphson on x3−2x−5=0x^3 - 2x - 5 = 0 with x0=2x_0 = 2. Find x2x_2.
Answers and concise solutions

1. The derivative

Answer: Differentiate term by term: f′(x)=3x2+1f'(x) = 3x^2 + 1. The Newton–Raphson step needs this at each estimate.

2. The value of x1

Answer: Here f(0.7)=0.043f(0.7) = 0.043 and f′(0.7)=2.47f'(0.7) = 2.47, so x1=0.7−0.0432.47=0.6825911x_1 = 0.7 - \dfrac{0.043}{2.47} = 0.6825911, which is 0.68260.6826 to four decimal places.

3. The value of x2

Answer: With x1=0.6825911x_1 = 0.6825911, f(x1)=0.0006312f(x_1) = 0.0006312 and f′(x1)=2.3977918f'(x_1) = 2.3977918, so x2=0.6823279x_2 = 0.6823279. The value has settled.

4. The root

Answer: The Newton–Raphson values settle on 0.68232780.6823278, so the root is 0.68230.6823 to four decimal places. Section 9.1 found the same root, but needed four halving steps to reach only two decimal places.

5. The derivative

Answer: The derivative of exe^x is exe^x, and the derivative of 3x3x is 33, so f′(x)=ex−3f'(x) = e^x - 3.

6. The value of x1

Answer: Rearrange to ex−3x=0e^x - 3x = 0, so f′(x)=ex−3f'(x) = e^x - 3. Then f(1.5)=−0.0183109f(1.5) = -0.0183109 and f′(1.5)=1.4816891f'(1.5) = 1.4816891, so x1=1.5+0.0123581=1.5124x_1 = 1.5 + 0.0123581 = 1.5124 to four decimal places.

7. The root

Answer: The values are x1=1.5123581x_1 = 1.5123581, x2=1.5121346x_2 = 1.5121346 and x3=1.5121346x_3 = 1.5121346, so the root is 1.51211.5121 to four decimal places. The equation also has a root near 0.61910.6191, which a different starting value would find.

8. The value of x3

Answer: x1=2.25x_1 = 2.25, x2=2.236111x_2 = 2.236111 and x3=2.236068x_3 = 2.236068, which is 2.23612.2361 to four decimal places. The recurrence is Newton–Raphson applied to x2−5=0x^2 - 5 = 0, so it finds 5\sqrt{5}.

9. The value of x4

Answer: x4=2.2360680x_4 = 2.2360680 to five decimal places. This matches 5=2.2360680…\sqrt{5} = 2.2360680\ldots The recurrence is Newton–Raphson for x2−5=0x^2 - 5 = 0, so it homes in on 5\sqrt{5}.

10. The value of x2

Answer: x1=12(3+73)=83x_1 = \dfrac{1}{2}\left(3 + \dfrac{7}{3}\right) = \dfrac{8}{3}, so x2=12(83+218)=12748=2.6458x_2 = \dfrac{1}{2}\left(\dfrac{8}{3} + \dfrac{21}{8}\right) = \dfrac{127}{48} = 2.6458. This is Newton–Raphson for x2−7=0x^2 - 7 = 0, so it finds 7\sqrt{7}.

11. The value of the derivative at 0

Answer: f′(x)=2xf'(x) = 2x and f′(0)=0f'(0) = 0. The Newton–Raphson step divides by f′(x0)f'(x_0), so the first step would divide by zero. The tangent at x0=0x_0 = 0 is horizontal and never meets the axis.

12. The value of x2

Answer: x1=1x_1 = 1 and x2=0x_2 = 0, because f(1)=1f(1) = 1 and f′(1)=1f'(1) = 1. The values repeat 1,0,1,0,…1, 0, 1, 0, \ldots The formula was applied correctly, but the method cycles and never settles.

13. The value of x2

Answer: f′(x)=3x2−2f'(x) = 3x^2 - 2, so x1=2−−110=2.1x_1 = 2 - \dfrac{-1}{10} = 2.1, and x2=2.1−0.06111.23=2.0946x_2 = 2.1 - \dfrac{0.061}{11.23} = 2.0946 to four decimal places.

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.