Lemma
← All topics
Further mathematics

Further numerical methods

Sharper integrals and step-by-step solutions to differential equations.

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 easy2 marks#

dydx=x+y\dfrac{dy}{dx} = x + y, y(0)=1y(0) = 1. Use one step of Euler's method with h=0.2h = 0.2 to estimate y(0.2)y(0.2).

Q2Very easy2 marks#

dydx=2x\dfrac{dy}{dx} = 2x, y(0)=1y(0) = 1. Use Euler's method with step h=0.5h = 0.5 to estimate y(1)y(1), and compare with the exact value.

Q3Very easy2 marks#

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

Q4Very easy2 marks#

Use Simpson's rule with 22 strips to estimate ∫02x2 dx\displaystyle\int_0^2x^2\,dx.

Q5Very easy1 mark#

dydx=y\dfrac{dy}{dx} = y, y(0)=1y(0) = 1. Use one step of Euler's method with h=0.1h = 0.1 to estimate y(0.1)y(0.1).

Q6Very easy2 marks#

The mid-ordinate rule with 44 strips is used to estimate ∫13f(x) dx\displaystyle\int_1^3 f(x)\,dx. Write down the xx-values at which ff must be evaluated.

Q7Very easy2 marks#

dydx=x−y\dfrac{dy}{dx} = x - y, y(0)=2y(0) = 2. Use one step of Euler's method with h=0.1h = 0.1 to estimate y(0.1)y(0.1).

Q8Very easy2 marks#

dydx=2x\dfrac{dy}{dx} = 2x, y(0)=0y(0) = 0. Use one step of the improved Euler method with h=0.5h = 0.5 to estimate y(0.5)y(0.5), and compare with the exact value.

Q9Very easy2 marks#

Use Simpson's rule with 22 strips to estimate ∫0111+x dx\displaystyle\int_0^1\frac{1}{1 + x}\,dx, to 4 decimal places.

Q10Very easy2 marks#

dydx=y2\dfrac{dy}{dx} = y^2, y(0)=1y(0) = 1. Use Euler's method with h=0.1h = 0.1 to estimate y(0.2)y(0.2).

Easy

Q11Easy3 marks#

Use Simpson's rule with 4 strips to estimate ∫01ex2 dx\displaystyle\int_0^1 e^{x^2}\,dx, to 4 decimal places.

Q12Easy3 marks#

Use the mid-ordinate rule with 4 strips to estimate ∫021+x3 dx\displaystyle\int_0^2\sqrt{1 + x^3}\,dx, to 4 d.p.

Q13Easy3 marks#

Use the mid-ordinate rule with 44 strips to estimate ∫01ex dx\displaystyle\int_0^1e^x\,dx, giving your answer to 4 decimal places. Find the percentage error.

Q14Easy3 marks#

Use Simpson's rule with 44 strips to estimate ∫0πsin⁡x dx\displaystyle\int_0^\pi\sin x\,dx, to 4 decimal places.

Q15Easy3 marks#

dydx=x+y\dfrac{dy}{dx} = x + y, y(0)=1y(0) = 1. Use Euler's method with h=0.25h = 0.25 to estimate y(0.5)y(0.5).

Q16Easy3 marks#

dydx=1x+y\dfrac{dy}{dx} = \dfrac{1}{x + y}, y(0)=1y(0) = 1. Use Euler's method with h=0.1h = 0.1 to estimate y(0.2)y(0.2), to 4 decimal places.

Q17Easy3 marks#

dydx=y\dfrac{dy}{dx} = y, y(0)=1y(0) = 1. Use one step of the improved Euler method with h=0.1h = 0.1 to estimate y(0.1)y(0.1).

Q18Easy3 marks#

Use Simpson's rule with 66 strips to estimate ∫14x dx\displaystyle\int_1^4\sqrt x\,dx, to 4 decimal places.

Q19Easy3 marks#

For dydx=y\dfrac{dy}{dx} = y with y(0)=1y(0) = 1, you are given y(0.1)=1.105y(0.1) = 1.105. Use the formula yr+1≈yr−1+2h(dydx)ry_{r+1} \approx y_{r-1} + 2h\left(\dfrac{dy}{dx}\right)_r with h=0.1h = 0.1 to estimate y(0.2)y(0.2).

Q20Easy3 marks#

For some integral, the trapezium rule with 22 strips gives T2=1.5T_2 = 1.5 and the mid-ordinate rule with 22 strips gives M2=1.25M_2 = 1.25. Use the relation S2n=13(2Mn+Tn)S_{2n} = \frac13\left(2M_n + T_n\right) to find Simpson's estimate S4S_4.

Normal

Q21Normal4 marks#

dydx=y2−x\dfrac{dy}{dx} = y^2 - x, y(1)=2y(1) = 2. Use Euler's method with h=0.2h = 0.2 to estimate y(1.4)y(1.4).

Q22Normal4 marks#

Use Simpson's rule with 44 strips to estimate ∫011+x4 dx\displaystyle\int_0^1\sqrt{1 + x^4}\,dx, to 4 decimal places.

Q23Normal5 marks#

d2ydx2=−y\dfrac{d^2y}{dx^2} = -y, with y=1y = 1 and dydx=0\dfrac{dy}{dx} = 0 at x=0x = 0. Using y1≈y0+hy0′+h22y0′′y_1 \approx y_0 + hy'_0 + \frac{h^2}{2}y''_0 for the first step, and then yr+1−2yr+yr−1h2≈yr′′\dfrac{y_{r+1} - 2y_r + y_{r-1}}{h^2} \approx y''_r, estimate y(0.2)y(0.2) with h=0.1h = 0.1, to 5 decimal places.

Q24Normal5 marks#

dydx=x+y\dfrac{dy}{dx} = x + y, y(0)=1y(0) = 1. Use the improved Euler method with h=0.1h = 0.1 to estimate y(0.2)y(0.2), to 5 decimal places.

Q25Normal4 marks#

dydx=y\dfrac{dy}{dx} = y, y(0)=1y(0) = 1. Euler's method with h=0.5h = 0.5 gives y(1)≈2.25y(1) \approx 2.25. Use Euler's method with h=0.25h = 0.25 to estimate y(1)y(1), to 4 decimal places, and compare the errors of the two estimates.

Q26Normal4 marks#

Use the mid-ordinate rule with 44 strips to estimate ∫0141+x2 dx\displaystyle\int_0^1\frac{4}{1 + x^2}\,dx, to 4 decimal places. What number is this an approximation to?

Q27Normal4 marks#

dydx=xy\dfrac{dy}{dx} = xy, y(1)=1y(1) = 1. Use Euler's method with h=0.1h = 0.1 to estimate y(1.3)y(1.3), to 4 decimal places.

Q28Normal5 marks#

The region under y=e−x2y = e^{-x^2} for 0≤x≤10 \le x \le 1 is rotated through 2π2\pi about the xx-axis. Use Simpson's rule with 44 strips to estimate the volume, to 3 significant figures.

Q29Normal4 marks#

A car's speed vv m s−1^{-1} is recorded every 22 seconds: at t=0,2,4,6,8t = 0, 2, 4, 6, 8, v=0,5,8,9,8v = 0, 5, 8, 9, 8. Use Simpson's rule to estimate the distance travelled in the 88 seconds, giving the exact value of the estimate.

Q30Normal4 marks#

dydx=−2xy\dfrac{dy}{dx} = -2xy, y(0)=1y(0) = 1. Use one step of the improved Euler method with h=0.2h = 0.2 to estimate y(0.2)y(0.2), and find the percentage error.

Medium

Q31Medium5 marks#

dydx=x+y\dfrac{dy}{dx} = x + y, y(0)=1y(0) = 1. Use one step of the improved Euler method y1=y0+h2[f(x0,y0)+f(x1,y0+hf(x0,y0))]y_1 = y_0 + \frac h2\left[f(x_0, y_0) + f(x_1, y_0 + hf(x_0, y_0))\right] with h=0.1h = 0.1 to estimate y(0.1)y(0.1).

Q32Medium5 marks#

For I=∫01ex dxI = \displaystyle\int_0^1e^x\,dx, find Simpson's estimates S2S_2 and S4S_4 (2 and 4 strips), and the ratio of their errors S2−IS4−I\dfrac{S_2 - I}{S_4 - I}, to 3 significant figures.

Q33Medium5 marks#

Suppose f′′>0f'' > 0 on [a,b][a, b] (the graph is convex). Prove that for one strip, (b−a)f(a+b2)≤∫abf dx≤b−a2[f(a)+f(b)](b - a)f\left(\frac{a + b}2\right) \le \displaystyle\int_a^bf\,dx \le \frac{b - a}{2}\left[f(a) + f(b)\right], and deduce that for any number of strips Mn≤I≤TnM_n \le I \le T_n. Illustrate with ∫01ex dx\int_0^1 e^x\,dx and n=4n = 4.

Q34Medium6 marks#

d2ydx2=x+y\dfrac{d^2y}{dx^2} = x + y, with y=1y = 1 and dydx=0\dfrac{dy}{dx} = 0 at x=0x = 0. Use the approximation yr+1=2yr−yr−1+h2yr′′y_{r+1} = 2y_r - y_{r-1} + h^2y''_r with h=0.2h = 0.2 (finding y1y_1 from a Taylor expansion) to estimate y(0.4)y(0.4), to 4 decimal places.

Q35Medium5 marks#

dydx=y2\dfrac{dy}{dx} = y^2, y(0)=1y(0) = 1. Use the improved Euler method with h=0.1h = 0.1 to estimate y(0.2)y(0.2), to 4 decimal places, and compare with Euler's estimate (Q10) and the exact value 1.251.25.

Q36Medium5 marks#

dydx=−10y\dfrac{dy}{dx} = -10y, y(0)=1y(0) = 1. Use Euler's method with h=0.25h = 0.25 to estimate y(1)y(1). Compare with the exact value, and explain what goes wrong.

Q37Medium5 marks#

The error in Simpson's rule for ∫abf dx\int_a^bf\,dx with strip width hh is at most (b−a)h4180max⁡∣f(4)∣\dfrac{(b - a)h^4}{180}\max|f^{(4)}|. Find the smallest (even) number of strips that guarantees an error below 10−610^{-6} for ∫01ex dx\displaystyle\int_0^1e^x\,dx.

Q38Medium4 marks#

Show that Euler's method with step h=1nh = \frac1n applied to dydx=y\dfrac{dy}{dx} = y, y(0)=1y(0) = 1, gives y(1)≈(1+1n)ny(1) \approx \left(1 + \frac1n\right)^n. Evaluate this for n=10n = 10, to 4 decimal places.

Q39Medium5 marks#

Show that one step of the improved Euler method applied to dydx=y\dfrac{dy}{dx} = y multiplies yy by 1+h+h221 + h + \frac{h^2}{2}. Hence estimate y(1)y(1) for y(0)=1y(0) = 1 using h=0.5h = 0.5, to 4 decimal places.

Q40Medium5 marks#

Use Simpson's rule with 44 strips on ∫0111+x2 dx=π4\displaystyle\int_0^1\frac{1}{1 + x^2}\,dx = \frac\pi4 to estimate π\pi, to 5 decimal places.

Hard

Q41Hard4 marks#

Use Simpson's rule with 2 strips to estimate ∫02x3 dx\displaystyle\int_0^2 x^3\,dx. Compare with the exact value, and explain the result.

Q42Hard6 marks#

Prove that for any function and any nn, Simpson's rule with 2n2n strips satisfies S2n=13(2Mn+Tn)S_{2n} = \frac13\left(2M_n + T_n\right), where MnM_n and TnT_n are the mid-ordinate and trapezium estimates with nn strips. Check it numerically for ∫01ex dx\int_0^1e^x\,dx with n=2n = 2.

Q43Hard6 marks#

For dydx=y\dfrac{dy}{dx} = y, y(0)=1y(0) = 1, Euler's method gives E(0.1)=1.110E(0.1) = 1.1^{10} and E(0.05)=1.0520E(0.05) = 1.05^{20} as estimates of y(1)y(1). Assuming the error is approximately proportional to hh, form the improved estimate 2E(0.05)−E(0.1)2E(0.05) - E(0.1), to 4 decimal places.

Q44Hard6 marks#

dydx=x−y2\dfrac{dy}{dx} = x - y^2, y(0)=1y(0) = 1. Use the improved Euler method with h=0.1h = 0.1 to estimate y(0.2)y(0.2), to 4 decimal places.

Q45Hard7 marks#

A damped oscillator satisfies x¨+0.5x˙+4x=0\ddot x + 0.5\dot x + 4x = 0, x(0)=1x(0) = 1, x˙(0)=0\dot x(0) = 0. Using x¨r≈xr+1−2xr+xr−1h2\ddot x_r \approx \dfrac{x_{r+1} - 2x_r + x_{r-1}}{h^2} and x˙r≈xr+1−xr−12h\dot x_r \approx \dfrac{x_{r+1} - x_{r-1}}{2h}, with h=0.1h = 0.1 and x1≈x0+hx˙0+h22x¨0x_1 \approx x_0 + h\dot x_0 + \frac{h^2}{2}\ddot x_0, estimate x(0.3)x(0.3), to 4 decimal places.

Q46Hard6 marks#

The integral ∫01cos⁡xx dx\displaystyle\int_0^1\frac{\cos x}{\sqrt x}\,dx cannot be estimated directly by Simpson's rule, because the integrand is infinite at x=0x = 0. Use the substitution x=t2x = t^2 to write it as 2∫01cos⁡(t2) dt2\displaystyle\int_0^1\cos(t^2)\,dt, and then estimate it with Simpson's rule using 44 strips, to 4 decimal places.

Q47Hard6 marks#

For dydx=y\dfrac{dy}{dx} = y, y(0)=1y(0) = 1, the improved Euler method gives y(1)≈2.640625y(1) \approx 2.640625 with h=0.5h = 0.5 and 2.6948562.694856 with h=0.25h = 0.25. Find the ratio of the errors, to 2 significant figures, and use the fact that the method is second order to form the extrapolated estimate 13(4E(0.25)−E(0.5))\frac13\left(4E(0.25) - E(0.5)\right), to 4 decimal places.

Q48Hard6 marks#

Simpson's rule on [−h,h][-h, h] with two strips is h3[f(−h)+4f(0)+f(h)]\frac h3\left[f(-h) + 4f(0) + f(h)\right]. Prove that it is exact for f(x)=1,x,x2,x3f(x) = 1, x, x^2, x^3, and hence for every cubic. Show that it is not exact for x4x^4, and find its error there.

Q49Hard6 marks#

dydx=1+y2\dfrac{dy}{dx} = 1 + y^2, y(0)=0y(0) = 0, whose solution is y=tan⁡xy = \tan x. Use Euler's method with h=0.25h = 0.25 to estimate y(1)y(1), to 4 decimal places, and find the percentage error.

Q50Hard6 marks#

Show that the mid-ordinate rule with nn strips gives ∫01x2 dx≈13−112n2\displaystyle\int_0^1x^2\,dx \approx \frac13 - \frac{1}{12n^2} exactly. Hence find the least nn for which the error is less than 10−410^{-4}.

Extreme

Q51Extreme7 marks#

The classical Runge–Kutta method (RK4) takes a step with k1=f(x,y)k_1 = f(x, y), k2=f(x+h2,y+h2k1)k_2 = f\left(x + \frac h2, y + \frac h2k_1\right), k3=f(x+h2,y+h2k2)k_3 = f\left(x + \frac h2, y + \frac h2k_2\right), k4=f(x+h,y+hk3)k_4 = f(x + h, y + hk_3) and ynew=y+h6(k1+2k2+2k3+k4)y_{\text{new}} = y + \frac h6(k_1 + 2k_2 + 2k_3 + k_4). Apply one step with h=0.2h = 0.2 to dydx=x+y\dfrac{dy}{dx} = x + y, y(0)=1y(0) = 1, giving y(0.2)y(0.2) to 4 decimal places. Compare with the exact value.

Q52Extreme7 marks#

Let ff have a continuous fourth derivative, and let E(h)=h3[f(−h)+4f(0)+f(h)]−∫−hhf(x) dxE(h) = \frac h3\left[f(-h) + 4f(0) + f(h)\right] - \displaystyle\int_{-h}^hf(x)\,dx. Using Taylor's theorem for ff about 00 up to the x4x^4 term, show that E(h)=h590f(4)(0)+O(h6)E(h) = \frac{h^5}{90}f^{(4)}(0) + O(h^6). Deduce that composite Simpson's rule on [a,b][a, b] has error approximately (b−a)h4180f(4)\frac{(b - a)h^4}{180}f^{(4)}.

Q53Extreme7 marks#

Euler's method with nn steps of size h=1nh = \frac1n estimates e=y(1)e = y(1) for y′=yy' = y, y(0)=1y(0) = 1, by En=(1+1n)nE_n = \left(1 + \frac1n\right)^n (Q38). Using ln⁡(1+h)=h−h22+O(h3)\ln(1 + h) = h - \frac{h^2}{2} + O(h^3), prove that e−En=e2n+O(1n2)e - E_n = \dfrac{e}{2n} + O\left(\dfrac{1}{n^2}\right). Check the formula for n=1000n = 1000.

Q54Extreme7 marks#

When the improved Euler method is applied to dydx=λy\dfrac{dy}{dx} = \lambda y with λ<0\lambda < 0, each step multiplies yy by R(z)=1+z+z22R(z) = 1 + z + \frac{z^2}{2}, where z=λhz = \lambda h (Q39). Prove that ∣R(z)∣≤1|R(z)| \le 1 exactly when −2≤z≤0-2 \le z \le 0. Hence find the largest step hh for which the method gives non-growing solutions of dydx=−10y\dfrac{dy}{dx} = -10y.

Q55Extreme7 marks#

The backward (implicit) Euler method uses the slope at the end of the step: yr+1=yr+h f(xr+1,yr+1)y_{r+1} = y_r + h\,f(x_{r+1}, y_{r+1}). Apply it to dydx=−10y\dfrac{dy}{dx} = -10y, y(0)=1y(0) = 1, with h=0.25h = 0.25 (the step that made ordinary Euler blow up in Q36) to estimate y(1)y(1), to 4 significant figures. Show that the method never gives growing solutions of y′=λyy' = \lambda y with λ<0\lambda < 0, whatever the step size.

Q56Extreme7 marks#

Simpson's estimates of ∫01x dx=23\displaystyle\int_0^1\sqrt x\,dx = \frac23 with 22, 44 and 88 strips are S2=0.638071S_2 = 0.638071, S4=0.656526S_4 = 0.656526, S8=0.663079S_8 = 0.663079. Find the ratio of successive errors, to 2 significant figures, and explain why it is not 1616.

Q57Extreme7 marks#

A pendulum satisfies θ¨=−sin⁡θ\ddot\theta = -\sin\theta, θ(0)=1\theta(0) = 1, θ˙(0)=0\dot\theta(0) = 0. Using θ1=θ0+h22θ¨0\theta_1 = \theta_0 + \frac{h^2}{2}\ddot\theta_0 and then θr+1=2θr−θr−1−h2sin⁡θr\theta_{r+1} = 2\theta_r - \theta_{r-1} - h^2\sin\theta_r, with h=0.1h = 0.1, estimate θ(0.3)\theta(0.3), to 4 decimal places. Compare with the small-angle approximation θ=cos⁡t\theta = \cos t.

Q58Extreme7 marks#

The boundary value problem y′′=2y'' = 2, y(0)=0y(0) = 0, y(1)=0y(1) = 0 is to be solved numerically with h=0.25h = 0.25. Replacing y′′y'' at each interior point xrx_r by yr+1−2yr+yr−1h2\dfrac{y_{r+1} - 2y_r + y_{r-1}}{h^2} gives three simultaneous equations for y1,y2,y3y_1, y_2, y_3. Solve them to estimate y(0.5)y(0.5), and explain why the answer is exact.

Q59Extreme7 marks#

For I=∫01ex2 dxI = \displaystyle\int_0^1e^{x^2}\,dx, Simpson's rule gives S4=1.4637108S_4 = 1.4637108 and S8=1.4627234S_8 = 1.4627234. Using the fact that the error is approximately proportional to h4h^4, form the improved estimate 115(16S8−S4)\frac{1}{15}\left(16S_8 - S_4\right), to 6 decimal places.

Q60Extreme8 marks#

The formula yr+1=yr−1+2h(dydx)ry_{r+1} = y_{r-1} + 2h\left(\dfrac{dy}{dx}\right)_r (Q19) is applied to dydx=−y\dfrac{dy}{dx} = -y. Show that yr=μry_r = \mu^r satisfies the recurrence when μ2+2hμ−1=0\mu^2 + 2h\mu - 1 = 0. For h=0.1h = 0.1, find the root of larger size, to 4 decimal places, and explain why the method eventually fails for this equation however good the starting values.