Skip to content

Intermediate Value Theorem: Definition, Proof & Examples

Type
Lesson
Reading
13 min

Suppose you fill a bathtub with cold water and then add hot water until it is scalding. At some exact moment the temperature was precisely 37 °C — your body temperature — even if you never measured it. You crossed that value because there was no way to avoid it. This everyday observation is, at its heart, exactly what the intermediate value theorem says about continuous functions in mathematics. The intermediate value theorem (IVT) is one of the first truly powerful results you encounter in calculus, and it turns an intuition about unbroken curves into a rigorous guarantee about real numbers. Understanding the IVT means understanding why equations have solutions — long before you know how to find them.

Contents9 sections

What Is the Intermediate Value Theorem? (Formal Definition)

Every powerful theorem rests on a precise definition, so let’s build one carefully — piece by piece — before stating the full result.

Key vocabulary you need first

A closed interval [a,b][a, b] is the set of all real numbers xx satisfying a≤x≤ba \le x \le b; it includes both endpoints. (An open interval (a,b)(a, b) would exclude the endpoints, but the IVT specifically needs the closed version.)

A function ff is continuous on [a,b][a, b] if, roughly speaking, its graph can be drawn from the point (a, f(a))(a,\,f(a)) to the point (b, f(b))(b,\,f(b)) without lifting the pen from the paper — no holes, no jumps, no vertical asymptotes within the interval.

The Intermediate Value Theorem

Let ff be a function that is continuous on the closed interval [a,b][a, b]. Let LL be any real number that lies strictly between f(a)f(a) and f(b)f(b) — that is, LL is an intermediate value between the two endpoint outputs. Then there exists at least one number cc in the open interval (a,b)(a, b) such that

f(c)=L. f(c) = L.

Let’s unpack every symbol. The letter ff is the function; aa and bb are the left and right endpoints of the interval with a<ba < b; f(a)f(a) and f(b)f(b) are the output values (heights on the graph) at those endpoints; LL is any target height strictly between those two outputs; and cc is an input value — somewhere inside the interval — at which the function actually reaches that target.

⚠️ Common mistake: Students often assume the IVT tells you where cc is. It does not — it only guarantees that at least one such cc exists. There may be many such points, or exactly one; the theorem is silent on the count and location.

Conditions the IVT Requires: and What Happens Without Them

Now that we have the definition in place, the natural question is: under what conditions does the IVT actually hold — and what goes wrong when those conditions fail?

The theorem has exactly two hypotheses:

  1. ff must be continuous on [a,b][a, b].
    Continuity is non-negotiable. If the graph has even a single jump discontinuity inside [a,b][a, b], the function can skip over intermediate values entirely.
  2. LL must lie strictly between f(a)f(a) and f(b)f(b).
    If f(a)<f(b)f(a) < f(b), then LL must satisfy f(a)<L<f(b)f(a) < L < f(b). If f(a)>f(b)f(a) > f(b), then LL must satisfy f(b)<L<f(a)f(b) < L < f(a). Values outside this range are not covered by the theorem.

Concrete failure when continuity breaks

Consider the step function f(x)={0x<01x≥0f(x) = \begin{cases} 0 & x < 0 \\ 1 & x \ge 0 \end{cases} on the interval [−1,1][-1, 1]. Here f(−1)=0f(-1) = 0 and f(1)=1f(1) = 1, so L=0.5L = 0.5 is intermediate. Yet there is no c∈(−1,1)c \in (-1, 1) with f(c)=0.5f(c) = 0.5 — the function simply jumps. The IVT does not apply because ff is not continuous at x=0x = 0.

Similarly, the IVT does not hold over the rational numbers Q\mathbb{Q}, because the rationals have gaps where irrational numbers sit. The theorem is deeply tied to the completeness of the real number line — the fact that R\mathbb{R} has no gaps at all.

Summary of conditions

HypothesisRequired?What fails without it?
Continuity of ff on [a,b][a,b]YesFunction can jump over LL
LL between f(a)f(a) and f(b)f(b)YesNo guarantee — cc may not exist
Closed interval [a,b][a,b]YesEndpoint behaviour may be undefined

Bolzano’s Theorem: The Root-Finding Special Case

The most celebrated application of the IVT is so useful it has its own name. Bolzano’s theorem — named after the Czech mathematician Bernard Bolzano, who first published a rigorous proof of the IVT in 1817 — is simply the IVT applied with the target value L=0L = 0:

Bolzano’s Theorem. Let ff be continuous on [a,b][a, b]. If f(a)f(a) and f(b)f(b) have opposite signs — that is, f(a)⋅f(b)<0f(a) \cdot f(b) < 0 — then there exists at least one c∈(a,b)c \in (a, b) such that f(c)=0f(c) = 0. In other words, ff has a root (a zero) inside the interval.

The condition f(a)⋅f(b)<0f(a) \cdot f(b) < 0 is just a slick way of saying one value is negative and the other is positive; a product of two numbers is negative precisely when they have opposite signs.

Bolzano’s theorem is the backbone of the bisection method — a numerical algorithm that repeatedly halves an interval to narrow down the location of a root. If f ⁣(a+b2)f\!\left(\tfrac{a+b}{2}\right) has the same sign as f(a)f(a), the root must lie in the right half; otherwise it lies in the left half. Each step cuts the uncertainty in half, converging to the root with guaranteed accuracy.

Key Properties of the IVT You Should Know

With Bolzano’s theorem established, it’s worth collecting the most important structural properties of the IVT — the facts that shape how you actually use it in problems.

Property 1: Existence, not uniqueness

The IVT guarantees that at least one value cc exists with f(c)=Lf(c) = L. It says nothing about how many such values there are. For a non-monotone function (one that goes up and then back down, for instance), there could be two, three, or infinitely many crossing points.

Property 2: Image of a continuous function on a closed interval is an interval

A deeper way to state the IVT is this: if ff is continuous on [a,b][a, b], then the set of all output values {f(x):x∈[a,b]}\{f(x) : x \in [a,b]\} is itself a closed interval. No gaps can appear in the range. This is the topological heart of the theorem: the continuous image of a connected set is connected.

Property 3: Polynomials always satisfy IVT conditions

Polynomials are continuous on every interval — so whenever you have a polynomial p(x)p(x) and you can find a,ba, b with p(a)p(a) and p(b)p(b) on opposite sides of LL, the IVT applies automatically. No continuity check is needed.

Property 4: The IVT does not locate the root

The theorem proves existence but gives no formula for cc. Finding cc typically requires further work: algebra, the bisection method, or Newton’s method.

⚠️ Common mistake: It is tempting to use the IVT to claim that the root is at the midpoint a+b2\tfrac{a+b}{2}. The theorem makes no such claim. The midpoint is only a starting estimate; the bisection method iterates further to narrow down the location.

The Intuition Behind the Intermediate Value Theorem

The properties above are important, but why is the theorem true? Understanding the intuition makes the formal proof feel inevitable rather than surprising.

The road-trip analogy

Imagine you drive from city A to city B. At city A, your altitude is 200 m above sea level. At city B, your altitude is 800 m. At some point during the journey your altitude was exactly 500 m. Why? Because altitude changes continuously as you drive: the road cannot teleport you over intermediate heights. You must pass through every altitude between 200 m and 800 m.

The mathematical function here is “altitude as a function of distance travelled.” It is continuous (no jumps) on the closed interval [0,total distance][0, \text{total distance}]. The IVT guarantees that the altitude function takes the value 500 m at some point along the route.

The no-gaps principle

The deeper reason the theorem holds is that the real number line has no gaps. If you try to travel continuously from f(a)f(a) to f(b)f(b) without passing through LL, you would need to jump over LL — but a continuous function cannot jump. The real numbers forbid any such escape route; every point between f(a)f(a) and f(b)f(b) is present on the number line, and the function must visit each of them.

This is also why the IVT fails over the rationals: the number 2≈1.414…\sqrt{2} \approx 1.414\ldots is irrational, so a function that “skips over” 2\sqrt{2} by jumping from a rational below it to a rational above it could be “continuous” within Q\mathbb{Q} yet never hit that value. The gap exists in Q\mathbb{Q}, and the theorem cannot close it.

Connection to continuity

The IVT is, in a precise sense, equivalent to the completeness of the real numbers. You can prove completeness from the IVT, and you can prove the IVT from completeness. This is part of what makes the theorem so fundamental: it is not just a useful tool, it is a window into the very structure of R\mathbb{R}.

Graphical Interpretation of the Intermediate Value Theorem

Abstract guarantees become tangible once you can see them, so let’s translate the theorem into a picture.

The picture tells the whole story at a glance. The curve starts at height f(a)f(a) on the left and ends at height f(b)f(b) on the right. The horizontal dashed line sits at some intermediate height LL. Because the curve is unbroken, it must cross that dashed line at least once — at the point labelled cc. The IVT simply formalises this visual crossing.

Notice, too, that a more “wiggly” continuous curve might cross the dashed line multiple times — but at least once is guaranteed. And if the curve had a jump discontinuity, it could leap from below LL to above LL without ever touching it, as shown by the step-function example earlier.

Step-by-Step Proof of the Intermediate Value Theorem

Seeing the picture makes the IVT feel obvious — which is exactly why proving it rigorously is such a satisfying exercise. The proof below uses a technique called the supremum argument, which relies on the completeness of R\mathbb{R}. It is the standard proof given in most first-year analysis courses.

Setup. Assume ff is continuous on [a,b][a, b] and f(a)<L<f(b)f(a) < L < f(b) (the case f(a)>L>f(b)f(a) > L > f(b) is symmetric — apply the argument to −f-f).

  1. Define the candidate set. Let

    S={x∈[a, b]:f(x)<L}. S = \{ x \in [a,\, b] : f(x) < L \}.

    In plain English: SS is all the inputs where the function is still below the target height. We know a∈Sa \in S (since f(a)<Lf(a) < L), so SS is non-empty. Also, SS is bounded above by bb.

  2. Take the supremum. Because SS is a non-empty subset of R\mathbb{R} that is bounded above, it has a supremum (least upper bound) — call it c=sup⁡Sc = \sup S. The supremum is the smallest real number that is an upper bound for SS; its existence is guaranteed by the completeness of R\mathbb{R}.

    Since a≤c≤ba \le c \le b, the point cc is inside the interval.

  3. Show f(c)≥Lf(c) \ge L. Because c=sup⁡Sc = \sup S, there is no point strictly to the right of cc (within [a,b][a,b]) that belongs to SS. So for all x>cx > c in [a,b][a,b], we have f(x)≥Lf(x) \ge L. By continuity, taking the limit as x→c+x \to c^+:

    f(c)=lim⁡x→c+f(x)≥L. f(c) = \lim_{x \to c^+} f(x) \ge L.
  4. Show f(c)≤Lf(c) \le L. Since cc is the supremum of SS, for every ε>0\varepsilon > 0 there exists a point xε∈Sx_\varepsilon \in S with xε>c−εx_\varepsilon > c - \varepsilon. In other words, points of SS get arbitrarily close to cc from the left. By definition of SS, f(xε)<Lf(x_\varepsilon) < L. By continuity:

    f(c)=lim⁡xε→cf(xε)≤L. f(c) = \lim_{x_\varepsilon \to c} f(x_\varepsilon) \le L.
  5. Conclude. Steps 3 and 4 together give f(c)≥Lf(c) \ge L and f(c)≤Lf(c) \le L, which means

    f(c)=L. f(c) = L. \quad

    The point cc lies in (a,b)(a, b) (it cannot equal bb because f(b)>Lf(b) > L, so b∉Sb \notin S, yet cc is in the closure of SS; a careful ε\varepsilon-argument confirms c<bc < b).

⚠️ Common mistake: In Step 2, students sometimes confuse the supremum with the maximum. The supremum of SS always exists in R\mathbb{R} (by completeness) but need not belong to SS itself. This is why the proof needs both Steps 3 and 4 — to pin down the value of f(c)f(c) from both sides simultaneously.

Worked Examples: Applying the IVT Step by Step

The proof establishes the theorem in the abstract; now let’s see it do real work on concrete problems.

Example 1: Verifying a root exists

Problem. Show that the equation x3−x−1=0x^3 - x - 1 = 0 has at least one real solution in the interval [1,2][1, 2].

Solution. Define f(x)=x3−x−1f(x) = x^3 - x - 1. Since ff is a polynomial, it is continuous on every interval, including [1,2][1, 2]. Evaluate at the endpoints:

f(1)=13−1−1=−1<0 f(1) = 1^3 - 1 - 1 = -1 < 0
f(2)=23−2−1=5>0 f(2) = 2^3 - 2 - 1 = 5 > 0

Since f(1)<0<f(2)f(1) < 0 < f(2), the target value L=0L = 0 lies strictly between f(1)f(1) and f(2)f(2). By the intermediate value theorem (Bolzano’s theorem), there exists c∈(1,2)c \in (1, 2) such that f(c)=0f(c) = 0. The equation has at least one root in [1,2][1, 2].

Example 2: Finding an intermediate value, not just a root

Problem. Let f(x)=x2+1f(x) = x^2 + 1. Show that ff takes the value 55 somewhere in [1,3][1, 3].

Solution. ff is a polynomial, hence continuous on [1,3][1, 3]. Compute:

f(1)=12+1=2,f(3)=32+1=10. f(1) = 1^2 + 1 = 2, \qquad f(3) = 3^2 + 1 = 10.

Since 2<5<102 < 5 < 10, the value L=5L = 5 lies between f(1)f(1) and f(3)f(3). By the IVT, there exists c∈(1,3)c \in (1, 3) with f(c)=5f(c) = 5. (In this case we can actually solve: c2+1=5c^2 + 1 = 5 gives c=2c = 2. The IVT told us cc existed; the algebra found it.)

Example 3: Checking that conditions hold before applying IVT

Problem. Can the IVT be used to show that g(x)=1xg(x) = \dfrac{1}{x} takes the value 00 on [−1,1][-1, 1]?

Solution. No. The function g(x)=1/xg(x) = 1/x is not continuous on [−1,1][-1, 1]: it has a vertical asymptote at x=0x = 0, so it is undefined (and therefore discontinuous) at that point. The first condition of the IVT fails. We cannot apply the theorem, and indeed g(x)=1/xg(x) = 1/x never equals 00 for any real xx.

Conclusion: Why the Intermediate Value Theorem Matters

The intermediate value theorem is one of calculus’s most elegant results: a simple, intuitive idea — continuous functions cannot skip values — elevated by rigorous proof into a theorem with far-reaching consequences. To summarise what we have covered:

  • The IVT guarantees that a continuous function on [a,b][a, b] attains every value between f(a)f(a) and f(b)f(b).
  • Its special case, Bolzano’s theorem, is the engine behind root-finding: if a continuous function changes sign on [a,b][a, b], it has a zero inside.
  • The theorem only provides existence; it does not find the value cc. Numerical methods like the bisection method are built on top of it to locate roots systematically.
  • The IVT is equivalent to the completeness of R\mathbb{R} — a reminder that analysis is ultimately the study of the real number line and its remarkable properties.

Mastering the intermediate value theorem opens the door to deeper results. The Mean Value Theorem and the Extreme Value Theorem both build on the same foundation of continuity — and both become more transparent once you fully understand why the IVT works.