9.1 Locating roots by change of sign — Learn
Prerequisites: substituting a value into a function and reading function notation from Chapter 2; the graphs of and from Chapter 6; the idea of a continuous curve from Chapter 1.
By the end of this section you can: explain what a root of is; use the change of sign on an interval to show that a root lies inside it; narrow an interval to locate a root to a given accuracy; and explain three ways a change-of-sign search can fail.
1. What a root is
A root of an equation is a value of the variable that makes the two sides equal. When the equation is written as , a root is a value where the graph of meets the -axis.
Some equations solve exactly. The equation has the roots and , and the graph crosses the axis at both. Other equations have no exact solution at all. The equation
cannot be rearranged to give by itself. A numerical method finds the root by arithmetic instead of algebra.
2. The change of sign
Here is the key idea. Suppose is continuous on the interval from to . That means the graph has no break and no jump between those two values. If and have opposite signs, then the graph must cross the axis somewhere between them. There is at least one root in the interval.
Written with the values, the test is
A negative product means one value is positive and the other is negative. The interval is called a bracket for the root.
Example 1. Show that the equation has a root between and .
Write and work out the value at each end.
One value is negative and the other is positive. The function is continuous, so the graph crosses the axis between and . The root lies in the interval .
3. Narrowing the interval
Once a root is bracketed, test a value in the middle. Keep the half of the interval where the sign changes. Each step halves the interval, so the root is trapped more and more tightly.
Example 2. Locate the root of to one decimal place.
Start from the bracket and test :
This is negative, and is positive, so the root lies in . Now test :
This is positive, and is negative, so the root lies in . Test :
Now and , so the root lies in . Every number in that interval rounds to or to , so the answer to one decimal place is uncertain. One more step settles it. Test :
This is just below zero, while is above zero. The root lies in , so to two decimal places it is . Section 9.3 finds it to four decimal places with a faster method.
4. Roots of equations with exponentials and logarithms
The same test works for any continuous function, including the exponential and logarithmic functions from Chapter 6. Bring everything to one side first.
Example 3. Show that the equation has a root between and .
Rearrange to and write . Then
The values have opposite signs, so a root lies in .
Example 4. A function has the values in the table. Show that it has a root between and .
The value at is negative and the value at is positive. The sign changes, so there is a root in .
5. When change of sign fails
The test proves a root only when its conditions hold. There are three ways it lets you down.
The graph is not continuous. The function has and , so the signs differ. But is never zero, and the graph jumps from very negative to very positive across the break at . There is no root in .
The root is a touch, not a crossing. The function has a root at , but it meets the axis and turns back. It is positive on both sides, so no interval has a change of sign. A root like this is a repeated root.
An even number of roots hides the sign change. For this function the values at and are both positive, yet the graph crosses the axis twice in between. Two crossings return the sign to where it started, so the test finds nothing.
There is a fourth case to watch. If at an end of the interval, then itself is a root and no sign change is needed.
Watch out. Three mistakes are common.
Reading a sign change as a promise of exactly one root. A sign change proves at least one root. A cubic can cross the axis three times inside one interval. Re-check: after finding a bracket, sketch or plot the curve to see how many crossings it holds.
Testing only the two ends of a wide interval. If the sign is the same at both ends, do not conclude that there is no root. There may be two, four or any even number of crossings. Narrow the interval and test again.
Using a function with a break. The test needs continuity. Check that the function is defined and unbroken across the whole interval before you rely on the sign.
6. Try it: bracketing a root
Predict first. The figure shows the curve . Before you move the sliders, predict whether the sign at and the sign at are the same or different. Write your prediction down.
Test. Move the sliders for the two ends of the interval. Watch the values and in the readout, and watch the message about the signs.
Explain. Write two sentences. The first explains why two opposite signs guarantee a root between them. The second names an interval where the signs are the same but the graph still crosses the axis twice.
Progress check
Return to the chapter problem. The drone's height is .
- Work out and . Give each value to two decimal places.
- Use the change of sign to show that the drone lands between and seconds.
- Work out and . What does the sign tell you about the landing time?
You should now be able to
- explain what a root of is and where it appears on a graph;
- substitute two values into a function and compare their signs;
- use a change of sign to bracket a root;
- narrow a bracket by testing the midpoint;
- explain why a repeated root, a discontinuity or an even number of roots can defeat the test;
- state that a change of sign proves at least one root, not exactly one.