AP · Calculus AB · Continuity

The Intermediate Value Theorem

18 min readUpdated November 30, 2026FreeAP Calculus AB, Limits and Continuity

The Intermediate Value Theorem (IVT) says that if ff is continuous on a closed interval [a,b][a, b] and NN is any number between f(a)f(a) and f(b)f(b), then f(c)=Nf(c) = N for at least one cc in (a,b)(a, b). It guarantees that a value or a root exists; it does not tell you where it is or how many there are. On the AP® Calculus AB exam you use it to justify that an equation has a solution, and you must check the continuity condition out loud.

Quick check

  1. Is f(x)=x2−1x−1f(x) = \dfrac{x^2 - 1}{x - 1} continuous on [0,2][0, 2]?Show answerHide answer

    No. It is undefined at x=1x = 1, which lies inside [0,2][0, 2], so it is not continuous on that interval.

  2. Where is g(x)=x3−5x+2g(x) = x^3 - 5x + 2 continuous?Show answerHide answer

    Everywhere. Every polynomial is continuous for all real xx.

  3. A function ff is continuous on [1,4][1, 4] with f(1)=−2f(1) = -2 and f(4)=5f(4) = 5. Must f(x)=0f(x) = 0 somewhere in (1,4)(1, 4)?Show answerHide answer

    Yes. The number 00 lies between −2-2 and 55, and ff is continuous on [1,4][1, 4], so the Intermediate Value Theorem guarantees a cc in (1,4)(1, 4) with f(c)=0f(c) = 0.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the Intermediate Value Theorem, including the condition it needs.
  • Explain why the conclusion can fail when a function is not continuous on the closed interval.
  • Justify that an equation such as f(x)=Nf(x) = N or f(x)=g(x)f(x) = g(x) has a solution in a given interval.
  • Determine from a table of values the least number of solutions an equation must have.

Key terms

Intermediate Value Theorem

If ff is continuous on [a,b][a, b] and NN is any number between f(a)f(a) and f(b)f(b), then there is at least one number cc in (a,b)(a, b) with f(c)=Nf(c) = N.

In plain English
A continuous graph cannot get from one height to another without passing through every height in between.
Don't write
"by the IVT, ff has a zero" without first saying that ff is continuous on the closed interval.

Continuous on [a,b][a, b]

ff is continuous at every point of (a,b)(a, b), and also lim⁡x→a+f(x)=f(a)\lim_{x \to a^+} f(x) = f(a) and lim⁡x→b−f(x)=f(b)\lim_{x \to b^-} f(x) = f(b).

In plain English
No holes, jumps or asymptotes anywhere from x=ax = a to x=bx = b, endpoints included.
Don't write
"continuous because it has values at aa and bb"; two values say nothing about what happens between them.

What does the Intermediate Value Theorem say?

Learn this:

f continuous on [a,b] and N between f(a) and f(b)  ⟹  f(c)=N for some c in (a,b)f \text{ continuous on } [a, b] \text{ and } N \text{ between } f(a) \text{ and } f(b) \implies f(c) = N \text{ for some } c \text{ in } (a, b)

Picture the graph of a continuous function that starts at height f(a)f(a) and ends at height f(b)f(b). You can draw it without lifting your pencil, so it has to cross every horizontal line y=Ny = N between those two heights at least once.

The theorem has one condition and one conclusion. The condition is continuity on the whole closed interval. The conclusion is existence: some cc works. It says nothing about the value of cc or about how many such values there are. A continuous function with f(1)=−2f(1) = -2 and f(4)=5f(4) = 5 might cross y=0y = 0 once, three times or more; the theorem promises only "at least once".

Key idea

Continuity on [a,b][a, b] plus a target value between f(a)f(a) and f(b)f(b) guarantees at least one input in (a,b)(a, b) that hits the target.

Check yourself

ff is continuous on [0,6][0, 6] with f(0)=9f(0) = 9 and f(6)=1f(6) = 1. Which of f(x)=4f(x) = 4 and f(x)=10f(x) = 10 must have a solution in (0,6)(0, 6)?
Show answerHide answer

Only f(x)=4f(x) = 4. The number 44 lies between 11 and 99; the number 1010 does not, so the theorem says nothing about it.

Why does continuity on the closed interval matter?

Without continuity the graph can jump over the target value. Take f(x)=1xf(x) = \dfrac{1}{x} on [−1,1][-1, 1]. Here f(−1)=−1f(-1) = -1 and f(1)=1f(1) = 1, so 00 lies between them, yet 1x\dfrac{1}{x} is never 00. The theorem has not failed. Its condition fails, because ff is not defined at x=0x = 0.

To check the condition quickly, use what you know from the note on Continuity and Types of Discontinuity. Polynomials, sin⁡x\sin x, cos⁡x\cos x and exe^x are continuous everywhere. Rational functions and ln⁡x\ln x are continuous wherever they are defined, so make sure no excluded value lies inside [a,b][a, b]. Sums, differences, products and compositions of continuous functions are continuous.

Two shortcuts save time. If a question says "ff is differentiable", you may state that ff is continuous, because a differentiable function is always continuous (see the note on Differentiability and Continuity). If a question says "ff is continuous", quote that line in your answer; you do not need to prove it.

Examiner's eye

Marks are lost when a justification never mentions continuity. Write "ff is continuous on [a,b][a, b] because…" before you quote the theorem.

Check yourself

Can the theorem show that g(x)=1x−3g(x) = \dfrac{1}{x - 3} takes the value 00 somewhere in [2,4][2, 4]?
Show answerHide answer

No. gg is not continuous at x=3x = 3, which lies in [2,4][2, 4], so the theorem does not apply. In fact 1x−3\dfrac{1}{x - 3} is never 00.

How do you show an equation has a solution?

To show that f(x)=Nf(x) = N has a solution in (a,b)(a, b), evaluate ff at both ends and check that NN lies between the two values. For a root, N=0N = 0, so you are looking for a sign change.

If the equation has xx on both sides, such as ex=4−xe^x = 4 - x, move everything to one side first. Define h(x)=ex+x−4h(x) = e^x + x - 4; then h(x)=0h(x) = 0 exactly when ex=4−xe^x = 4 - x. Because hh is a sum of continuous functions, it is continuous, and a sign change in hh finishes the job.

Write the argument in this order:

  1. Name the function and say why it is continuous on [a,b][a, b].
  2. Give f(a)f(a) and f(b)f(b) as numbers.
  3. Say that NN lies between them (for a root: one value is negative and the other is positive).
  4. Conclude: "so by the Intermediate Value Theorem there is a cc in (a,b)(a, b) with f(c)=Nf(c) = N."

The theorem only proves existence. If a question also asks for the value of cc, solve the equation by algebra or, where a graphing calculator is allowed, find the intersection and give it correct to three decimal places.

Check yourself

For h(x)=ex+x−4h(x) = e^x + x - 4, find h(0)h(0) and h(2)h(2). Do they show that ex=4−xe^x = 4 - x has a solution in (0,2)(0, 2)?
Show answerHide answer

Yes. h(0)=1+0−4=−3h(0) = 1 + 0 - 4 = -3 and h(2)=e2−2≈5.389h(2) = e^2 - 2 \approx 5.389. One value is negative, the other is positive, and hh is continuous on [0,2][0, 2].

How do you use the theorem with a table?

When a question gives a table of values of a continuous function, apply the theorem to each pair of neighboring entries. Every time the target value NN lies strictly between two neighboring outputs, you have one guaranteed solution inside that subinterval. The open subintervals do not overlap, so their solutions are different numbers, and you can add them up.

Suppose ff is continuous with f(0)=3f(0) = 3, f(2)=−1f(2) = -1, f(5)=2f(5) = 2 and f(8)=6f(8) = 6. For f(x)=0f(x) = 0, the values change sign from 33 to −1-1 and again from −1-1 to 22, but not from 22 to 66. So ff has at least two zeros on [0,8][0, 8].

Always say "at least". The table shows the function at only a few inputs, and between them the graph can turn and cross the target again. The theorem counts the crossings it can guarantee, never the exact number.

Check yourself

A continuous ff has f(1)=5f(1) = 5, f(2)=0.5f(2) = 0.5 and f(3)=4f(3) = 4. What is the least number of solutions of f(x)=1f(x) = 1 on [1,3][1, 3]?
Show answerHide answer

Two. The value 11 lies between 55 and 0.50.5, and again between 0.50.5 and 44.

Which method fits the question?

What the question gives youWhat to do
A formula and an interval [a,b][a, b]Check continuity, find f(a)f(a) and f(b)f(b), compare them with NN
An equation with xx on both sidesRewrite it as h(x)=0h(x) = 0, then look for a sign change in hh
A table, with "continuous" or "differentiable"Compare each neighboring pair of values with NN and count
"Find the value of cc"Solve the equation; the theorem alone cannot give cc

Worked example 1: A root of a cubic

Question: Show that x3+2x−5=0x^3 + 2x - 5 = 0 has a solution between x=1x = 1 and x=2x = 2.

What tells you the method

"show that … has a solution between" asks for existence, not a value, so use the Intermediate Value Theorem.

  1. Step 1: Name the function and check continuity.

    Let f(x)=x3+2x−5f(x) = x^3 + 2x - 5. It is a polynomial, so it is continuous on [1,2][1, 2].

    Why

    The theorem needs continuity on the closed interval before anything else.

  2. Step 2: Evaluate at the ends.

    f(1)=1+2−5=−2f(1) = 1 + 2 - 5 = -2 and f(2)=8+4−5=7f(2) = 8 + 4 - 5 = 7.

    Why

    You need the two end values to see whether 00 lies between them.

  3. Step 3: Conclude.

    f(1)<0<f(2)f(1) < 0 < f(2), so by the Intermediate Value Theorem there is a cc in (1,2)(1, 2) with f(c)=0f(c) = 0.

    Why

    00 is between −2-2 and 77, and the condition holds.

Check it

f(1.3)≈−0.203f(1.3) \approx -0.203 and f(1.4)≈0.544f(1.4) \approx 0.544, so the sign also changes between 1.31.3 and 1.41.4, which fits a root inside (1,2)(1, 2).

Answer

ff is continuous on [1,2][1, 2], f(1)=−2<0f(1) = -2 < 0 and f(2)=7>0f(2) = 7 > 0, so by the Intermediate Value Theorem x3+2x−5=0x^3 + 2x - 5 = 0 has a solution in (1,2)(1, 2).

Worked example 2: A tide table

Question: The height of the tide at a pier is modeled by a differentiable function HH, where H(t)H(t) is measured in feet and tt is measured in hours after midnight, for 0≤t≤120 \le t \le 12. Selected values are shown in the table.

tt (hours)00337710101212
H(t)H(t) (feet)2.42.45.85.83.13.11.21.24.04.0

(a) Show that there is a time tt in (0,3)(0, 3) at which H(t)=5H(t) = 5. (b) What is the least number of times in (0,12)(0, 12) at which the tide is 33 feet high?

What tells you the method

"show that there is a time" asks for existence, and the table gives only some values, so use the Intermediate Value Theorem.

  1. Step 1: Get continuity from differentiability.

    HH is differentiable, so HH is continuous on [0,12][0, 12].

    Why

    A differentiable function is continuous, and the theorem needs continuity.

  2. Step 2: Part (a).

    H(0)=2.4<5<5.8=H(3)H(0) = 2.4 < 5 < 5.8 = H(3), so by the Intermediate Value Theorem there is a tt in (0,3)(0, 3) with H(t)=5H(t) = 5.

    Why

    55 lies between the two end heights, and HH is continuous on [0,3][0, 3].

  3. Step 3: Part (b): test each subinterval for 33.

    From 2.42.4 to 5.85.8: yes. From 5.85.8 to 3.13.1: no, because 3.13.1 is still above 33. From 3.13.1 to 1.21.2: yes. From 1.21.2 to 4.04.0: yes.

    Why

    33 must lie strictly between the two neighboring heights.

Check it

The three subintervals (0,3)(0, 3), (7,10)(7, 10) and (10,12)(10, 12) do not overlap, so the three times are different.

Answer

(a) HH is continuous on [0,3][0, 3] and H(0)=2.4<5<5.8=H(3)H(0) = 2.4 < 5 < 5.8 = H(3), so H(t)=5H(t) = 5 feet at some tt in (0,3)(0, 3). (b) The tide is 33 feet high at least 33 times in (0,12)(0, 12).

Your turn

Question: Show that f(x)=x2+xf(x) = x^2 + x takes the value 44 for some xx in (1,2)(1, 2).

  1. Step 1:

    ff is a polynomial, so it is continuous on [1,2][1, 2].

  2. Step 2: Your go: finish the argument.

    f(1)=1+1=2f(1) = 1 + 1 = 2. Now find f(2)f(2), compare both values with 44 and write the conclusion before you open the solution.

Show the full solutionHide the solution

f(2)=4+2=6f(2) = 4 + 2 = 6. Since f(1)=2<4<6=f(2)f(1) = 2 < 4 < 6 = f(2) and ff is continuous on [1,2][1, 2], the Intermediate Value Theorem gives a cc in (1,2)(1, 2) with f(c)=4f(c) = 4.

Answer: ff is continuous on [1,2][1, 2] and f(1)=2<4<6=f(2)f(1) = 2 < 4 < 6 = f(2), so f(c)=4f(c) = 4 for some cc in (1,2)(1, 2).

Traps

Trap

Thinking a sign change on its own proves there is a zero.

It seems right because most functions you meet are continuous, so a sign change usually does come with a zero. But without continuity the graph can jump: f(x)=1xf(x) = \dfrac{1}{x} has f(−1)=−1f(-1) = -1 and f(1)=1f(1) = 1 and no zero at all. State continuity on [a,b][a, b] every time.

Check yourself

f(x)=1x−2f(x) = \dfrac{1}{x - 2} has f(1)=−1f(1) = -1 and f(3)=1f(3) = 1. Does it have a zero in (1,3)(1, 3)?
Show answerHide answer

No. ff is not continuous at x=2x = 2, so the theorem does not apply, and 1x−2\dfrac{1}{x - 2} is never 00.

Trap

Thinking that when the theorem does not apply, there is no solution.

It seems right because the theorem is the tool you use to show a solution exists. But it only ever guarantees; it never rules anything out. f(x)=x2f(x) = x^2 on [−1,1][-1, 1] has f(−1)=f(1)=1f(-1) = f(1) = 1, so 00 is not between them, yet f(0)=0f(0) = 0.

Check yourself

ff is continuous on [0,4][0, 4] with f(0)=2f(0) = 2 and f(4)=6f(4) = 6. Is it possible that f(x)=0f(x) = 0 somewhere in (0,4)(0, 4)?
Show answerHide answer

Yes, it is possible. The theorem does not guarantee it, because 00 is not between 22 and 66, but the graph could dip below the xx-axis and come back up.

What's examined

The Intermediate Value Theorem belongs to Unit 1 (Limits and Continuity) of the AP® Calculus AB exam, and it can appear in both the multiple-choice and the free-response sections. Expect "Justify", "Explain why there must be a value" or "Give a reason for your answer", often with a table of values. The credit is for the reasoning: state continuity on the closed interval, give the two end values, and say that the target lies between them.

Practice questions

  1. Recall For the Intermediate Value Theorem to apply to ff on [a,b][a, b], which condition must hold?
    • A) ff is differentiable on (a,b)(a, b)
    • B) ff is continuous on [a,b][a, b]
    • C) f(a)f(a) and f(b)f(b) have opposite signs
    • D) ff is increasing on [a,b][a, b]
Show answer

Answer: B) ff is continuous on [a,b][a, b].

Marking points:

  • The only condition is continuity on the closed interval.
  • A says nothing about the endpoints, so ff could still jump at x=ax = a or x=bx = b.
  • C is needed only when the target is 00; it is not a condition of the theorem.
  • D is not needed: a continuous function may rise and fall.
  1. Apply Let f(x)=x3−x−3f(x) = x^3 - x - 3. Show that f(c)=0f(c) = 0 for some cc in (1,2)(1, 2).
Show answer

Answer: ff is continuous on [1,2][1, 2] and f(1)=−3<0<3=f(2)f(1) = -3 < 0 < 3 = f(2), so by the Intermediate Value Theorem f(c)=0f(c) = 0 for some cc in (1,2)(1, 2).

Marking points:

  • ff is a polynomial, so it is continuous on [1,2][1, 2].
  • f(1)=1−1−3=−3f(1) = 1 - 1 - 3 = -3 and f(2)=8−2−3=3f(2) = 8 - 2 - 3 = 3.
  • 00 lies between −3-3 and 33, so the theorem applies and gives the conclusion.
  1. Apply The function gg is continuous on [1,9][1, 9], with g(1)=4g(1) = 4, g(3)=−2g(3) = -2, g(6)=1g(6) = 1 and g(9)=−3g(9) = -3. What is the least number of zeros of gg on [1,9][1, 9]?
    • A) 11
    • B) 22
    • C) 33
    • D) 44
Show answer

Answer: C) 33.

Marking points:

  • The sign changes from 44 to −2-2, from −2-2 to 11 and from 11 to −3-3: three sign changes in non-overlapping subintervals.
  • A counts only the first sign change.
  • B misses the last sign change, from 11 to −3-3.
  • D counts the four tabled values instead of the sign changes.
  1. Apply For which function does the Intermediate Value Theorem guarantee a zero in the given interval?
    • A) f(x)=tan⁡xf(x) = \tan x on [1,2][1, 2]
    • B) f(x)=x2+1f(x) = x^2 + 1 on [−1,1][-1, 1]
    • C) f(x)=x2−3f(x) = x^2 - 3 on [0,1][0, 1]
    • D) f(x)=x3−2f(x) = x^3 - 2 on [1,2][1, 2]
Show answer

Answer: D) f(x)=x3−2f(x) = x^3 - 2 on [1,2][1, 2].

Marking points:

  • D: a polynomial, so continuous, with f(1)=−1<0<6=f(2)f(1) = -1 < 0 < 6 = f(2).
  • A: tan⁡1>0>tan⁡2\tan 1 > 0 > \tan 2, but tan⁡x\tan x is not continuous at x=π2≈1.571x = \frac{\pi}{2} \approx 1.571, which lies in [1,2][1, 2].
  • B: f(−1)=f(1)=2f(-1) = f(1) = 2, so there is no sign change.
  • C: f(0)=−3f(0) = -3 and f(1)=−2f(1) = -2 are both negative, so there is no sign change.
  1. Recall The function ff is continuous on [−2,4][-2, 4], with f(−2)=5f(-2) = 5 and f(4)=−1f(4) = -1. Which statement must be true?
    • A) f(c)=2f(c) = 2 for some cc in (−2,4)(-2, 4)
    • B) f(c)=6f(c) = 6 for some cc in (−2,4)(-2, 4)
    • C) f(1)=2f(1) = 2
    • D) ff has exactly one zero in (−2,4)(-2, 4)
Show answer

Answer: A) f(c)=2f(c) = 2 for some cc in (−2,4)(-2, 4).

Marking points:

  • 22 lies between −1-1 and 55, and ff is continuous on [−2,4][-2, 4].
  • B fails because 66 is not between −1-1 and 55.
  • C assumes the value is reached at the midpoint; the theorem does not say where.
  • D claims an exact count; the theorem guarantees at least one zero.
  1. Exam-style Let h(x)=cos⁡x−xh(x) = \cos x - x. (a) Show that h(x)=0h(x) = 0 has a solution in (0,1)(0, 1). (b) Use a graphing calculator to find that solution, correct to three decimal places.
Show answer

Answer: (a) hh is continuous on [0,1][0, 1], h(0)=1>0h(0) = 1 > 0 and h(1)=cos⁡1−1≈−0.460<0h(1) = \cos 1 - 1 \approx -0.460 < 0, so by the Intermediate Value Theorem h(c)=0h(c) = 0 for some cc in (0,1)(0, 1). (b) x≈0.739x \approx 0.739.

Marking points:

  • hh is a difference of continuous functions, so it is continuous on [0,1][0, 1].
  • h(0)=cos⁡0−0=1h(0) = \cos 0 - 0 = 1 and h(1)=cos⁡1−1≈−0.460h(1) = \cos 1 - 1 \approx -0.460, with xx in radians.
  • The sign change and continuity give the conclusion by the Intermediate Value Theorem.
  • Solving cos⁡x−x=0\cos x - x = 0 with a graphing calculator gives x≈0.739x \approx 0.739.
  1. Exam-style The height of a drone is modeled by a differentiable function DD, where D(t)D(t) is measured in meters and tt in seconds, for 0≤t≤200 \le t \le 20. The drone's height is 00, 4242, 6060, 5151 and 3838 meters at t=0t = 0, 55, 1010, 1515 and 2020 seconds. What is the least number of times in (0,20)(0, 20) at which the drone is 5050 meters high? Give a reason for your answer.
Show answer

Answer: The drone is 5050 meters high at least 22 times in (0,20)(0, 20).

Marking points:

  • DD is differentiable, so it is continuous on [0,20][0, 20].
  • 5050 lies between 4242 and 6060 (on (5,10)(5, 10)) and between 5151 and 3838 (on (15,20)(15, 20)), so the Intermediate Value Theorem gives a time in each.
  • It does not lie between 00 and 4242, or between 6060 and 5151, so no time is guaranteed there.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • The theorem has one condition: ff is continuous on the closed interval [a,b][a, b].
  • Then every value between f(a)f(a) and f(b)f(b) is reached at least once inside (a,b)(a, b); the theorem shows existence, not location or number.
  • For an equation with xx on both sides, move everything to one side and look for a sign change.
  • In a table, each neighboring pair that straddles the target gives one solution, so answer "at least".
  • A differentiable function is continuous, so "differentiable" in a question supplies the condition.

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Limits and Continuity

All Continuity notes

Part of Novark's AP Calculus AB notes