A-Level Maths | Numerical Methods

The Trapezium Rule
$$\int_a^b y\,dx \approx \tfrac{1}{2}h\{(y_0 + y_n) + 2(y_1 + y_2 + \dots + y_{n-1})\}, \qquad h = \frac{b-a}{n}$$

Question 1

The values of $y$, for a curve with equation $y = f(x)$, have been tabulated below.

$x$12.253.54.756
$y$917252113

Use the trapezium rule with all the values from the table to find an estimate for the integral $\displaystyle\int_1^6 f(x)\,dx$.

Show Answers

$92.5$

Question 2

The $y$ values, for the curve with equation $y = \sqrt{x^3 - x}$, have been tabulated below.

$x$11.522.533.54
$y$01.3692.4493.623  7.746

a) Complete the table.

b) Use the trapezium rule with all the values from the table to find an estimate, correct to 2 decimal places, for the integral $\displaystyle\int_1^4 \sqrt{x^3 - x}\,dx$.

Show Answers

a) When $x = 3$, $y = 4.899$; when $x = 3.5$, $y = 6.275$

b) $11.24$

Question 3

a) Use the trapezium rule with five equally spaced ordinates (four strips) to find the value of $\displaystyle\int_0^4 \frac{2^x}{x+2}\,dx$, giving your answer correct to 3 significant figures.

b) State how a better approximation to the value of the integral can be obtained using the trapezium rule.

Show Answers

a) $4.85$

b) Use more strips (more ordinates, so a smaller value of $h$)

Change of Sign

Question 4

Show in each case that there is a root of the equation $f(x) = 0$ in the given interval. (Angles are in radians.)

a) $f(x) = x^3 + 3x - 7, \quad (1, 2)$

b) $f(x) = 5\cos x - 3x, \quad (0.5, 1)$

c) $f(x) = 2e^x + x + 5, \quad (-6, -5)$

d) $f(x) = x^4 - 5x^2 + 1, \quad (2.1, 2.2)$

e) $f(x) = \ln(4x - 1) + x^2, \quad (0.4, 0.5)$

f) $f(x) = e^{-x} - 9\cos 4x, \quad (10, 11)$

Show Answers

a) $f(1) = -3, \quad f(2) = 7$. Sign change and $f(x)$ continuous, so there is a root.

b) $f(0.5) = 2.89, \quad f(1) = -0.298$. Sign change and $f(x)$ continuous, so there is a root.

c) $f(-6) = -0.995, \quad f(-5) = 0.0135$. Sign change and $f(x)$ continuous, so there is a root.

d) $f(2.1) = -1.60, \quad f(2.2) = 0.226$. Sign change and $f(x)$ continuous, so there is a root.

e) $f(0.4) = -0.351, \quad f(0.5) = 0.25$. Sign change and $f(x)$ continuous, so there is a root.

f) $f(10) = 6.00, \quad f(11) = -9.00$. Sign change and $f(x)$ continuous, so there is a root.

Iteration

Question 5

For each equation, show that it can be rearranged into the given iterative form. Use this and the given value of $x_0$ to find $x_1$, $x_2$ and $x_3$. Give your value of $x_3$ correct to 4 decimal places.

a) $9 + 4x - 2x^3 = 0, \quad x_{n+1} = \sqrt[3]{2x_n + 4.5}, \quad x_0 = 2$

b) $e^x - 8x + 5 = 0, \quad x_{n+1} = \ln(8x_n - 5), \quad x_0 = 3$

c) $\tan x - 5x + 13 = 0, \quad x_{n+1} = \arctan(5x_n - 13), \quad x_0 = -1.2$

d) $\ln x + \sqrt{x} + 1.4 = 0, \quad x_{n+1} = e^{-(\sqrt{x_n} + 1.4)}, \quad x_0 = 0.16$

Show Answers

a) $x^3 = 2x + 4.5$, so $x = \sqrt[3]{2x + 4.5}$

$x_1 = 2.040828, \quad x_2 = 2.047342, \quad x_3 = 2.048377 = 2.0484$ (4 d.p.)

b) $e^x = 8x - 5$, so $x = \ln(8x - 5)$

$x_1 = 2.944439, \quad x_2 = 2.920767, \quad x_3 = 2.910508 = 2.9105$ (4 d.p.)

c) $\tan x = 5x - 13$, so $x = \arctan(5x - 13)$

$x_1 = -1.518213, \quad x_2 = -1.522270, \quad x_3 = -1.522317 = -1.5223$ (4 d.p.)

d) $\ln x = -(\sqrt{x} + 1.4)$, so $x = e^{-(\sqrt{x} + 1.4)}$

$x_1 = 0.165299, \quad x_2 = 0.164216, \quad x_3 = 0.164436 = 0.1644$ (4 d.p.)

The Newton-Raphson Method
$$x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$$

Question 6

$x^3 + 10x - 4 = 0$

a) Show that the above equation has a root $\alpha$, which lies between 0 and 1.

b) Use the Newton-Raphson method twice, starting with $x_1 = 0.5$, to find, correct to 4 decimal places, an approximation for $\alpha$.

Show Answers

a) $f(0) = -4, \quad f(1) = 7$. Sign change and $f(x)$ continuous, so there is a root.

b) $x_2 = 0.395349, \quad x_3 = 0.393889$, so $\alpha \approx 0.3939$

Question 7

It is known that the cubic equation $x^3 + x = 3$ has a root $\alpha$, which is close to 1.25.

Use an iterative formula based on the Newton-Raphson method to find the value of $\alpha$, correct to 6 decimal places.

Show Answers

$x_{n+1} = x_n - \dfrac{x_n^3 + x_n - 3}{3x_n^2 + 1}$, giving $\alpha \approx 1.213412$

Question 8

The curve with equation $y = 2^x$ intersects the straight line with equation $y = 3 - 2x$ at the point $P$, whose $x$ coordinate is $\alpha$.

a) Show that $0 < \alpha < 1$.

b) Starting with $x = 0.5$, use the Newton-Raphson method to find the value of $\alpha$, correct to 3 decimal places.

Show Answers

a) Let $f(x) = 2^x + 2x - 3$. Then $f(0) = -2, \quad f(1) = 1$. Sign change and $f(x)$ continuous, so there is a root.

b) $f'(x) = 2^x\ln 2 + 2$, giving $\alpha \approx 0.692$


A-Level Maths Tutoring

I offer one-to-one and small group A-Level Maths tutoring for students across the UK and internationally. With 100+ five-star Google reviews and tutoring experience since 2017, I specialise in helping students understand difficult concepts and improve their exam technique.