EuraStudy
Notes/Mathematics/Numerical methods
Notes · MathematicsUK · A-Levels

Numerical methods

Numerical methods find approximate solutions where exact algebra is impossible: locating roots by change of sign, refining them by iteration and by the Newton-Raphson method, and estimating definite integrals with the trapezium rule. Each method comes with conditions for success and characteristic ways of failing, which are examined as carefully as the calculations themselves.

4 sections·~10 min reading time·3 competencies·Level Standard 2 · Advanced 2

T·101010 / 20
Exam profile
AO1 · Apply iterative and numerical procedures accuratelyAO2 · Justify convergence, the direction of an error, and conditions for failureAO3 · Use numerical methods where analytic solutions are unavailable
Operators:show thatfindusededuceexplainestimate

basic level

AS-Level covers locating roots by change of sign and the trapezium rule.

higher level

The full A-Level adds fixed-point iteration xn+1=g(xn)x_{n+1} = g(x_n)xn+1​=g(xn​) and the Newton-Raphson method, together with their conditions for failure.

Depth

Reading depth: In depth

Text

Text size: Standard

Contents · 4 sections▾
  1. Numerical methods
    • 01Locating roots by change of sign◐
    • 02Fixed-point iteration●
    • 03The Newton-Raphson method●
    • 04The trapezium rule◐
§ 01

Locating roots by change of sign#

●●○StandardLPDfE GCE Mathematics I1LPAQA 7357 I

A sign change traps a root

Change of signGraph of y = x^3 - x - 3, roots at x = 1.672, minimum at (0.577, -3.385), on the interval x from 0.5 to 2.40.511.52−4−3−2−11234f(1) = −3f(2) = 3rooty = x3 − x − 3yx
Fig. 1f(1)=−3<0f(1) = -3 < 0f(1)=−3<0 and f(2)=3>0f(2) = 3 > 0f(2)=3>0, so x3−x−3=0x^3 - x - 3 = 0x3−x−3=0 has a root between 1 and 2.

Key points

If a continuous function fff satisfies f(a)f(a)f(a) and f(b)f(b)f(b) having opposite signs, then fff must take the value zero somewhere between aaa and bbb; that is, there is a root in the interval (a,b)(a, b)(a,b). This change-of-sign test is the simplest way to establish that a root exists and to trap it in an interval, and it relies on continuity — the graph cannot jump from below the axis to above without crossing it.
The method is used both to demonstrate a root exists ('show that f(x)=0f(x) = 0f(x)=0 has a root between 1 and 2') and to refine its location by interval bisection: evaluate fff at the midpoint, keep whichever half still shows a sign change, and repeat. Each step halves the interval, steadily squeezing the root between ever-closer bounds.
Two cautions are essential. First, the function must be continuous on the interval; a sign change across a discontinuity (as with 1x\tfrac{1}{x}x1​ across x=0x = 0x=0) does not indicate a root. Second, a repeated (even-order) root touches the axis without crossing, so there is no sign change even though a root is present — the test can miss such roots.
Conversely, no sign change in an interval does not prove there is no root: two roots close together give the same sign at the ends. The sign-change test is a sufficient condition for a root, not a necessary one, and stating this correctly is a common exam requirement.
f(a) f(b)<0 and f continuous ⇒ ∃ root in (a,b)f(a)\,f(b) < 0 \ \text{and } f \text{ continuous} \ \Rightarrow\ \exists\, \text{root in } (a, b)f(a)f(b)<0 and f continuous ⇒ ∃root in (a,b)

Change-of-sign criterion

Opposite signs at the ends of an interval guarantee a root, provided fff is continuous there.

Worked example

Establishing a root by change of sign

Show that x3−5x+1=0x^3 - 5x + 1 = 0x3−5x+1=0 has a root in the interval [0,1][0, 1][0,1].

  1. 01Evaluate at the ends

    f(0)=0−0+1=1>0f(0) = 0 - 0 + 1 = 1 > 0f(0)=0−0+1=1>0; f(1)=1−5+1=−3<0f(1) = 1 - 5 + 1 = -3 < 0f(1)=1−5+1=−3<0.

  2. 02Apply the criterion

    fff is a polynomial, hence continuous, and f(0)f(0)f(0) and f(1)f(1)f(1) have opposite signs.

  3. 03Conclude

    By the change-of-sign rule there is a root of x3−5x+1=0x^3 - 5x + 1 = 0x3−5x+1=0 in (0,1)(0, 1)(0,1).

Result: Since f(0)>0f(0) > 0f(0)>0, f(1)<0f(1) < 0f(1)<0 and fff is continuous, a root lies in (0,1)(0, 1)(0,1).

Exam focus

  • State that the function is continuous on the interval when you use a sign change to justify a root.
  • Use interval bisection to refine a root to the required accuracy, showing the sign at each new point.

Typical mistakes

  • Claiming a root from a sign change across a discontinuity such as an asymptote.
  • Asserting there is no root simply because there is no sign change (two roots may hide there).

Active revision

Show that f(x)=ex−3xf(x) = e^{x} - 3xf(x)=ex−3x has a root between 1.51.51.5 and 222, and use bisection once to give a smaller interval containing it.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

§ 02

Fixed-point iteration#

●●●AdvancedLPDfE GCE Mathematics I2LPAQA 7357 I

The fixed point of an iteration

x = g(x) at the rootGraph of y = (x + 3)^{1/3}, y-intercept at y = 1.442, increasing, on the interval x from 0 to 3, Graph of y = x, roots at x = 0, y-intercept at y = 0, increasing, on the interval x from 0 to 30.511.522.530.511.522.53root ≈ 1.672y = (x +3)1/3y = xyx
Fig. 2The iteration xn+1=xn+33x_{n+1} = \sqrt[3]{x_n + 3}xn+1​=3xn​+3​ converges to the point where y=x+33y = \sqrt[3]{x + 3}y=3x+3​ meets y=xy = xy=x.

Key points

To solve f(x)=0f(x) = 0f(x)=0 by iteration, you first rearrange it into the form x=g(x)x = g(x)x=g(x), then generate a sequence by the recurrence xn+1=g(xn)x_{n+1} = g(x_n)xn+1​=g(xn​) from a starting value x0x_0x0​. If the sequence converges, its limit LLL satisfies L=g(L)L = g(L)L=g(L), which is exactly the equation you rearranged, so LLL is a root. A single equation can be rearranged into several different iterations, and they do not all behave the same way.
Convergence depends on the rearrangement. The iteration converges to a root near α\alphaα when ∣g′(α)∣<1|g'(\alpha)| < 1∣g′(α)∣<1 and diverges when ∣g′(α)∣>1|g'(\alpha)| > 1∣g′(α)∣>1; the smaller ∣g′(α)∣|g'(\alpha)|∣g′(α)∣, the faster the convergence. This is why one rearrangement of an equation may home in on the root while another, algebraically equivalent, rearrangement flies away from it.
The behaviour of a convergent iteration is pictured with a staircase or cobweb diagram drawn between the curve y=g(x)y = g(x)y=g(x) and the line y=xy = xy=x: successive iterates step towards the intersection point, which is the root. Reading off from such a diagram whether an iteration converges, and to which root, is an examinable skill.
In practice you show a chosen iteration works by demonstrating a sign change of fff around the limit (to prove a genuine root is found) and by computing successive iterates until they agree to the required accuracy. Stating the root to the requested number of decimal places, and confirming it with a sign change, is the standard write-up.
xn+1=g(xn),converges near α if ∣g′(α)∣<1x_{n+1} = g(x_n), \qquad \text{converges near } \alpha \text{ if } |g'(\alpha)| < 1xn+1​=g(xn​),converges near α if ∣g′(α)∣<1

Fixed-point iteration

The limit satisfies x=g(x)x = g(x)x=g(x); convergence requires the gradient of ggg to be less than 1 in size at the root.

Worked example

Iterating to a root

Use xn+1=xn+33x_{n+1} = \sqrt[3]{x_n + 3}xn+1​=3xn​+3​ with x0=1x_0 = 1x0​=1 to find the root of x3−x−3=0x^3 - x - 3 = 0x3−x−3=0 to 2 decimal places.

  1. 01Iterate

    x1=43=1.5874x_1 = \sqrt[3]{4} = 1.5874x1​=34​=1.5874; x2=4.58743=1.6621x_2 = \sqrt[3]{4.5874} = 1.6621x2​=34.5874​=1.6621; x3=4.66213=1.6710x_3 = \sqrt[3]{4.6621} = 1.6710x3​=34.6621​=1.6710.

  2. 02Continue

    x4=4.67103=1.6720x_4 = \sqrt[3]{4.6710} = 1.6720x4​=34.6710​=1.6720; the iterates have settled to 1.671.671.67 (2 d.p.).

  3. 03Confirm the root

    f(1.665)=−0.03<0f(1.665) = -0.03 < 0f(1.665)=−0.03<0 and f(1.675)=0.02>0f(1.675) = 0.02 > 0f(1.675)=0.02>0, a sign change, so the root is 1.671.671.67 to 2 d.p.

Result: The root is x≈1.67x \approx 1.67x≈1.67.

Exam focus

  • Show a rearrangement x=g(x)x = g(x)x=g(x) is equivalent to the original equation, then iterate from a given start.
  • Confirm the final value is a root by demonstrating a sign change of fff in a small interval around it.

Typical mistakes

  • Assuming every rearrangement converges; some diverge because ∣g′∣>1|g'| > 1∣g′∣>1 at the root.
  • Rounding intermediate iterates too early, so later iterates are corrupted.

Active revision

The equation x3−5x+1=0x^3 - 5x + 1 = 0x3−5x+1=0 is rearranged as xn+1=xn3+15x_{n+1} = \dfrac{x_n^3 + 1}{5}xn+1​=5xn3​+1​. Starting from x0=0x_0 = 0x0​=0, find x1x_1x1​, x2x_2x2​ and x3x_3x3​, and state the root to 3 decimal places.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

§ 03

The Newton-Raphson method#

●●●AdvancedLPDfE GCE Mathematics I3LPAQA 7357 I

Newton-Raphson uses the tangent

Newton-Raphson stepGraph of y = x^2 - 2, roots at x = 1.414, increasing, on the interval x from 0.8 to 2.40.811.21.41.61.822.22.4−1123root √ 2tangent at x0 = 2y = x2 − 2yx
Fig. 3For f(x)=x2−2f(x) = x^2 - 2f(x)=x2−2 from x0=2x_0 = 2x0​=2, the tangent meets the axis at x1=1.5x_1 = 1.5x1​=1.5, closer to 2\sqrt{2}2​.

Key points

The Newton-Raphson method is a fast iteration that uses the tangent to a curve to refine an estimate of a root. From an estimate xnx_nxn​, you follow the tangent to the curve down to where it meets the xxx-axis, and that crossing is the next estimate. Algebraically this gives xn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)}xn+1​=xn​−f′(xn​)f(xn​)​, which typically converges much faster than a simple rearrangement iteration.
The formula comes directly from the tangent line. The tangent at (xn,f(xn))(x_n, f(x_n))(xn​,f(xn​)) has gradient f′(xn)f'(x_n)f′(xn​) and reaches the axis when its height has fallen by f(xn)f(x_n)f(xn​), i.e. after a horizontal step of f(xn)f′(xn)\dfrac{f(x_n)}{f'(x_n)}f′(xn​)f(xn​)​. Subtracting this step gives the next estimate. When the method works, the number of correct decimal places roughly doubles each step.
Newton-Raphson can fail in characteristic ways. If f′(xn)=0f'(x_n) = 0f′(xn​)=0 the tangent is horizontal and never meets the axis, so the method breaks down. A poor starting value can send an iterate far from the intended root or into a different one, and near a turning point the tangent can overshoot wildly. Being able to explain, with a sketch, why a given start fails is an examined point.
The reliable write-up quotes the iteration formula, states the derivative, computes successive estimates keeping enough figures, and confirms the root with a sign change. Because the method needs f′f'f′, you must be able to differentiate the function — Newton-Raphson ties the numerical topic back to calculus.
xn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}xn+1​=xn​−f′(xn​)f(xn​)​

The Newton-Raphson iteration

Follow the tangent at xnx_nxn​ down to the axis to get the next estimate; fails where f′(xn)=0f'(x_n) = 0f′(xn​)=0.

Worked example

A Newton-Raphson iteration

Use Newton-Raphson on f(x)=x2−2f(x) = x^2 - 2f(x)=x2−2 with x0=2x_0 = 2x0​=2 to estimate 2\sqrt{2}2​ (two iterations).

  1. 01Set up the formula

    f′(x)=2xf'(x) = 2xf′(x)=2x, so xn+1=xn−xn2−22xnx_{n+1} = x_n - \dfrac{x_n^2 - 2}{2x_n}xn+1​=xn​−2xn​xn2​−2​.

  2. 02First iteration

    x1=2−4−24=2−0.5=1.5x_1 = 2 - \dfrac{4 - 2}{4} = 2 - 0.5 = 1.5x1​=2−44−2​=2−0.5=1.5.

    x1=2−24=1.5x_1 = 2 - \frac{2}{4} = 1.5x1​=2−42​=1.5
  3. 03Second iteration

    x2=1.5−2.25−23=1.5−0.08333=1.41667x_2 = 1.5 - \dfrac{2.25 - 2}{3} = 1.5 - 0.08333 = 1.41667x2​=1.5−32.25−2​=1.5−0.08333=1.41667.

Result: x2≈1.4167x_2 \approx 1.4167x2​≈1.4167, already close to 2=1.41421…\sqrt{2} = 1.41421\ldots2​=1.41421…

Exam focus

  • Quote and use xn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)}xn+1​=xn​−f′(xn​)f(xn​)​, differentiating fff correctly first.
  • Explain a failure case — a horizontal tangent, or a start that diverges or converges to a different root — with reference to a sketch.

Typical mistakes

  • Using f(xn)/f′(xn)f(x_n)/f'(x_n)f(xn​)/f′(xn​) with the wrong sign, or adding instead of subtracting.
  • Not recognising that f′(xn)=0f'(x_n) = 0f′(xn​)=0 causes the method to fail.

Active revision

Apply the Newton-Raphson method to f(x)=x3−2x−5f(x) = x^3 - 2x - 5f(x)=x3−2x−5 with x0=2x_0 = 2x0​=2 to find the root to 4 decimal places.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

§ 04

The trapezium rule#

●●○StandardLPDfE GCE Mathematics I4LPAQA 7357 I

Trapezium strips under a curve

Trapezium rule, 4 stripsGraph of y = sqrt(x), y-intercept at y = 0, on the interval x from -0.3 to 4.312340.511.52y = √(x)yx
Fig. 4Four trapezia approximate the area under y=xy = \sqrt{x}y=x​; each chord top slightly underestimates the concave curve.

Key points

The trapezium rule estimates a definite integral (an area) when the integrand cannot be integrated exactly. The interval [a,b][a, b][a,b] is divided into nnn equal strips of width h=b−anh = \dfrac{b - a}{n}h=nb−a​, the ordinates y0,y1,…,yny_0, y_1, \ldots, y_ny0​,y1​,…,yn​ are evaluated at the strip boundaries, and each strip is approximated by a trapezium whose parallel sides are consecutive ordinates. Summing the trapezium areas gives the estimate.
Adding the areas h2(yi+yi+1)\tfrac{h}{2}(y_i + y_{i+1})2h​(yi​+yi+1​) and collecting terms gives the rule ∫aby dx≈h2(y0+yn+2(y1+y2+⋯+yn−1))\displaystyle\int_a^b y\,dx \approx \dfrac{h}{2}\big(y_0 + y_n + 2(y_1 + y_2 + \cdots + y_{n-1})\big)∫ab​ydx≈2h​(y0​+yn​+2(y1​+y2​+⋯+yn−1​)). The end ordinates appear once and every interior ordinate appears twice — a structure worth memorising as 'first plus last, plus twice the middle, all times h2\tfrac{h}{2}2h​'.
The accuracy improves as the number of strips increases (and hhh decreases), because straight-topped trapezia fit a curve better over narrower strips. The error also has a predictable direction: where the curve is concave (bending downwards) the trapezia lie below the curve and the rule underestimates; where it is convex (bending upwards) the trapezia lie above and the rule overestimates.
Being able to state whether a particular estimate is an over- or under-estimate, by considering the concavity of the curve over the interval, is a favourite follow-up question. It rewards understanding the geometry of the method rather than just the arithmetic of the formula.
∫aby dx≈h2(y0+yn+2(y1+⋯+yn−1)),h=b−an\int_a^b y\,dx \approx \frac{h}{2}\Big(y_0 + y_n + 2\big(y_1 + \cdots + y_{n-1}\big)\Big), \quad h = \frac{b - a}{n}∫ab​ydx≈2h​(y0​+yn​+2(y1​+⋯+yn−1​)),h=nb−a​

The trapezium rule

End ordinates once, interior ordinates twice, all scaled by half the strip width.

Worked example

Applying the trapezium rule

Use the trapezium rule with 4 strips to estimate ∫04x dx\displaystyle\int_0^4 \sqrt{x}\,dx∫04​x​dx.

  1. 01Find h and the ordinates

    h=4−04=1h = \dfrac{4 - 0}{4} = 1h=44−0​=1; ordinates at x=0,1,2,3,4x = 0,1,2,3,4x=0,1,2,3,4 are 0,1,1.4142,1.7321,20, 1, 1.4142, 1.7321, 20,1,1.4142,1.7321,2.

  2. 02Apply the rule

    12(0+2+2(1+1.4142+1.7321))=12(2+2×4.1463)\dfrac{1}{2}\big(0 + 2 + 2(1 + 1.4142 + 1.7321)\big) = \dfrac{1}{2}(2 + 2 \times 4.1463)21​(0+2+2(1+1.4142+1.7321))=21​(2+2×4.1463).

    12(2+2(4.1463))\frac{1}{2}\big(2 + 2(4.1463)\big)21​(2+2(4.1463))
  3. 03Evaluate

    =12(2+8.2926)=5.146= \dfrac{1}{2}(2 + 8.2926) = 5.146=21​(2+8.2926)=5.146 (3 d.p.). The exact value is 23(43/2)=5.333\tfrac{2}{3}(4^{3/2}) = 5.33332​(43/2)=5.333, so this underestimates, as expected for a concave curve.

Result: Estimate ≈5.15\approx 5.15≈5.15, an under-estimate of the true 5.335.335.33.

Exam focus

  • Lay out the ordinates in a table and apply 'ends once, middle twice, times h2\tfrac{h}{2}2h​' carefully.
  • State whether the estimate is an over- or under-estimate by referring to the concavity of the curve.

Typical mistakes

  • Using the wrong number of ordinates (nnn strips need n+1n + 1n+1 ordinates).
  • Doubling the end ordinates, or failing to double the interior ones.

Active revision

Use the trapezium rule with 4 strips to estimate ∫021+x3 dx\displaystyle\int_0^2 \sqrt{1 + x^3}\,dx∫02​1+x3​dx, and state whether it over- or under-estimates the true value.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

Contents

Section -- / 04

    • 01Locating roots by change of sign◐
    • 02Fixed-point iteration●
    • 03The Newton-Raphson method●
    • 04The trapezium rule◐

0/4 Read

From notes into training

Numerical methods

Reinforce this topic with matching tasks from the question bank.

~10
min
3
Competencies
Practise

References & sources

Sources

Department for Education

  • Mathematics: AS and A level content (GCE subject content)

AQA

  • AQA A-level Mathematics 7357 specification

Previous topic

Integration

Next topic

Vectors

EuraStudy·Notes T·10·MMXXVI

Carry on to the next topic — your learning path is kept.