Lemma
← All topics
Pure mathematics

Numerical methods

Getting answers when algebra runs out.

Work on paper. Use the hints one at a time if you are stuck, then compare with the full solution, line by line.

Very easy

Q1Very easy3 marks#

f(x)=x3−4x+1f(x) = x^3 - 4x + 1. By evaluating ff at the integers from −3-3 to 33, find every integer nn for which the interval (n,n+1)(n, n + 1) contains a root. Enter the values of nn.

Q2Very easy2 marks#

Using xn+1=xn+3x_{n+1} = \sqrt{x_n + 3} with x0=2x_0 = 2, find x2x_2 to 4 decimal places.

Q3Very easy3 marks#

Use the trapezium rule with 22 strips to estimate ∫02x2 dx\displaystyle\int_0^2 x^2\,dx.

Q4Very easy2 marks#

Write down the Newton–Raphson iteration for f(x)=x2−7f(x) = x^2 - 7 in the form xn+1=F(xn)x_{n+1} = F(x_n), simplified to a single fraction. Enter F(x)F(x).

Q5Very easy2 marks#

Show that the equation x3−x−3=0x^3 - x - 3 = 0 has a root between x=1x = 1 and x=2x = 2.

Q6Very easy2 marks#

Using xn+1=1+1xnx_{n+1} = 1 + \dfrac{1}{x_n} with x0=1x_0 = 1, find x3x_3 as an exact fraction.

Q7Very easy2 marks#

Apply one step of the Newton–Raphson method to f(x)=x2−3f(x) = x^2 - 3 with x0=2x_0 = 2. Give x1x_1 as an exact fraction.

Q8Very easy2 marks#

Use the trapezium rule with 22 strips to estimate ∫01x3 dx\displaystyle\int_0^1 x^3\,dx. Give your answer as an exact fraction.

Q9Very easy2 marks#

f(x)=2x−3xf(x) = 2^x - 3x. Find f(3)f(3) and f(4)f(4), and hence explain why f(x)=0f(x) = 0 has a root between 33 and 44. Enter f(3)f(3) and f(4)f(4).

Q10Very easy2 marks#

The iteration xn+1=xn+12x_{n+1} = \sqrt{x_n + 12}, with x0=1x_0 = 1, converges to a limit LL. Find LL.

Easy

Q11Easy3 marks#

Show that the equation cos⁡x=x\cos x = x has a root between 0.70.7 and 0.80.8 (radians).

Q12Easy3 marks#

Apply one iteration of Newton–Raphson to f(x)=x3−5f(x) = x^3 - 5 starting from x0=2x_0 = 2. Give x1x_1 as an exact fraction.

Q13Easy3 marks#

Show that x3−3x−4=0x^3 - 3x - 4 = 0 can be written as x=3x+43x = \sqrt[3]{3x + 4}, and use this iteration with x0=2x_0 = 2 to find x3x_3 to 4 decimal places.

Q14Easy4 marks#

Use the trapezium rule with 44 strips to estimate ∫131x dx\displaystyle\int_1^3 \frac{1}{x}\,dx, to 4 decimal places.

Q15Easy2 marks#

f(x)=(x−2)2f(x) = (x - 2)^2. Show that f(1)f(1) and f(3)f(3) have the same sign, and explain why the change-of-sign method cannot detect the root of f(x)=0f(x) = 0.

Q16Easy3 marks#

Use the Newton–Raphson method on f(x)=x3−2x−5f(x) = x^3 - 2x - 5 with x0=2x_0 = 2 to find x2x_2, correct to 4 decimal places.

Q17Easy3 marks#

Use the trapezium rule with 44 strips to estimate ∫0111+x2 dx\displaystyle\int_0^1 \frac{1}{1 + x^2}\,dx, correct to 4 decimal places.

Q18Easy3 marks#

Show that 73=1.913\sqrt[3]{7} = 1.913 correct to 3 decimal places.

Q19Easy3 marks#

Use the iteration xn+1=2+ln⁡xnx_{n+1} = 2 + \ln x_n with x0=3x_0 = 3 to find x3x_3, correct to 4 decimal places.

Q20Easy3 marks#

Show that the Newton–Raphson iteration for f(x)=x3−20f(x) = x^3 - 20 can be written xn+1=F(xn)x_{n+1} = F(x_n) where FF is a single fraction. Enter F(x)F(x).

Normal

Q21Normal4 marks#

Use Newton–Raphson with x0=0.5x_0 = 0.5 to find the root of e−x−x=0e^{-x} - x = 0, correct to 4 decimal places.

Q22Normal3 marks#

The equation x3+x−1=0x^3 + x - 1 = 0 has a root α\alpha. Show that α=0.682\alpha = 0.682 correct to 3 decimal places.

Q23Normal3 marks#

The iteration xn+1=g(xn)x_{n+1} = g(x_n) converges to a root α\alpha, with g′(α)=−0.4g'(\alpha) = -0.4. Explain whether the iteration diagram is a staircase or a cobweb, and why it converges.

Q24Normal4 marks#

Use the trapezium rule with 33 strips to estimate ∫0π/2sin⁡x dx\displaystyle\int_0^{\pi/2}\sin x\,dx, to 4 decimal places.

Q25Normal4 marks#

The equation ex−x−2=0e^x - x - 2 = 0 has exactly two roots. For each root, find the integer nn such that the root lies in (n,n+1)(n, n + 1). Enter both values of nn.

Q26Normal4 marks#

Use the Newton–Raphson method with x0=1x_0 = 1 to solve x=cos⁡xx = \cos x, giving the root correct to 4 decimal places.

Q27Normal4 marks#

The equation x3+4x−1=0x^3 + 4x - 1 = 0 has a root α\alpha near 0.250.25. Use the iteration xn+1=1−xn34x_{n+1} = \dfrac{1 - x_n^3}{4} with x0=0x_0 = 0 to find x3x_3 to 4 decimal places, and state whether the iterates form a staircase or a cobweb.

Q28Normal4 marks#

The integral ∫01ex2 dx\displaystyle\int_0^1 e^{x^2}\,dx cannot be found exactly using elementary functions. Use the trapezium rule with 44 strips to estimate it, correct to 4 decimal places.

Q29Normal4 marks#

Use the trapezium rule with 22 strips to estimate ∫12ln⁡x dx\displaystyle\int_1^2 \ln x\,dx. Given that the exact value is 2ln⁡2−12\ln 2 - 1, find the percentage error, to 3 significant figures.

Q30Normal4 marks#

The equation ln⁡x+x−2=0\ln x + x - 2 = 0 has a single root. Starting from x0=1.5x_0 = 1.5, use the Newton–Raphson method to find it correct to 4 decimal places.

Medium

Q31Medium5 marks#

The equation x2−6x+2=0x^2 - 6x + 2 = 0 has a root α=3−7≈0.354\alpha = 3 - \sqrt7 \approx 0.354.

(a)

For g(x)=x2+26g(x) = \dfrac{x^2 + 2}{6}, find g′(α)g'(\alpha) to 3 decimal places.

[2]
(b)

Starting from x0=0x_0 = 0, find x3x_3 using xn+1=g(xn)x_{n+1} = g(x_n), to 4 decimal places.

[3]
Q32Medium5 marks#

By applying Newton–Raphson to f(x)=x2−10f(x) = x^2 - 10 with x0=3x_0 = 3, find 10\sqrt{10} correct to 6 decimal places.

Q33Medium4 marks#

Use the trapezium rule with 44 strips to estimate ∫02ex dx\displaystyle\int_0^2 e^{x}\,dx, giving your answer to 3 significant figures. State, with a reason, whether it is an overestimate or an underestimate.

Q34Medium4 marks#

The equation x5+x−1=0x^5 + x - 1 = 0 has exactly one real root α\alpha. Show that α=0.755\alpha = 0.755 correct to 3 decimal places, and explain why there is only one real root.

Q35Medium5 marks#

The equation x2−5x+3=0x^2 - 5x + 3 = 0 has two roots. The iteration xn+1=xn2+35x_{n+1} = \dfrac{x_n^2 + 3}{5} is started at x0=4x_0 = 4. Explain which root it converges to, and give that root to 4 decimal places.

Q36Medium5 marks#

The curve y=x2+e−xy = x^2 + e^{-x} has one stationary point. Use the Newton–Raphson method with x0=0.5x_0 = 0.5 to find its xx-coordinate correct to 4 decimal places.

Q37Medium4 marks#

The trapezium rule with 22 strips gives an estimate of 77 for ∫02(x2+k) dx\displaystyle\int_0^2 (x^2 + k)\,dx. Find kk, and find the error in the estimate.

Q38Medium5 marks#

f(x)=tan⁡x−xf(x) = \tan x - x. Show that f(1.5)f(1.5) and f(1.7)f(1.7) have opposite signs, explain why this does not prove a root in (1.5,1.7)(1.5, 1.7), and find the number of roots of tan⁡x=x\tan x = x in the interval 1<x<51 < x < 5.

Q39Medium5 marks#

Early computers had no division circuit. Show that applying Newton–Raphson to f(x)=1x−7f(x) = \dfrac1x - 7 gives an iteration xn+1=F(xn)x_{n+1} = F(x_n) for 17\frac17 that uses only multiplication and subtraction. Enter F(x)F(x).

Q40Medium5 marks#

The positive root α\alpha of x2+x−5=0x^2 + x - 5 = 0 is found with the iteration xn+1=5−xnx_{n+1} = \sqrt{5 - x_n}, x0=2x_0 = 2. Show that the iteration converges, describe the diagram, and find α\alpha correct to 3 decimal places.

Hard

Q41Hard5 marks#

f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2 has a root at 1+3≈2.7321 + \sqrt3 \approx 2.732. Apply one step of Newton–Raphson starting from x0=2.1x_0 = 2.1, giving x1x_1 to 3 decimal places, and explain why x0=2.1x_0 = 2.1 is a poor choice.

Q42Hard5 marks#

Apply the Newton–Raphson method to f(x)=x2−2f(x) = x^2 - 2 with x0=1x_0 = 1, working with exact fractions. Find x3x_3, and show that x32x_3^2 differs from 22 by less than 10−510^{-5}.

Q43Hard6 marks#

Show that the trapezium rule with nn strips gives ∫01x2 dx≈13+16n2\displaystyle\int_0^1 x^2\,dx \approx \frac13 + \frac{1}{6n^2}. Hence find the least nn for which the error is less than 0.0010.001.

Q44Hard6 marks#

The curves y=exy = e^x and y=4−x2y = 4 - x^2 meet at a point with x>0x > 0. Show that this xx-coordinate lies in (1,1.1)(1, 1.1), use the iteration xn+1=ln⁡(4−xn2)x_{n+1} = \ln(4 - x_n^2) with x0=1x_0 = 1 to find it, and prove that your answer is correct to 3 decimal places.

Q45Hard5 marks#

The Newton–Raphson method is applied to f(x)=x3f(x) = \sqrt[3]{x}, whose only root is 00. Show that the iteration becomes xn+1=−2xnx_{n+1} = -2x_n, and find x5x_5 when x0=1x_0 = 1.

Q46Hard5 marks#

Newton–Raphson is applied to f(x)=x3−2x+2f(x) = x^3 - 2x + 2 with x0=0x_0 = 0. Find x1x_1 and x2x_2, and explain what happens. Enter x1x_1 and x2x_2.

Q47Hard6 marks#

Use the trapezium rule with 44 strips to estimate ∫0πxsin⁡x dx\displaystyle\int_0^\pi x\sin x\,dx. Find the exact value by integration by parts, and hence give the percentage error to 2 significant figures.

Q48Hard6 marks#

The iteration xn+1=cos⁡xnx_{n+1} = \cos x_n converges to α=0.739085\alpha = 0.739085. Near α\alpha the errors satisfy en+1≈g′(α) ene_{n+1} \approx g'(\alpha)\,e_n. Find g′(α)g'(\alpha), and hence find the least nn for which ∣g′(α)∣n<10−6|g'(\alpha)|^n < 10^{-6}, i.e. the number of steps needed to shrink an error by a factor of a million.

Q49Hard5 marks#

The bisection method halves an interval containing a root, keeping the half with a sign change. Starting from [1,2][1, 2] for f(x)=x3+2x−5f(x) = x^3 + 2x - 5, carry out three bisections. Enter the endpoints of the final interval.

Q50Hard5 marks#

Solve xex=2xe^x = 2 using the Newton–Raphson method with x0=1x_0 = 1, giving the root correct to 4 decimal places.

Extreme

Q51Extreme7 marks#

The iteration xn+1=kxn+1x_{n+1} = \dfrac{k}{x_n} + 1 converges to α=3\alpha = 3. Find kk, and determine whether the iteration converges with a staircase or a cobweb. Enter kk.

Q52Extreme6 marks#

Newton–Raphson is applied to f(x)=x2−af(x) = x^2 - a (a>0a > 0) with x0>0x_0 > 0. Let en=xn−ae_n = x_n - \sqrt a. Prove that en+1=en22xne_{n+1} = \dfrac{e_n^2}{2x_n}, deduce that xn≥ax_n \ge \sqrt a for all n≥1n \ge 1, and that the method converges.

Q53Extreme6 marks#

Let α\alpha be the root of x=cos⁡xx = \cos x in [0,1][0, 1], and let xn+1=cos⁡xnx_{n+1} = \cos x_n with x0∈[0,1]x_0 \in [0, 1]. Using the mean value theorem, prove that ∣xn−α∣≤(sin⁡1)n|x_n - \alpha| \le (\sin 1)^n for all nn, and deduce that xn→αx_n \to \alpha.

Q54Extreme6 marks#

Let f′′(x)≥0f''(x) \ge 0 on [a,b][a, b]. Prove that the trapezium rule (with any number of strips) overestimates ∫abf(x) dx\displaystyle\int_a^b f(x)\,dx, or gives it exactly.

Q55Extreme7 marks#

Newton–Raphson is applied to f(x)=(x−1)2f(x) = (x - 1)^2, which has a repeated root at x=1x = 1, starting from x0=3x_0 = 3. Find a formula for xnx_n in terms of nn, and explain why the usual fast convergence is lost. Enter xnx_n.

Q56Extreme6 marks#

The logistic map is xn+1=kxn(1−xn)x_{n+1} = kx_n(1 - x_n) with k>0k > 0. Find the nonzero fixed point in terms of kk, and find the set of values of kk for which this fixed point attracts nearby iterates. Give the set as an open interval and enter its endpoints.

Q57Extreme6 marks#

The trapezium rule with nn strips is used to estimate ∫02πcos⁡2x dx\displaystyle\int_0^{2\pi}\cos^2x\,dx. Find the exact value of the integral, and find the least nn for which the trapezium rule gives it exactly.

Q58Extreme7 marks#

Newton–Raphson is applied to f(x)=x3−xf(x) = x^3 - x. Find the positive starting value x0x_0 for which x1=−x0x_1 = -x_0, and explain what the iteration then does.

Q59Extreme6 marks#

Find the positive solution of xx=2x^x = 2 correct to 5 significant figures, using the Newton–Raphson method on a suitable function, and prove that your answer has the stated accuracy.

Q60Extreme7 marks#

Let TnT_n be the trapezium-rule estimate of ∫0141+x2 dx=π\displaystyle\int_0^1\frac{4}{1 + x^2}\,dx = \pi with nn strips. Find T4T_4 and T8T_8. The error of the trapezium rule is approximately proportional to h2h^2; use this to explain why R=4T8−T43R = \dfrac{4T_8 - T_4}{3} should be much more accurate, and evaluate RR to 6 decimal places.