← Back to subjects
0
OCR A-level Mathematics A (H240) Β· 1.09 Numerical Methods
Mini-Lesson

Numerical methods

Most equations cannot be solved exactly. OCR section 1.09 gives you three tools to close in on a root β€” change of sign, fixed-point iteration and Newton–Raphson β€” and, just as important, asks you to explain when each one fails.

Change of sign Iteration x = g(x) Newton–Raphson the failure cases are examined as often as the methods themselves

Throughout we hunt the roots of f(x) = xΒ³ βˆ’ 5x + 1. Work through each screen, answer the questions as you go and collect ⭐ stars. Press Start when you're ready.

Numerical methods · change of sign

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 must cross zero somewhere between them β€” so a root lies in the interval.

Worked example β€” f(x) = x³ − 5x + 1

f(2) = 8 − 10 + 1 = −1  (negative)

f(2.5) = 15.625 − 12.5 + 1 = +4.125  (positive)

f is a polynomial, so it is continuous. The sign changes, so there is a root between 2 and 2.5.

Two ways it fails. (1) A discontinuity: f(x) = 1/(x − 2) changes sign across x = 2 but has an asymptote there, not a root. (2) An even number of roots in the interval: the signs at the ends match, yet roots are hiding inside. Always state that f is continuous β€” it is a marked point.

Calculate

Your turn β€” change of sign

1For f(x) = x³ − 5x + 1, evaluate f(2).
f(2) =
Hint: 2³ − 5(2) + 1 = 8 − 10 + 1.
Quick check

When change of sign misleads

?A student finds that f(1) is negative and f(3) is positive for f(x) = 1/(x − 2), and concludes there is a root between 1 and 3. What is wrong?
Numerical methods · iteration

Fixed-point iteration: x = g(x)

Rearrange f(x) = 0 into the form x = g(x), then iterate: xn+1 = g(xn). If it converges, the limit is a root.

Worked example β€” x³ − 5x + 1 = 0

Rearrange: x³ = 5x − 1, so x = ∛(5x − 1).

Start at x₀ = 2:

x₁ = ∛(5 × 2 − 1) = ∛9 = 2.0801 (4 d.p.)

x₂ = ∛(5 × 2.0801 − 1) = ∛9.4005 = 2.1105

x₃ = ∛(5 × 2.1105 − 1) = ∛9.5525 = 2.1218 … creeping towards the root 2.1284.

Staircase or cobweb? Sketch y = x and y = g(x). The iteration is drawn by bouncing between the two curves. It produces a staircase when g′ is positive, and a cobweb (spiralling in) when g′ is negative. It converges only when |g′(x)| < 1 near the root β€” a different rearrangement of the same equation can diverge.

Calculate

Your turn β€” one iteration

2Using xn+1 = ∛(5xn − 1) with x₀ = 2, find x₁ to 4 decimal places.
x₁ =
Hint: 5(2) − 1 = 9, so x₁ = ∛9. (2³ = 8 and 2.1³ = 9.261, so the answer sits just above 2.08.)
Quick check

Staircase or cobweb?

?On a diagram of y = x and y = g(x), an iteration spirals inwards around the root, alternating from one side to the other. This is:
Numerical methods · Newton-Raphson

The Newton–Raphson method

Take the tangent to the curve at your current estimate, and see where it cuts the x-axis. That is your next estimate. It converges very fast when it works.

xn+1 = xn − f(xn) / f′(xn)this is just the equation of the tangent, solved for y = 0
Worked example β€” f(x) = x³ − 5x + 1, x₀ = 2

f′(x) = 3x² − 5.

f(2) = −1 and f′(2) = 12 − 5 = 7.

x₁ = 2 − (−1)/7 = 2 + 0.142857 = 2.1429 (4 d.p.).

Next: f(2.142857) = 0.12537, f′(2.142857) = 8.77551.

x₂ = 2.142857 − 0.12537/8.77551 = 2.142857 − 0.014286 = 2.1286 (4 d.p.).

Compare the iteration method, which needed many more steps to reach 4-figure accuracy. Newton–Raphson roughly doubles the number of correct digits each step.

How it fails. If f′(xn) = 0 the tangent is horizontal and never meets the x-axis β€” the formula divides by zero. A starting value near a turning point can also fling the next estimate far away, or towards a completely different root.

Calculate

Your turn β€” Newton-Raphson

3For f(x) = x³ − 5x + 1 with x₀ = 2, apply Newton–Raphson once to find x₁, to 4 decimal places.
x₁ =
Hint: f(2) = −1, f′(x) = 3x² − 5 so f′(2) = 7. Then x₁ = 2 − (−1)/7 = 2 + 1/7.
Calculate

Your turn β€” a second iteration

4Continue Newton–Raphson from x₁ = 2.142857 (f(x₁) = 0.12537, f′(x₁) = 8.77551) to find x₂, to 4 decimal places.
xβ‚‚ =
Hint: x₂ = 2.142857 − 0.12537 ÷ 8.77551 = 2.142857 − 0.014286.
Quick check

When Newton-Raphson fails

?Newton–Raphson breaks down completely if the starting value x₀ happens to be a point where:
Numerical methods · integration

Numerical integration

The same idea applies to areas: when you cannot integrate exactly, approximate.

∫ y dx ≈ (h/2)[ y₀ + yn + 2(y₁ + … + yn−1) ],   h = (b − a)/nn = number of STRIPS; there are n + 1 ordinates
Worked example β€” ∫ from 1 to 3 of (1/x) dx with 2 strips

h = (3 − 1)/2 = 1. Ordinates: y(1) = 1, y(2) = 0.5, y(3) = 0.33333.

Estimate = (1/2)[1 + 0.33333 + 2(0.5)] = 0.5 × 2.33333 = 1.167 (3 d.p.).

Compare the exact value: ∫1/x dx = ln 3 = 1.099. Our estimate is too big β€” as expected, because 1/x is convex, so the chords lie above the curve.

Improving it: doubling the number of strips roughly quarters the error of the trapezium rule. It never becomes exact for a curved graph.

Calculate

Your turn β€” trapezium rule

5Use the trapezium rule with 2 strips to estimate ∫ from 1 to 3 of (1/x) dx, to 3 decimal places.
Hint: h = 1. Ordinates 1, 0.5, 0.33333. Estimate = (1/2)[1 + 0.33333 + 2(0.5)].
Quick check

Over-estimate

?The trapezium rule was used above to estimate the area under y = 1/x, giving 1.167, when the true value is ln 3 = 1.099. Why is the estimate too large?
Sort it

Which method is being described?

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

Β± Change of sign

πŸ” Iteration x = g(x)

πŸ“ Newton–Raphson

Match it

Name that formula

Tap a description on the left, then the formula or condition it names.

Description
Formula
Recap

The big ideas to know

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

Its failures: discontinuities (asymptotes) and an even number of roots in the interval

Iteration: xn+1 = g(xn); staircase (g′ positive) or cobweb (g′ negative); needs |g′| < 1

Newton–Raphson: xn+1 = xn − f(xn)/f′(xn) β€” fast, but fails when f′ = 0

Trapezium rule: (h/2)[y₀ + yn + 2(middles)] with h = (b − a)/n

Accuracy: the rule overestimates a convex curve; more strips means less error

That is OCR 1.09 β€” and in the exam the explanation of a failure is worth as much as the calculation. Press Finish to see your score.

🏆

Mini-lesson complete!

⭐⭐⭐

You've worked through Numerical methods for OCR A-level Mathematics A. 🎉

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