Uniform Continuity
Consider the function on the open interval . Also consider the function on the closed interval . Both are continuous everywhere on their domains. Yet they behave very differently as you demand more precision. For , a single "margin of error" in works uniformly across the whole domain. This margin controls the error in everywhere. For , no such uniform margin exists. Near , arbitrarily small changes in produce arbitrarily large changes in . So any fixed tolerance in that works far from the origin fails catastrophically close to it. This distinction matters: a single working everywhere versus a that must shrink near trouble spots. It is invisible in the ordinary – definition of continuity. That definition only compares behavior at a point. Uniform continuity repairs this by demanding a that depends only on . It must not depend on the location in the domain. It is a strictly stronger condition than continuity. The gap between them is exactly the phenomenon illustrated by . Continuity can fail to be uniform when the domain is not compact. This happens either because the domain is unbounded, or because it has "holes." These holes are missing boundary points where the function blows up or oscillates too wildly. The central theorem of this article closes the gap in the best possible way. If a function is continuous on a closed, bounded interval, it is automatically uniformly continuous there. This result is due in essence to Heine. The general topological formulation is credited jointly to Heine and Borel. It is one of the first serious payoffs of compactness in analysis. It underlies the Riemann integrability of continuous functions. It also underlies the uniform convergence of Bernstein polynomial approximations. Countless other constructions rely on it too, wherever one needs "one to rule them all." This article gives the precise definition. It carefully contrasts uniform continuity with pointwise continuity. It proves the Heine–Cantor theorem in full, using the Bolzano–Weierstrass property of compact sets. It also shows, via explicit examples, exactly where and why the hypothesis of compactness is indispensable.
- Continuity at a point allows to depend on both and the point ; uniform continuity requires a single that works for every point in the domain simultaneously.
- Uniform continuity continuity always, but the converse fails in general (e.g., on , on ).
- Heine–Cantor theorem: a function continuous on a closed bounded interval is automatically uniformly continuous on .
- The proof is a compactness argument: assume uniform continuity fails, extract a convergent subsequence via Bolzano–Weierstrass, and contradict ordinary continuity at the limit point.
- Uniform continuity is exactly the right hypothesis for interchanging limits with function evaluation uniformly, for extending functions continuously to closures, and for proving Riemann integrability.
- Key idea: uniform continuity replaces "control near each point" with "control everywhere at once," and compactness is precisely what makes the two coincide.
Where this lives today
Uniform continuity is not a curiosity confined to introductory courses — it is a load-bearing hypothesis throughout mathematics and its applications.
- Riemann integration. The standard proof that every continuous function on is Riemann integrable uses uniform continuity to make upper and lower Riemann sums converge to the same value: uniform continuity lets you choose a single partition mesh size that controls the oscillation of on every subinterval simultaneously.
- Uniform approximation theory. The Weierstrass approximation theorem (polynomials are dense in continuous functions on under the sup norm) and Bernstein's explicit polynomial construction both rely on uniform continuity of the target function on the compact interval to get uniform (not just pointwise) convergence of the approximants.
- Numerical analysis. Discretization error bounds for numerical integration (Riemann sums, trapezoidal rule) and root-finding algorithms depend on a uniform modulus of continuity to guarantee that mesh refinement improves accuracy everywhere at a controlled, predictable rate.
- Metric space theory and completions. A uniformly continuous function on a dense subset of a metric space extends uniquely to a continuous function on the completion; this is how the exponential function, Fourier transforms on , and many operators in functional analysis are rigorously constructed by extension from a dense, simpler subspace.
- Signal processing and control theory. Uniform continuity of a system's response function guarantees that small, uniformly bounded perturbations in an input signal (across all times, not just locally) produce uniformly bounded changes in output — a stability guarantee stronger than pointwise continuity provides.
- Probability and statistics. Uniform continuity (and its quantitative refinement, uniform equicontinuity) underlies tightness arguments and the Arzelà–Ascoli theorem, which are central to proving convergence of stochastic processes and to establishing the existence of limiting distributions in empirical process theory.
- Cryptography and complexity. In computable analysis, the notion of a function being "uniformly computable" on a compact domain (computable with a modulus of continuity independent of the specific input) parallels uniform continuity and is essential for complexity bounds on numerical algorithms operating over real-number representations.
Ask the tutor: Why does uniform continuity guarantee that continuous functions on are Riemann integrable?
Let and let . We say is uniformly continuous on if
Contrast this with (pointwise) continuity on , meaning is continuous at every :
The logical difference is the order of quantifiers. In ordinary continuity, may depend on and on : . In uniform continuity, depends on alone: , and it must work for every pair of points (not just for near a fixed ).
Intuition
Think of continuity at a point as a promise: "give me an error tolerance , and I will find a neighborhood of small enough that doesn't move by more than inside it." Nothing forbids that neighborhood from shrinking to nothing as ranges over the domain. Uniform continuity is the stronger promise that one neighborhood-radius works simultaneously for every basepoint in the domain. A useful mental picture: slide a "" rectangle (or box) along the graph of , centered at each point . Continuity says that for each some box of height (with given) has some width narrow enough that the graph stays inside the box as it passes through. Uniform continuity says one width works for the box centered at every point on the graph. For on , the graph gets steeper and steeper as , so the box must get narrower and narrower — no single width works for all boxes.
The picture changes entirely if the domain is compact — closed and bounded. On , a continuous function cannot "run off to infinity in slope" the way does as it approaches a missing endpoint, because every point of , including the endpoints, is actually in the domain and continuity applies there too. This is the seed of the Heine–Cantor theorem: compactness prevents the domain from having any "escape route" where local moduli of continuity could degenerate.
Let be real numbers and let be continuous on (i.e., continuous at every point of , using one-sided limits at the endpoints). Then is uniformly continuous on .
We use proof by contradiction combined with the Bolzano–Weierstrass theorem, exploiting the compactness (closed and boundedness) of .
Setup. Suppose, for contradiction, that is continuous on but not uniformly continuous on . Negating the definition of uniform continuity, there exists such that for every , there exist points with
Step 1: Construct sequences. Apply this failure of the definition to each for . For each , we obtain points satisfying
This gives sequences and in .
Step 2: Extract a convergent subsequence. Since is a sequence in the closed bounded interval , the Bolzano–Weierstrass theorem guarantees a convergent subsequence with
Because each and is closed, the limit satisfies . (Closedness is essential here: a limit of points in the set stays in the set.)
Step 3: The paired sequence converges to the same limit. Consider the corresponding subsequence . From , for every ,
Since as (subsequence indices are strictly increasing), we have . By the triangle inequality,
as . Hence as well.
Step 4: Contradict continuity at . Since is continuous at , and since , the sequential characterization of continuity gives
Similarly, since , continuity at gives
Therefore, by the algebra of limits,
which means
But from , we know for every , so the sequence cannot converge to (a sequence of terms all cannot have limit , since taking in the definition of sequential convergence to is violated for all ). This is a contradiction.
Conclusion. The assumption that is continuous but not uniformly continuous on leads to a contradiction. Hence must be uniformly continuous on .
∎Remark on the proof technique. This is the standard "sequential compactness" argument: turn a failure of a uniform () statement into a sequence, extract a convergent subsequence using compactness of the domain, and derive a contradiction from ordinary (pointwise) continuity at the limit point. The same schema proves the Extreme Value Theorem and many other compactness-based results in analysis; it never invokes uniform continuity itself, so there is no circularity.
Worked examples
Example 1: A polynomial on a closed bounded interval, verified directly (not just via the theorem). Let on . We verify uniform continuity directly with an explicit , illustrating the mechanism the Heine–Cantor theorem guarantees abstractly. For ,
Since , we have and , so
Hence
Given , choose
Then for all with ,
This depends only on (not on or ), confirming uniform continuity directly — exactly as the theorem predicts, since is continuous (a polynomial) on the closed bounded interval . Notice the bound came from the boundedness of the domain: on an unbounded domain like all of , the analogous bound would be unbounded, and indeed is not uniformly continuous on (cubics grow too fast — see the counterexample below for the general phenomenon with ).
Example 2: Uniform continuity of on , where the naive Lipschitz bound fails. Let on . This example is instructive because is not Lipschitz near (its derivative is unbounded as ), so the slick "bound the difference quotient" trick from Example 1 does not directly apply — yet the Heine–Cantor theorem still guarantees uniform continuity, and we can exhibit by a case split. is continuous on (standard fact about the square root function, continuous on its whole domain , hence continuous on including the endpoint via a one-sided limit). By the Heine–Cantor theorem, is uniformly continuous on . Let us verify with an explicit . Fix . We split into two regimes. Case A (both points near 0). If , then , so trivially
(We will absorb the factor of by using in place of throughout; see below.) Case B (at least one point bounded away from 0). Suppose with (so we are not both in the tiny interval above). Using the identity
if additionally say, then , giving , so a Lipschitz-type bound does hold once we are bounded away from . To assemble a single clean , take (working with tolerance from the start, redoing constants carefully): Given , let . We claim this works for all with . Assume without loss of generality (the roles of are symmetric in ), so .
- If : then , so .
- If : then since ,
This bound alone isn't uniform as , so instead compare to directly: since is subadditive on (i.e. for , proven by squaring both sides: ), we get
so
In both cases whenever , and depends only on . This confirms uniform continuity of on directly, matching the guarantee of the Heine–Cantor theorem, and shows the theorem's power: it spares us this case analysis whenever we only need existence of some uniform , not an explicit formula.
The Heine–Cantor theorem requires the domain to be a closed and bounded interval. Drop boundedness and the conclusion fails.
Claim. is continuous on (which is closed but unbounded) but not uniformly continuous on . Continuity is standard: for any , , and near this is small whenever is small, since stays bounded on any bounded neighborhood of . (This is exactly Example 1's mechanism, but with the bound on depending on — the crux of the failure below.) Failure of uniform continuity: Take . We show that no works for every pair of points in . Fix any . Choose
Then , so these points are within of each other. But
So for this , every candidate fails to force for all pairs within : we exhibited a specific violating pair for each . This is precisely the negation of uniform continuity.
Diagnosis. The domain is closed but not bounded, so it is not compact; sequences like have no convergent subsequence, so Step 2 of the Heine–Cantor proof (Bolzano–Weierstrass extraction) is unavailable. The function's slope grows without bound as , so the "box width" needed to keep within shrinks to as we slide out to infinity — there is no smallest positive width that works everywhere. A second classic instance drops boundedness of the interval differently by instead dropping closedness: is continuous on (bounded but not closed — missing the point ) yet not uniformly continuous there, by an entirely analogous argument (take , for small ; then but ). This shows both closedness and boundedness are needed; compactness is the precise hypothesis, not either piece alone.
Scope, edge cases & common traps
| Situation | Uniformly continuous? | Reason |
|---|---|---|
| continuous on , closed & bounded | Yes, always | Heine–Cantor theorem |
| continuous on , open bounded | Not necessarily | e.g. on fails; but on does happen to be uniformly continuous (bounded slope) |
| continuous on or | Not necessarily | e.g. fails; but or Lipschitz functions succeed |
| Lipschitz on any interval (bounded or not) | Yes, always | gives directly, no compactness needed |
| uniformly continuous on bounded | extends continuously to | Cauchy sequences in map to Cauchy sequences, forcing a limit to exist at boundary points |
The mathematician behind it
Origins · 1 minEduard Heine and how this was discovered
Heine was a German mathematician whose work in the 1870s clarified the difference between continuity and uniform continuity, and who gave one of the first rigorous statements and proofs of what is now called the Heine–Cantor theorem. He worked in a period when the foundations of real analysis — precise – definitions, rigorous treatment of limits, and careful distinctions between pointwise and uniform notions — were being hammered out by the generation following Cauchy and Weierstrass. Heine's 1872 paper "Die Elemente der Functionenlehre" is a key text establishing these distinctions with full rigor, building on ideas he attributed in part to conversations with Weierstrass and to Georg Cantor's contemporaneous work on the topology of the real line.
Is every uniformly continuous function also continuous?
Yes, always, and this direction requires no special hypotheses on the domain. If is uniformly continuous on , then given there is a working for all pairs with ; in particular, fixing any and letting vary as , the same certifies ordinary continuity at . So uniform continuity is a strictly stronger condition: it implies pointwise continuity at every point, but (as the counterexamples show) the converse implication requires extra hypotheses like compactness of the domain or a global Lipschitz bound.
Does uniform continuity require the domain to be an interval?
No — the definition makes sense for with any subset of (or more generally any metric space). The Heine–Cantor theorem itself generalizes beyond intervals: if is continuous on any compact subset of (or of a general metric space), then is uniformly continuous on . Compactness of (every sequence in has a subsequence converging to a point of ) is exactly what the proof needs, and closed bounded intervals are simply the compact subsets of by the Heine–Borel theorem, which is why the interval version is the natural first case to master.
Can a function be uniformly continuous on an unbounded domain?
Yes, absolutely — boundedness of the domain is sufficient but not necessary. Lipschitz functions such as or are uniformly continuous on all of , since a global Lipschitz bound immediately yields working everywhere, with no compactness needed at all. What fails on unbounded domains is only the automatic implication from continuity: continuity alone (without an extra growth condition like a Lipschitz bound) does not guarantee uniform continuity when the domain is unbounded, as on demonstrates.
How does uniform continuity relate to Lipschitz continuity?
Lipschitz continuity is strictly stronger: if for a fixed constant and all in the domain, then setting instantly gives uniform continuity, with no need for compactness. The converse fails: on is uniformly continuous (by Heine–Cantor, since is compact) but is not Lipschitz, because its difference quotients blow up as . So on a compact interval, continuity, uniform continuity, and (for many "nice" functions) even Hölder-type moduli of continuity all coexist, but Lipschitz continuity is a genuinely stronger, separate condition.
Is the converse of Heine–Cantor true — does uniform continuity on imply is closed and bounded?
No, this converse is false, and it is important not to assert it. There exist uniformly continuous functions on domains that are neither closed nor bounded: for instance is uniformly continuous (in fact Lipschitz with ) on the open, unbounded set . The Heine–Cantor theorem is a one-directional implication — compactness of the domain is sufficient to upgrade continuity to uniform continuity — but it is not a characterization of which domains support uniformly continuous functions, since trivially every domain supports at least the uniformly continuous constant function.
What is the practical test for whether a specific continuous function is uniformly continuous on a non-compact domain?
There is no single algorithm, but three reliable techniques cover most textbook cases. First, check for a global Lipschitz bound (bounded derivative) — this always suffices, compact or not. Second, if the domain is an open bounded interval like , check whether extends to a continuous function on the closed interval (i.e., whether and exist and are finite); if so, apply Heine–Cantor to the extension, and the restriction inherits uniform continuity. Third, on unbounded domains, examine the behavior as : if has a finite limit or grows at most linearly with bounded slope at infinity, uniform continuity typically holds, while polynomial growth of degree typically breaks it, as the counterexample shows.