Tutorials › Calculus I › A Sign Change Guarantees a Root

Continuity and the Intermediate Value Theorem · Tutorial 285 of 1495

A Sign Change Guarantees a Root

Use continuity and the Intermediate Value Theorem to prove that a function with opposite signs at the endpoints must have a zero between them.

Beginner 9 min read

What You'll Learn

  • State the conditions that guarantee a root between two endpoints
  • Derive the sign-change result from the Intermediate Value Theorem
  • Check continuity and endpoint values before applying the result
  • Distinguish a guaranteed root from a known root location
  • Identify a common error about what a sign change proves

From Opposite Signs to a Root

A function that is continuous on an interval cannot jump from a negative value to a positive value without taking the value zero somewhere in between. This observation turns a simple endpoint calculation into a proof that an equation has a solution.

The conclusion is an existence statement: it guarantees that a root lies between the endpoints, but it does not necessarily tell us where that root is or how to calculate it. The key requirement is continuity throughout the interval, not just at its endpoints.

Definition: A number \(r\) is a root or zero of a function \(f\) if \(f(r)=0\). Equivalently, \(r\) is a solution of the equation \(f(x)=0\).

The Sign-Change Theorem

The Intermediate Value Theorem says that if \(f\) is continuous on the closed interval \([a,b]\), then every value between \(f(a)\) and \(f(b)\) is attained by \(f\) at some point in \([a,b]\). For the root-existence result, the value we want the function to attain is zero.

Theorem: Let \(f\) be continuous on \([a,b]\), where \(a<b\). If \(f(a)\) and \(f(b)\) have strictly opposite signs—that is, if \(f(a)<0<f(b)\) or \(f(b)<0<f(a)\)—then there exists a number \(c\in(a,b)\) such that \(f(c)=0\).

The conclusion places the root in the open interval \((a,b)\), not merely somewhere in the closed interval. The strict sign conditions mean neither endpoint is already a zero. If an endpoint value is zero, then that endpoint itself is a root, but the strict sign-change hypothesis does not apply.

Why the Theorem Works

Suppose, for example, that \(f(a)<0\) and \(f(b)>0\). The number zero lies strictly between the two endpoint values. Since \(f\) is continuous on the whole interval, the Intermediate Value Theorem says that \(f\) attains every value between those endpoint values. In particular, it attains zero.

1
Check the interval.
Confirm that \(a<b\) and that \(f\) is defined and continuous at every point of \([a,b]\).
2
Evaluate the endpoints.
Calculate \(f(a)\) and \(f(b)\), keeping their signs clear.
3
Locate zero between the values.
If one endpoint value is negative and the other is positive, then zero lies between \(f(a)\) and \(f(b)\).
4
Apply the Intermediate Value Theorem.
There is some \(c\in(a,b)\) with \(f(c)=0\). Thus \(c\) is a root.

This argument also covers the reverse sign order. If \(f(a)>0\) and \(f(b)<0\), zero still lies between the endpoint values, so the same theorem applies. The order of the signs does not matter; what matters is that they are strictly opposite.

$$ f(a)f(b)<0 \quad\Longrightarrow\quad \text{there exists }c\in(a,b)\text{ such that }f(c)=0, $$

provided \(f\) is continuous on \([a,b]\). The product condition is simply a compact way to express that the two endpoint values are nonzero and have opposite signs.

Worked Examples

Worked Example: A Quadratic with an Exact Root

Show that \(f(x)=x^2-1\) has a root in \((0,2)\), and verify the root.

First, \(f\) is a polynomial, so it is continuous on \([0,2]\). Now evaluate the endpoint values:

$$ f(0)=0^2-1=-1, \qquad f(2)=2^2-1=4-1=3. $$

Because \(-1<0<3\), the endpoint values have opposite signs. The sign-change theorem therefore guarantees some \(c\in(0,2)\) with \(f(c)=0\).

In this case, we can identify and check such a root directly: \(c=1\) lies in \((0,2)\), and

$$ f(1)=1^2-1=1-1=0. $$

Thus \(1\) is indeed a root, consistent with the existence guaranteed by the theorem.

Worked Example: A Root Guaranteed Without Solving the Equation

Show that \(f(x)=x^3+x-1\) has at least one root in \((0,1)\).

The function is a polynomial, so it is continuous on \([0,1]\). Evaluate both endpoints:

$$ f(0)=0^3+0-1=-1, $$ $$ f(1)=1^3+1-1=1. $$

Thus \(f(0)=-1<0\) and \(f(1)=1>0\). By the sign-change theorem, there exists \(c\in(0,1)\) such that \(f(c)=0\). This proves that the equation \(x^3+x-1=0\) has a solution in that interval.

Check the logic: the polynomial is continuous on the entire closed interval, and its endpoint values are strictly opposite in sign. Those are exactly the hypotheses needed. The theorem establishes existence here without requiring an exact expression for \(c\).

Worked Example: A Trigonometric Function

Show that \(f(x)=\cos x\) has a root in \((0,\pi)\), and verify one such root.

The cosine function is continuous on \([0,\pi]\). Its endpoint values are

$$ f(0)=\cos(0)=1, \qquad f(\pi)=\cos(\pi)=-1. $$

Since \(-1<0<1\), the endpoint values have opposite signs. The theorem guarantees a number \(c\in(0,\pi)\) with \(\cos c=0\).

For a direct check, take \(c=\frac{\pi}{2}\), which lies between \(0\) and \(\pi\). Then

$$ f\left(\frac{\pi}{2}\right) = \cos\left(\frac{\pi}{2}\right) = 0. $$

So \(\frac{\pi}{2}\) is a root, as the theorem guarantees there is at least one.

What Must Be Checked

The endpoint calculations alone are not enough. A valid application requires continuity on the entire closed interval. It is not sufficient that \(f(a)\) and \(f(b)\) exist, or that \(f\) is continuous only at those two points.

For example, define \(g(x)=-1\) when \(x<0\), and \(g(x)=1\) when \(x\geq 0\). On \([-1,1]\), the endpoint values satisfy \(g(-1)=-1\) and \(g(1)=1\). But \(g\) never equals zero. There is no contradiction: \(g\) is discontinuous at \(0\), so the continuity hypothesis required by the theorem is absent.

When continuity is established by a known rule—for example, because a function is a polynomial—say so explicitly. When a formula has a restricted domain or a possible discontinuity, check that no such issue occurs anywhere in \([a,b]\) before using the sign change.

A Common Mistake: Confusing Existence with Location

A sign change does not say that the root is the midpoint of the interval. Consider \(f(x)=x^2-2\) on \([1,2]\). This polynomial is continuous, and

$$ f(1)=1-2=-1, \qquad f(2)=4-2=2. $$

The values have opposite signs, so the theorem guarantees a root somewhere in \((1,2)\). A mistaken argument might claim that the root must be the midpoint, \(\frac{1+2}{2}=\frac32\). But direct substitution gives

$$ f\left(\frac32\right) = \left(\frac32\right)^2-2 = \frac94-\frac84 = \frac14 \ne 0. $$

So the midpoint is not a root. The theorem guarantees at least one root in the interval; it does not specify its location. To establish that a particular number is a root, substitute it into the function and verify that the output is zero.

Why This Result Matters

The sign-change theorem lets us prove that an equation has a solution even when we cannot solve it explicitly. It converts two endpoint evaluations and a continuity check into a rigorous existence argument. This is useful whenever a problem asks whether a continuous function reaches zero on an interval.

The conclusion is deliberately limited: the theorem guarantees a root in the interval, not a formula for it. A proof should therefore state exactly what has been established: there exists some \(c\in(a,b)\) with \(f(c)=0\). The root may be found by other methods, but that additional work is separate from the existence guarantee.

Takeaway: If \(f\) is continuous on \([a,b]\) and its endpoint values have strictly opposite signs, then zero is an intermediate value of \(f\). Therefore \(f\) has a root strictly between \(a\) and \(b\).

Check Your Understanding

For each question, identify the role of continuity, the endpoint values, or the conclusion of the theorem.

  1. State the sign-change theorem, including the interval on which continuity is required.
  2. A continuous function on \([2,5]\) satisfies \(f(2)=4\) and \(f(5)=-3\). What does the theorem guarantee?
  3. A continuous function has \(f(a)=0\). Does the strict sign-change hypothesis apply at \(a\), and what can you conclude about \(a\)?
  4. Why does knowing that \(f(a)<0<f(b)\) not, by itself, prove that \(f\) has a root between \(a\) and \(b\)?
  5. For \(f(x)=x^2-2\) on \([1,2]\), calculate both endpoint values and state the conclusion provided by the theorem.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon