2.12 The Intermediate Value Theorem

Daily life is replete with continuous processes. If you want to drive your car from a valley below sea level to a mountain peak, your altimeter cannot simply jump from a negative elevation to a positive one. At some precise moment during your journey, you must have been exactly at sea level. You cannot teleport.

In geometry, this manifests as a remarkably intuitive rule. Given two distinct points lying on different sides of a line, any attempt connecting the two points must cross the line, see Figure 2.21.

A two-dimensional schematic diagram showing a diagonal blue dividing line going from top-left to bottom-right. On the lower-left side of the dividing line sits a solid red point, and on the upper-right side sits a solid blue point. Three separate black curves connect the red point to the blue point: an upper arched curve, a middle curved path, and a highly wiggly lower curve that has multiple deep oscillations. Each curve crosses the blue dividing line exactly once, with each intersection marked by a yellow highlighted circle, demonstrating that any path between the two points must cross the boundary.
Figure 2.21: Any continuous path connecting a point on one side of a dividing line to a point on the other side must intersect the dividing line.
Intuition (Translating Geometry to Calculus).

We state this geometric intuition in calculus language by imagining our path as the graph of a continuous function f⁢(x)f(x). The dividing line becomes a horizontal line y=y0y=y_{0}. If our function starts below this line and ends above it, and it draws a continuous curve without picking up the pen, it is absolutely forced to intersect y0y_{0}.

To elevate this from a physical observation to a rigorous mathematical truth, we state it formally:

Theorem 2.12.1 (Intermediate Value Theorem (IVT)).

Let a<ba<b, and let f:[a,b]→ℝf:[a,b]\to\mathbb{R} be a continuous function on the closed interval [a,b][a,b]. Let y0y_{0} be a real number strictly between f⁢(a)f(a) and f⁢(b)f(b); that is, either

f⁢(a)≤y0≤f⁢(b)orf⁢(a)≥y0≥f⁢(b).f(a)\leq y_{0}\leq f(b)\quad\text{or}\quad f(a)\geq y_{0}\geq f(b).

Then there exists c∈[a,b]c\in[a,b] such that f⁢(c)=y0f(c)=y_{0}.

Caveat (An Existence Theorem).

The Intermediate Value Theorem is a classic example of an existence theorem. It tells you with absolute certainty that at least one number cc exists, but it offers precisely zero algorithmic guidance on how to actually find it! It does not provide a formula for cc.

Furthermore, we must be careful not to overstate what the theorem promises. Notice that there may be several values of cc that satisfy f⁢(c)=y0f(c)=y_{0}. The theorem guarantees at least one, not exactly one, see Figure 2.22.

A Cartesian coordinate graph illustrating the Intermediate Value Theorem. A continuous function curve labeled f(x) starts at point (a, f(a)) in the first quadrant, oscillates up and down, and ends at point (b, f(b)). A blue horizontal line at y = y0 lies between f(a) and f(b). Red dashed lines connect the y-axis values f(a) and f(b) to their respective points on the curve. Black dashed lines run vertically from (a, f(a)) and (b, f(b)) down to the x-axis. Since the function is continuous, it must cross the horizontal line y0. In this example, it crosses three times. Blue dashed vertical lines drop from these three intersection points on the curve to the x-axis, identifying three distinct points c1, c2, and c3 on the interval (a, b) where f(c) = y0.
Figure 2.22: Illustration of the Intermediate Value Theorem on [a,b][a,b], showing three intermediate points c1,c2,c3c_{1},c_{2},c_{3} where f⁢(ci)=y0f(c_{i})=y_{0}.

It is worth pausing to ask an important question: Why continuity?

The IVT dictates that if ff takes the values f⁢(a)f(a) and f⁢(b)f(b), then it must also take all the values in between. If ff is not assumed to be continuous, this logical scaffolding collapses entirely.

Consider the piecewise function f:[−1,1]→ℝf:[-1,1]\to\mathbb{R} defined by:

f⁢(x)≔{−1if ⁢x≤01if ⁢x>0f(x)\coloneqq\begin{cases}-1&\text{if }x\leq 0\\ 1&\text{if }x>0\end{cases}

Here, we clearly have f⁢(−1)=−1f(-1)=-1 and f⁢(1)=1f(1)=1. The value y0=0y_{0}=0 sits squarely between f⁢(−1)f(-1) and f⁢(1)f(1). Yet, there is no c∈[−1,1]c\in[-1,1] for which f⁢(c)=0f(c)=0.

Moral (No Teleportation Allowed).

If a function is discontinuous, it is entirely capable of jumping past intermediate values. Continuous functions, bound by their ε−δ\varepsilon-\delta topological chains, cannot do so.

We now arrive at a profound meta-mathematical realization. Any student encountering this theorem for the first time might think: Obviously a line from bottom to top hits the middle. Why do mathematicians obsess over proving this?

In fact, any attempt to prove the IVT eventually boils down to the very definition of what the set of real numbers (ℝ\mathbb{R}) actually is.

Story (The Fabric of the Reals).

It is somewhat funny that a result with such trivial statements seems to have a deep and difficult proof. The caveat is that there are several ways to define a real number (Dedekind cuts, equivalence classes of Cauchy sequences, etc.), but any rigorous proof of the IVT eventually converges to (yet another) theorem saying that ℝ\mathbb{R} is complete.

That is, ℝ\mathbb{R} is rich enough to guarantee the convergence of a special kind of sequence: the Cauchy sequence. If we were doing calculus on the rational numbers (ℚ\mathbb{Q}), the IVT would fail spectacularly! The continuous function f⁢(x)=x2−2f(x)=x^{2}-2 goes from negative to positive on [0,2][0,2], but it never hits 0 in ℚ\mathbb{Q} because 2\sqrt{2} slips right through the gaps in the rational number line. The IVT is fundamentally a statement about the absence of microscopic holes in ℝ\mathbb{R}.

The true power of the IVT lies in its ability to prove the existence of solutions to horrific equations without requiring us to actually solve them.

Example 2.12.2.

Show that the equation x5−x+1=0x^{5}-x+1=0 has at least 11 solution in [−2,0][-2,0].

Proof.

Let f⁢(x)=x5−x+1f(x)=x^{5}-x+1. Since ff is a polynomial, we know from elementary analysis that ff is continuous (cts) on the entirety of ℝ\mathbb{R}. Therefore, it is certainly continuous on the restricted interval [−2,0][-2,0]. We now evaluate the function at the boundary points of our interval:

f⁢(0)=05−0+1=1f⁢(−2)=(−2)5−(−2)+1=−32+3=−29<0\begin{split}f(0)&{}=0^{5}-0+1=1\\ f(-2)&{}=(-2)^{5}-(-2)+1\\ &{}=-32+3=-29<0\end{split}

We observe that f⁢(−2)<0f(-2)<0 and f⁢(0)>0f(0)>0. The value y0=0y_{0}=0 lies strictly between f⁢(−2)f(-2) and f⁢(0)f(0). Therefore, by the Intermediate Value Theorem, there exists at least one c∈[−2,0]c\in[-2,0] such that f⁢(c)=0f(c)=0. ∎

Remark 2.12.3.

Notice the elegance here: we don’t even need to calculate the exact values of f⁢(a)f(a) and f⁢(b)f(b) if the arithmetic is tedious. We merely need to establish their signs.

We leave the reader with a slightly more challenging problem that combines the IVT with the asymptotic behavior of functions.

Exercise 2.12.4 (Challenge for the curious minds).

Given two real numbers aa and bb with b≥0b\geq 0. Show that the equation

x5−a⁢x+bx⁢x2+1=2\frac{x^{5}-ax+b}{x\sqrt{x^{2}+1}}=2

has at least one real solution.

Hint: Do not attempt to solve for xx algebraically! Instead, define g⁢(x)=x5−a⁢x+bx⁢x2+1g(x)=\frac{x^{5}-ax+b}{x\sqrt{x^{2}+1}}. Find the limits

limx→±∞(g⁢(x)−2)andlimx→0±(g⁢(x)−2).\lim_{x\to\pm\infty}\left(g(x)-2\right)\qquad\text{and}\qquad\lim_{x\to 0^{\pm% }}\left(g(x)-2\right).

Then use the rigorous ε−δ\varepsilon-\delta definition of limits at infinity to construct a sufficiently large, finite closed interval [−M,M][-M,M] upon which you can apply the IVT.