Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Working with the Intermediate Value Theorem (IVT)

Lesson ~10 min read

In simple terms: In simple terms, the Intermediate Value Theorem says that if a function is continuous, it must hit every single value between its starting and ending points.

Why this matters

Hey everyone, it's Saavi.

Imagine you're on a road trip, driving from Dallas, Texas, to Denver, Colorado. When you start in Dallas, you're about 430 feet above sea level. By the time you pull into Denver, the "Mile-High City," you're at 5,280 feet.

Now, think about your elevation during the drive. Assuming you drove the whole way and didn't get beamed up by aliens, was there a moment when your car was exactly 3,000 feet above sea level? Of course! You couldn't magically jump from 430 feet to 5,280 feet. You had to pass through every single elevation in between, including 3,000 feet.

That simple, powerful idea is the heart of the Intermediate Value Theorem (IVT). It's a guarantee, and today we'll learn how to use it with precision on the AP exam.

Concept overview

flowchart TD
    A[Start: Apply IVT to f(x) on [a, b] for target value d] --> B{Is f(x) continuous on [a, b]?};
    B -->|No| C[IVT does not apply. Cannot make a conclusion.];
    B -->|Yes| D[Calculate f(a) and f(b)];
    D --> E{Is d between f(a) and f(b)?};
    E -->|No| C;
    E -->|Yes| F[IVT GUARANTEES there is at least one c in (a, b) such that f(c) = d.];
    F --> G[Success!];
This diagram shows a flowchart for applying the Intermediate Value Theorem. It starts with checking for continuity on an interval, then checks if the target value is between the function's endpoint values, leading to a conclusion about whether the theorem applies and guarantees a solution.

Core explanation

The Intermediate Value Theorem (IVT) sounds formal, but as we saw with our road trip, the idea is incredibly intuitive. It’s one of the first “existence theorems” you’ll meet in calculus, meaning it proves something exists without necessarily telling you how to find it.

Let's break down the official language into something we can use.

The Rule, Translated

The College Board puts it this way: "If f is a continuous function on the closed interval [a, b] and d is a number between f(a) and f(b), then the IVT guarantees that there is at least one number c between a and b, such that f(c) = d."

That's a mouthful. Let's translate it into a checklist. For the IVT to work, you need two conditions to be true.

Condition 1: The Function Must Be Continuous

The function f(x) must be continuous on the closed interval [a, b].

  • Continuous: This is the "no jumps, no holes, no vertical asymptotes" rule. Visually, it means you can draw the graph of the function from x=a to x=b without lifting your pencil. Polynomials, sin(x), cos(x), and e^x are continuous everywhere. Rational functions and root functions are continuous on their domains.
  • Closed Interval [a, b]: This means we're only looking at a specific piece of the graph, from a starting x-value a to an ending x-value b, including the endpoints.

This continuity condition is the absolute, non-negotiable foundation of the theorem. If the function isn't continuous, all bets are off. You could have a jump that skips right over the value you're looking for.

Condition 2: The Target Value Must Be "In Between"

The y-value you're looking for, which the theorem calls d, must be between the function's starting and ending y-values, f(a) and f(b).

Think of it like this:

  • f(a) is your starting elevation in Dallas.
  • f(b) is your ending elevation in Denver.
  • d is the intermediate elevation (like 3,000 feet) you're checking for.

If your target elevation isn't between your start and end points (for example, if you were looking for an elevation of 10,000 feet on your Dallas-to-Denver drive), the theorem can't promise you'll find it.

The IVT's Guarantee

If—and only if—both of those conditions are met, the IVT gives you a powerful guarantee:

There is at least one x-value, c, inside the open interval (a, b) where the function hits your target y-value. In other words, f(c) = d.

Notice it says "at least one." You could pass through that 3,000-foot elevation multiple times if the road goes up and down through hills. The IVT just guarantees it happens once.

Graph showing a continuous function from (a, f(a)) to (b, f(b)). A horizontal line at y=d intersects the function at a point c. Here, the function is continuous from a to b. Since d is between f(a) and f(b), the IVT guarantees there's a c that gives you that height.

What the IVT Does NOT Do

  1. It does NOT find c for you. The IVT is like a parent promising there's a snack somewhere in the pantry. It tells you a solution exists, but it doesn't do the work of finding it.
  2. It does NOT work if the function is discontinuous. If there's a jump, you might leap right over your target value. The guarantee is void.
  3. It does NOT mean a value doesn't exist if the conditions aren't met. If your target value d isn't between f(a) and f(b), the IVT simply stays silent. It makes no promises either way. The value might still exist, but you can't use the IVT to prove it.

When you write a justification using the IVT on the AP exam, you must be a good lawyer. You need to prove your case by explicitly stating that both conditions are met, and then stating the conclusion the theorem allows you to make.

Worked examples

Let's put the IVT into practice. The key is to be methodical and check the conditions before drawing any conclusions.

Example 1

Finding a Root

Problem: Show that f(x) = x³ - 4x + 1 has a root on the interval [0, 1].

Walkthrough: A "root" is where the function equals zero. So, our target value is d = 0. Our interval is [a, b] = [0, 1].

  1. 1
    Check Condition 1: Continuity
    • What
      The function f(x) is a polynomial.
    • Why
      All polynomial functions are continuous everywhere. Therefore, f(x) is continuous on the closed interval [0, 1]. (You MUST state this for full credit on an FRQ!)
  2. 2
    Check Condition 2: The "In-Between" Value
    • What
      We need to calculate the y-values at the endpoints of our interval.
      • f(a) = f(0) = (0)³ - 4(0) + 1 = 1
      • f(b) = f(1) = (1)³ - 4(1) + 1 = 1 - 4 + 1 = -2
    • Why
      We need to see if our target value, d = 0, is between the endpoint values f(0) = 1 and f(1) = -2.
    • Is it?
      Yes, 0 is between -2 and 1.
  3. 3
    State the Conclusion
    • What
      Since both conditions are met, we can now invoke the IVT.
    • Why
      We've built our case. Now we state the guarantee.
    • Conclusion
      "Because f(x) is continuous on [0, 1] and 0 is between f(0) = 1 and f(1) = -2, the Intermediate Value Theorem guarantees that there is at least one value c in the interval (0, 1) such that f(c) = 0."
Example 2

Using a Table of Values

Problem: The function g(x) is continuous for all x. The table below gives selected values for g(x). Does the IVT guarantee a value c in the interval [2, 8] such that g(c) = 0?

x 2 5 8
g(x) 3 -2 4

Walkthrough:

  1. 1
    Check Condition 1: Continuity
    • The problem explicitly states that g(x) is continuous. Great! That condition is met.
  2. 2
    Check Condition 2: The "In-Between" Value
    • Our target value is d = 0. The problem asks about the interval [2, 8].
    • Let's check the endpoints of the full interval first: g(2) = 3 and g(8) = 4. Is 0 between 3 and 4? No.
    • This is a classic trap! Don't stop here. The IVT can be applied to any sub-interval. Let's check the interval [2, 5].
      • g(2) = 3 and g(5) = -2. Is 0 between 3 and -2? Yes!
    • Let's also check the interval [5, 8].
      • g(5) = -2 and g(8) = 4. Is 0 between -2 and 4? Yes!
  3. 3
    State the Conclusion
    • We found two sub-intervals where the IVT applies. We only need one to answer the question.
    • Conclusion: "Yes. On the interval [2, 5], g(x) is continuous and 0 is between g(2) = 3 and g(5) = -2. Therefore, the IVT guarantees a value c in (2, 5) such that g(c) = 0." (A similar argument works for [5, 8]).

Try it yourself

Time to try a couple on your own. Remember to check your conditions first!

  1. Let h(x) = cos(x) - x. Use the IVT to show there is a solution to h(x) = 0 on the interval [0, π/2].

    • Hint: Is cos(x) - x continuous? What is the value of h(0)? What about h(π/2)? (Remember that π is about 3.14). Is your target value of 0 between the two endpoint values?
  2. Priya is heating her lunch in the microwave. When she puts it in at time t=0 seconds, its temperature is 40°F. After 120 seconds (t=120), she takes it out and its temperature is 150°F. Assume the temperature of the food is a continuous function of time.

    • Can you guarantee there was a moment in time when the food's temperature was exactly 100°F?
    • Can you guarantee there was a moment in time when the food's temperature was exactly 160°F?
    • Hint: For each question, identify your interval, your endpoint values, and your target value d. Does the IVT apply?