Pure · Numerical methods
1 / 11
Locating roots by change of sign
Trapping a root of f(x) = 0 in an interval using the change-of-sign rule — why continuity is essential, what a sign change does and doesn't guarantee, and refining a root to a given number of decimal places.
Pure · Numerical methods
Locating roots by change of sign
Trapping a root of f(x) = 0 in an interval using the change-of-sign rule — why continuity is essential, what a sign change does and doesn't guarantee, and refining a root to a given number of decimal places.
Why it works
Most equations cannot be solved exactly. There is no neat formula for the root of , and an equation like mixes a curve and a line in a way no rearrangement untangles. So instead of solving, you locate the root: first trap it in an interval, then squeeze that interval down.A root of is exactly where the graph crosses the -axis — where changes from negative to positive (or back). That is the whole idea behind the change-of-sign rule:If is continuous on and and have opposite signs, then has a root somewhere between and .The reasoning is simple: to travel from a value below the axis to a value above it without lifting your pen, the graph has no choice but to cross zero on the way. So to show a root lies in an interval you just evaluate at each end and check the signs differ — a quick, certain test.Continuity is not optional — always state it. The "no lifting your pen" picture breaks if the graph jumps. Take on : and have opposite signs, yet the equation has no root at all. The rule fails because is discontinuous at (an asymptote, not a crossing). For polynomials, , and the like there is no such trouble — but you should still say " is continuous on this interval" as part of the argument.
What a sign change does and doesn't tell you. A change of sign guarantees an odd number of roots in the interval — at least one. But no sign change does not guarantee no root: a curve can touch the axis without crossing (a repeated root such as ), or dip across and back, giving an even number of roots with the same sign at both ends. So sign change ⇒ root; same sign ⇒ inconclusive.
Refining to decimal places. Once a root is trapped, shrink the interval. To show a root is to 1 decimal place, test the half-interval : a sign change there pins the root between and , so it rounds to . Repeating this halving is interval bisection; the iteration and Newton–Raphson methods that follow refine far faster.