πŸ”¬ Numerical Methods

OCR FSMQ Additional Maths Β· Overview of the whole topic

Level 3 · Ages 15–16
1 The Big Idea

Most equations cannot be solved exactly. Most areas under curves cannot be integrated by formula. Numerical methods get a good enough answer anyway β€” by approximating, then improving.

This section is a genuinely different way of thinking. Instead of asking "what is the exact answer?", it asks "how close can I get, and how do I know how close I am?" That second question β€” assessing your own accuracy β€” is what the marks are really for.
What the three techniques replace
Change of sign and iteration replace factorising, when a root is not nice
Chord gradients replace differentiation, when there is no formula
The trapezium rule replaces integration, when the integral is intractable
Your calculator is central here. The specification states that "it is expected that calculators available in the assessment will include an iterative function, such as an ANS key". Learn to use it before the examination.
2 The Language You Need
WordMeaning
RootA solution of $\mathrm{f}(x) = 0$.
Change of sign$\mathrm{f}(a)$ and $\mathrm{f}(b)$ have opposite signs, so a root lies between.
IterationRepeating a formula, feeding each answer back in.
ConvergeThe iterates settle towards a fixed value.
DivergeThe iterates run away, without settling.
ChordA straight line joining two points on a curve.
Trapezium ruleEstimating an area with trapezium-shaped strips.
Over-estimateAn approximation larger than the true value.
OrdinateOne of the $y$-values at a strip boundary.
3 The Key Methods
Change of sign (NM1)
If $\mathrm{f}$ is continuous and $\mathrm{f}(a) \times \mathrm{f}(b) < 0$,
then a root lies between $a$ and $b$
Iteration (NM2)
Rearrange $\mathrm{f}(x) = 0$ into $x = \mathrm{g}(x)$, then compute $x_{n+1} = \mathrm{g}(x_n)$
Gradient from a chord (NM4)
$\text{gradient} \approx \dfrac{\mathrm{f}(x+h) - \mathrm{f}(x)}{h}$,  improving as $h \to 0$
The trapezium rule (NM7)
$\displaystyle\int_a^b y \,\mathrm{d}x \approx \tfrac12 h\Big[\left(y_0 + y_n\right) + 2\left(y_1 + y_2 + \cdots + y_{n-1}\right)\Big]$
where $h = \dfrac{b-a}{n}$. This formula will be provided in the examination.
Worked Example β€” Locating a root that will not factorise

Show that $x^3 + x - 3 = 0$ has a root between $1$ and $2$, and find it to $1$ decimal place.

β‘ $\mathrm{f}(1) = 1 + 1 - 3 = -1$  (negative)
β‘‘$\mathrm{f}(2) = 8 + 2 - 3 = 7$  (positive)
β‘’The sign changes and $\mathrm{f}$ is continuous, so there is a root in $(1, 2)$.
β‘£$\mathrm{f}(1.2) = 1.728 + 1.2 - 3 = -0.072$  (negative)
β‘€$\mathrm{f}(1.3) = 2.197 + 1.3 - 3 = 0.497$  (positive)
β‘₯The root lies in $(1.2, 1.3)$. Test the midpoint: $\mathrm{f}(1.25) = 1.953 + 1.25 - 3 = 0.203 > 0$.
⑦So the root is in $(1.2, 1.25)$, which rounds to $1.2$ to $1$ d.p.
Checking the midpoint is what pins down the rounding. Knowing only that the root lies in $(1.2, 1.3)$ does not tell you whether it rounds to $1.2$ or $1.3$.
4 The Numerical Methods Subtopics
5 Common Mistakes to Avoid
Not stating the signs. "Show that a root lies between…" requires you to write down both function values, note that one is negative and the other positive, and draw the conclusion. All three steps earn marks.
Forgetting the continuity condition. A change of sign proves a root only if the function is continuous. Across an asymptote the sign can flip with no root at all β€” that is NM3 in action.
Rounding during an iteration. Keep every digit your calculator holds; round only the final answer. Rounding at each step accumulates error fast.
Using $h$ as the number of strips. In the trapezium rule, $n$ is the number of strips and $h$ is their width, $\tfrac{b-a}{n}$. Note also that $n$ strips need $n+1$ ordinates.
Doubling the wrong ordinates. The first and last ordinates are counted once; every one in between is doubled.
Guessing whether an estimate is too big. It depends on the curvature: for a curve bending upwards, the trapezium rule over-estimates. Justify your answer with a sketch.
6 Quick Reference

Change of sign

Opposite signs at the ends $\Rightarrow$ a root between.

State everything

Both values, both signs, the conclusion.

Continuity

Essential β€” asymptotes can fake a sign change.

Iteration

$x_{n+1} = \mathrm{g}(x_n)$ with a starting value.

ANS key

The fastest way to iterate.

Full accuracy

Never round mid-iteration.

Chord gradient

$\dfrac{\mathrm{f}(x+h)-\mathrm{f}(x)}{h}$.

Improve it

Make $h$ smaller.

Trapezium rule

Ends once, middles doubled, all $\times \tfrac{h}{2}$.

Over or under?

Decide from the curvature, and say why.

7 Practice Questions
Question 1

Show that $x^3 - 5 = 0$ has a root between $1$ and $2$.

β–Ά Show solution

$\mathrm{f}(1) = 1 - 5 = -4$  (negative)

$\mathrm{f}(2) = 8 - 5 = 3$  (positive)

The sign changes and $\mathrm{f}$ is continuous, so a root lies between $1$ and $2$.

Question 2

$\mathrm{f}(x) = x^3 + 2x - 8$. Evaluate $\mathrm{f}(1)$ and $\mathrm{f}(2)$ and state what you conclude.

β–Ά Show solution

$\mathrm{f}(1) = 1 + 2 - 8 = -5$

$\mathrm{f}(2) = 8 + 4 - 8 = 4$

Opposite signs, so a root lies in $(1, 2)$.

Question 3

Use the iteration $x_{n+1} = \sqrt{\dfrac{6}{x_n}}$ with $x_1 = 2$ to find $x_2$ and $x_3$.

β–Ά Show solution

$x_2 = \sqrt{3} = 1.73205$

$x_3 = \sqrt{6 \div 1.73205} = \sqrt{3.46410} = 1.86121$

Question 4

Estimate the gradient of $y = x^2$ at $x = 3$ using the chord from $x = 3$ to $x = 3.1$.

β–Ά Show solution

$\dfrac{3.1^2 - 3^2}{0.1} = \dfrac{9.61 - 9}{0.1} = \dfrac{0.61}{0.1} = 6.1$

(The exact gradient is $6$, so the estimate is slightly high.)

Question 5

Use the trapezium rule with two strips to estimate $\displaystyle\int_0^2 x^2 \,\mathrm{d}x$.

β–Ά Show solution

$h = 1$; ordinates at $x = 0, 1, 2$ are $0, 1, 4$.

$\approx \tfrac12(1)\Big[(0 + 4) + 2(1)\Big] = \tfrac12(6) = 3$

(The exact value is $\tfrac83 = 2.667$, so this over-estimates.)

Question 6

How many ordinates are needed for the trapezium rule with $5$ strips?

β–Ά Show solution

$6$ ordinates β€” always one more than the number of strips.

Question 7

Explain how to improve a chord estimate of a gradient.

β–Ά Show solution

Use a smaller interval $h$, so the second point is closer to the first.

The chord then lies closer to the tangent, so its gradient is a better approximation.

Question 8

Explain how to improve a trapezium rule estimate.

β–Ά Show solution

Use more strips (a smaller $h$).

Each trapezium's straight top then hugs the curve more closely, so less area is wrongly included or excluded.

Question 9

Give an example showing that a change of sign does not always mean there is a root.

β–Ά Show solution

Take $\mathrm{f}(x) = \dfrac{1}{x}$.

$\mathrm{f}(-1) = -1$ and $\mathrm{f}(1) = 1$ β€” the sign changes.

But $\dfrac1x$ is never zero, so there is no root in $(-1, 1)$.

The sign change happens because the function is discontinuous at $x = 0$, jumping from $-\infty$ to $+\infty$ rather than passing through zero. This is why continuity must always be checked.

Question 10

$\mathrm{f}(x) = x^3 - 2x - 5$.

(a) Show that a root lies between $2$ and $3$.   (b) Use a decimal search to find it to $1$ d.p.   (c) Show that the equation can be written as $x = \sqrt[3]{2x+5}$, and use the iteration $x_{n+1} = \sqrt[3]{2x_n+5}$ with $x_1 = 2$ to find the root to $3$ d.p.   (d) Compare the two methods.

β–Ά Show solution

(a) $\mathrm{f}(2) = 8 - 4 - 5 = -1$  (negative)

$\mathrm{f}(3) = 27 - 6 - 5 = 16$  (positive)

Sign change with $\mathrm{f}$ continuous, so a root lies in $(2, 3)$.

(b) $\mathrm{f}(2.1) = 9.261 - 4.2 - 5 = 0.061$  (positive)

So the root is in $(2.0, 2.1)$. Test the midpoint:

$\mathrm{f}(2.05) = 8.615 - 4.1 - 5 = -0.485$  (negative)

The root is in $(2.05, 2.1)$, so it rounds to $\mathbf{2.1}$ to $1$ d.p.

(c) $x^3 - 2x - 5 = 0 \;\Rightarrow\; x^3 = 2x + 5 \;\Rightarrow\; x = \sqrt[3]{2x+5}$ βœ“

$x_1 = 2$

$x_2 = \sqrt[3]{9} = 2.080084$

$x_3 = \sqrt[3]{9.160168} = 2.092351$

$x_4 = \sqrt[3]{9.184701} = 2.094217$

$x_5 = \sqrt[3]{9.188434} = 2.094501$

$x_6 = \sqrt[3]{9.189001} = 2.094544$

The iterates are settling, so the root is $\mathbf{2.095}$ to $3$ d.p.

(d) The decimal search is guaranteed to work and gives a bracket containing the root, so the accuracy is certain β€” but it needs a new function evaluation for every extra digit, and progress is slow.

The iteration converged to $3$ decimal places in only five steps, and with the ANS key each step is one button press. But it offers no guarantee: a different rearrangement, such as $x = \tfrac{x^3-5}{2}$, would diverge from the same start.

In practice the two are used together: a change of sign to prove the root exists and locate it roughly, then an iteration to refine it quickly.

Numerical Methods (NM1–NM9) Β· OCR FSMQ Additional Maths · Created with MathJax