Continuity and uniform continuity
Control output errors locally or across an entire domain and learn how compactness supplies a uniform tolerance.
On this page
The question for today
What you’ll understand
- Distinguish pointwise and uniform epsilon–delta conditions.
- Prove uniform continuity using a Lipschitz estimate.
- Construct pairs of nearby inputs that disprove uniform continuity.
Continuity says that sufficiently accurate input near a chosen point produces sufficiently accurate output. Uniform continuity asks whether one input tolerance works everywhere in the domain. This change in quantifier order has practical meaning: a uniform tolerance supports a global error budget, while a merely local tolerance may shrink as the operating point moves. The function rule alone does not settle the issue. The same square function behaves differently on a bounded interval and on the entire real line.
Locate the dependence of the tolerance
For continuity at x, choose the desired output tolerance epsilon and then choose a positive input tolerance delta. That delta may depend on x as well as epsilon. The claim concerns all domain points within that distance of x, including only points actually belonging to the domain. A function on a discrete metric space is continuous without being smooth or following a familiar algebraic formula: a sufficiently small ball contains just the chosen point. Continuity is about the domain and target metrics, rather than about how pleasant a graph looks.
Uniform continuity chooses delta before either input point is selected. Once epsilon is fixed, the same positive delta must control every pair in the domain. Every uniformly continuous function is continuous, but the converse fails on general domains. Another equivalent continuity criterion in metric spaces is preservation of convergent sequences: whenever x_n approaches x within the domain, f(x_n) approaches f(x). To disprove continuity, a single carefully chosen convergent sequence with bad image behavior is enough.
Prove a global bound or find escaping pairs
A Lipschitz bound compares output distance with input distance using one finite constant L. When L is positive, taking delta=epsilon/L proves uniform continuity. A constant function is handled separately because every input tolerance works. On a bounded interval [−M,M], the square function is Lipschitz with constant 2M, using the factorization of the difference of squares. This argument does not require differentiability and makes the role of the bounded domain explicit. When M is zero, the domain has one point and the conclusion is immediate.
On the whole real line, squaring is not uniformly continuous. Compare x_n=n with y_n=n+1/n. Their input difference tends to zero, while their squared output difference is 2+1/n². A hypothetical global tolerance for output error one would eventually accept these arbitrarily close inputs but fail its own output requirement. The construction is stronger than saying the derivative is unbounded: an unbounded derivative alone is not a general universal test without additional hypotheses, whereas these explicit pairs directly contradict the definition.
Compactness and Cauchy sequences explain the stakes
A continuous map on a compact metric domain is uniformly continuous. One useful proof by contradiction begins with arbitrarily close input pairs whose outputs stay a fixed positive distance apart. Compactness gives a convergent subsequence of one member of each pair. The pair distances tending to zero force the other members to approach the same limit. Continuity then sends both image subsequences to the same point, contradicting their persistent separation. Compactness prevents the problematic inputs from escaping without a limit in the domain.
Uniformly continuous maps send Cauchy sequences to Cauchy sequences. Given an output tolerance, obtain a common input tolerance and apply the Cauchy condition to the original tail. This is why uniform continuity supports extension to completions. Mere continuity cannot replace it: the sequence 1/n is Cauchy in (0,1], but its image under 1/x is n, which is not Cauchy. Uniform continuity need not imply a linear Lipschitz bound; the square-root function on [0,1] is uniformly continuous despite unbounded sensitivity near zero.
Work it through
Choose a tolerance that works across a bounded domain
For f(x)=x² on [−3,3], find a positive delta guaranteeing output difference below 0.02 for all input pairs with distance less than delta.
Factor the output difference into |x−y||x+y|. Since both inputs lie between −3 and 3, the second factor is at most 6.
It is therefore enough to require 6|x−y| below 0.02. Choose delta=0.02/6=1/300. This choice does not mention the operating point.
For any allowed pair with distance strictly less than 1/300, the output difference is strictly less than 6/300=0.02. The strict inequality comes from the input condition, even when the bound 6 is attained as a limit.
The global choice delta=1/300 works. It is a sufficient tolerance; uniform continuity does not demand the largest possible one.
The living notebook
Explore the model
Interactive lab · function
Local slope and a bounded operating region
Fix coefficient a=1 in the quadratic lab and move the position x. Compare the tangent slope 2x near zero and farther away, then predict how sensitivity changes. The display shows values and derivatives of this single quadratic, not an automatic uniform-continuity test or a two-input error calculator.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA global error guarantee depends on the whole domain, not just one displayed tangent.
Pause & reason
Check your understanding
Your turn
Try it yourself
Prove that f(x)=1/x is uniformly continuous on [1,infinity), and explain why the same estimate fails on (0,1].
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Factor the difference into |x−y|/(xy). Identify which domain gives a lower bound on the denominator.
Compare with the solution
On [1,infinity), xy is at least one, so |1/x−1/y| is at most |x−y|. Thus f is Lipschitz with constant one and delta=epsilon works. On (0,1], choose x_n=1/n and y_n=1/(n+1). Their difference is 1/[n(n+1)], tending to zero, but the image difference is exactly one. These pairs disprove uniform continuity there. The function is nevertheless continuous at each positive input.
Keep the idea
Take it with you
- Uniform continuity requires a single input tolerance for every pair in the domain.
- A Lipschitz estimate supplies uniform continuity, but is a stronger condition.
- Compact domains turn continuity into uniform continuity and prevent close input pairs from escaping.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.