STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

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
  1. The statement
  2. Why continuity is essential
  3. What the IVT does and does not tell you
  4. Worked examples
  5. Writing a full-credit justification
  6. IVT, MVT and EVT compared
  7. The IVT and finding roots
  8. Common mistakes
  9. Practice questions
  10. Frequently asked questions
  11. Key takeaways
  12. Related guides

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

Worked examples

Example 1: showing a root exists

Show that x³ + x − 1 = 0 has a solution between 0 and 1.

Example 2: a trigonometric equation

Show that cos x = x has a solution in [0, π/2].

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]?

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]?

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]?

Writing a full-credit justification

AP readers look for three things:

  1. 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”).
  2. The two function values, showing that the target value lies between them.
  3. 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

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

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
Yes: 1 is between −3 and 5.

Q2. Show that ex = 3 − x has a solution in [0, 1].

Show answer
g(x) = ex + x − 3 is continuous; g(0) = −2 < 0 and g(1) = e − 2 > 0, so a root exists by the IVT.

Q3. f is continuous with f(1) = 2 and f(4) = 2. Does the IVT guarantee f(c) = 0 on [1, 4]?

Show answer
No: 0 is not between 2 and 2.

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
3, one in each interval.

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