Skip to content

← Grade 11 Mathematics

Exam practice

Every question from the end of every unit, with hints and answers to open. After you check an answer, mark how you did, and come back to the ones you didn’t get.

6 questions

Unit 20 · Numerical Computation

Short questions

1.

Show that x3−4x−7=0 x^3 - 4x - 7 = 0 has a root between 2 and 3, and find it correct to two decimal places by bisection. (5 marks)

Hint

Stop when both ends of the interval round to the same two decimal places.

Answer

f(2) = 8 − 8 − 7 = −7 < 0, f(3) = 27 − 12 − 7 = 8 > 0: a root in (2, 3).

n a b c f(c)
1 2 3 2.5 −1.3750
2 2.5 3 2.75 2.7969
3 2.5 2.75 2.625 0.5879
4 2.5 2.625 2.5625 −0.4236
5 2.5625 2.625 2.59375 0.0746
6 2.5625 2.59375 2.578125 −0.1764
7 2.578125 2.59375 2.5859375 −0.0514

The root is in [2.5859375, 2.59375]; both ends round to 2.59. The root is 2.59 correct to two decimal places.

2.

Find the root of xlog⁡10x=1.2 x\log_{10} x = 1.2 correct to four decimal places by Newton–Raphson, starting from x₀ = 2.5. (5 marks)

Hint

ddx(xlog⁡10x)=log⁡10x+log⁡10e=log⁡10x+0.434294 \frac{d}{dx}(x\log_{10} x) = \log_{10} x + \log_{10} e = \log_{10} x + 0.434294 . Keep six decimal places.

Answer

f(x)=xlog⁡10x−1.2 f(x) = x\log_{10} x - 1.2 , f′(x)=log⁡10x+0.434294 f'(x) = \log_{10} x + 0.434294 .
x1=2.5−2.5×0.397940−1.20.397940+0.434294=2.5−−0.2051500.832234=2.746505 x_1 = 2.5 - \dfrac{2.5 \times 0.397940 - 1.2}{0.397940 + 0.434294} = 2.5 - \dfrac{-0.205150}{0.832234} = 2.746505
x2=2.746505−0.0051130.873075=2.740649 x_2 = 2.746505 - \dfrac{0.005113}{0.873075} = 2.740649
x₃ = 2.740646
x₂ and x₃ agree to four places: x = 2.7406.

3.
  • a.Show that Newton–Raphson for N3 \sqrt[3]{N} is xn+1=13(2xn+Nxn2) x_{n+1} = \dfrac{1}{3}\left( 2x_n + \dfrac{N}{x_n^2} \right) . (2 marks)
  • b.Use it to find 173 \sqrt[3]{17} correct to four decimal places, from x₀ = 2.5. (3 marks)
Answer

a. N3 \sqrt[3]{N} is the root of f(x)=x3−N f(x) = x^3 - N , with f′(x)=3x2 f'(x) = 3x^2 :
xn+1=xn−xn3−N3xn2=3xn3−xn3+N3xn2=13(2xn+Nxn2) ✓ x_{n+1} = x_n - \frac{x_n^3 - N}{3x_n^2} = \frac{3x_n^3 - x_n^3 + N}{3x_n^2} = \frac{1}{3}\left( 2x_n + \frac{N}{x_n^2} \right) \ ✓
b. x1=13(5+176.25)=2.573333 x_1 = \frac{1}{3}\left(5 + \frac{17}{6.25}\right) = 2.573333 , x2=13(5.146666+176.622043)=2.571283 x_2 = \frac{1}{3}\left(5.146666 + \frac{17}{6.622043}\right) = 2.571283 , x₃ = 2.571282. So 173=2.5713 \sqrt[3]{17} = 2.5713 . (Check: 2.57133=17.0004 2.5713^3 = 17.0004 .)

4.

f(x)=x3−2x+2 f(x) = x^3 - 2x + 2 .

  • a.Show that Newton–Raphson from x₀ = 0 never reaches a root. (2 marks)
  • b.Find the root correct to three decimal places, starting from x₀ = −2. (3 marks)
Answer
  • a.f′(x)=3x2−2 f'(x) = 3x^2 - 2 . From 0: x1=0−2−2=1 x_1 = 0 - \frac{2}{-2} = 1 ; from 1: x2=1−11=0 x_2 = 1 - \frac{1}{1} = 0 . The values repeat 0, 1, 0, 1, … for ever, and neither is a root (f(0) = 2, f(1) = 1).
  • b.f(−2) = −2, f(−1) = 3: the root is in (−2, −1).

x1=−2−−210=−1.8 x_1 = -2 - \frac{-2}{10} = -1.8 , x2=−1.8−−0.2327.72=−1.769948 x_2 = -1.8 - \frac{-0.232}{7.72} = -1.769948 , x₃ = −1.769293, x₄ = −1.769292. The root is −1.769.

5.
  • a.An interval of width 1 traps a root. How many bisection steps make the error less than 0.00005 (four decimal places)? (2 marks)
  • b.Newton–Raphson for e−x=x e^{-x} = x from x₀ = 0.5 gives 0.566311, 0.567143, 0.567143. Find the approximate error and the relative approximate error of each step, and say which method you would use and why. (3 marks)
Answer
  • a.12n<0.00005 \frac{1}{2^n} < 0.00005 means 2n>20000 2^n > 20000 : 214=16384 2^{14} = 16384 is too few, so 15 steps (215=32768 2^{15} = 32768 ).
  • b.Ea=0.066311 E_a = 0.066311 (εa=0.0663110.566311=11.7% \varepsilon_a = \frac{0.066311}{0.566311} = 11.7\% ), then 0.000832 (0.147%), then less than 0.0000005 (under 0.0001%). The root is 0.567143, found in three steps where bisection would need about 20 for the same six places. Newton–Raphson, since f′(x)=−e−x−1 f'(x) = -e^{-x} - 1 is easy to find and never zero; bisection when the derivative is hard or the start uncertain.

Long question

6.

The equation 3x −  cos x − 1 = 0 (x in radians).

  • a.Show that it has a root in (0, 1). (1 mark)
  • b.Do four steps of bisection, and give the interval the root is in and the greatest possible error. (3 marks)
  • c.Find the root correct to four decimal places by Newton–Raphson from x₀ = 0.5. (3 marks)
  • d.Compare the two methods’ approximate errors. (1 mark)
Answer

a. f(0) = −1 − 1 = −2 < 0, f(1) = 3 − 0.5403 − 1 = 1.4597 > 0: a root in (0, 1).
b.

n a b c f(c)
1 0 1 0.5 −0.3776
2 0.5 1 0.75 0.5183
3 0.5 0.75 0.625 0.0640
4 0.5 0.625 0.5625 −0.1584

The root is in [0.5625, 0.625]; the midpoint c₄ = 0.5625 is within 124=0.0625 \frac{1}{2^4} = 0.0625 of it.

  • c.f′(x) = 3 +  sin x. x1=0.5−1.5−0.877583−13+0.479426=0.608519 x_1 = 0.5 - \dfrac{1.5 - 0.877583 - 1}{3 + 0.479426} = 0.608519 , x₂ = 0.607102, x₃ = 0.607102. The root is 0.6071.
  • d.Bisection’s approximate error halves each step: |c₄ − c₃| = 0.0625. Newton–Raphson’s fell 0.109, 0.0014, 0.0000002: after three steps it is over 100,000 times smaller than bisection’s after four.