Calculus 1Limits

The Intermediate Value Theorem

A continuous function that changes sign must hit 0 in between.

Not started Jump to practice

A continuous function on an interval can be drawn without lifting your pencil. That simple picture has a powerful consequence: such a function cannot skip any height between its endpoint values.

Key idea

Intermediate Value Theorem (IVT). 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 $c$ in $(a, b)$ with $f(c) = N$. In particular, if $f(a)$ and $f(b)$ have opposite signs, $f$ has a zero between them.
$f(x) = x^3 + x - 3$ is below the axis at $x = 1$ and above it at $x = 2$, so its unbroken graph must cross the axis in between.

Why it works

A full proof needs a property of the real numbers called completeness (the number line has no gaps). The idea: imagine the set of $x$ in $[a, b]$ where $f(x) < N$. Let $c$ be the edge of that set. Continuity forbids $f(c) < N$ (then slightly larger $x$ would also be below $N$) and forbids $f(c) > N$ (then slightly smaller $x$ would also be above $N$). What is left is $f(c) = N$.

Worked example: Locate a root

Show that $x^3 + x - 3 = 0$ has a solution in $[1, 2]$, then narrow it to an interval of length $0.1$.
  1. $f(x) = x^3 + x - 3$ is a polynomial, so it is continuous on $[1, 2]$.
  2. $f(1) = -1 < 0$ and $f(2) = 7 > 0$, so by the IVT there is a root in $(1, 2)$.
  3. Try more points: $f(1.2) = 1.728 + 1.2 - 3 = -0.072$ and $f(1.3) = 2.197 + 1.3 - 3 = 0.497$.
  4. The sign changes between 1.2 and 1.3, so a root lies in $(1.2, 1.3)$.

Answer: A root lies in $(1.2,\ 1.3)$. Repeating this halving idea pins it down as closely as we like.

Worked example: When the theorem does not apply

$f(x) = \frac{1}{x}$ has $f(-1) = -1$ and $f(1) = 1$. Does it have a zero in $(-1, 1)$?
  1. The signs differ, but $f$ is not continuous on $[-1, 1]$: it is undefined at $x = 0$.
  2. So the IVT says nothing. In fact $\frac{1}{x}$ is never 0: the graph jumps from $-\infty$ to $\infty$ across the asymptote.

Answer: No. The theorem's hypothesis fails.

Common mistake

Applying the IVT to a function that is not continuous on the whole closed interval, such as $\frac{1}{x}$ or a piecewise function with a jump. Before you conclude anything, check continuity on $[a, b]$ first. Also note what the theorem does not say: it promises at least one $c$, not exactly one, and it does not tell you where $c$ is.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax Calculus Volume 1, 2.4 Continuity
@teddyrookbook GitHub