๐Ÿ”€ Change of Sign

OCR FSMQ Additional Maths ยท Numerical Methods (NM1, NM3)

Level 3 · Ages 15–16

← Back to topic overview
1 The Principle
NM1: solve equations approximately by considering the change of sign. The idea is disarmingly simple โ€” if a continuous curve is below the axis at one point and above it at another, it must have crossed somewhere in between.
The change of sign test
If $\mathrm{f}$ is continuous on $[a, b]$ and $\mathrm{f}(a)$, $\mathrm{f}(b)$ have opposite signs,
then $\mathrm{f}(x) = 0$ has at least one root between $a$ and $b$
f(a) < 0 f(b) > 0 root A continuous curve cannot get from below to above without crossing
How to write the answer
1. Evaluate $\mathrm{f}$ at both ends, showing the numbers
2. Say that one is negative and the other positive
3. State that $\mathrm{f}$ is continuous
4. Conclude that a root lies between them
All four steps carry marks. Writing just "$\mathrm{f}(1) = -1$, $\mathrm{f}(2) = 7$" and stopping loses the conclusion mark. Write the sentence.
Worked Example 1 โ€” A full, properly written answer

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

โ‘ Let $\mathrm{f}(x) = x^3 - 4x - 1$.
โ‘ก$\mathrm{f}(2) = 8 - 8 - 1 = -1$
โ‘ข$\mathrm{f}(3) = 27 - 12 - 1 = 14$
โ‘ฃ$\mathrm{f}(2) < 0$ and $\mathrm{f}(3) > 0$, so there is a change of sign.
โ‘ค$\mathrm{f}$ is a polynomial and therefore continuous, so a root lies between $2$ and $3$.
Polynomials are always continuous, so for a polynomial that step is a single phrase. It still needs saying.
2 Decimal Search
A decimal search narrows the interval one decimal place at a time: test $x$ at each tenth across the interval until the sign changes, then repeat with hundredths.
Worked Example 2 โ€” Two decimal places

Find the root of $x^3 - 4x - 1 = 0$ between $2$ and $3$, correct to $2$ decimal places.

โ‘ $\mathrm{f}(2.1) = 9.261 - 8.4 - 1 = -0.139$  (negative)
โ‘ก$\mathrm{f}(2.2) = 10.648 - 8.8 - 1 = 0.848$  (positive)
โ‘ขThe root is in $(2.1, 2.2)$. Now search in hundredths.
โ‘ฃ$\mathrm{f}(2.11) = 9.394 - 8.44 - 1 = -0.046$  (negative)
โ‘ค$\mathrm{f}(2.12) = 9.528 - 8.48 - 1 = 0.048$  (positive)
โ‘ฅThe root is in $(2.11, 2.12)$. To decide the rounding, test the midpoint:
โ‘ฆ$\mathrm{f}(2.115) = 9.461 - 8.46 - 1 = 0.001 > 0$
โ‘งSo the root lies in $(2.11, 2.115)$ and rounds to $\mathbf{2.11}$ to $2$ d.p.
Why the midpoint check matters. Without it, the root could be anywhere in $(2.11, 2.12)$ and could round either way. The midpoint test resolves it โ€” and this one was very close indeed.
3 Interval Bisection
The bisection method
Test the midpoint of the interval, then keep whichever half still shows a sign change.
Each step halves the interval containing the root.
Worked Example 3 โ€” Four bisections

The equation $x^3 + x - 4 = 0$ has a root in $(1, 2)$. Use bisection four times to narrow the interval.

โ‘ $\mathrm{f}(1) = -2$, $\mathrm{f}(2) = 6$.
โ‘ก$\mathrm{f}(1.5) = 3.375 + 1.5 - 4 = 0.875 > 0$ → root in $(1, 1.5)$
โ‘ข$\mathrm{f}(1.25) = 1.953 + 1.25 - 4 = -0.797 < 0$ → root in $(1.25, 1.5)$
โ‘ฃ$\mathrm{f}(1.375) = 2.600 + 1.375 - 4 = -0.025 < 0$ → root in $(1.375, 1.5)$
โ‘ค$\mathrm{f}(1.4375) = 2.970 + 1.4375 - 4 = 0.408 > 0$ → root in $(1.375, 1.4375)$
โ‘ฅAfter four steps the interval has width $0.0625$, down from $1$.
โ‘ฆThe root is $1.4$ to $1$ d.p. (the whole interval rounds to $1.4$).
Bisection's great virtue is certainty. Each step is guaranteed to halve the uncertainty, so after $n$ steps the interval is $\tfrac{1}{2^n}$ of the original. Ten steps reduce an interval of $1$ to under $0.001$.
4 When the Method Fails (NM3)
NM3 asks you to recognise when these numerical methods may fail. For change of sign there are three distinct traps, and each can be asked about directly.
Failure 1 โ€” a discontinuity
A sign change across an asymptote does not mean a root
Worked Example 4 โ€” A false positive

A student claims $\mathrm{f}(x) = \dfrac{1}{x-2}$ has a root between $1$ and $3$, because $\mathrm{f}(1) = -1$ and $\mathrm{f}(3) = 1$. Explain the error.

โ‘ The values and the signs are correct.
โ‘กBut $\mathrm{f}$ is not continuous on $[1,3]$ โ€” it has a vertical asymptote at $x = 2$.
โ‘ขThe function jumps from $-\infty$ to $+\infty$ there without passing through zero.
โ‘ฃIn fact $\dfrac{1}{x-2}$ is never zero, so there is no root anywhere.
This is why "continuous" must appear in your answer. Without continuity, a change of sign proves nothing.
Failure 2 โ€” two roots in one interval
If a curve dips below and comes back, the signs at the ends are the same โ€” and the test finds nothing
Worked Example 5 โ€” Roots hiding in plain sight

$\mathrm{f}(x) = x^2 - 4x + 3$. Show that $\mathrm{f}(0)$ and $\mathrm{f}(4)$ have the same sign, yet there are two roots in $(0, 4)$.

โ‘ $\mathrm{f}(0) = 3 > 0$ and $\mathrm{f}(4) = 16 - 16 + 3 = 3 > 0$ โ€” no sign change.
โ‘กYet $x^2 - 4x + 3 = (x-1)(x-3)$, so there are roots at $x = 1$ and $x = 3$, both in $(0, 4)$.
โ‘ขThe curve dips below the axis between them and comes back up, so the two crossings cancel out as far as the end signs are concerned.
โ‘ฃA midpoint check would reveal them: $\mathrm{f}(2) = -1 < 0$, exposing sign changes in both $(0,2)$ and $(2,4)$.
An even number of roots is invisible to the test. Always sketch, or test extra points, before concluding there is no root.
Failure 3 โ€” a repeated root
A curve that touches the axis has a root but no sign change
Worked Example 6 โ€” A touching root

Explain why a change of sign search will never find the root of $(x-3)^2 = 0$.

โ‘ $(x-3)^2 \geqslant 0$ for every $x$, and it equals zero only at $x = 3$.
โ‘กSo the function is never negative โ€” there is no sign change anywhere.
โ‘ขThe curve touches the axis at $x=3$ and turns back, rather than crossing it.
โ‘ฃThe root exists but is undetectable by this method; it must be found algebraically, or by looking for a minimum value of zero.
5 Quick Reference

The test

Opposite signs at the ends of the interval.

Condition

The function must be continuous.

Write it out

Values, signs, continuity, conclusion.

Decimal search

Step through tenths, then hundredths.

Midpoint check

Needed to settle the rounding.

Bisection

Halves the interval every step.

After $n$ steps

Interval is $\dfrac{1}{2^n}$ of the original.

Fails at asymptotes

Sign change but no root.

Fails for two roots

Same sign at both ends.

Fails for touching roots

Root with no sign change.

6 Practice Questions
Question 1

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

โ–ถ Show solution

$\mathrm{f}(1) = 1 - 7 = -6 < 0$

$\mathrm{f}(2) = 8 - 7 = 1 > 0$

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

Question 2

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

โ–ถ Show solution

$\mathrm{f}(1) = 1 + 3 - 10 = -6 < 0$

$\mathrm{f}(2) = 8 + 6 - 10 = 4 > 0$

Sign change with a continuous function, so a root lies in $(1, 2)$.

Question 3

For $\mathrm{f}(x) = x^3 - 7$, evaluate $\mathrm{f}(1.9)$ and $\mathrm{f}(1.95)$, and hence give the root to $1$ d.p.

โ–ถ Show solution

$\mathrm{f}(1.9) = 6.859 - 7 = -0.141 < 0$

$\mathrm{f}(1.95) = 7.415 - 7 = 0.415 > 0$

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

Question 4

The root of $x^3 + x - 6 = 0$ lies in $(1, 2)$. Perform one bisection step.

โ–ถ Show solution

$\mathrm{f}(1.5) = 3.375 + 1.5 - 6 = -1.125 < 0$

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

So the root now lies in $(1.5, 2)$.

Question 5

Starting from an interval of width $1$, how many bisections are needed to locate a root to within $0.01$?

โ–ถ Show solution

After $n$ steps the width is $\dfrac{1}{2^n}$.

$\dfrac{1}{2^6} = 0.015625$ โ€” not yet small enough.

$\dfrac{1}{2^7} = 0.0078125 < 0.01$ โœ“

So $7$ bisections are needed.

Question 6

Explain why $\mathrm{f}(x) = \dfrac{1}{x+1}$ having a sign change between $x = -2$ and $x = 0$ does not prove there is a root.

โ–ถ Show solution

$\mathrm{f}(-2) = -1$ and $\mathrm{f}(0) = 1$, so the signs do differ.

But $\mathrm{f}$ has an asymptote at $x = -1$, so it is not continuous on $[-2, 0]$.

The change of sign test requires continuity, so no conclusion can be drawn. In fact $\dfrac{1}{x+1}$ is never zero.

Question 7

Show that $\mathrm{f}(x) = x^2 - 6x + 8$ has the same sign at $x = 1$ and $x = 5$, and explain what this hides.

โ–ถ Show solution

$\mathrm{f}(1) = 1 - 6 + 8 = 3 > 0$

$\mathrm{f}(5) = 25 - 30 + 8 = 3 > 0$

No sign change โ€” yet $\mathrm{f}(x) = (x-2)(x-4)$ has roots at $x = 2$ and $x = 4$, both inside $(1,5)$.

An even number of roots leaves the end signs unchanged, so the test misses them entirely. Testing $\mathrm{f}(3) = -1 < 0$ would reveal both.

Question 8

Show that $x^3 - 6x^2 + 9x - 2 = 0$ has a root between $0$ and $1$, and find it to $1$ d.p.

โ–ถ Show solution

$\mathrm{f}(0) = -2 < 0$  and  $\mathrm{f}(1) = 1 - 6 + 9 - 2 = 2 > 0$, so a root lies in $(0,1)$.

$\mathrm{f}(0.2) = 0.008 - 0.24 + 1.8 - 2 = -0.432 < 0$

$\mathrm{f}(0.3) = 0.027 - 0.54 + 2.7 - 2 = 0.187 > 0$

Root in $(0.2, 0.3)$. Midpoint: $\mathrm{f}(0.25) = 0.016 - 0.375 + 2.25 - 2 = -0.109 < 0$.

So the root is in $(0.25, 0.3)$, giving $\mathbf{0.3}$ to $1$ d.p.

Question 9

Explain why a change of sign search cannot find the root of $x^2 - 6x + 9 = 0$.

โ–ถ Show solution

$x^2 - 6x + 9 = (x-3)^2$, which is a perfect square.

So the function is never negative, and its only zero is at $x = 3$, where the curve touches the axis rather than crossing it.

With no sign change anywhere, the method has nothing to detect. A repeated root is always invisible to it.

Question 10

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

(a) Evaluate $\mathrm{f}(x)$ at $x = -1, 0, 1, 2, 3$.   (b) State how many roots the equation $\mathrm{f}(x)=0$ has, and locate each between consecutive integers.   (c) Find the largest root to $2$ d.p.   (d) Explain how you know you have found all the roots.

โ–ถ Show solution

(a)

$x$$-1$$0$$1$$2$$3$
$\mathrm{f}(x)$$-3$$1$$-1$$-3$$1$

(b) There are three sign changes: between $-1$ and $0$, between $0$ and $1$, and between $2$ and $3$.

So the equation has three roots, one in each of $(-1, 0)$, $(0, 1)$ and $(2, 3)$.

(c) Searching in $(2,3)$:

$\mathrm{f}(2.8) = 21.952 - 23.52 + 1 = -0.568 < 0$

$\mathrm{f}(2.9) = 24.389 - 25.23 + 1 = 0.159 > 0$

Root in $(2.8, 2.9)$. Refining:

$\mathrm{f}(2.87) = 23.640 - 24.711 + 1 = -0.071 < 0$

$\mathrm{f}(2.88) = 23.888 - 24.883 + 1 = 0.005 > 0$

Root in $(2.87, 2.88)$. Midpoint: $\mathrm{f}(2.875) = 23.764 - 24.797 + 1 = -0.033 < 0$.

So the root lies in $(2.875, 2.88)$ and rounds to $\mathbf{2.88}$ to $2$ d.p.

(d) $\mathrm{f}$ is a cubic, and a cubic has at most three roots. We have located three, so there cannot be any more.

This is the key safeguard: the change of sign test alone can never prove you have found them all โ€” it is the degree of the polynomial that caps the count. Without that argument, extra roots could always be hiding between the points you happened to test.

Change of Sign (NM1, NM3) ยท OCR FSMQ Additional Maths · Created with MathJax