Uniform continuity
The question
- 1 SeePut an input tolerance to the test.
- 2 TryFind tolerances for two restricted intervals.
- 3 ProveBuild the Heine–Cantor proof.
- 4 ApplyFind guarantees and check counterexamples.
Before you start · 3 quick checks on distance, continuity, and sequence limits
Two ideas before you start
2 ideasA window around one input
A line with a shaded input window centered at a selected point.
At a fixed center \(a\), compare each nearby output with \(f(a)\). The center is known when you choose the window.
Exact definition
Let \(f:D\to\mathbb R\), with \(D\subseteq\mathbb R\), and let \(a\in D\). The function is continuous at \(a\) if for every output tolerance \(\varepsilon\gt0\) there exists an input tolerance \(\delta\gt0\) such that every \(x\in D\) satisfies
\[ |x-a|\lt\delta\ \Longrightarrow\ |f(x)-f(a)|\lt\varepsilon. \]Continuity on \(D\) means this holds at each \(a\in D\). The choice of \(\delta\) can use \(a\) and \(\varepsilon\). At an endpoint, test only inputs in \(D\). See the epsilon–delta definition of a limit and continuity and the intermediate value theorem.
One tolerance for all pairs
A horizontal line with two marked inputs that move together.
For uniform continuity, choose \(\delta\) with only \(\varepsilon\) given. The same \(\delta\) must work wherever the two inputs lie in the domain.
Exact definition
A function \(f:D\to\mathbb R\) is uniformly continuous on \(D\) if for every \(\varepsilon\gt0\) there exists a \(\delta\gt0\) such that all \(x,y\in D\) satisfy
\[ |x-y|\lt\delta\ \Longrightarrow\ |f(x)-f(y)|\lt\varepsilon. \]The domain \(D\) and function \(f\) are fixed before choosing \(\delta\). Once the choice is made, either input can serve as the center. Fixing one of them gives continuity at that point.
Fine print on the two boundaries
A pair whose input gap equals \(\delta\) is outside the test. A pair strictly inside the input tolerance whose output gap equals \(\varepsilon\) fails the test. These conventions matter when asking for the largest working \(\delta\).
Ordinary continuity and uniform continuity both concern pairs in the stated domain. Changing the domain changes the set of pairs the guarantee covers.
Defend your input tolerance
- Choose a positive \(\delta\) for the whole domain and press Test my δ.
- Check both distances in the reply. A failing pair must be strictly inside your input tolerance.
Why this reply works for any positive δ
Put endpoints on the domain
Check your prediction to open the explorer.
- Choose a \(\delta\). Compare the limiting output gap with the current \(\varepsilon\), then finish the goal to load a new interval.
Where the limiting gap comes from
Write the domain as \([a,b]\), with \(0\lt a\lt b\). Order a pair as \(x\) and \(x+h\), where \(h\ge0\) is its separation. Both inputs must be in the interval. The output gap equals
\[ \frac{1}{x}-\frac{1}{x+h}=\frac{h}{x(x+h)}. \]For fixed \(h\), the gap is largest at the allowed start \(x=a\). At that start the gap is \(1/a-1/(a+h)\), which increases strictly as \(h\) increases. For \(0\lt\delta\le b-a\), allowed separations approach \(\delta\) from below, so the gaps have supremum \(1/a-1/(a+\delta)\). A supremum is a least upper bound.
If this bound equals \(\varepsilon\), every allowed gap is still strictly less than \(\varepsilon\). If the bound exceeds \(\varepsilon\), continuity of the formula in \(h\) gives a failing pair starting at \(a\) with \(h\lt\delta\). The explorer’s choices all satisfy \(\delta\le b-a\). For \(\delta\gt b-a\), both endpoints can be used together, so the largest allowed gap is then attained.
A guarantee on a closed bounded interval
Let \(a\le b\) be finite real numbers and let \(f:[a,b]\to\mathbb R\) be continuous at each point of \([a,b]\), using inputs from that interval. Then \(f\) is uniformly continuous on \([a,b]\). If \(a=b\), all output gaps are zero, so any positive \(\delta\) works.
Refresher on subsequences and closed intervals
A subsequence \(x_{n_k}\) keeps terms with strictly increasing indices \(n_k\), so \(n_k\to\infty\). Recall from convergent sequences that all sufficiently late terms of a convergent sequence lie as close as requested to its limit.
Every sequence in a closed bounded real interval has a subsequence converging to a point in that interval. To see this, halve the interval and keep a closed half that contains \(x_n\) for infinitely many indices \(n\). Repeat in the retained half. Completeness of the real numbers gives a common point in the nested closed intervals, whose lengths shrink to zero. Choose an index from each successive interval larger than the previous index. Each chosen term is within its interval’s length of the common point, so the chosen terms converge to it.
If \(z_k\to c\) with \(z_k\) in the domain and \(f\) is continuous at \(c\), then \(f(z_k)\to f(c)\). Given any output tolerance, continuity supplies a radius about \(c\). Eventually the inputs \(z_k\) are inside that radius.
For \(a\lt b\), suppose uniform continuity fails. Fix a tolerance \(\varepsilon_*\gt0\) for which it fails. For each positive integer \(n\), choose a pair \(x_n,y_n\) that fails at \(\delta=1/n\). Build the proof from these pairs.
Find a tolerance or a failing pair
Use a gap bound when you need a guarantee. To disprove a guarantee, give a pair that passes the input test and fails the output test.
Further reading
- S. Abbott, Understanding Analysis, sections on continuity and compact sets.
- W. Rudin, Principles of Mathematical Analysis, chapter on continuity.