Skip to content

9709 · 2.6

Numerical solution of equations — practice questions

Practice and worked examples for 9709 Numerical solution of equations. Short previews only — attempt the full question in MarkScheme against the official scheme.

Worked example 1

Show that the equation e2x−5x−3=0e^{2x} - 5x - 3 = 0 has a root between x=1x=1 and x=2x=2.

Show solution outline

Let f(x)=e2x−5x−3f(x) = e^{2x} - 5x - 3.

To show a root exists between 1 and 2, we evaluate f(1)f(1) and f(2)f(2).

For x=1x=1: f(1)=e2(1)−5(1)−3=e2−8≈7.389−8=−0.611f(1) = e^{2(1)} - 5(1) - 3 = e^2 - 8 \approx 7.389 - 8 = -0.611

For x=2x=2: f(2)=e2(2)−5(2)−3=e4−10−3=e4−13≈54.598−13=41.598f(2) = e^{2(2)} - 5(2) - 3 = e^4 - 10 - 3 = e^4 - 13 \approx 54.598 - 13 = 41.598

We have f(1)<0f(1) < 0 and f(2)>0f(2) > 0. Since the function f(x)f(x) is continuous and there is a change of sign in the interval [1,2][1, 2], there must be at least one root between x=1x=1 and x=2x=2.

Worked example 2

The equation x3+x−5=0x^3 + x - 5 = 0 has a root α\alpha. (i) Show that α\alpha lies between 1 and 2. (ii) Show that the equation can be rearranged into the form x=5−x3x = \sqrt[3]{5-x}. (iii) Use the iterative formula xn+1=5−xn3x_{n+1} = \sqrt[3]{5-x_n} with x0=1.5x_0 = 1.5 to find α\alpha correct to 3 decimal places.

Show solution outline

(i) Let f(x)=x3+x−5f(x) = x^3 + x - 5. f(1)=13+1−5=−3f(1) = 1^3 + 1 - 5 = -3 f(2)=23+2−5=8+2−5=5f(2) = 2^3 + 2 - 5 = 8 + 2 - 5 = 5 Since f(x)f(x) is continuous and there is a change of sign between x=1x=1 and x=2x=2, a root lies in the interval (1,2)(1, 2).

(ii) Start with the original equation: x3+x−5=0x^3 + x - 5 = 0 x3=5−xx^3 = 5 - x x=5−x3x = \sqrt[3]{5-x}

(iii) Using the iterative formula xn+1=5−xn3x_{n+1} = \sqrt[3]{5-x_n} with x0=1.5x_0 = 1.5. x0=1.5x_0 = 1.5 x1=5−1.53=3.53≈1.518294x_1 = \sqrt[3]{5 - 1.5} = \sqrt[3]{3.5} \approx 1.518294 x2=5−1.5182943≈1.515993x_2 = \sqrt[3]{5 - 1.518294} \approx 1.515993 x3=5−1.5159933≈1.516328x_3 = \sqrt[3]{5 - 1.515993} \approx 1.516328 x4=5−1.5163283≈1.516281x_4 = \sqrt[3]{5 - 1.516328} \approx 1.516281 x5=5−1.5162813≈1.516288x_5 = \sqrt[3]{5 - 1.516281} \approx 1.516288

The values are converging. Both x4x_4 and x5x_5 round to 1.516. To be certain, we can check the sign change around this value. Let's check the interval [1.5155,1.5165][1.5155, 1.5165]. f(1.5155)=(1.5155)3+1.5155−5≈−0.0051f(1.5155) = (1.5155)^3 + 1.5155 - 5 \approx -0.0051 f(1.5165)=(1.5165)3+1.5165−5≈+0.0054f(1.5165) = (1.5165)^3 + 1.5165 - 5 \approx +0.0054 There is a sign change, so the root lies in this interval. Therefore, the root α=1.516\alpha = 1.516 correct to 3 decimal places.