Locating roots by change of sign

A level Maths (Edexcel) · Edexcel 9MA0 · P9.1 · Pure mathematics › Numerical methods

1 exam-style question plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 10 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

If a function is continuous on an interval and changes sign, the equation \(\mathrm{f}(x) = 0\) has a root in that interval. You use this to show that a root lies between two values, or that an approximation is correct to a given accuracy, and you must know when the method fails. Questions are usually 2 or 3 marks, often at the start of a longer numerical methods question.

Key facts

  • \(\mathrm{f}\) continuous on \([a, b]\) and \(\mathrm{f}(a)\), \(\mathrm{f}(b)\) of opposite signs \(\Rightarrow\) a root between \(a\) and \(b\)
  • To solve \(\mathrm{g}(x) = \mathrm{h}(x)\), use \(\mathrm{f}(x) = \mathrm{g}(x) - \mathrm{h}(x)\)
  • Root \(= 2.37\) (2 d.p.): test \(x = 2.365\) and \(x = 2.375\)
  • Sign change, no root: discontinuity (asymptote)
  • No sign change, but roots: an even number of roots, or a repeated root (curve touches the axis)
  • Trigonometric functions: calculator in radians

Notes

The change of sign rule

diagram
  • If \(\mathrm{f}\) is continuous on \([a, b]\), and \(\mathrm{f}(a)\) and \(\mathrm{f}(b)\) have opposite signs, there is at least one root of \(\mathrm{f}(x) = 0\) with \(a \lt x \lt b\)
  • Continuous means the graph has no breaks or jumps on the interval, so it must cross the axis to get from below it to above it.
  • xyOf(1) > 0f(1.5) < 0root α11.5y = 4cos x − x
    \(f\) is continuous and changes sign between 1 and 1.5, so the curve must cross the x-axis in between.
  • A full answer has three parts: the two values (showing their signs), 'there is a change of sign and \(\mathrm{f}\) is continuous', and 'so there is a root in the interval'.
  • For an equation such as \(\mathrm{g}(x) = \mathrm{h}(x)\), first write it as \(\mathrm{f}(x) = \mathrm{g}(x) - \mathrm{h}(x) = 0\)

Showing a root to a given accuracy

  • To show that a root \(\alpha = 1.252\) to 3 d.p., test the ends of the interval of numbers that round to 1.252: \(\mathrm{f}(1.2515)\) and \(\mathrm{f}(1.2525)\)
  • A change of sign means \(1.2515 \lt \alpha \lt 1.2525\), so \(\alpha = 1.252\) to 3 d.p.

When the method fails

diagram
  • Sign change but no root: the function is not continuous, e.g. \(\mathrm{f}(x) = \dfrac{1}{x - 2}\) changes sign across the asymptote \(x = 2\)
  • Root but no sign change: two roots (or any even number) in the interval, or a repeated root where the curve touches the axis, e.g. \(\mathrm{f}(x) = (x - 3)^2\)
  • xyO2sign change, no rootxyO3root, no sign change
    Left: \(\dfrac{1}{x - 2}\) jumps across the asymptote \(x = 2\). Right: \((x - 3)^2\) touches the axis at a repeated root and never goes negative.
  • A small interval reduces these risks, and a sketch shows how many roots to expect.

Calculator

  • Use radians for trigonometric functions. Table mode finds sign changes quickly. Give values to at least 2 significant figures so the signs are clear.

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own.

Show that a root lies in an interval

2 marksGrade E
  1. Write the equation as \(\mathrm{f}(x) = 0\) if it is not already.
  2. Work out \(\mathrm{f}\) at both ends of the interval and write the values down.
  3. Conclude: change of sign, \(\mathrm{f}\) continuous, so a root in the interval.

Example. \(\mathrm{f}(x) = 4\cos x - x\), where \(x\) is in radians.
Show that the equation \(\mathrm{f}(x) = 0\) has a root \(\alpha\) in the interval \([1, 1.5]\)

Show the model answerHide the model answer
\(\mathrm{f}(1) = 1.161\ldots\) and \(\mathrm{f}(1.5) = -1.217\ldots\)
M1
There is a change of sign and \(\mathrm{f}\) is continuous, so there is a root \(\alpha\) in \([1, 1.5]\)
A1

Show that a root is correct to a given accuracy

3 marksGrade C
  1. Find the interval of numbers that round to the given value (half a unit either side).
  2. Work out \(\mathrm{f}\) at both bounds, keeping enough figures to show the signs.
  3. Conclude with the change of sign, continuity and the rounded root.

Example. \(\mathrm{f}(x) = 4\cos x - x\), where \(x\) is in radians. The equation \(\mathrm{f}(x) = 0\) has a root \(\alpha\).
Show that \(\alpha = 1.252\) correct to 3 decimal places.

Show the model answerHide the model answer
Use the interval \([1.2515, 1.2525]\)
M1
\(\mathrm{f}(1.2515) = 0.0041\ldots \gt 0\) and \(\mathrm{f}(1.2525) = -0.0007\ldots \lt 0\)
A1
There is a change of sign and \(\mathrm{f}\) is continuous, so \(1.2515 \lt \alpha \lt 1.2525\) and \(\alpha = 1.252\) (3 d.p.)
A1

Explain why a sign change does not give a root

2 marksGrade B
  1. Look for a value in the interval where the function is undefined (a vertical asymptote).
  2. Say that the function is not continuous on the interval, so the rule does not apply.
  3. If you can, find the actual root(s) to show none is in the interval.

Example. \(\mathrm{g}(x) = \dfrac{3}{2x - 3} + 1\). A student notes that \(\mathrm{g}(1) = -2\) and \(\mathrm{g}(2) = 4\), and concludes that \(\mathrm{g}(x) = 0\) has a root between 1 and 2.
Explain why the student is wrong.

Show the model answerHide the model answer
\(\mathrm{g}\) is not continuous on \([1, 2]\): its graph has a vertical asymptote at \(x = 1.5\)
B1
Solving \(\dfrac{3}{2x - 3} = -1\) gives \(x = 0\), so the only root is outside the interval; the sign change is caused by the asymptote
B1

Don’t lose marks

  • Leaving out 'continuous' or the final conclusion, which loses the accuracy mark.
  • Testing the wrong interval, e.g. 1.25 and 1.26 when showing that a root is 1.252 to 3 d.p.
  • Calculator in degrees for trigonometric functions.
  • Rounding a small value such as \(-0.0007\) to 0, so the sign cannot be seen.
  • Testing signs of \(\mathrm{g}(x)\) and \(\mathrm{h}(x)\) separately instead of \(\mathrm{f}(x) = \mathrm{g}(x) - \mathrm{h}(x)\)

More tips

Memory tricks

  • The three-part conclusion: values with signs; 'change of sign, continuous'; 'so a root'.
  • Bounds for rounding are half a unit either side of the last decimal place: 1.252 gives 1.2515 and 1.2525.
  • Use the calculator's table mode to scan for a sign change.
  • Failure cases: an asymptote gives a false sign change; a touching curve or two close roots hide a root.

Exam technique

  • Write down the actual values (at least 2 s.f.), not just 'positive' and 'negative'.
  • Use the notation of the question: if the root is called \(\alpha\), say '\(\alpha\) lies in …'.
  • For 'explain why' questions, name the feature (asymptote, repeated root, two roots) and link it to the graph.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade E
    Show a root lies in an intervalWork out \(\mathrm{f}(a)\) and \(\mathrm{f}(b)\), show they have opposite signs, and conclude using continuity.
  2. Grade D
    Rearrange an equation into f(x) = 0To find where \(\mathrm{e}^x = 4 - x\), use \(\mathrm{f}(x) = \mathrm{e}^x + x - 4\)
  3. Grade C
    Show a root is correct to given accuracyTest the bounds of the rounding interval, e.g. 1.2515 and 1.2525 for a root of 1.252 to 3 d.p.
  4. Grade B
    Explain how a sign change can misleadA vertical asymptote (a break in the graph) can give a sign change with no root.
  5. Grade B
    Explain how roots can be missedWith no sign change there may still be two roots, or a root where the curve just touches the axis.
  6. Grade A
    Count roots using a sketchSketch \(y = \mathrm{g}(x)\) and \(y = \mathrm{h}(x)\): the number of intersections is the number of roots of \(\mathrm{g}(x) = \mathrm{h}(x)\)

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy5 marks
(a) A student writes:
\(\tan 1 = 1.557\) and \(\tan 2 = -2.185\). There is a change of sign, so the equation \(\tan x = 0\) has a root between \(x = 1\) and \(x = 2\).
Explain why the student is wrong.
[2]
(b) Show that the equation \(x^3 - 5x + 1 = 0\) has a root between \(x = 2.1\) and \(x = 2.2\).
[2]
(c) The function \(\mathrm{g}(x) = (5x - 7)(5x - 8)\) has \(\mathrm{g}(1) = 6\) and \(\mathrm{g}(2) = 6\).
Explain why this does not mean that \(\mathrm{g}(x) = 0\) has no roots between 1 and 2.
[1]
Show the answer and mark scheme
(a) Answer: \(\tan x\) is not continuous on \([1, 2]\): it has an asymptote at \(x = \frac{\pi}{2} \approx 1.571\), where the sign changes. The roots of \(\tan x = 0\) are \(0, \pi, \ldots\), none in \((1, 2)\).
  • B1 for \(\tan x\) has a discontinuity (vertical asymptote) at \(x = \frac{\pi}{2}\), which lies between 1 and 2
  • B1 for the sign change is caused by the asymptote, not a root (the change of sign method needs a continuous function)

Worked solution: \(\tan x\) is not defined at \(x = \frac{\pi}{2} \approx 1.571\), which lies between 1 and 2. The function is not continuous there, and the sign changes across the asymptote. The roots of \(\tan x = 0\) are \(x = 0, \pi, 2\pi, \ldots\), so there is no root between 1 and 2.

(b) Answer: \(\mathrm{f}(2.1) = -0.239 \lt 0\), \(\mathrm{f}(2.2) = 0.648 \gt 0\); \(\mathrm{f}\) is continuous and changes sign.
  • M1 for evaluating \(\mathrm{f}(2.1)\) and \(\mathrm{f}(2.2)\) where \(\mathrm{f}(x) = x^3 - 5x + 1\)
  • A1 for \(-0.239\) and \(0.648\), with sign change, continuity and conclusion

Worked solution: Let \(\mathrm{f}(x) = x^3 - 5x + 1\). \(\mathrm{f}(2.1) = -0.239 \lt 0\) and \(\mathrm{f}(2.2) = 0.648 \gt 0\). \(\mathrm{f}\) is a polynomial, so it is continuous, and it changes sign, so there is a root between 2.1 and 2.2.

(c) Answer: \(\mathrm{g}\) has two roots, 1.4 and 1.6, in the interval; with an even number of roots the sign changes twice, so the end values have the same sign.
  • B1 for there are two roots (1.4 and 1.6) in the interval, so the sign changes twice and there is no overall change of sign

Worked solution: \(\mathrm{g}(x) = 0\) at \(x = 1.4\) and \(x = 1.6\), both between 1 and 2. The graph crosses the axis twice, so \(\mathrm{g}\) is positive at both ends. No change of sign does not mean no roots.

Question 2Medium4 marks
\(h(x) = \ln x + 2x - 7\), \(x \gt 0\).
The equation \(h(x) = 0\) has a root \(\alpha\). The diagram shows part of the curve \(y = h(x)\).
−6−4−20241.01.52.02.53.03.54.04.5xyα
(a) Show that \(\alpha\) lies in the interval \([2.9, 3]\).
[2]
(b) Show that \(\alpha = 2.96\) correct to 2 decimal places.
[2]
Show the answer and mark scheme
(a) Answer: Shown
  • M1 for attempting \(h(2.9)\) and \(h(3)\) with at least one value correct to 1 significant figure (rounded or truncated)
  • A1 for both values correct to at least 1 s.f. (\(-0.135\) and \(0.0986\)), a reason (change of sign and \(h(x)\) continuous) and a conclusion

Worked solution: \(h(2.9) = -0.135 \lt 0\) and \(h(3) = 0.0986 \gt 0\).
There is a change of sign and \(h(x)\) is continuous on \([2.9, 3]\), so \(\alpha\) lies in the interval \([2.9, 3]\).

(b) Answer: Shown: \(h(2.955)\) and \(h(2.965)\) have opposite signs
  • M1 for choosing the interval \([2.955, 2.965]\) (or a tighter interval that establishes the rounding) and evaluating \(h\) at both ends, with at least one value correct to 1 s.f.
  • A1 for both values correct (\(-0.00650\) and \(0.0169\)), a change of sign, continuity and the conclusion \(\alpha = 2.96\) (2 d.p.)

Worked solution: \(h(2.955) = -0.00650 \lt 0\) and \(h(2.965) = 0.0169 \gt 0\).
There is a change of sign and \(h(x)\) is continuous, so \(2.955 \lt \alpha \lt 2.965\). Every number in this interval rounds to \(2.96\), so \(\alpha = 2.96\) to 2 decimal places.

Question 3Hard5 marks
\(f(x) = \mathrm{e}^{x} - 5x\). The diagram shows a sketch of \(y = f(x)\).
−4−22468−0.50.51.01.52.02.53.03.50xy
(a) Find the values of \(f(0)\) and \(f(2.7)\), giving each to 3 decimal places.
[1]
(b) A student concludes that the equation \(f(x) = 0\) has no roots in the interval \([0, 2.7]\). Explain why this conclusion is not valid.
[1]
(c) By evaluating \(f(1.6)\), show that the equation \(f(x) = 0\) has at least two roots in the interval \([0, 2.7]\).
[3]
Show the answer and mark scheme
(a) Answer: \(f(0) = 1.000, \ f(2.7) = 1.380\)
  • B1 for both values: awrt \(1.000\) and awrt \(1.380\)

Worked solution: \(f(0) = \mathrm{e}^{0} - 5 \times 0 = 1.000\) and \(f(2.7) = \mathrm{e}^{2.7} - 5 \times 2.7 = 1.380\). Both are positive.

(b) Answer: No change of sign does not mean no root: there may be an even number of roots
  • B1 for explaining that the absence of a change of sign does not rule out roots, because there could be an even number of roots (the curve could cross the axis twice) in the interval

Worked solution: If the curve crosses the \(x\)-axis an even number of times between the end points, the values at the ends have the same sign, so no change of sign does not mean that there is no root.

(c) Answer: Shown: sign changes on \([0, 1.6]\) and \([1.6, 2.7]\)
  • M1 for \(f(1.6) = -3.05\) (correct to 1 s.f.)
  • A1 for identifying the change of sign on both \([0, 1.6]\) and \([1.6, 2.7]\)
  • A1 for continuity of \(f\) and the conclusion that there is a root in each sub-interval, so at least two roots

Worked solution: \(f(1.6) = -3.05 \lt 0\), while \(f(0) \gt 0\) and \(f(2.7) \gt 0\).
\(f\) is continuous, and it changes sign on \([0, 1.6]\) and on \([1.6, 2.7]\), so there is a root in each: at least two roots. (They are \(x = 0.259\) and \(x = 2.543\).)

More in Numerical methods

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.