The intermediate value theorem, explained
The intermediate value theorem (IVT) guarantees that a continuous function takes every value between two of its outputs. It is how you prove an equation has a solution without solving it, and it appears regularly on AP Calculus exams.
On this page
The statement
If f is continuous on the closed interval [a, b], and k is any number between f(a) and f(b), then there is at least one number c in [a, b] with f(c) = k.
In everyday terms: if you walk up a hill from a height of 100 m to 300 m, at some point you must have been at exactly 200 m. You cannot get from 100 to 300 without passing through every height in between, as long as you do not teleport. Continuity is the mathematical version of “no teleporting”: the graph has no jumps, holes or gaps.
Why continuity is essential
Without continuity, the theorem can fail. The function f(x) = 1/x has f(−1) = −1 and f(1) = 1, but there is no x with f(x) = 0. The graph jumps across zero at the asymptote x = 0, where f is not continuous. Likewise, a step function can jump from 1 to 3 without ever equalling 2. So on the AP exam, you must state that the function is continuous before you use the IVT.
What the IVT does and does not tell you
- It tells you a value c exists. It does not tell you where c is or how to find it.
- It guarantees at least one such c. There might be several.
- It only works in one direction. If k is not between f(a) and f(b), the IVT says nothing; f might still reach k, or it might not.
Worked examples
Example 1: showing a root exists
Show that x³ + x − 1 = 0 has a solution between 0 and 1.
- Let f(x) = x³ + x − 1. f is a polynomial, so it is continuous on [0, 1].
- f(0) = −1 < 0 and f(1) = 1 > 0.
- Since 0 is between f(0) and f(1), by the intermediate value theorem there is a c in (0, 1) with f(c) = 0.
Example 2: a trigonometric equation
Show that cos x = x has a solution in [0, π/2].
- Let g(x) = cos x − x, which is continuous.
- g(0) = 1 > 0 and g(π/2) = −π/2 < 0.
- By the IVT, g(c) = 0 for some c in [0, π/2], so cos c = c. Rearranging into a single function equal to zero is a standard trick.
Example 3: a table of values (AP style)
f is continuous. f(1) = 4, f(3) = −2, f(5) = 1, f(7) = 6. What is the minimum number of solutions to f(x) = 0 on [1, 7]?
- Between x = 1 and 3, f goes from 4 to −2, so it crosses 0 at least once.
- Between x = 3 and 5, f goes from −2 to 1, so it crosses 0 again.
- Between 5 and 7, both values are positive, so the IVT guarantees nothing there. Minimum: 2 solutions.
Example 4: a value other than zero
A continuous function h has h(2) = 10 and h(6) = 30. Must h(x) = 25 for some x in [2, 6]?
- 25 is between 10 and 30, and h is continuous on [2, 6].
- Yes, by the intermediate value theorem.
Example 5: when the IVT does not apply
A function p is defined as p(x) = x + 1 for x < 2 and p(x) = x + 3 for x ≥ 2. p(0) = 1 and p(4) = 7. Must p(x) = 4 somewhere in [0, 4]?
- p is not continuous at x = 2: the left limit is 3 but p(2) = 5.
- So the IVT does not apply, and in fact p never equals 4: it jumps from just below 3 to 5. No.
Writing a full-credit justification
AP readers look for three things:
- A statement that the function is continuous on the closed interval, with a reason if needed (for example, “f is differentiable, so f is continuous”, or “f is a polynomial”).
- The two function values, showing that the target value lies between them.
- A conclusion that names the intermediate value theorem and states the result.
A typical answer: “Since f is continuous on [3, 5] and f(3) = −2 < 0 < 1 = f(5), by the intermediate value theorem there is a value c in (3, 5) such that f(c) = 0.”
IVT, MVT and EVT compared
- IVT: a function value k between f(a) and f(b) is reached. Needs continuity.
- MVT: a derivative value equal to the average rate of change is reached. Needs continuity and differentiability.
- EVT: an absolute maximum and minimum exist on [a, b]. Needs continuity.
Quick test: if the question asks about f(c), think IVT. If it asks about f'(c) or a rate, think MVT.
The IVT and finding roots
The IVT is the idea behind the bisection method. If f changes sign on [a, b], a root lies inside. Check the midpoint: the sign change is in one half or the other, so the interval halves. Repeat, and the interval closes in on the root. A level Maths uses the same sign-change idea in its numerical methods topic, with the important caution that a sign change only shows a root when the function is continuous.
Common mistakes
- Not stating continuity before using the theorem.
- Claiming the IVT gives the exact location of the root.
- Using the IVT when the target value is not between the endpoint values.
- Using the IVT when the question is about a derivative value; that needs the MVT.
Practice questions
Try each one before opening the answer.
Q1. f is continuous, f(0) = −3 and f(2) = 5. Must f(x) = 1 for some x in [0, 2]?
Show answer
Q2. Show that ex = 3 − x has a solution in [0, 1].
Show answer
Q3. f is continuous with f(1) = 2 and f(4) = 2. Does the IVT guarantee f(c) = 0 on [1, 4]?
Show answer
Q4. Values of a continuous g: g(0) = 1, g(1) = −1, g(2) = 2, g(3) = −3. Minimum number of zeros on [0, 3]?
Show answer
Frequently asked questions
Is the IVT on the AP Calculus exam?
Yes. It is in Unit 1 for AB and BC, and IVT justifications appear in table-based free-response questions.
Is the IVT in A level Maths?
Not by name, but the change-of-sign method for locating roots in the numerical methods topic relies on exactly the same idea.
Key takeaways
- Continuous on [a, b] means f takes every value between f(a) and f(b).
- It proves a solution exists without finding it.
- No continuity, no guarantee.
- Justify with continuity, the two values, and the theorem's name.
- IVT is about values; MVT is about rates.