From Local Control to One Uniform Choice
Continuity gives control near each point, but the size of the neighborhood it provides may depend on that point. Compactness supplies the key step: if those neighborhoods cover the space, finitely many of them still cover it. This tutorial develops that finite-subcover method for uniform continuity and for uniform bounds on continuous functions.
For a metric space \((X,d_X)\), a map \(f:X\to Y\) into a metric space \((Y,d_Y)\) is continuous at \(x\in X\) if for every \(\varepsilon>0\) there is a \(\delta_x>0\) such that \(d_X(x,y)<\delta_x\) implies \(d_Y(f(x),f(y))<\varepsilon\). The radius \(\delta_x\) may depend on \(x\). The map is uniformly continuous if for every \(\varepsilon>0\) there is one \(\delta>0\) that works for every pair \(x,y\in X\): whenever \(d_X(x,y)<\delta\), we have \(d_Y(f(x),f(y))<\varepsilon\).
A topological space is compact if every cover by open sets has a finite subcover. The proof strategy here is to build an open neighborhood around each point where a desired estimate holds, use compactness to select finitely many such neighborhoods, and then take the most restrictive of the finitely many resulting controls.
Uniform Continuity on a Compact Metric Space
Proof. Suppose first that \(X\ne\varnothing\), and fix \(\varepsilon>0\). For each \(a\in X\), continuity at \(a\), applied with tolerance \(\varepsilon/3\), gives a radius \(r_a>0\) such that \(d_X(a,z)<r_a\) implies \(d_Y(f(a),f(z))<\varepsilon/3\). Consider the open balls \(B_{d_X}(a,r_a/2)\), one for each \(a\in X\). They cover \(X\), since \(a\) belongs to its own ball. Compactness gives a finite subcover with centers \(a_1,\ldots,a_m\). Set \(\delta=\min_{1\le i\le m} r_{a_i}/2\), which is positive because it is the minimum of finitely many positive numbers. Now let \(x,y\in X\) satisfy \(d_X(x,y)<\delta\). Choose an index \(i\) such that \(d_X(x,a_i)<r_{a_i}/2\). Then \(d_X(y,a_i)\le d_X(y,x)+d_X(x,a_i)<\delta+r_{a_i}/2\le r_{a_i}\). Both \(x\) and \(y\) are therefore within \(r_{a_i}\) of \(a_i\). The choices of the radii give \(d_Y(f(x),f(a_i))<\varepsilon/3\) and \(d_Y(f(y),f(a_i))<\varepsilon/3\). By the triangle inequality, \(d_Y(f(x),f(y))<2\varepsilon/3<\varepsilon\). This single \(\delta\) works for every pair \(x,y\), proving uniform continuity. \(\square\)
The cover uses balls with half the radii supplied by continuity. That margin matters: if \(x\) is in one of those smaller balls and \(y\) is sufficiently close to \(x\), then \(y\) is still within the full radius around the same center. Taking a minimum of the finitely many half-radii gives one distance control for the whole space.
Worked Example: Squaring on a Compact Interval
Let \(X=[-1,1]\) with the metric inherited from \(\mathbb{R}\), and define \(f:X\to\mathbb{R}\) by \(f(x)=x^2\). The interval is compact, and \(f\) is continuous, so the theorem guarantees uniform continuity. We can also find an explicit uniform choice.
For \(x,y\in[-1,1]\), factor the difference and estimate each factor: \(|x^2-y^2|=|x-y||x+y|\le 2|x-y|\), because \(|x+y|\le |x|+|y|\le 2\). Given \(\varepsilon>0\), choose \(\delta=\varepsilon/2\). If \(|x-y|<\delta\), then \(|f(x)-f(y)|\le 2|x-y|<2\delta=\varepsilon\). The choice does not depend on \(x\) or \(y\), as required.
Check: for \(\varepsilon=1/5\), the formula gives \(\delta=1/10\). Taking \(x=1/2\) and \(y=9/20\), we have \(|x-y|=1/20<1/10\), while \(|f(x)-f(y)|=|1/4-81/400|=|100/400-81/400|=19/400<1/5\). The estimate and the chosen strict inequality agree.
This example has a direct algebraic estimate, so it does not need a finite cover to find \(\delta\). The theorem is more general: it applies even when no simple formula for the dependence of \(f(x)\) on \(x\) is available. Its finite-cover proof is precisely what converts the separate continuity radii into one uniform choice.
Finite Subcovers Also Produce Uniform Bounds
Proof. Assume \(X\ne\varnothing\). For every \(a\in X\), continuity makes \(U_a=f^{-1}((f(a)-1,f(a)+1))\) open, and \(a\in U_a\). These sets cover \(X\), so compactness gives a finite subcover \(U_{a_1},\ldots,U_{a_m}\). If \(x\in X\), it belongs to some \(U_{a_i}\), which means \(|f(x)-f(a_i)|<1\). The triangle inequality gives \(|f(x)|\le |f(a_i)|+|f(x)-f(a_i)|<|f(a_i)|+1\). Let \(M=1+\max_{1\le i\le m}|f(a_i)|\). This is a finite real number, and the displayed inequality gives \(|f(x)|<M\), hence \(|f(x)|\le M\), for every \(x\in X\). \(\square\)
The local allowance in this proof is \(1\), but the same method works with any fixed positive allowance. What matters is that finitely many centers suffice: their finitely many function values have a finite maximum, which then controls all values on the space.
Worked Example: Bounding a Coordinate on the Circle
Give \(S^1=\{z\in\mathbb{C}:|z|=1\}\) the metric inherited from \(\mathbb{C}\), and consider \(f:S^1\to\mathbb{R}\), \(f(z)=\operatorname{Re}(z)\). This map is continuous: for \(z,w\in\mathbb{C}\), \(|\operatorname{Re}(z)-\operatorname{Re}(w)|\le |z-w|\), so a small change in \(z\) forces a small change in its real part. The circle is compact, and the boundedness theorem applies.
Here is the finite-cover estimate in detail. For each \(a\in S^1\), let \(U_a=\{z\in S^1:|\operatorname{Re}(z)-\operatorname{Re}(a)|<1\}\). This is open in the subspace topology, since it is the inverse image of the open interval \((\operatorname{Re}(a)-1,\operatorname{Re}(a)+1)\) under the continuous map \(f\); it contains \(a\). Compactness supplies a finite subcover with centers \(a_1,\ldots,a_m\). For each center, \(|\operatorname{Re}(a_i)|\le |a_i|=1\). If \(z\in U_{a_i}\), then \(|\operatorname{Re}(z)|\le|\operatorname{Re}(a_i)|+|\operatorname{Re}(z)-\operatorname{Re}(a_i)|<1+1=2\). Thus the finite-subcover argument gives the uniform bound \(|f(z)|\le 2\).
Check: for \(z\in S^1\), writing \(z=u+iv\) gives \(u^2+v^2=|z|^2=1\). Hence \(|f(z)|=|u|\le1\), which verifies the bound \(2\) and gives a sharper direct bound for this particular function.
A Uniform Positive Lower Bound
The same method controls a function away from zero. The function values need not be bounded above or below by a useful single local estimate in advance: positivity and continuity provide neighborhoods with positive local lower bounds, and compactness reduces these to finitely many.
Proof. For each \(a\in X\), continuity at \(a\) gives an open set \(U_a\) containing \(a\) on which \(|g(y)-g(a)|<g(a)/2\). The right-hand tolerance is positive because \(g(a)>0\). For \(y\in U_a\), this inequality implies \(g(y)>g(a)-g(a)/2=g(a)/2\). The \(U_a\) cover \(X\), so finitely many, say \(U_{a_1},\ldots,U_{a_m}\), cover \(X\). Set \(c=\min_{1\le i\le m}g(a_i)/2\). Each number in this finite minimum is positive, so \(c>0\). Every \(y\in X\) lies in some \(U_{a_i}\), and therefore \(g(y)>g(a_i)/2\ge c\). In particular, \(g(y)\ge c\) for every \(y\in X\). \(\square\)
Worked Example: A Positive Function on the Unit Interval
Let \(I=[0,1]\) with its usual topology, and define \(g(t)=1+t\). For each \(a\in I\), use the open neighborhood \(U_a=\{t\in I:|t-a|<(1+a)/2\}\). It contains \(a\), and it is open in \(I\) because it is the intersection of \(I\) with an open interval in \(\mathbb{R}\). For \(t\in U_a\), \[ g(t)=1+t=1+a+(t-a)>1+a-\frac{1+a}{2}=\frac{1+a}{2}\ge\frac12. \] The sets \(U_a\) cover \(I\). A finite subcover exists by compactness, and the calculation gives the same lower bound \(1/2\) on each selected neighborhood, hence on all of \(I\).
Check: directly, \(0\le t\le1\) implies \(g(t)=1+t\ge1>1/2\). Thus the uniform bound obtained from the local-neighborhood argument is valid, though not the sharpest possible one.
Common Pitfall: Pointwise Choices Need Not Be Uniform
Continuity at every point does not by itself produce a single \(\delta\) that works everywhere. Compactness in the uniform-continuity theorem is a substantive hypothesis, not a formality. For a concrete failure, take \(X=[0,\infty)\) with its usual metric and \(f(x)=x^2\). This function is continuous at every \(x\), but it is not uniformly continuous.
To verify the failure, for each \(n\in\mathbb{N}\) set \(x_n=n\) and \(y_n=n+1/n\). Their distance is \(|x_n-y_n|=1/n\), which tends to \(0\). But their function values differ by \[ |f(y_n)-f(x_n)|=\left(n+\frac1n\right)^2-n^2 =n^2+2+\frac1{n^2}-n^2 =2+\frac1{n^2}>2. \] If uniform continuity held with output tolerance \(\varepsilon=1\), some \(\delta>0\) would work for every pair. Choose \(n\in\mathbb{N}\) large enough that \(1/n<\delta\). Then \(|x_n-y_n|<\delta\), but \(|f(y_n)-f(x_n)|>2>1\), a contradiction. The pointwise radii can shrink as the location moves farther out, and there is no finite subcover argument available for this noncompact domain.
A useful way to audit a proof is to ask whether the claimed radius or bound depends on the point. If it does, one still needs a reason that finitely many local choices suffice. Compactness supplies that reason for open covers; pointwise continuity alone does not.
Check Your Understanding
For each question, identify the local neighborhoods and explain where compactness is used.
- In the uniform-continuity proof, why are balls of radius \(r_a/2\) used for the cover instead of balls of radius \(r_a\)?
- Show directly that \(f(x)=3x+1\) on \([0,1]\) is uniformly continuous by giving a \(\delta\) for a prescribed \(\varepsilon>0\).
- In the boundedness proof, which finite set of function values determines the final bound?
- Why does the positive-lower-bound proposition require \(X\ne\varnothing\) as stated?
- For \(f(x)=x^2\) on \([0,\infty)\), verify that the pairs \(n\) and \(n+1/n\) contradict uniform continuity for output tolerance \(1\).