From Local Continuity to Global Structure
Continuity can be expressed in more than one language. At a point, the epsilon–delta definition describes how nearby inputs produce nearby outputs. Topologically, continuity is tested by preimages: the Open-Set Criterion for Continuity says that preimages of open sets are open in the domain, and the Closed-Set Criterion for Continuity gives the corresponding test using closed sets. These are not separate notions of continuity; they are different ways to track the same relationship between inputs and outputs.
Compactness adds a global ingredient. A continuous image of a compact set is compact, and a continuous real-valued function on a nonempty compact set attains its minimum and maximum. Combining these facts with closed sets gives a useful conclusion that neither local continuity nor set avoidance alone supplies: if a compact image misses a closed set, then it misses that set by a positive distance. We will prove this separation result and then show that it makes avoidance stable under sufficiently small uniform changes.
Preimages in the Relative Topology
When a function is defined on a subset \(E\subseteq\mathbb{R}\), openness and closedness of a preimage are understood relative to \(E\). A set \(A\subseteq E\) is open in \(E\) if it has the form \(A=E\cap V\) for some open \(V\subseteq\mathbb{R}\). It is closed in \(E\) if its complement \(E\setminus A\) is open in \(E\). Thus, a preimage need not be open or closed in the whole real line in order to satisfy the relevant continuity criterion.
Worked Example: An Open Preimage on a Restricted Domain
Let \(E=[-1,2]\), and define \(f:E\to\mathbb{R}\) by \(f(x)=x^2\). Take the open set \(U=(1,4)\). To find its preimage, solve \(1<x^2<4\). This is equivalent to \(1<|x|<2\), so in the real line the solutions lie in \((-2,-1)\cup(1,2)\). Intersecting with the domain gives
The set \((1,2)\) is open in \(E\), since it is the intersection of \(E\) with the open set \((1,2)\) in \(\mathbb{R}\). The negative branch contributes no points: the only point of \([-1,2]\) at the left endpoint of that branch is \(-1\), and \(f(-1)=1\notin U\). Since \(f\) is continuous, the Open-Set Criterion guarantees that this preimage is relatively open.
Worked Example: A Closed Preimage on a Compact Domain
Let \(K=[-2,2]\), and set \(q(x)=x^2+1\). The set \([1,2]\) is closed in \(\mathbb{R}\). Solving \(1\leq x^2+1\leq2\) gives \(x^2\leq1\), hence
This preimage is closed in \(K\): it is the intersection \(K\cap[-1,1]\), and it is also closed in \(\mathbb{R}\). The Closed-Set Criterion gives the general reason that preimages of closed sets under a continuous function are closed relative to the domain. The calculation here makes the relative-domain check explicit.
These examples illustrate a useful discipline: first solve the condition defining the preimage, then interpret the resulting set in the domain’s topology. In particular, one should not silently replace “open in \(E\)” with “open in \(\mathbb{R}\).” Relative openness is exactly what the continuity criterion requires when the function’s domain is \(E\).
Compactness Creates Positive Separation
Suppose \(f(K)\) avoids a closed set \(F\). Avoidance alone says that no output belongs to \(F\); it does not say how close outputs may get to \(F\). On a compact domain, continuity rules out arbitrarily close approaches without an actual intersection. The next theorem expresses that fact quantitatively.
Proof. By the Continuous Image of a Compact Set Theorem, \(C=f(K)\) is compact. For \(y\in\mathbb{R}\), define its distance from \(F\) by
This infimum is finite because \(F\) is nonempty. For any \(u,v\in\mathbb{R}\) and \(z\in F\), the triangle inequality gives \(|u-z|\leq|u-v|+|v-z|\). Taking the infimum over \(z\in F\) yields \(d(u,F)\leq|u-v|+d(v,F)\). Interchanging \(u\) and \(v\) then shows
Thus \(y\mapsto d(y,F)\) is continuous. By the Extreme Value Theorem, it attains a minimum on the nonempty compact set \(C\), say at \(y_0\in C\). Since \(C\cap F=\varnothing\), \(y_0\notin F\). Because \(F\) is closed, its complement is open, so there is an \(r>0\) such that \((y_0-r,y_0+r)\cap F=\varnothing\). Consequently \(|y_0-z|\geq r\) for every \(z\in F\), and \(d(y_0,F)\geq r>0\). Set \(\eta=d(y_0,F)\). Since \(\eta\) is the minimum of \(d(y,F)\) over \(C\), every \(y\in C\) and \(z\in F\) satisfy \(|y-z|\geq d(y,F)\geq\eta\). Taking \(y=f(x)\) proves the claim. \(\square\)
The proof combines topology and metric information in a specific order. Compactness makes the image compact; the distance function is continuous; and the minimum distance is attained. Closedness of \(F\) ensures that this attained distance is positive at each point of the image. Without compactness, the infimum of the distances could be zero without any image point belonging to \(F\).
Worked Example: A Continuous Image Separated from Zero
Let \(K=[-3,2]\), \(f(x)=x^2+2\), and \(F=\{0\}\). The set \(K\) is compact, \(f\) is continuous, and \(f(K)\) does not meet \(F\). More explicitly, \(x^2\geq0\), so \(f(x)\geq2\) for every \(x\in K\), with equality at \(x=0\). Therefore
The theorem guarantees positive separation, and this calculation identifies a valid separation constant: \(\eta=2\). In particular, \(f\) has no values near zero on this domain. The calculation also confirms that the minimum is attained rather than merely approached.
Uniform Perturbations Preserve Avoidance
Positive separation has a stability consequence. Once a compact image stays a definite distance from a closed set, a second function that remains uniformly close to the first cannot reach that closed set. The perturbed function need not be continuous for this conclusion; the uniform error bound is the relevant condition.
Proof. Fix \(x\in K\). For any \(z\in F\), the triangle inequality gives
Thus \(g(x)\neq z\) for every \(z\in F\), so \(g(x)\notin F\). This holds for each \(x\in K\); hence \(g(K)\cap F=\varnothing\). \(\square\)
To use this result when \(f\) is continuous on a compact set, first apply Positive Separation from a Closed Set to obtain \(\eta\). The stability theorem then allows any uniform error smaller than \(\eta\). The strict inequality matters: an error bound equal to the separation may be large enough to move a value onto \(F\).
Worked Example: A Perturbation That Stays Positive
On \(K=[-1,1]\), let \(f(x)=x^2+1\) and \(g(x)=x^2+1+\frac{1}{4}\sin(3x)\). Take \(F=\{0\}\). Since \(x^2+1\geq1\), the function \(f\) is at least distance \(1\) from \(F\). Also, \(|\sin(3x)|\leq1\), so for every \(x\in K\),
Stability of Avoidance applies with \(\eta=1\) and \(q=\frac14\), and therefore \(g(K)\) does not meet \(\{0\}\). In fact, the estimate gives the stronger explicit bound
The uniform error estimate works across the whole interval, including points where the sine term is negative. Pointwise smallness at selected inputs would not be enough for this conclusion.
Why the Compactness Hypothesis Matters
Continuity by itself does not guarantee positive separation. For example, define \(f:(0,1)\to\mathbb{R}\) by \(f(x)=x\), and let \(F=\{0\}\). The function is continuous and its image avoids \(F\), but the distances \(|f(x)-0|=x\) have infimum zero. For each \(\eta>0\), there is an \(x\in(0,1)\) with \(x<\eta\), so no positive uniform lower bound exists. The domain is bounded, but it is not compact: it omits its limit point \(0\).
This example separates three claims that are easy to conflate: every value avoids a set, every value has positive distance from the set, and all values have one common positive lower bound on that distance. The first does not imply the third on an arbitrary domain. Compactness and continuity together supply the uniform conclusion in the theorem.
The synthesis is useful in problems about zeros, signs, and perturbations. If a continuous function on a compact domain has no zero, positive separation from \(\{0\}\) gives a uniform lower bound on its absolute value. If its range avoids a closed interval or another closed set, the same reasoning supplies a uniform gap. Conversely, if compactness is missing, a sequence of inputs can drift toward an omitted boundary point while the outputs approach the forbidden set.
Identify the image \(f(K)\), the open or closed set under consideration, and the relevant preimage or avoidance condition.
For preimages, use openness or closedness relative to the domain. For a uniform separation conclusion, verify compactness of the domain.
Apply the appropriate preimage criterion or the Continuous Image of a Compact Set Theorem.
When the compact image misses a closed set, use the positive gap to control uniform perturbations.
Check Your Understanding
Use relative topology, compactness, and the separation arguments to answer the following questions.
- What does it mean for a preimage to be open in a domain \(E\), rather than open in all of \(\mathbb{R}\)?
- In the Positive Separation from a Closed Set proof, where are compactness and closedness each used?
- Why does the continuous function \(f(x)=x\) on \((0,1)\) avoid zero without being uniformly separated from zero?
- In the Stability of Avoidance theorem, why must the uniform error bound be strictly smaller than the separation constant?
- If a continuous function on a compact domain never vanishes, which choice of closed set lets the separation theorem give a uniform lower bound on its absolute value?