AP Calculus AB and BC

Intermediate Value Theorem: How to Justify With It

The Intermediate Value Theorem says that if f is continuous on the closed interval [a, b] and k is a number between f(a) and f(b), then there is at least one c between a and b with f(c) = k. To justify with it, state that f is continuous on the interval and show that k lies between the two endpoint values.

What the theorem guarantees

The Intermediate Value Theorem (IVT) is an existence theorem. It tells you that a continuous function cannot get from one output to another without passing through every value in between. This is Topic 1.16, Working with the Intermediate Value Theorem (IVT).

f continuous on [a,b],k between f(a) and f(b)⟹f(c)=k for at least one c in (a,b)f \text{ continuous on } [a, b], \quad k \text{ between } f(a) \text{ and } f(b) \quad \Longrightarrow \quad f(c) = k \text{ for at least one } c \text{ in } (a, b)

The conclusion is narrow. The theorem says a solution to f(c)=kf(c) = k exists somewhere in the interval. It does not tell you where cc is, and it does not tell you how many solutions there are beyond "at least one".

The two hypotheses

Every use of the IVT rests on two facts, and both have to be true before the conclusion is available.

  1. Continuity: ff is continuous on the closed interval [a,b][a, b].
  2. Betweenness: the target value kk lies between f(a)f(a) and f(b)f(b).

Continuity has to come from somewhere. Polynomials, exponentials, sine, and cosine are continuous everywhere, and sums, products, and compositions of continuous functions are continuous. A problem may also state it directly. A function that is given as differentiable is continuous as well, because differentiability implies continuity.

A table alone is not enough

A table of values shows only a few points. It cannot tell you what the function does between them, so continuity must be stated in the problem or follow from differentiability before the IVT can be used with table data.

Writing the justification

A complete IVT justification has three parts. Each one is a single sentence, and the first is the easiest to forget.

  1. State the continuity. Write that ff is continuous on [a,b][a, b] and give the reason, such as "because ff is a polynomial" or "because ff is differentiable".
  2. Show the betweenness with numbers. Compute or read off f(a)f(a) and f(b)f(b) and write the inequality, such as f(a)<k<f(b)f(a) < k < f(b).
  3. Name the theorem and state the conclusion: by the Intermediate Value Theorem, there is a value cc in (a,b)(a, b) with f(c)=kf(c) = k.

A model sentence

"Since ff is continuous on [1,2][1, 2] and f(1)=−3<0<5=f(2)f(1) = -3 < 0 < 5 = f(2), the Intermediate Value Theorem guarantees a value cc in (1,2)(1, 2) with f(c)=0f(c) = 0."

Finding zeros with a sign change

The most common use is the case k=0k = 0. If ff is continuous on [a,b][a, b] and f(a)f(a) and f(b)f(b) have opposite signs, then 00 lies between them and ff has at least one zero in (a,b)(a, b).

The same idea handles equations with expressions on both sides. To show that g(x)=h(x)g(x) = h(x) has a solution, move everything to one side, define f(x)=g(x)−h(x)f(x) = g(x) - h(x), and look for a sign change in ff. A zero of ff is a solution of the original equation.

What the IVT cannot tell you

  • It does not count solutions. A sign change guarantees at least one zero, and there may be more.
  • It does not run in reverse. If f(a)f(a) and f(b)f(b) have the same sign, the theorem gives no information, and zeros may still exist. For f(x)=x2f(x) = x^2 on [−1,1][-1, 1], both endpoint values equal 11, yet f(0)=0f(0) = 0.
  • It does not apply without continuity. For f(x)=1xf(x) = \frac{1}{x}, f(−1)=−1f(-1) = -1 and f(1)=1f(1) = 1, but ff is never 00. The function is not continuous on [−1,1][-1, 1], so nothing is contradicted.
  • It is about function values. A conclusion about a slope or a rate, such as f′(c)f'(c) equaling an average rate of change, belongs to the Mean Value Theorem. See MVT vs IVT.

More examples of a missing hypothesis are on when the Intermediate Value Theorem fails.

Worked examples

Worked example

Showing a polynomial has a zero

Show that f(x)=x3+x−5f(x) = x^3 + x - 5 has a zero in the interval [1,2][1, 2].

  1. Continuity: ff is a polynomial, so it is continuous everywhere, including on [1,2][1, 2].
  2. Endpoint values: f(1)=1+1−5=−3f(1) = 1 + 1 - 5 = -3 and f(2)=8+2−5=5f(2) = 8 + 2 - 5 = 5.
  3. Betweenness: f(1)=−3<0<5=f(2)f(1) = -3 < 0 < 5 = f(2), so 00 lies between the endpoint values.
  4. Conclusion: by the Intermediate Value Theorem, there is at least one cc in (1,2)(1, 2) with f(c)=0f(c) = 0.

Since ff is continuous on [1,2][1, 2] and f(1)<0<f(2)f(1) < 0 < f(2), the IVT guarantees a zero in (1,2)(1, 2).

Worked example

Counting guaranteed solutions from a table

A function ff is continuous on [0,8][0, 8] with f(0)=3f(0) = 3, f(2)=−1f(2) = -1, f(5)=4f(5) = 4, and f(8)=6f(8) = 6. What is the least number of solutions to f(x)=2f(x) = 2 in [0,8][0, 8]?

  1. Continuity on [0,8][0, 8] is given, so ff is continuous on each subinterval [0,2][0, 2], [2,5][2, 5], and [5,8][5, 8]. Apply the IVT to each one.
  2. On [0,2][0, 2]: f(2)=−1<2<3=f(0)f(2) = -1 < 2 < 3 = f(0). The value 22 lies between the endpoint values, so there is at least one solution in (0,2)(0, 2).
  3. On [2,5][2, 5]: f(2)=−1<2<4=f(5)f(2) = -1 < 2 < 4 = f(5). There is at least one solution in (2,5)(2, 5).
  4. On [5,8][5, 8]: the endpoint values are 44 and 66, and 22 does not lie between them. The IVT guarantees nothing on this interval.
  5. The two guaranteed solutions lie in different intervals, so they are different points.

At least 22 solutions. There could be more, but the given information guarantees only two.

Worked example

An equation with expressions on both sides

Show that the equation ex=3−xe^x = 3 - x has a solution in [0,1][0, 1].

  1. Move everything to one side and define g(x)=ex+x−3g(x) = e^x + x - 3. A zero of gg is a solution of the equation.
  2. Continuity: gg is a sum of an exponential function and a polynomial, so it is continuous on [0,1][0, 1].
  3. Endpoint values: g(0)=1+0−3=−2g(0) = 1 + 0 - 3 = -2 and g(1)=e+1−3=e−2≈0.718g(1) = e + 1 - 3 = e - 2 \approx 0.718.
  4. Betweenness: g(0)<0<g(1)g(0) < 0 < g(1).
  5. Conclusion: by the Intermediate Value Theorem, there is a cc in (0,1)(0, 1) with g(c)=0g(c) = 0, which means ec=3−ce^c = 3 - c.

Since g(x)=ex+x−3g(x) = e^x + x - 3 is continuous on [0,1][0, 1] with g(0)<0<g(1)g(0) < 0 < g(1), the IVT guarantees a solution in (0,1)(0, 1).

Frequently asked questions

Does the Intermediate Value Theorem tell you how many solutions there are?

No. It guarantees at least one value cc with f(c)=kf(c) = k. To guarantee more than one, apply the theorem on separate subintervals, as in the table example above. It never gives an exact count or an upper limit.

Does the function need to be differentiable to use the IVT?

No. The only requirement on ff is continuity on the closed interval [a,b][a, b]. Differentiability is more than you need, though if a problem tells you ff is differentiable, you may use that to conclude ff is continuous.

What is the difference between the IVT and the Mean Value Theorem?

The IVT is about function values: a continuous function takes every value between f(a)f(a) and f(b)f(b). The Mean Value Theorem is about slopes: if ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then f′(c)f'(c) equals the average rate of change f(b)−f(a)b−a\frac{f(b) - f(a)}{b - a} for some cc in (a,b)(a, b).