impera Open Impera

AP Calculus AB · Limits and continuity

The intermediate value theorem

1The theorem

The Intermediate Value Theorem (IVT) says:

If $f$ is continuous on the closed interval $[a, b]$, and $N$ is any number between $f(a)$ and $f(b)$, then there is at least one number $c$ in $(a, b)$ with $f(c) = N$.

In words: a continuous function cannot get from one value to another without passing through every value in between. If you drive from 20 m above sea level to 300 m without teleporting, you must be at 150 m at some moment.

A continuous function from f(a) to f(b) takes the value N at least once; here it does so three times

Check yourself

What is the key condition needed to apply the IVT on [a, b]?

  • f must be increasing

  • f(a) must equal f(b)

  • f must be differentiable on [a, b]

  • f must be continuous on [a, b]

Show the answer

f must be continuous on [a, b]

Without continuity, the graph could jump over N.

2What the IVT does and does not say

  • It guarantees existence, not location: it says some $c$ exists, but not where, and not how many.
  • There may be more than one such $c$.
  • It needs continuity. Example: $f(x) = \frac{1}{x}$ on $[-1, 1]$ has $f(-1) = -1$ and $f(1) = 1$, but never equals $0$. The IVT does not apply because $f$ is not continuous at $0$.
  • The converse is false: a function can take every intermediate value without being continuous.
Check yourself

f(x) = 1/x has f(−1) = −1 and f(1) = 1 but never equals 0. Why doesn't this contradict the IVT?

  • f is not continuous on [−1, 1]

  • 0 is not between −1 and 1

  • The IVT only works for polynomials

  • f is decreasing

Show the answer

f is not continuous on [−1, 1]

The asymptote at x = 0 breaks continuity.

3Using the IVT to locate roots

The most common use is to show an equation has a solution. If $f$ is continuous on $[a, b]$ and $f(a)$ and $f(b)$ have opposite signs, then $0$ is between them, so $f(c) = 0$ for some $c$ in $(a, b)$.

Worked example

Show that $x^3 + x - 1 = 0$ has a solution between 0 and 1.

  1. Let $f(x) = x^3 + x - 1$. It is a polynomial, so it is continuous on $[0, 1]$.
  2. $f(0) = -1 < 0$ and $f(1) = 1 > 0$.
  3. Since $0$ is between $f(0)$ and $f(1)$, by the IVT there is a $c$ in $(0, 1)$ with $f(c) = 0$.

You can narrow the interval by testing midpoints: $f(0.5) = -0.375 < 0$, so the root is in $(0.5, 1)$; $f(0.75) \approx 0.172 > 0$, so it is in $(0.5, 0.75)$. This repeated halving is called the bisection method.

Check yourself

f is continuous with f(2) = 5 and f(4) = −3. What does the IVT guarantee?

  • f(c) = 0 for at least one c between 2 and 4

  • f is decreasing on [2, 4]

  • f(3) = 1

  • f has exactly one zero in (2, 4)

Show the answer

f(c) = 0 for at least one c between 2 and 4

Opposite signs mean 0 lies between the values.

4IVT with tables

AP free-response questions often give a table of values for a continuous function and ask whether $f(c) = N$ must occur.

Worked example

$g$ is continuous with the values below. Must $g(x) = 4$ for some $x$ in $(1, 5)$?

  • $g(1) = 2$, $g(3) = 7$, $g(5) = 1$.
  1. $g$ is continuous on $[1, 3]$.
  2. $g(1) = 2 < 4 < 7 = g(3)$.
  3. By the IVT, there is a $c$ in $(1, 3)$ with $g(c) = 4$.
  4. Similarly, $g(5) = 1 < 4 < 7 = g(3)$, so there is another value in $(3, 5)$. So $g(x) = 4$ at least twice in $(1, 5)$.

The IVT gives a minimum count; there may be more solutions the table cannot show.

Check yourself

A continuous h has h(0) = 1, h(2) = 6, h(4) = 2 and h(6) = 8. What is the least number of solutions of h(x) = 3 on (0, 6)?

  • 3

  • 0

  • 1

  • 2

Show the answer

3

The values cross 3 between 0 and 2, 2 and 4, and 4 and 6.

5Going deeper: writing a complete justification

The theorem: 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 c in (a, b) with f(c) = k.

It guarantees existence. It does not say how many such c there are, or where.

A three-sentence justification (the pattern that earns full credit)

  1. "f is continuous on [a, b]" (with the reason: a polynomial; or because it is differentiable; or as given).
  2. "f(a) = … and f(b) = …, and k lies between them."
  3. "By the intermediate value theorem, there is a c in (a, b) such that f(c) = k."

Worked example (a root exists): show that $f(x) = x^3 + x - 1$ has a zero between 0 and 1.

  1. f is a polynomial, so it is continuous on [0, 1].
  2. f(0) = −1 < 0 < 1 = f(1).
  3. By the IVT there is a c in (0, 1) with f(c) = 0.

Worked example (from a table): f is differentiable for all x, with f(1) = 8, f(3) = 2, f(5) = −4, f(7) = 6. What is the least number of solutions of f(x) = 0 on [1, 7]?

  1. Differentiable implies continuous.
  2. Between x = 3 and x = 5, f goes from 2 to −4: at least one zero.
  3. Between x = 5 and x = 7, from −4 to 6: at least one more.
  4. At least two. (There could be more.)

Worked example (a value other than zero): with the same table, must f(x) = 5 have a solution on [1, 3]?

  1. f(1) = 8 and f(3) = 2; 5 is between them.
  2. f is continuous: by the IVT, yes.

Worked example (two functions): f and g are continuous, with f(0) = 1, g(0) = 4, f(2) = 9, g(2) = 6. Show that f(c) = g(c) for some c in (0, 2).

  1. Let h(x) = f(x) − g(x), continuous as a difference of continuous functions.
  2. h(0) = −3 and h(2) = 3.
  3. 0 is between them: by the IVT, h(c) = 0, so f(c) = g(c).

When the theorem does not apply

  • Discontinuity: $f(x) = \frac{1}{x}$ on [−1, 1] has f(−1) = −1 and f(1) = 1 but never equals 0.
  • k not between f(a) and f(b): no conclusion (a solution may or may not exist).
  • A table alone does not establish continuity: look for the word "continuous" or "differentiable" in the question.

What the theorem cannot tell you

  • The value of c: find it by solving or by calculator.
  • That the solution is unique. To show there is exactly one, add an argument such as "f is strictly increasing because f′(x) = 3x² + 1 > 0."

Related existence theorems (do not confuse them)

  • IVT: a function value is attained; needs continuity.
  • Mean value theorem: a derivative value equals the average rate of change; needs continuity and differentiability.
  • Extreme value theorem: a maximum and minimum exist on a closed interval; needs continuity.

Using the IVT numerically: the bisection method halves the interval repeatedly, keeping the half where the sign changes, to locate a root.

Common mistakes

  • Omitting the statement that f is continuous.
  • Saying "f(c) = k because k is between a and b" (it must be between f(a) and f(b)).
  • Claiming exactly one solution.
  • Applying it to a function with a break in the interval.
  • Naming the wrong theorem.
Check yourself

A function f is continuous on [2, 6] with f(2) = −3 and f(6) = 5. Which statement must be true?

  • There is exactly one c in (2, 6) with f(c) = 0

  • There is at least one c in (2, 6) with f(c) = 0

  • f′(c) = 2 for some c in (2, 6)

  • f is increasing on [2, 6]

Show the answer

There is at least one c in (2, 6) with f(c) = 0

Zero lies between −3 and 5 and f is continuous; the theorem guarantees existence, not uniqueness.

6For top marks

An IVT justification on the AP exam needs three elements:

  1. Continuity: state that $f$ is continuous on the closed interval (and why, if not given, e.g. "polynomial" or "differentiable implies continuous").
  2. The values: show that $N$ is between $f(a)$ and $f(b)$, e.g. "$f(1) = 2 < 4 < 7 = f(3)$."
  3. The conclusion: "Therefore, by the Intermediate Value Theorem, there exists $c$ in $(a, b)$ such that $f(c) = N$."

Naming the theorem matters. "It must cross" without mentioning continuity loses the point.

Example

"Because $f$ is differentiable, it is continuous on $[2, 6]$. Since $f(2) = -3 < 0 < 5 = f(6)$, by the IVT there is a value $c$ in $(2, 6)$ with $f(c) = 0$."

Check yourself

Which fact implies continuity and can be used to justify the IVT?

  • f is differentiable on the interval

  • f(a) = f(b)

  • f is defined at a and b

  • f has a horizontal asymptote

Show the answer

f is differentiable on the interval

Differentiability implies continuity.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera