The Intermediate Value Theorem and What It Lets You Conclude
A continuous function cannot skip values. Learn exactly what the theorem promises, what it does not, and how to use it to trap roots.
Key takeaways
- If f is continuous on [a, b] and N lies between f(a) and f(b), then f(c) = N for at least one c in [a, b].
- A sign change of a continuous function guarantees at least one root between the two inputs.
- The theorem proves existence but does not say how many solutions there are or give them exactly.
- Without continuity on the whole interval, the conclusion can fail completely.
- Repeatedly halving an interval with a sign change locates a root to any accuracy you want.
The intermediate value theorem says that a continuous function on an interval cannot get from one value to another without passing through everything in between. If a function is below a certain level at one end and above it at the other, then somewhere between the ends it equals that level exactly.
This sounds obvious, and the picture is obvious. Its value lies in what it lets you prove: that equations have solutions, even when no formula for the solution exists.
The statement and its parts
Here is the theorem in full. Suppose f is continuous on the closed interval [a, b], which includes its endpoints. Let N be any number between f(a) and f(b). Then there is at least one number c in [a, b] with f(c) = N. If N is strictly between f(a) and f(b), then c is strictly between a and b.
There are two hypotheses to check before you use it. The function must be continuous at every point of the interval, and the target value must lie between the two endpoint values.
The conclusion is a statement of existence. The words "there is at least one" are chosen with care. The theorem hands you no formula for c, no count of how many such points exist, and no information about where in the interval they sit.
The most common special case takes N = 0. If f is continuous on [a, b] and f(a) and f(b) have opposite signs, then the equation f(x) = 0 has a solution between a and b.
Proving that an equation has a solution
Consider x³ + x − 1 = 0. No obvious number satisfies it. Let f(x) = x³ + x − 1, which is a polynomial and so continuous everywhere.
f(0) = 0 + 0 − 1 = −1 negative
f(1) = 1 + 1 − 1 = 1 positive By the theorem, there is a number c between 0 and 1 with c³ + c − 1 = 0. You have proved that a solution exists without finding it.
The equation cos x = x, with x in radians, has no solution expressible by ordinary algebra. Set g(x) = cos x − x. Then g(0) = 1, and g(1) = cos 1 − 1, which is about −0.46. The sign changes, so a solution lies between 0 and 1. It is approximately 0.739.
The step of rewriting is important. To compare two functions, subtract them and look for a sign change in the difference.
Closing in by bisection
The theorem also powers a practical method. Evaluate the function at the midpoint of an interval with a sign change. Keep whichever half still has opposite signs at its ends, and repeat.
For f(x) = x³ + x − 1 the first steps look like this, with values rounded.
| Interval | Midpoint | f(midpoint) | Keep |
|---|---|---|---|
| 0 to 1 | 0.5 | −0.375 | upper half |
| 0.5 to 1 | 0.75 | 0.172 | lower half |
| 0.5 to 0.75 | 0.625 | −0.131 | upper half |
| 0.625 to 0.75 | 0.6875 | 0.012 | lower half |
After four steps the root is trapped between 0.625 and 0.6875. Each step halves the width, so after 10 steps it is less than 0.001. The root is about 0.682.
Bisection is slow but very dependable, since the root can never escape. Faster methods exist, such as Newton's method, which can however wander off if started badly.
Counting solutions: a combined argument
The theorem becomes more informative when you pair it with knowledge of where a function rises and falls. How many solutions does eˣ = 3x have?
Let f(x) = eˣ − 3x, which is continuous everywhere. Sample a few points:
f(0) = 1 positive
f(1) = e − 3 ≈ −0.28 negative
f(2) = e² − 6 ≈ 1.39 positive Two sign changes give at least two solutions, one between 0 and 1 and another between 1 and 2.
To show there are no others, look at the derivative, eˣ − 3. It is negative for x < ln 3 and positive for x > ln 3, where ln is the natural logarithm. So f decreases and then increases. A function with that shape can cross zero at most once on each side of the turning point. The equation has exactly two real solutions.
The two tools divide the work. The intermediate value theorem proves that solutions exist, and monotonic behavior (steady rising or falling) limits how many there can be. Neither argument alone would settle the count.
Choosing sample points takes some judgment. Start with inputs that are easy to compute, such as 0 and 1, and also consider what happens for large positive and negative x.
What the theorem does not say
It is easy to read too much into the result.
It does not give uniqueness. There may be one solution or many. The function (x − 1)(x − 2)(x − 3) is negative at 0 and positive at 4, and it has three roots in between. To show there is only one, add another argument, such as showing the function is strictly increasing. For x³ + x − 1 the derivative 3x² + 1 is always positive, so the root is unique.
No sign change does not mean no root. The function (x − 1)² is positive at both 0 and 2, yet it vanishes at 1. Also, (x − 1)(x − 2) is positive at 0 and 3 but has two roots between them.
The converse is false. A function can take every intermediate value without being continuous. Define f(x) = sin(1/x) for x ≠ 0 and f(0) = 0. It is discontinuous at 0, yet on any interval it passes through all the values between those at its ends.
When continuity fails
Let f(x) = 1/x on [−1, 1], ignoring the point 0 for a moment. Then f(−1) = −1 and f(1) = 1, a sign change. But 1/x is never zero. The function is not even defined at 0, so the theorem does not apply to that interval.
The same trap appears with tan x between 1 and 2 radians. The tangent is positive at 1 and negative at 2, yet it has no root there. It jumps through infinity at π/2, about 1.571.
A computer search that looks only at signs would report a root in both cases. Always confirm continuity first.
Why it is true
The proof rests on a property of the real numbers: they have no gaps. Picture bisection carried on forever for a function that starts negative and ends positive. The left endpoints rise, the right endpoints fall, and the distance between them shrinks to zero. Completeness of the reals guarantees that a number c is squeezed between them.
The values of f at the left ends are all at most 0, so by continuity f(c) ≤ 0. The values at the right ends are all at least 0, so f(c) ≥ 0. Therefore f(c) = 0.
If you allow only rational numbers, the theorem breaks. The function x² − 2 is negative at 1 and positive at 2, but no rational number makes it zero. The completeness property is exactly what fills that hole. Bernard Bolzano gave an early analytic proof in 1817.
Surprising consequences
Some conclusions are far less obvious than the theorem itself.
Opposite points on the equator. Assume temperature varies continuously along the equator. Let T(θ) be the temperature at longitude angle θ, and set D(θ) = T(θ) − T(θ + π), the difference from the opposite point. Moving halfway round swaps the two points, so D(θ + π) = −D(θ). If D is not already zero, it takes opposite signs at θ and θ + π, so somewhere between it is zero. At every moment there is a pair of opposite points with equal temperature.
A point that stays put. Let f be continuous on [0, 1] with all its values also in [0, 1]. Then f(c) = c for some c. Apply the theorem to f(x) − x, which is at least 0 at x = 0 and at most 0 at x = 1. This is the simplest of the fixed point theorems.
Odd polynomials. Every polynomial of odd degree with real coefficients has a real root. For large positive and large negative x the leading term dominates, and it has opposite signs at the two extremes.
The walker on the trail. A hiker walks up a mountain path from 8 a.m. to noon on Saturday, and walks down the same path from 8 a.m. to noon on Sunday, at any varying speeds. There is a clock time at which the hiker is at the same spot on both days. Subtract Sunday's position from Saturday's, measuring distance up the trail. The difference starts negative, ends positive and varies continuously, so it must be zero at some moment.
How to write the argument
In coursework, a complete justification has four short parts.
- Define the function, usually by moving everything to one side of the equation.
- State that it is continuous on the closed interval, and say why (for instance, it is a polynomial).
- Compute both endpoint values and point out that the target lies between them.
- Name the theorem and state the conclusion: there exists c in the interval with f(c) = N.
Skipping the second part is the usual deduction, and it is a real gap in the logic, as the 1/x example shows.
The result is a classic instance of an argument that proves something exists without constructing it, a theme explored in constructive and nonconstructive proofs. Bisection then supplies approximations as accurate as you care to compute.