Heine's Theorem and Its Consequences

Statement and proof of Heine's theorem

Statement of the theorem

Heine's theorem. Every function that is continuous on a closed bounded interval [a ; b][a \,;\, b] is uniformly continuous on it.

The words closed bounded interval are essential: they denote an interval of R\mathbb{R} that is both closed and bounded, that is, a compact set. In its general form, due to Heine in 1872, the statement says that a continuous map from a compact metric space to a metric space is uniformly continuous.

The theorem is purely existential: it guarantees that a uniform δ\delta exists, without ever providing it.

Proof by contradiction

Suppose ff is continuous on [a ; b][a \,;\, b] but not uniformly continuous. The negation of the definition reads:

∃ε0>0,  ∀δ>0,  ∃(x,y)∈[a ; b]2,∣x−y∣≤δ   and   ∣f(x)−f(y)∣>ε0\exists \varepsilon_0 > 0,\; \forall \delta > 0,\; \exists (x, y) \in [a \,;\, b]^2,\quad \lvert x - y \rvert \leq \delta \;\text{ and }\; \lvert f(x) - f(y) \rvert > \varepsilon_0

Apply it successively to δ=1n\delta = \dfrac{1}{n} for each integer n≥1n \geq 1. We obtain two sequences (xn)(x_n) and (yn)(y_n) in [a ; b][a \,;\, b] such that

∣xn−yn∣≤1nand∣f(xn)−f(yn)∣>ε0\lvert x_n - y_n \rvert \leq \frac{1}{n} \qquad \text{and} \qquad \lvert f(x_n) - f(y_n) \rvert > \varepsilon_0

The sequence (xn)(x_n) lives in [a ; b][a \,;\, b], so it is bounded: the Bolzano–Weierstrass theorem provides a strictly increasing extraction map φ\varphi and a real number cc such that xφ(n)→cx_{\varphi(n)} \to c. Since [a ; b][a \,;\, b] is closed, the limit cc still belongs to [a ; b][a \,;\, b].

By the squeeze theorem, yφ(n)→cy_{\varphi(n)} \to c as well, since

∣yφ(n)−c∣≤∣yφ(n)−xφ(n)∣+∣xφ(n)−c∣≤1φ(n)+∣xφ(n)−c∣→n→+∞0\lvert y_{\varphi(n)} - c \rvert \leq \lvert y_{\varphi(n)} - x_{\varphi(n)} \rvert + \lvert x_{\varphi(n)} - c \rvert \leq \frac{1}{\varphi(n)} + \lvert x_{\varphi(n)} - c \rvert \xrightarrow[n \to +\infty]{} 0

The continuity of ff at the single point cc then gives f(xφ(n))→f(c)f(x_{\varphi(n)}) \to f(c) and f(yφ(n))→f(c)f(y_{\varphi(n)}) \to f(c), hence

∣f(xφ(n))−f(yφ(n))∣→n→+∞0\lvert f(x_{\varphi(n)}) - f(y_{\varphi(n)}) \rvert \xrightarrow[n \to +\infty]{} 0

which contradicts the strict lower bound ε0>0\varepsilon_0 > 0. The initial assumption is therefore absurd, and ff is uniformly continuous on [a ; b][a \,;\, b].

Variant using a covering

A second proof uses the Heine–Borel theorem. For ε>0\varepsilon > 0, continuity at each point xx gives a δx>0\delta_x > 0 such that ∣f(y)−f(x)∣≤ε2\lvert f(y) - f(x) \rvert \leq \tfrac{\varepsilon}{2} whenever ∣y−x∣≤δx\lvert y - x \rvert \leq \delta_x. The open intervals centered at xx with radius δx2\tfrac{\delta_x}{2} cover [a ; b][a \,;\, b]; we extract a finite subcover indexed by x1,…,xmx_1, \dots, x_m, and set

δ=min⁡(δx12,…,δxm2)>0\delta = \min\left(\frac{\delta_{x_1}}{2}, \dots, \frac{\delta_{x_m}}{2}\right) > 0

This minimum is strictly positive because the family is finite: that is exactly where compactness comes in. The triangle inequality then lets us conclude.

Classic pitfall

The theorem fails as soon as either of the two hypotheses on the interval is dropped.

Interval Example Uniformly continuous?
[0 ; 1][0 \,;\, 1], closed and bounded x↦x2x \mapsto x^2 yes, by Heine
]0 ; 1]\left]0 \,;\, 1\right], not closed x↦1xx \mapsto \dfrac{1}{x} no
[0 ; +∞[\left[0 \,;\, +\infty\right[, not bounded x↦x2x \mapsto x^2 no

Another frequent confusion: Heine says nothing about differentiability. The function x↦∣x∣x \mapsto \lvert x \rvert on [−1 ; 1][-1 \,;\, 1] is not differentiable at 00 and is still uniformly continuous.