Heine's Theorem and Its Consequences

Consequences: integration and numerical computation

Approximation by step functions

Let ff be continuous on [a ; b][a \,;\, b] and ε>0\varepsilon > 0. Heine's theorem gives a uniform δ>0\delta > 0. Choose a regular subdivision a=t0<t1<⋯<tn=ba = t_0 < t_1 < \cdots < t_n = b with step h=b−an≤δh = \dfrac{b - a}{n} \leq \delta.

On each piece [ti ; ti+1][t_i \,;\, t_{i+1}], any two points are at most δ\delta apart, so the values of ff vary by less than ε\varepsilon there. The step function equal to f(ti)f(t_i) on [ti ; ti+1[\left[t_i \,;\, t_{i+1}\right[ therefore approximates ff to within ε\varepsilon on the whole interval.

This is the deep meaning of the theorem: on a compact set, a single subdivision is enough to control the function everywhere.

Riemann integrability

With the same subdivision, let MiM_i and mim_i denote the maximum and the minimum of ff on [ti ; ti+1][t_i \,;\, t_{i+1}]. We have Mi−mi≤εM_i - m_i \leq \varepsilon, so the gap between the upper and lower Darboux sums satisfies

S(f,σ)−s(f,σ)=∑i=0n−1(Mi−mi) (ti+1−ti)≤ε (b−a)S(f, \sigma) - s(f, \sigma) = \sum_{i=0}^{n-1} (M_i - m_i)\,(t_{i+1} - t_i) \leq \varepsilon\,(b - a)

This gap becomes as small as we like: every function continuous on a closed bounded interval is Riemann integrable. This result, used in every integral computation, therefore rests directly on Heine.

Controlling the error in numerical computation

The modulus of continuity gives an explicit bound for the left rectangle method:

∣∫abf(x) dx−b−an∑i=0n−1f(ti)∣≤(b−a) ωf ⁣(b−an)\left\lvert \int_a^b f(x)\,\mathrm{d}x - \frac{b - a}{n}\sum_{i=0}^{n-1} f(t_i) \right\rvert \leq (b - a)\,\omega_f\!\left(\frac{b - a}{n}\right)

Heine ensures that the right-hand side tends to 00: the method converges for any continuous function, even without a differentiability assumption. If moreover ff is kk-Lipschitz, we obtain the quantitative bound

∣∫abf(x) dx−b−an∑i=0n−1f(ti)∣≤k (b−a)22n\left\lvert \int_a^b f(x)\,\mathrm{d}x - \frac{b - a}{n}\sum_{i=0}^{n-1} f(t_i) \right\rvert \leq \frac{k\,(b - a)^2}{2n}

For f(x)=sin⁡xf(x) = \sin x on [0 ; π][0 \,;\, \pi], with k=1k = 1, this gives an error less than π22n\dfrac{\pi^2}{2n}, that is, about 0.0050.005 for n=1000n = 1000.

Extension by continuity

Another consequence, in the other direction: if ff is uniformly continuous on ]a ; b[\left]a \,;\, b\right[, it extends by continuity to aa and to bb. The proof uses the Cauchy criterion — the image of a Cauchy sequence under a uniformly continuous function is still Cauchy, which is false under the mere assumption of continuity.

This sheds the right light on x↦1xx \mapsto \dfrac{1}{x} on ]0 ; 1]\left]0 \,;\, 1\right]: this function does not extend to 00, so it could not be uniformly continuous there.

Classic pitfall

Heine provides no explicit δ\delta. When an exercise asks for a quantitative bound — the number of points in a subdivision, the error of a numerical method —, the theorem only proves that the constant exists. To compute it, you need additional information: a Lipschitz constant, a bound on ∣f′∣\lvert f' \rvert, or an explicit modulus of continuity.