Skip to main content
Examonaut

Topic 9 · Lesson 1 of 4

Locating roots by a change of sign

Locating a root by a change of sign

A root of f(x)=0f(x) = 0 is where the graph of y=f(x)y = f(x) crosses the xx-axis. Suppose f(2)f(2) is negative and f(3)f(3) is positive. If the graph has no breaks between 2 and 3, it must cross the axis somewhere in between, just as you can't walk from below sea level to above it without passing sea level. The diagram shows this for f(x)=x3−2x−5f(x) = x^3 - 2x - 5: f(2)=−1f(2) = -1 and f(3)=16f(3) = 16.

xyO12351015f(2) = −1f(3) = 16y = x³ − 2x − 5

A function with no gaps or jumps is called continuous. The rule is: if ff is continuous on [a,b][a, b] and f(a)f(a) and f(b)f(b) have opposite signs, there is at least one root between aa and bb.

To show a root is α=2.09\alpha = 2.09 correct to 2 decimal places, take the interval of all numbers that round to 2.09, which is [2.085,2.095][2.085, 2.095], and show a sign change across it: f(2.085)=−0.106f(2.085) = -0.106 and f(2.095)=0.005f(2.095) = 0.005. The root lies in between, so it rounds to 2.09.

How to prove a root to a given accuracy

  1. Step 1: Write down the bounds of the rounding interval (half a unit either side of the claimed value).
  2. Step 2: Work out ff at both bounds, giving the values (at least their signs, clearly).
  3. Step 3: Conclude: "there is a change of sign and ff is continuous, so there is a root in […][\ldots], so α=…\alpha = \ldots to …\ldots decimal places."

When a change of sign misleads

The diagram shows three traps.

two roots,no sign changerepeated root,no sign changesign change,but no root
  • Two roots close together (or any even number) in the interval: the curve goes below and back up, so f(a)f(a) and f(b)f(b) have the same sign even though there are roots. Using a smaller interval helps.
  • A repeated root, where the curve touches the axis without crossing: there is never a sign change, so the method can't find it.
  • A discontinuity, such as the asymptote of f(x)=1x−2f(x) = \frac{1}{x - 2}: f(1)=−1f(1) = -1 and f(3)=1f(3) = 1 have different signs, but there is no root, because the graph jumps rather than crosses. This is why the word continuous must appear in your conclusion.

Try it: test intervals for a change of sign and see the traps, then step through x = g(x) staircases and cobwebs, and Newton–Raphson.

Try it: simulation

Iteration and Newton–Raphson

Loading the simulation…

Practise this topic

Both are part of Premium.