Numerical Methods
Board Coverage
| Board | Paper | Notes |
|---|---|---|
| AQA | Paper 2 | Sign change, iteration, Newton-Raphson, Simpson’s rule |
| Edexcel | P2 | Similar |
| OCR (A) | Paper 2 | Includes fixed-point iteration and convergence |
| CIE (9709) | P2, P3 | Numerical solutions of equations, integration in P2/P3 |
:::info The formula booklet gives the Newton-Raphson formula and the trapezium/Simpson’s rule. You Must know when each method is applicable and its limitations. :::
1. Locating Roots: Sign Change
1.1 Sign change theorem
Theorem. If is continuous on and and have opposite signs, then there Exists at least one root such that .
1.2 Limitations
The sign change theorem tells us a root exists but says nothing about:
- How many roots are in the interval (there could be 1, 3, 5, …).
- The exact location of the root.
:::caution A sign change is sufficient but not necessary for a root. If Then (no sign change), but there is a root at . Additionally, a sign change Could arise from a discontinuity rather than a root: has and But no root. :::
Intuition. The sign change theorem is the Intermediate Value Theorem applied to the special case Of crossing zero. If you walk from a point below sea level to one above sea level, you must cross Sea level at some point — provided the ground is continuous (no teleporting).
2. Fixed-Point Iteration
2.1 Method
To solve Rewrite as and iterate:
Starting from an initial guess . If the sequence converges to Then .
2.2 Convergence condition
Theorem. If is continuously differentiable near a fixed point and Then the iteration converges to for all starting Values sufficiently close to .
If The iteration diverges.
Proof (linear convergence). Near By Taylor’s theorem:
Since :
For close to :
If Then : the error shrinks, so the Iteration converges. If The error grows and the iteration diverges.
2.3 Rearrangement choices
Different rearrangements of give different And some converge while others Diverge.
Example. Solve .
- : . Near the root : . Diverges.
- : . Near : . Converges.
:::tip In exams, if a question asks you to show that a particular rearrangement converges, compute at the root and show . If asked why a rearrangement fails, show . :::
2.4 Geometric interpretation
The fixed-point iteration can be visualised using the cobweb diagram. Plot and . Starting from on the -axis, go vertically to Then horizontally to Then vertically to And so on.
- If : the cobweb spirals inward (monotone convergence).
- If : the cobweb zigzags inward (oscillatory convergence).
- If : the cobweb spirals or zigzags outward (divergence).
The closer is to zero, the faster the convergence. When The Iteration achieves quadratic convergence (similar to Newton-Raphson), since the leading error term In the Taylor expansion vanishes.
3. Newton-Raphson Method
3.1 Derivation from the tangent line
To solve Start from and draw the tangent to at . The tangent line Is:
Setting (where the tangent crosses the -axis):
This is the Newton-Raphson formula.
3.2 Proof of local quadratic convergence
Theorem. If is twice continuously differentiable, , And is sufficiently close to Then Newton-Raphson converges quadratically: .
Proof (sketch). By Taylor’s theorem about :
For some between and . Rearranging:
Taking absolute values: .
Intuition. Quadratic convergence means the number of correct decimal places roughly doubles With each iteration. If you have 2 correct digits, the next iteration gives about 4, then 8, Then 16. This is dramatically faster than the linear convergence of fixed-point iteration (which Adds roughly a fixed number of correct digits per step).
3.3 Failures
Newton-Raphson fails when:
- (the tangent is horizontal — division by zero).
- is close to zero (the next iterate jumps far away).
- The starting point is not close enough to the root.
:::caution Warning A different starting point. :::
3.4 Horizontal tangent failure
When at some iterate, the Newton-Raphson formula requires division by zero and the Method breaks down entirely. Even when is merely small, the step becomes very large, sending the iterate far from the root.
Example. Let . Then So . Starting at :
The formula gives Which is undefined.
Even starting at : , . .
The root is near So the iterate has been sent in the wrong direction. The Next iterate will be pulled back, but convergence is erratic compared to a well-chosen Starting point.
:::caution Warning Tangent is not close to horizontal near your starting point. :::
3.5 Slow convergence near inflection points
The quadratic convergence proof in Section 3.2 requires . When the root coincides With an inflection point, so that Convergence degrades from quadratic to linear.
Theorem. If f(\alpha) = 0$$f'(\alpha) = 0$$f''(\alpha) \neq 0And is sufficiently Close to Then Newton-Raphson converges linearly with rate :
Proof sketch. Expanding by Taylor’s theorem to third order about :
Therefore:
So as : the error is halved each Step (linear convergence with rate ), not squared.
Example. has a root at where . The Newton-Raphson iteration Becomes:
Starting at : x_1 = 3$$x_2 = 7/3 \approx 2.333$$x_3 = 17/9 \approx 1.889 x_4 = 37/27 \approx 1.370$$x_5 = 75/81 \approx 1.210…
The error is multiplied by each step (linear, not quadratic). Compare: standard Newton-Raphson With would give roughly 1, then 2, then 4, then 8 correct digits. Here each step Only adds a fixed fraction of a digit.
4. The Trapezium Rule
4.1 Formula
Where and .
4.2 Error analysis
Theorem. The error in the composite trapezium rule is:
For some Provided is twice continuously differentiable on .
Derivation. Consider a single strip of width . The trapezium rule Approximates by the area of a trapezium:
To find the error, expand about the midpoint . Let :
Adding these:
The trapezium approximation for this strip is:
The exact integral over this strip is (by Taylor expansion of the integral):
Therefore the error on a single strip is:
Summing over all strips and applying the Intermediate Value Theorem to (which is Continuous), there exists such that:
Since and :
(The negative sign arises from the exact derivation via the Euler-Maclaurin formula; the key point Is the scaling.)
Key consequence. The error is proportional to . Doubling the number of strips () reduces the error by a factor of 4, since and .
4.3 Error bound
From the error formula, since for all :
This gives a guaranteed upper bound on the absolute error. If we require the error to satisfy We need:
Example. Approximate with the trapezium rule. Here So and . On : (achieved at Where ).
For error :
So strips suffice (rounding up to the nearest even number, which is convenient if one later Wishes to compare with Simpson’s rule).
5. Simpson’s Rule
5.1 Formula
For an even number of strips:
The coefficients follow the pattern: .
5.2 Derivation
Simpson’s rule approximates by quadratic arcs over pairs of strips. Over A Unique quadratic passes through (x_{2k}, y_{2k})$$(x_{2k+1}, y_{2k+1})$$(x_{2k+2}, y_{2k+2}). Integrating this quadratic gives the area .
5.3 Error bound
Where on .
Intuition. Simpson’s rule has error compared to for the trapezium rule. Doubling the number of strips reduces the error by a factor of 16 for Simpson’s rule vs. 4 for the Trapezium rule. This is because quadratic approximations match the curvature of the function much Better than linear ones.
:::tip Simpson’s rule requires an even number of strips. The trapezium rule works with any Number. Simpson’s rule is exact for cubics (since the error depends on ). :::
6. Comparison of Methods
| Method | Convergence | Requirement | Speed |
|---|---|---|---|
| Sign change | N/A | Continuous | Locates only |
| Bisection | Linear | Sign change | Slow |
| Fixed-point | Linear | Moderate | |
| Newton-Raphson | Quadratic | Fast | |
| Trapezium rule | Any | Integration | |
| Simpson’s rule | Even strips | Integration |
7. Comparison of Root-Finding Methods
7.1 When to use each method
Sign change (bisection): Use when you need a guaranteed, robust result and have a sign change. Always converges but slowly (halving the interval each step). No derivative needed. Excellent for Initial bracketing before switching to a faster method.
Fixed-point iteration: Use when the equation is rearranged into and can be verified. Simple to implement but may converge slowly or diverge Entirely depending on the rearrangement. Different rearrangements of the same equation can give Radically different convergence behaviour.
Newton-Raphson: Use when is easy to compute and a good starting estimate is available. Extremely fast (quadratic convergence) when it works, but can fail catastrophically if is Small, if the starting point is poor, or if the root is at an inflection point.
7.2 Practical strategy
In practice, numerical software often combines methods:
- Bracket the root using sign change to find an interval containing the root.
- Refine using Newton-Raphson or fixed-point iteration starting from the midpoint or a favourable endpoint.
- Verify the result by checking is sufficiently close to zero.
:::info Newton-Raphson is the method of choice when derivatives are available and the function is Well-behaved. Fixed-point iteration is useful when the problem gives a contraction Mapping. Bisection is the reliable fallback when nothing else is guaranteed to work. :::
7.3 Cost comparison
| Method | Cost per step | Convergence rate | Total cost to reach tolerance |
|---|---|---|---|
| Bisection | 1 evaluation | (linear) | steps |
| Fixed-point | 1 evaluation | (linear) | steps |
| Newton-Raphson | 2 evaluations | Quadratic | steps |
Newton-Raphson requires both and per step (two evaluations), but its quadratic convergence Means it needs far fewer steps in total. For high accuracy requirements, Newton-Raphson is Overwhelmingly more efficient despite the higher per-step cost.
Problem Set
Problem 1
Show that $x^3 - 2x - 5 = 0$ has a root in the interval $[2, 3]$.Solution 1
$f(x) = x^3 - 2x - 5$. $f(2) = 8-4-5 = -1 \lt 0$$f(3) = 27-6-5 = 16 \gt 0$.Since is continuous and changes sign on By the sign change theorem there is a root in .
If you get this wrong, revise: Sign Change Theorem — Section 1.1.
Problem 2
Use fixed-point iteration $x_{n+1} = \sqrt[3]{2x_n + 5}$ with $x_0 = 2$ to find $x_3$. Give your answer to 4 decimal places.Solution 2
$x_0 = 2.0000$ $x_1 = \sqrt[3]{9} = 2.0801$ $x_2 = \sqrt[3]{2(2.0801)+5} = \sqrt[3]{9.1602} = 2.0924$ $x_3 = \sqrt[3]{2(2.0924)+5} = \sqrt[3]{9.1848} = 2.0943$If you get this wrong, revise: Fixed-Point Iteration — Section 2.
Problem 3
Show that the iteration $x_{n+1} = \dfrac{x_n^3 + 5}{2}$ for solving $x^3 - 2x - 5 = 0$ will not converge near the root.Solution 3
$g(x) = \dfrac{x^3+5}{2}$$g'(x) = \dfrac{3x^2}{2}$.Near the root : .
Since The iteration diverges near .
If you get this wrong, revise: Convergence Condition — Section 2.2.
Problem 4
Use Newton-Raphson with $x_0 = 2$ to find $x_2$ for $f(x) = x^3 - 2x - 5 = 0$. Give your answer to 4 decimal places.Solution 4
$f'(x) = 3x^2 - 2$. $x_{n+1} = x_n - \dfrac{x_n^3 - 2x_n - 5}{3x_n^2 - 2}$.: f(2) = -1$$f'(2) = 10. .
: f(2.1) = 9.261-4.2-5 = 0.061$$f'(2.1) = 13.23-2 = 11.23. .
If you get this wrong, revise: Newton-Raphson Method — Section 3.
Problem 5
Use Simpson's rule with 4 strips to approximate $\displaystyle\int_0^2 e^{-x^2}\,dx$ to 4 decimal places.Solution 5
$h = 0.5$. Values: $y_0 = 1$$y_1 = e^{-0.25} \approx 0.7788$$y_2 = e^{-1} \approx 0.3679$$y_3 = e^{-2.25} \approx 0.1054$$y_4 = e^{-4} \approx 0.0183$.
If you get this wrong, revise: Simpson’s Rule — Section 5.
Problem 6
Show that the equation $e^x = 3x$ has exactly two real roots, and locate them.Solution 6
Let $f(x) = e^x - 3x$. $f'(x) = e^x - 3$..
.
Since This is a global minimum. The minimum value is negative, and as So has exactly two roots.
f(0) = 1 \gt 0$$f(1) = e-3 \lt 0: root in . f(1) \lt 0$$f(2) = e^2-6 \gt 0: Root in .
If you get this wrong, revise: Sign Change Theorem — Section 1.
Problem 7
The Newton-Raphson formula fails when applied to $f(x) = x^{1/3}$ starting from $x_0 = 1$. Explain why.Solution 7
$f(x) = x^{1/3}$$f'(x) = \dfrac{1}{3}x^{-2/3}$..
So x_1 = -2$$x_2 = 4$$x_3 = -8… The iterates oscillate and diverge.
The problem is that — the tangent at the root is vertical, so the Newton-Raphson step sends the iterate to .
If you get this wrong, revise: Failures — Section 3.3.
Problem 8
Use the trapezium rule with 6 strips to approximate $\displaystyle\int_1^4 \ln x\,dx$.Solution 8
$h = 0.5$. Values: $\ln 1 = 0$$\ln 1.5 \approx 0.4055$$\ln 2 \approx 0.6931$$\ln 2.5 \approx 0.9163$$\ln 3 \approx 1.0986$$\ln 3.5 \approx 1.2528$$\ln 4 \approx 1.3863$.
(Exact: .)
If you get this wrong, revise: The Trapezium Rule — Section 4.
Problem 9
For the equation $x^3 + x - 3 = 0$Show that $x_{n+1} = \sqrt[3]{3 - x_n}$ converges near the root.Solution 9
$f(1) = -1 \lt 0$$f(1.2) = 1.728 + 1.2 - 3 = -0.072 \lt 0$$f(1.3) = 2.197 + 1.3 - 3 = 0.497 \gt 0$.Root near .
g(x) = (3-x)^{1/3}$$g'(x) = -\dfrac{1}{3}(3-x)^{-2/3}.
.
Converges since .
If you get this wrong, revise: Convergence Condition — Section 2.2.
Problem 10
Explain why the sign change theorem does not guarantee a root of $f(x) = \dfrac{1}{x-2}$ in the interval $[1, 3]$.Solution 10
$f(1) = -1 \lt 0$ and $f(3) = 1 \gt 0$So there is a sign change. However, $f$ is **not continuous** on $[1,3]$ — it has a vertical asymptote at $x = 2$. The sign change theorem requires continuity, so it does not apply here. There is no root of $1/(x-2) = 0$.If you get this wrong, revise: Limitations — Section 1.2.
Problem 11
Consider $f(x) = (x-2)^3$. The root is $\alpha = 2$. Apply Newton-Raphson starting from $x_0 = 5$. Show that the convergence is linear, find the convergence rate, and explain why quadratic Convergence is lost.Solution 11
$f(x) = (x-2)^3$$f'(x) = 3(x-2)^2$.
Starting from : x_1 = 14/3 \approx 4.667$$x_2 = 40/9 \approx 4.444 x_3 = 116/27 \approx 4.296$$x_4 = 344/81 \approx 4.198.
Error: e_0 = 3$$e_1 = 8/3 \approx 2.667$$e_2 = 16/9 \approx 1.778 e_3 = 32/27 \approx 1.185$$e_4 = 64/81 \approx 0.790.
Ratio: for all . This is linear convergence with rate .
Quadratic convergence is lost because . The root coincides with a stationary Point (inflection point), violating the condition in the quadratic convergence Theorem. As shown in Section 3.5, when and Newton-Raphson Degrades to linear convergence with rate . Here So as well (triple root), giving rate instead of .
If you get this wrong, revise: Slow Convergence Near Inflection Points — Section 3.5.
Problem 12
(a) Use the trapezium rule with $n = 4$ strips to approximate $\displaystyle\int_0^2 \frac{1}{1+x^2}\,dx$.(b) Given that Find an upper bound for on and hence bound the error in your approximation.
Solution 12
(a) $h = 0.5$.y_0 = f(0) = 1$$y_1 = f(0.5) = 1/1.25 = 0.8$$y_2 = f(1) = 0.5 y_3 = f(1.5) = 1/3.25 \approx 0.3077$$y_4 = f(2) = 0.2.
(Exact value: .)
(b) . On The numerator is maximised at where it equals . The denominator is minimised at where It equals 1. We need to maximise .
Checking critical points: gives potential extrema of . Alternatively, evaluate at Endpoints and critical points. f''(0) = -2$$f''(1) = 4/8 = 0.5$$f''(2) = 22/125 = 0.176.
So (taking ).
Error bound: .
The actual error is Well within the bound.
If you get this wrong, revise: Error Analysis — Section 4.2 and Error Bound — Section 4.3.
Problem 13
The equation $e^{-x} = x$ has a single real root $\alpha$.(a) Show that .
(b) Consider the rearrangement . Show that this iteration converges near .
(c) Consider the rearrangement . Determine whether this converges near .
Solution 13
(a) $f(x) = e^{-x} - x$. $f(0.5) = e^{-0.5} - 0.5 \approx 0.6065 - 0.5 = 0.1065 \gt 0$. $f(0.7) = e^{-0.7} - 0.7 \approx 0.4966 - 0.7 = -0.2034 \lt 0$. By the sign change theorem, $\alpha \in (0.5, 0.7)$.(b) g_1(x) = e^{-x}$$g_1'(x) = -e^{-x}. At : . Converges.
(c) g_2(x) = -\ln x$$g_2'(x) = -1/x. At : . Diverges.
Both rearrangements solve the same equation, but only converges near the root.
If you get this wrong, revise: Rearrangement Choices — Section 2.3.
Problem 14
Newton-Raphson is applied to $f(x) = x^3 - 3x + 2$ (which has a double root at $x = 1$ and a single Root at $x = -2$). Starting from $x_0 = 0.5$Compute $x_1$ and $x_2$And comment on the rate of Convergence towards $x = 1$.Solution 14
$f(x) = x^3 - 3x + 2 = (x-1)^2(x+2)$$f'(x) = 3x^2 - 3$.: f(0.5) = 0.125 - 1.5 + 2 = 0.625$$f'(0.5) = 0.75 - 3 = -2.25. .
: f(0.7778) = 0.4703 - 2.3334 + 2 = 0.1369$$f'(0.7778) = 1.8151 - 3 = -1.1849. .
The iterates are approaching but slowly. Errors: e_0 = 0.5$$e_1 \approx 0.2222 . The ratio And . This is Approximately linear convergence.
At the double root : f(1) = 0$$f'(1) = 0. Since Quadratic convergence Is lost (as in Section 3.5). For a double root, Newton-Raphson converges linearly with rate Approximately .
If you get this wrong, revise: Slow Convergence Near Inflection Points — Section 3.5.
Problem 15
(a) Use the trapezium rule with $n = 2$ strips to approximate $\displaystyle\int_0^1 \sqrt{x}\,dx$.(b) The exact value is . Compute the actual error.
(c) Use the error bound formula to find a theoretical upper bound for the error with strips.
Solution 15
(a) $h = 0.5$. $y_0 = \sqrt{0} = 0$$y_1 = \sqrt{0.5} \approx 0.7071$$y_2 = \sqrt{1} = 1$.
(b) Exact: . Actual error: .
(c) f(x) = x^{1/2}$$f'(x) = \frac{1}{2}x^{-1/2}$$f''(x) = -\frac{1}{4}x^{-3/2}.
On : Which is unbounded as . The error bound Requires to be bounded on But as .
If we instead apply the bound on for small : Which blows up as . This illustrates a Limitation of the error bound: it requires to be bounded, which fails when has a vertical Tangent at an endpoint.
If you get this wrong, revise: Error Bound — Section 4.3.
Problem 16
For the equation $\cos x = x$Let $g(x) = \cos x$.(a) Verify that a fixed point exists in .
(b) Show that And hence that the iteration converges.
(c) Starting from Find to 6 decimal places.
Solution 16
(a) $g(0) = \cos 0 = 1 \gt 0$ and $g(\pi/2) = \cos(\pi/2) = 0 \lt \pi/2$. Since $g$ is continuous and $g(x) - x$ changes sign on $(0, \pi/2)$ (check: $g(0) - 0 = 1 \gt 0$ $g(\pi/2) - \pi/2 = -\pi/2 \lt 0$), a fixed point exists.(b) . At the fixed point : . Converges.
(c)
If you get this wrong, revise: Convergence Condition — Section 2.2.
Problem 17
A student uses Newton-Raphson to solve $f(x) = \tan x - 1 = 0$ starting from $x_0 = 1.3$.(a) Compute .
(b) The root is . Explain why starting at may not be Ideal, and identify a value of between and where Newton-Raphson would fail Entirely.
Solution 17
(a) $f(x) = \tan x - 1$$f'(x) = \sec^2 x = 1/\cos^2 x$.: . . .
This is still far from . The function is very steep here (large ), so the step Is small but the iterate is far from the root.
(b) Newton-Raphson fails when I.e., Which never happens since for all . However, as x_0 \to \pi/2^-$$\cos x_0 \to 0 and While . The ratio tends to a finite limit, but the function becomes Extremely steep near Making the iteration numerically unstable. Starting very close to sends the iterate far away.
A better starting point is : . Already close to .
If you get this wrong, revise: Horizontal Tangent Failure — Section 3.4.
:::tip Diagnostic Test Ready to test your understanding of Numerical Methods? The contains the hardest questions within the A-Level specification for this topic, each with a full worked solution.
Unit tests probe edge cases and common misconceptions. Integration tests combine Numerical Methods with other pure mathematics topics to test synthesis under exam conditions.
See for instructions on self-marking and building a personal test matrix. :::
Common Pitfalls
-
Forgetting to check that solutions satisfy the original equation (especially with squaring both sides or dividing by variables).
-
Rounding too early in multi-step calculations — carry full precision through and round only the final answer.
-
Losing marks by not showing sufficient working — always write out each step, especially in proof questions.
-
Misreading the question, particularly with ‘hence’ vs ‘hence or otherwise’ — the former requires using previous work.
Summary
The key principles covered in this topic are linked in the sub-pages above. Focus on understanding the definitions, applying the formulas or frameworks, and evaluating strengths and limitations of each approach.
Worked Examples
Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.