All revision notes topics

Numerical methods in contextAQA A-Level Maths: Revision notes

Section 1

Why numerical methods are needed

Many problems cannot be solved analytically, meaning by exact algebra. Equations such as ex=3xe^x=3x and d+ln⁡d=4d+\ln d=4 mix a variable with its exponential or logarithm, and integrals such as ∫e−x2 dx\int e^{-x^2}\,dx have no simple antiderivative. Numerical methods give a solution to a required level of accuracy instead of an exact one. In practice they are used in science, engineering and finance wherever the exact value is out of reach.

Key termsanalytical solutionnumerical methodrequired accuracy
Exam tip

If an equation can be rearranged exactly (such as ln⁡x=2\ln x=2 giving x=e2x=e^2), do that; use a numerical method only when no exact route exists.

Section 2

Choosing a method

Roots of f(x)=0f(x)=0: a change of sign or interval bisection is reliable but slow; fixed-point iteration xn+1=g(xn)x_{n+1}=g(x_n) needs a rearrangement with ∣g′(α)∣<1|g'(\alpha)|<1; Newton-Raphson xn+1=xn−f(xn)f′(xn)x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)} is usually fastest but needs f′f' and fails if f′(xn)=0f'(x_n)=0. Areas and integrals: the trapezium rule with enough strips. For f(θ)=θ−0.5sin⁡θ−1f(\theta)=\theta-0.5\sin\theta-1, f′(θ)=1−0.5cos⁡θf'(\theta)=1-0.5\cos\theta and θ0=1.5\theta_0=1.5 gives θ1=1.4987\theta_1=1.4987 and θ2=1.498701\theta_2=1.498701 in only two steps.

Key termsinterval bisectionfixed-point iterationNewton-Raphson
Common mistake

Using degrees on the calculator when the variable is in radians, as in the θ−0.5sin⁡θ=1\theta-0.5\sin\theta=1 model.

Section 3

Setting up a problem

First form the equation from the context, then rewrite it as f(x)=0f(x)=0 with defined units. For d+ln⁡d=4d+\ln d=4, f(d)=d+ln⁡d−4f(d)=d+\ln d-4, f(2.9)=−0.0353f(2.9)=-0.0353 and f(3)=0.0986f(3)=0.0986, so 2.9<d<32.9<d<3. The iteration dn+1=4−ln⁡dnd_{n+1}=4-\ln d_n with d0=3d_0=3 gives d1=2.901d_1=2.901 and d2=2.935d_2=2.935, which settle on the root. Always check that the answer makes sense: depths and widths must be positive, and the units must be stated.

Key termsmodelunits
Exam tip

Use the ANS key so that every step uses the full calculator value.

Section 4

Giving an answer to a required accuracy

Stop when successive iterates agree to the required number of decimal places, but this alone is not a proof. To show a root is 2.462.46 to 2 d.p., show a change of sign over [2.455,2.465][2.455,2.465]. For f(x)=x3−4x−5f(x)=x^3-4x-5: f(2.455)=−0.0237<0f(2.455)=-0.0237<0 and f(2.465)=0.1179>0f(2.465)=0.1179>0, so α=2.46\alpha=2.46 (2 d.p.). For integrals, compare estimates with different numbers of strips, or compute the percentage error estimate−exactexact×100\frac{\text{estimate}-\text{exact}}{\text{exact}}\times100 when an exact value is known. For ∫01e−x2 dx\int_0^1e^{-x^2}\,dx, 4 strips give 0.7430.743 against 0.74680.7468, an error of 0.51%0.51\%.

Key termspercentage errorsuccessive iterates
Common mistake

Claiming an answer is correct to 2 d.p. just because two iterates round to the same number, when a sign change is asked for.

Section 5

Evaluating and criticising a method

Be ready to say why a method fails or is poor. A rearrangement fails if ∣g′(α)∣>1|g'(\alpha)|>1: for x3−4x−5=0x^3-4x-5=0, xn+1=xn3−54x_{n+1}=\frac{x_n^3-5}{4} has g′(x)=3x24≈4.5g'(x)=\frac{3x^2}{4}\approx4.5 at the root, and from x0=2.5x_0=2.5 it gives 2.6562.656, 3.4353.435, diverging; the rearrangement xn+1=4xn+53x_{n+1}=\sqrt[3]{4x_n+5} converges. Quote the numbers and link them to the behaviour. State the limits of a method too: bisection is slow, Newton-Raphson can fail near stationary points, and the trapezium rule is only as accurate as the number of strips allows.

Key termsdivergelimitation
Exam tip

In 'evaluate' questions, give a value and a reason: 'diverges because g′(α)≈4.5>1g'(\alpha)\approx4.5>1'.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Numerical methods in context

  1. The depth dd metres of water in a tank satisfies the equation d+ln⁡d=4d+\ln d=4, where d>0d>0. Let f(d)=d+ln⁡d−4f(d)=d+\ln d-4.
    Use the iteration dn+1=4−ln⁡dnd_{n+1}=4-\ln d_n with d0=3d_0=3 to find d1d_1 and d2d_2, giving your answers to 3 decimal places.2 marks
  2. The angle θ\theta (in radians) in a model of an orbit satisfies θ−0.5sin⁡θ=1\theta-0.5\sin\theta=1. Let f(θ)=θ−0.5sin⁡θ−1f(\theta)=\theta-0.5\sin\theta-1. The Newton-Raphson method is used with θ0=1.5\theta_0=1.5.
    Find θ2\theta_2 to 6 decimal places and hence state the value of θ\theta to 3 decimal places, with a reason.2 marks
  3. The integral I=∫01e−x2 dxI=\int_0^1e^{-x^2}\,dx cannot be found by integrating e−x2e^{-x^2} using the standard methods in the specification. It is estimated using the trapezium rule with 4 strips of equal width.
    Find the trapezium rule estimate of II, giving your answer to 3 significant figures.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).