✓ Official Syllabus VerifiedStandards & Rigor ↗
10

Numerical Methods

📌 Numerical Methods P3  ·  Interval bisection / change of sign  ·  Iterative formula x_{n+1}=g(x_n)  ·  Newton-Raphson

When an equation cannot be solved exactly, sign changes locate roots and iteration refines them.

▲ Reference — Finding roots
A sign change of f across \( [a,b] \) traps a root. Iteration \( x_{n+1}=g(x_n) \) converges when it settles; the Newton–Raphson step is \( x_{n+1}=x_n-\tfrac{f(x_n)}{f'(x_n)} \).
● Deep Conceptual Intuition — Numerical Methods

Accumulation, Antiderivatives & Differential Flows: By the Fundamental Theorem of Calculus, the accumulation function \(A(x) = \int_a^x f(t)\,dt\) satisfies \(A'(x) = f(x)\), linking instantaneous rates of change to net signed area. In first-order differential equations \(\dfrac{dy}{dx} = g(x)h(y)\), separation of variables \(\int \dfrac{1}{h(y)}\,dy = \int g(x)\,dx + C\) reconstructs the family of integral curves across the slope field.

Parabola \(f(x) = (x - 2)^2 - 3\) with vertex \(V(2, -3)\) intersected by secant line \(g(x) = x - 1\).
⊙ Explorer · Fixed-Point Iteration \(x_{n+1} = g(x_n)\) Cobweb Diagram
interactive
Fixed-Point Root \(\alpha\)\(\alpha = 2.303\)
Iterate \(x_{4}\) after 4 steps\(x_{4} = 2.298\)
Convergence \(|g'(\alpha)| < 1\)\(|g'(\alpha)| = 0.217 < 1\)

The staircase/cobweb path alternates vertically to \(y = g(x) = \sqrt{x + c}\) and horizontally to the line \(y = x\), converging to the root \(\alpha\) where \(g(\alpha) = \alpha\).

Sign change
root in \( [a,b] \)
Iteration
\( x_{n+1}=g(x_n) \)
Newton
\( x_n-\tfrac{f}{f'} \)
Converge
value settles
◆ Why It Works — First-Principles Derivation (Numerical Methods)

Why Integration by Parts & Integrating Factors Work: Differentiating a product \(u(x)v(x)\) gives \((uv)' = u'v + uv'\). Integrating both sides and rearranging yields the Integration by Parts formula:

\[ \int u\,\frac{dv}{dx}\,dx = u v - \int v\,\frac{du}{dx}\,dx \]

Similarly, for a linear first-order ODE \(y' + P(x)y = Q(x)\), multiplying by the integrating factor \(\mu(x) = e^{\int P(x)\,dx}\) (which satisfies \(\mu'(x) = P(x)\mu(x)\)) collapses the left-hand side into an exact product derivative: \(\dfrac{d}{dx}\bigl[\mu(x)y\bigr] = \mu(x)Q(x)\).

Worked example 10.A
Problem. For \( f(x)=x^{2}-2 \), between which integers does a root lie?
▸ Show step-by-step solution
\(1\text{ and }2\), since \(f(1)\lt 0\lt f(2)\).
Worked example 2 — Newton-Raphson
Problem. Use Newton-Raphson to find the root of \(f(x)=x^3-5\) near \(x_0=1.7\). Do one iteration.
▸ Show step-by-step solution

\(f(x)=x^3-5\), \(f'(x)=3x^2\).

\[x_1=x_0-\frac{f(x_0)}{f'(x_0)}=1.7-\frac{1.7^3-5}{3(1.7)^2}=1.7-\frac{4.913-5}{8.67}=1.7-\frac{-0.087}{8.67}\approx1.710.\]
Worked Example \(C\) — Numerical Methods (Hard Application)
Problem. The unique real root \(\alpha\) of the equation \[ x^3 + 2x - k = 0, \] where \(k\) is a positive constant, is estimated using the iterative formula \[ x_{n+1} = \frac{k}{x_n^2 + 2}. \] The sequence of iterations converges locally to \(\alpha\) (for an initial approximation \(x_0\) sufficiently close to \(\alpha\)) if and only if \(|g'(\alpha)| < 1\), where \(g(x) = \frac{k}{x^2 + 2}\). Determine the complete set of values of \(k\) for which this iteration converges locally to \(\alpha\).
▸ Show step-by-step solution

To determine the range of \(k\) for which the iteration converges locally, we follow these steps: 1. **Root relation:** At the fixed point \(x = \alpha\), we have: \[ \alpha = g(\alpha) = \frac{k}{\alpha^2 + 2} \implies \alpha^3 + 2\alpha = k. \] Since \(k > 0\) and the function \(f(x) = x^3 + 2x - k\) satisfies \(f'(x) = 3x^2 + 2 > 0\) for all real \(x\), there is a unique real root \(\alpha\), and \(\alpha > 0\). 2. **Differentiating \(g(x)\):** Using the chain rule on \(g(x) = k(x^2 + 2)^{-1}\): \[ g'(x) = -k(x^2 + 2)^{-2} \cdot (2x) = -\frac{2kx}{(x^2 + 2)^2}. \] 3. **Evaluating \(g'(\alpha)\):** From \(\alpha(\alpha^2 + 2) = k\), we have \(\alpha^2 + 2 = \frac{k}{\alpha}\). Substituting this into the denominator gives: \[ g'(\alpha) = -\frac{2k\alpha}{\left(\frac{k}{\alpha}\right)^2} = -\frac{2k\alpha^3}{k^2} = -\frac{2\alpha^3}{k}. \] Now, substitute \(k = \alpha^3 + 2\alpha\): \[ g'(\alpha) = -\frac{2\alpha^3}{\alpha^3 + 2\alpha} = -\frac{2\alpha^2}{\alpha^2 + 2}. \] 4. **Applying the convergence criterion:** Since \(\alpha > 0\), \(g'(\alpha) < 0\). Local convergence requires: \[ |g'(\alpha)| < 1 \iff \frac{2\alpha^2}{\alpha^2 + 2} < 1. \] Multiplying by \(\alpha^2 + 2 > 0\): \[ 2\alpha^2 < \alpha^2 + 2 \iff \alpha^2 < 2 \iff 0 < \alpha < \sqrt{2}. \] 5. **Finding the range of \(k\):** Because \(k(\alpha) = \alpha^3 + 2\alpha\) is strictly increasing for \(\alpha > 0\) (since \(k'(\alpha) = 3\alpha^2 + 2 > 0\)): - As \(\alpha \to 0^+\), \(k \to 0\). - At \(\alpha = \sqrt{2}\): \[ k = (\sqrt{2})^3 + 2\sqrt{2} = 2\sqrt{2} + 2\sqrt{2} = 4\sqrt{2}. \] Thus, the iteration is guaranteed to converge locally if and only if \(0 < k < 4\sqrt{2}\).

Worked Example \(D\) — Numerical Methods (Easy Application)
Problem. The continuous function \( f \) is defined for all \( x \in \mathbb{R} \) by \[ f(x) = 2^x + 3x - 11. \] Between which pair of consecutive integers does a root of the equation \( f(x) = 0 \) lie?
▸ Show step-by-step solution

To determine the interval containing a root of a continuous function \( f(x) \), we use the change-of-sign rule (Intermediate Value Theorem). If \( f(a) \) and \( f(b) \) have opposite signs, then at least one real root of \( f(x) = 0 \) lies in the interval \( (a, b) \). Evaluate \( f(x) \) at consecutive integers: - For \( x = 0 \): \[ f(0) = 2^0 + 3(0) - 11 = 1 + 0 - 11 = -10 < 0 \] - For \( x = 1 \): \[ f(1) = 2^1 + 3(1) - 11 = 2 + 3 - 11 = -6 < 0 \] - For \( x = 2 \): \[ f(2) = 2^2 + 3(2) - 11 = 4 + 6 - 11 = -1 < 0 \] - For \( x = 3 \): \[ f(3) = 2^3 + 3(3) - 11 = 8 + 9 - 11 = 6 > 0 \] - For \( x = 4 \): \[ f(4) = 2^4 + 3(4) - 11 = 16 + 12 - 11 = 17 > 0 \] Since \( f(2) = -1 < 0 \) and \( f(3) = 6 > 0 \), there is a change of sign between \( x = 2 \) and \( x = 3 \). Because \( f \) is continuous, a root of \( f(x) = 0 \) lies between \( 2 \) and \( 3 \). Common misconception: In the interval \( [1, 2] \), \( f(1) = -6 \) and \( f(2) = -1 \). Although the value increases significantly, both values remain negative, so no root is guaranteed in \( [1, 2] \).

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Numerical Methods)
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Writing \(\ln|y| = x^2 + C \implies y = e^{x^2} + C\)Exponentiation distributes over addition as multiplication (\(e^{a+b} = e^a e^b\)), not addition.Write \(y = e^{x^2 + C} = Ae^{x^2}\) and solve for \(A\) using the initial condition.
Leaving original \(x\)-limits on a \(u\)-substituted definite integralEvaluates the antiderivative \(F(u)\) at \(x\)-values instead of \(u(x)\)-values.Convert bounds immediately: \(u_{\text{low}} = u(a)\) and \(u_{\text{high}} = u(b)\).
Computing total distance as \(\left|\int_{t_1}^{t_2} v(t)\,dt\right|\)Cancels forward and backward motion (net displacement) instead of accumulating total path length.Split the integral at every root where \(v(t) = 0\) and integrate \(|v(t)|\).
▲ Exam Pacing & Verification Strategy — Numerical Methods

Quick Verification Trick (Cambridge International A Level (9709 Paper 3 / Paper 6)): For any indefinite integral \(\int f(x)\,dx = F(x) + C\), differentiate your answer \(F'(x)\) mentally—especially the coefficient \(1/k\) from chain-rule reversal \(\int e^{kx}\,dx = \tfrac{1}{k}e^{kx} + C\)—before moving on.

Show that \(x^3+2x-6=0\) has a root in \([1,2]\). Taking \(x_0=1.5\), perform one Newton-Raphson iteration.
💡 Hint 1 of 3
Set up the sign-change check: \(f(1)=-3\lt 0\), \(f(2)=6\gt 0\).
💡 Hint 2 of 3
Rewrite and simplify to obtain: \(f(1.5)=1.5^3+3-6=-0.625\). \(f'(x) = 3x^2+2\Rightarrow f'(1.5)\).
💡 Hint 3 of 3
Use the resulting form to finish: \(x_1 = 1.5-\tfrac{-0.625}{8.75}\).
\(f(1)=-3\lt 0\), \(f(2)=6\gt 0\): sign change confirms a root in \((1,2)\). \(f(1.5)=1.5^3+3-6=-0.625\), \(f'(x)=3x^2+2\Rightarrow f'(1.5)=8.75\). \(x_1=1.5-\tfrac{-0.625}{8.75}\approx 1.571\).
Newton-Raphson approximation to the root of \(f(x) = x^3 - 5\) showing rapid convergence from initial estimate \(x_{0} = 1.7\).
⚠️ Cambridge 9709 Traps — Continuity in Sign Change & Iteration Divergence

Sign Change Continuity Requirement: A change of sign \(f(a)f(b) < 0\) guarantees a root ONLY if \(f(x)\) is continuous on \([a, b]\). Functions with vertical asymptotes (such as \(f(x) = \tan x\) or \(f(x) = \frac{1}{x}\)) can change sign across a discontinuity without having any root. Cambridge always requires students to explicitly state that the function is continuous.

Fixed-Point Convergence Condition: An iteration \(x_{n+1} = g(x_n)\) converges to a root \(\alpha\) if and only if \(|g'(\alpha)| < 1\). If \(|g'(\alpha)| > 1\), the iteration will diverge or oscillate away from the root. If asked to explain why an iterative formula fails, evaluate \(|g'(x)|\) near the root.

The equation \(x^3 - x - 1 = 0\) has a root near \(x = 1.3\). (a) Show that the iterative formula \(x_{n+1} = (x_n + 1)^{1/3}\) converges by considering \(g'(x)\). (b) Starting with \(x_1 = 1.3\), calculate \(x_2\) and \(x_3\) to 4 decimal places.
💡 Hint 1 of 3
(a) Let \(g(x) = (x + 1)^{1/3}\). Differentiate: \(g'(x) = \frac{1}{3}(x + 1)^{-2/3} = \frac{1}{3(x + 1)^{2/3}}\).
💡 Hint 2 of 3
Near the root \(x \approx 1.3\): \(g'(1.3) = \frac{1}{3(2.3)^{2/3}} \approx \frac{1}{3(1.742)} \approx 0.191\) Since \(|g'(x)| < 1\), the iteration is guaranteed to converge rapidly. (b) Carry out iterations: \(x_1 = 1.3\) \(x_2 = (1.3 + 1)^{1/3} = (2.3)^{1/3}\).
💡 Hint 3 of 3
Use the resulting form to finish: \(x_3 = (1.3200 + 1)^{1/3} = (2.3200)^{1/3}\).

(a) Let \(g(x) = (x + 1)^{1/3}\). Differentiate:

\[g'(x) = \frac{1}{3}(x + 1)^{-2/3} = \frac{1}{3(x + 1)^{2/3}}\]

Near the root \(x \approx 1.3\):

\[g'(1.3) = \frac{1}{3(2.3)^{2/3}} \approx \frac{1}{3(1.742)} \approx 0.191\]

Since \(|g'(x)| < 1\), the iteration is guaranteed to converge rapidly.

(b) Carry out iterations:

\[x_1 = 1.3\]\[x_2 = (1.3 + 1)^{1/3} = (2.3)^{1/3} \approx 1.3200\]\[x_3 = (1.3200 + 1)^{1/3} = (2.3200)^{1/3} \approx 1.3238\]
[Practice 3 · Medium] The function \( f \) is defined for all \( x \in \mathbb{R} \) by \[ f(x) = x^3 - 2x^2 - kx + 12, \] where \( k \) is a real constant. The Newton-Raphson method is used to find an approximation to a root of the equation \( f(x) = 0 \). Given that an initial approximation \( x_0 = 2 \) produces a first approximation \( x_1 = 4 \), find the value of the constant \( k \) and the exact value of the second approximation \( x_2 \).
💡 Hint 1 of 3
We solve the problem in two steps: Step 1: Find the value of \( k \)
💡 Hint 2 of 3
The Newton-Raphson iteration formula is: \(x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}\) Differentiating \( f(x) = x^3 - 2x^2 - kx + 12 \) with respect to \( x \): \(f'(x) = 3x^2 - 4x - k\).
💡 Hint 3 of 3
Therefore: \(x_2 = 4 - \frac{f(4)}{f'(4)} = 4 - \frac{24}{27} = 4 - \frac{8}{9}\).
We solve the problem in two steps: **Step 1: Find the value of \( k \)** The Newton-Raphson iteration formula is: \[ x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} \] Differentiating \( f(x) = x^3 - 2x^2 - kx + 12 \) with respect to \( x \): \[ f'(x) = 3x^2 - 4x - k \] Evaluating \( f(x) \) and \( f'(x) \) at \( x_0 = 2 \): \[ f(2) = 2^3 - 2(2^2) - 2k + 12 = 8 - 8 - 2k + 12 = 12 - 2k \] \[ f'(2) = 3(2^2) - 4(2) - k = 12 - 8 - k = 4 - k \] Using the iteration formula for \( x_1 \): \[ x_1 = x_0 - \frac{f(x_0)}{f'(x_0)} \implies 4 = 2 - \frac{12 - 2k}{4 - k} \] Rearranging to solve for \( k \): \[ 2 = -\frac{12 - 2k}{4 - k} = \frac{2k - 12}{4 - k} \] \[ 2(4 - k) = 2k - 12 \] \[ 8 - 2k = 2k - 12 \implies 4k = 20 \implies k = 5 \] **Step 2: Find the second approximation \( x_2 \)** With \( k = 5 \), the function and its derivative are: \[ f(x) = x^3 - 2x^2 - 5x + 12 \] \[ f'(x) = 3x^2 - 4x - 5 \] Now apply the iteration starting from \( x_1 = 4 \): \[ f(4) = 4^3 - 2(4^2) - 5(4) + 12 = 64 - 32 - 20 + 12 = 24 \] \[ f'(4) = 3(4^2) - 4(4) - 5 = 48 - 16 - 5 = 27 \] Therefore: \[ x_2 = 4 - \frac{f(4)}{f'(4)} = 4 - \frac{24}{27} = 4 - \frac{8}{9} = \frac{28}{9} \]
[Practice 4 · Hard] An arithmetic sequence has first term \( a=-18 \) and common difference \( d=6 \). Find the sum of the first 29 terms.
💡 Hint 1 of 3
Start from the relation: \(S_n=\dfrac{n}{2}(2a+(n-1)d)\).
💡 Hint 2 of 3
Substitute and simplify: \(S_{29} = \dfrac{29}{2}(-36+168)\).
💡 Hint 3 of 3
Evaluate the simplified expression: \(S_{29} = \dfrac{29}{2}(-36+168)\).
\( S_n=\dfrac{n}{2}(2a+(n-1)d) \Rightarrow S_{29}=\dfrac{29}{2}(-36+168)=1914 \).
[Practice 5 · Easy] The function \( f \) is defined for all real numbers by \[ f(x) = x^3 + 3x - 5. \] Between which pair of consecutive integers does the unique real root of the equation \( f(x) = 0 \) lie?
💡 Hint 1 of 3
To locate the root using the change of sign method, evaluate \( f(x) \) at consecutive integer values: \(f(0) = (0)^3 + 3(0) - 5 = -5 < 0\).
💡 Hint 2 of 3
Rewrite and simplify to obtain: \(f(1) = (1)^3 + 3(1) - 5 = 1 + 3 - 5 = -1 < 0\) \(f(2) = (2)^3 + 3(2) - 5 = 8 + 6 - 5 = 9 > 0\).
💡 Hint 3 of 3
- On \([-1, 0]\), \(f(-1) = -9\) and \(f(0)\) (no sign change).
To locate the root using the change of sign method, evaluate \( f(x) \) at consecutive integer values: \[ f(0) = (0)^3 + 3(0) - 5 = -5 < 0 \] \[ f(1) = (1)^3 + 3(1) - 5 = 1 + 3 - 5 = -1 < 0 \] \[ f(2) = (2)^3 + 3(2) - 5 = 8 + 6 - 5 = 9 > 0 \] Since \( f(x) \) is a continuous polynomial function and there is a sign change between \( x = 1 \) (where \( f(1) < 0 \)) and \( x = 2 \) (where \( f(2) > 0 \)), by the Intermediate Value Theorem, a root of \( f(x) = 0 \) lies between \( 1 \) and \( 2 \). Checking the other intervals: - On \( [0, 1] \), \( f(0) = -5 \) and \( f(1) = -1 \) (no sign change). - On \( [2, 3] \), \( f(2) = 9 \) and \( f(3) = 31 \) (no sign change). - On \( [-1, 0] \), \( f(-1) = -9 \) and \( f(0) = -5 \) (no sign change).

Numerical Methods — 8-Mark Structured Problem

8 pts Calculator Active
For Numerical Methods, consider the linear-rate relationship \(f(x) = 3x + 5\) on \(x \ge 0\) together with the quadratic auxiliary \(g(x) = x^2 - 6x + 5\).
  1. (a)2 pts
    Find the initial value \(f(0)\) and the slope \(f'(x)\).
    Scoring Guideline & Justification
    • [M1] Evaluates f(0) and reads gradient coefficient (1 pt)
    • [A1] Obtains f(0) = 5 and slope = 3 (1 pt)
  2. (b)3 pts
    Determine the vertex \((h, k)\) and minimum value of \(g(x)\).
    Scoring Guideline & Justification
    • [M1] Finds axis of symmetry x = 3 (2 pt)
    • [A1] Evaluates minimum k = -4 (1 pt)
  3. (c)3 pts
    Compute the average rate of change of \(g(x)\) from \(x = 0\) to \(x = 5\).
    Scoring Guideline & Justification
    • [M1] Applies (g(5) - g(0)) / 5 (2 pt)
    • [A1] Simplifies to -1 (1 pt)
Complete Worked Solution
(a) \(f(0)=5\), gradient \(3\). (b) Completing the square gives \(g(x)=(x-3)^2+-4\), minimum \(-4\) at \(x=3\). (c) Average rate \(= (x_1+x_2-6) = -1\).
📝 Chapter Quiz