← Back to subjects
0
Edexcel A-level Mathematics (9MA0) · Numerical methods
Mini-Lesson

Numerical methods

Topic 9 is about equations you cannot solve exactly. It covers locating roots by a change of sign, solving x = g(x) by iteration (with staircase and cobweb diagrams), the Newton–Raphson method and the ways all of these can fail, plus numerical integration with the trapezium rule.

change ofsigniterationx = g(x)Newton–RaphsonTopic 9: an approximation is only worth marks if you justify its accuracy

Work through each screen, answer the questions as you go (some are wordy, most are calculations) and collect ⭐ stars. Watch for the Exam trap notes — that is where the marks get thrown away. Press Start when you are ready.

Numerical methods · sign change

Locating a root by change of sign

If f is continuous on [a, b] and f(a) and f(b) have opposite signs, then f(x) = 0 has at least one root in (a, b).

Worked example — f(x) = x³ − 3x − 5

f(2) = 8 − 6 − 5 = −3 (negative)

f(3) = 27 − 9 − 5 = 13 (positive)

f is a polynomial, so it is continuous. The sign changes, therefore there is a root between x = 2 and x = 3. ∎

To show a root is 1.879 correct to 3 d.p., test the interval endpoints 1.8785 and 1.8795 and show the sign changes across them.

Exam trap: the word continuous is a mark. f(x) = 1/(x − 2) changes sign between 1 and 3 but has no root — it has an asymptote. Always say “f is continuous on the interval”.

Calculate

Your turn — evaluate for a sign change

1f(x) = x³ − 3x − 5. Calculate f(2).
Set-up

f(2) = 8 − 6 − 5 = −3.

Since f(3) = 27 − 9 − 5 = +13 and f is continuous, there is a root between 2 and 3.

Hint: 2³ − 3(2) − 5.
Quick check

Why continuity matters

?f(1) = −2 and f(3) = 4. A student concludes there must be a root between 1 and 3. When is this conclusion wrong?
Numerical methods · iteration

Iteration: x = g(x)

Rearrange f(x) = 0 into the form x = g(x), then iterate: x_(n+1) = g(x_n) starting from x₀.

Worked example — x³ − 3x − 5 = 0

Rearrange: x³ = 3x + 5 ⇒ x = (3x + 5)^(1/3). So g(x) = (3x + 5)^(1/3).

x₀ = 2

x₁ = (3 × 2 + 5)^(1/3) = 11^(1/3) = 2.2240 (4 d.p.)

x₂ = (3 × 2.2240 + 5)^(1/3) = (11.6719)^(1/3) = 2.2684 (4 d.p.)

x₃ = (3 × 2.2684 + 5)^(1/3) = (11.8051)^(1/3) = 2.2770 … converging on the root 2.2790.

Exam trap: keep the full accuracy in your calculator between iterations (use the ANS key). Rounding each step to 4 d.p. and feeding that back in will drift your final answer.

Calculate

Your turn — first iterate

2Using x_(n+1) = (3x_n + 5)^(1/3) with x₀ = 2, find x₁ to 4 decimal places.
Set-up

3(2) + 5 = 11.

x₁ = 11^(1/3) = 2.22398… = 2.2240 (4 d.p.)

x₁ =
Hint: x₁ = (3 × 2 + 5)^(1/3) = ∛11.
Calculate

Your turn — second iterate

3Continue the iteration x_(n+1) = (3x_n + 5)^(1/3). Using x₁ = 2.223980, find x₂ to 4 decimal places.
Set-up

3(2.223980) + 5 = 11.671940.

x₂ = 11.671940^(1/3) = 2.26837… = 2.2684 (4 d.p.)

The sequence is converging towards the root 2.2790 (4 d.p.).

x₂ =
Hint: 3 × 2.223980 + 5 = 11.671940; now take the cube root.
Numerical methods · diagrams

Staircase and cobweb diagrams

Plot y = g(x) and y = x. The iteration bounces between them. The gradient of g near the root decides everything.

Staircase 0 < g′(x) < 1 y = g(x) y = x Cobweb −1 < g′(x) < 0
Positive gradient ⇒ the iterates approach from one side (staircase). Negative gradient ⇒ they alternate around the root (cobweb).
  • |g′(x)| < 1 near the root ⇒ the iteration converges.
  • |g′(x)| > 1 near the root ⇒ it diverges, however good the starting value.
  • A different rearrangement of the same equation can converge where another diverges — that is why the question tells you which one to use.
Quick check

Staircase or cobweb?

?Near the root, g′(x) = −0.6. What will the iteration x_(n+1) = g(x_n) do?
Numerical methods · Newton–Raphson

The Newton–Raphson method

Take the tangent at (x₀, f(x₀)) and slide down it to the x-axis. Where it lands is your next estimate.

x_(n+1) = x_n − f(x_n) / f′(x_n)usually much faster than a simple iteration — it roughly doubles the number of correct digits each step
Worked example — f(x) = x³ − 3x − 5, x₀ = 2

f′(x) = 3x² − 3. f(2) = −3, f′(2) = 12 − 3 = 9.

x₁ = 2 − (−3)/9 = 2 + 0.333333 = 2.333333

f(2.333333) = 12.703704 − 7 − 5 = 0.703704; f′(2.333333) = 3(5.444444) − 3 = 13.333333

x₂ = 2.333333 − 0.703704/13.333333 = 2.333333 − 0.052778 = 2.280556

(The true root is 2.2790 — two steps and we are already correct to 3 s.f.)

Exam trap: it is minus f/f′ — and f′ is the derivative of f, not of the iteration formula. Differentiate carefully before you start.

Calculate

Your turn — Newton–Raphson step 1

4f(x) = x³ − 3x − 5, so f′(x) = 3x² − 3. Starting from x₀ = 2, use Newton–Raphson to find x₁ to 3 decimal places.
Set-up

f(2) = −3 and f′(2) = 3(4) − 3 = 9.

x₁ = 2 − (−3/9) = 2 + 1/3 = 2.3333… = 2.333 (3 d.p.)

x₁ =
Hint: x₁ = 2 − f(2)/f′(2) = 2 − (−3)/9.
Calculate

Your turn — Newton–Raphson step 2

5Continue from x₁ = 2.333333 for f(x) = x³ − 3x − 5. Find x₂ to 4 decimal places.
Set-up

x₂ = 2.333333 − 0.703704 ÷ 13.333333

= 2.333333 − 0.052778 = 2.280556 = 2.2806 (4 d.p.)

x₂ =
Hint: f(2.333333) = 0.703704 and f′(2.333333) = 13.333333.
Sort it

Which method is being described?

Tap a description, then the numerical method it belongs to.

🔀 Change of sign

🔁 Iteration x = g(x)

📐 Newton–Raphson

Numerical methods · failure

When these methods fail

Every 9MA0 series asks about failure. Know the three headline reasons.

  • Newton–Raphson fails if f′(x₀) = 0 — the tangent is horizontal and never meets the x-axis (you divide by zero). Even a near-zero f′ throws the next estimate wildly far away.
  • Newton–Raphson can converge to a different root, or diverge, if x₀ is chosen badly or is near a turning point.
  • Iteration diverges if |g′(x)| > 1 near the root — try a different rearrangement.
  • Change of sign fails when the function is discontinuous on the interval, or when there is a repeated root (the curve touches the axis without crossing, so no sign change occurs), or when two roots sit inside the same interval and the signs cancel out.

How to answer: “Explain why the method fails for x₀ = 1” deserves a calculation. For f(x) = x³ − 3x − 5: f′(1) = 3 − 3 = 0, so the Newton–Raphson formula divides by zero. Show the number.

Quick check

Newton–Raphson breakdown

?For f(x) = x³ − 3x − 5, why does Newton–Raphson fail with the starting value x₀ = 1?
Calculate

Your turn — Newton–Raphson for a square root

6Use Newton–Raphson on f(x) = x² − 7 (so f′(x) = 2x) with x₀ = 3 to estimate √7. Find x₂ to 4 decimal places.
Set-up

x₁ = 3 − (3² − 7)/(2 × 3) = 3 − 2/6 = 2.666667

f(x₁) = 7.111111 − 7 = 0.111111; f′(x₁) = 5.333333

x₂ = 2.666667 − 0.111111/5.333333 = 2.666667 − 0.020833 = 2.645833 = 2.6458 (4 d.p.)

True √7 = 2.6457513 — accurate to 4 d.p. after just two steps.

x₂ =
Hint: x₁ = 3 − (9 − 7)/6 = 2.666667. Then repeat the step.
Match it

Convergence flashcards

Tap a condition on the left, then what happens.

Condition near the root
Behaviour
Numerical methods · trapezium

Numerical integration

The same “approximate it” philosophy applies to integrals that have no antiderivative.

∫ ≈ h/2 [y₀ + y_n + 2(y₁ + … + y_(n−1))]h = (b − a)/n · n strips ⇒ n + 1 ordinates
  • Convex curve ⇒ chords lie above ⇒ overestimate. Concave ⇒ underestimate.
  • To improve accuracy, increase the number of strips (h gets smaller).
  • Integration is formally defined as the limit of a sum of rectangle areas as their width tends to zero — the trapezium rule is that idea, stopped early.

Exam trap: quote the number of strips, not ordinates. Six ordinates means five strips, and h is the interval width divided by five.

Quick check

How many ordinates?

?The trapezium rule is used with 5 strips to estimate an integral from x = 1 to x = 6. What is h, and how many ordinates are needed?
Recap

The big ideas to take away

Change of sign: f continuous and f(a), f(b) opposite signs ⇒ a root lies between them

Iteration: x_(n+1) = g(x_n); converges if |g′| < 1 near the root

Diagrams: 0 < g′ < 1 ⇒ staircase · −1 < g′ < 0 ⇒ cobweb · |g′| > 1 ⇒ divergence

Newton–Raphson: x_(n+1) = x_n − f(x_n)/f′(x_n); fast, but fails when f′(x₀) = 0

Failure: discontinuity, repeated roots, bad starting value, horizontal tangent

Trapezium: h/2[ends + 2 × middles]; convex ⇒ overestimate; more strips ⇒ better

Topic 9 rewards precision: keep full calculator accuracy, and always justify the accuracy you claim. Press Finish to see your score.

🏆

Mini-lesson complete!

⭐⭐⭐

You have worked through Numerical methods for Edexcel A-level Mathematics (9MA0). 🎉

Your stars: 0 / 0

Next: test yourself in the Evaluate stage Confidence Quiz, then lock it in with Verify.

📣 Smashed it? Share your score

Challenge a mate to beat your stars, or show a parent how you got on.

→ Back to all subjects