Using Compactness to Control an Inverse
Uniform continuity controls how much outputs can change when inputs are close. A related question reverses the direction: if two function values are close, must their inputs be close? For an injective function, this asks whether its inverse behaves continuously, or even uniformly continuously.
The previous tutorial established that uniform continuity preserves Cauchy sequences and used Cauchy sequences to construct extensions. Here we use a different sequence argument. Compactness lets us extract convergent subsequences from inputs that might otherwise escape or behave unpredictably. Continuity identifies the limits of their function values, and injectivity then forces the input limits to agree.
The argument is useful because it does not require a formula for the inverse. It proves a general result: if \(K\) is compact and \(f:K\to\mathbb{R}\) is continuous and injective, then the inverse function from \(f(K)\) back to \(K\) is uniformly continuous. We first isolate the sequence argument that drives the proof.
A Sequence Lemma for Injective Functions
Proof. Suppose the conclusion fails. Then there is an \(\varepsilon_0>0\) and a subsequence of indices \(n_j\) such that
for every \(j\). By sequential compactness of \(K\), a result established earlier in the course, the sequence \((x_{n_j})\) has a subsequence converging to some \(x\in K\). Along that subsequence, the corresponding \(z\)-terms are still in \(K\), so they have a further subsequence converging to some \(z\in K\). Denote the resulting common subsequence of indices by \(j_\ell\). Then
Continuity gives \(f(x_{n_{j_\ell}})\to f(x)\) and \(f(z_{n_{j_\ell}})\to f(z)\). Since \(|f(x_n)-f(z_n)|\to0\), the difference of these two limits is zero:
Thus \(f(x)=f(z)\), and injectivity implies \(x=z\). But taking limits in \(|x_{n_{j_\ell}}-z_{n_{j_\ell}}|\geq\varepsilon_0\) gives \(|x-z|\geq\varepsilon_0\), contradicting \(x=z\). The contradiction proves that \(|x_n-z_n|\to0\). \(\square\)
This proof has a useful Cauchy-sequence interpretation. If the input distances did not tend to zero, we could select pairs separated by a fixed positive amount. Compactness would give convergent subsequences of both members of those pairs. Every convergent sequence is Cauchy, so continuity would make the corresponding function values converge, while their differences tend to zero. The two limiting inputs would have to be equal by injectivity, despite remaining separated. That is the contradiction.
The Inverse Is Uniformly Continuous
Proof. Suppose, to the contrary, that \(f^{-1}\) is not uniformly continuous on \(f(K)\). By the definition of uniform continuity, there is an \(\varepsilon_0>0\) such that for every \(\delta>0\), there are \(u,v\in f(K)\) satisfying
For each positive integer \(n\), use \(\delta=1/n\) to choose \(u_n,v_n\in f(K)\) with these properties. Set \(x_n=f^{-1}(u_n)\) and \(z_n=f^{-1}(v_n)\). Then \(x_n,z_n\in K\), and
The lemma says that \(|x_n-z_n|\to0\), contradicting the second inequality. Therefore \(f^{-1}\) is uniformly continuous on \(f(K)\). \(\square\)
The proof uses compactness where an arbitrary sequence of inputs is replaced by convergent subsequences. It uses continuity to pass from limits of inputs to limits of function values, and injectivity to identify inputs with equal limiting function values. The failure of uniform continuity supplies pairs whose outputs approach one another while their inverse values stay separated; the lemma rules out precisely that behavior.
Worked Examples
Worked Example: The Inverse of the Cube Function
Let \(K=[-1,1]\) and \(f(x)=x^3\). The interval \(K\) is compact, and the polynomial \(f\) is continuous. It is also injective: if \(x<y\), then
The second factor is positive whenever \(x<y\), because \(y^2+xy+x^2=0\) can hold only when \(x=y=0\). Thus \(f(x)<f(y)\), so \(f\) is strictly increasing and hence injective. Its range is \([-1,1]\), and its inverse is \(f^{-1}(u)=\sqrt[3]{u}\). The theorem shows that this inverse is uniformly continuous on \([-1,1]\).
The inverse is not Lipschitz near zero. If a finite Lipschitz constant \(L\) existed, then for \(0<t\leq1\) we would have
But \(t^{-2/3}\) is unbounded as \(t\to0^+\). Uniform continuity therefore does not require a Lipschitz estimate. The theorem establishes uniform continuity without needing any explicit estimate for the cube-root difference.
Worked Example: A Polynomial Inverse Without a Closed Formula
Define \(f(x)=x+x^3\) on \(K=[-1,1]\). This is a continuous polynomial. For \(x<y\),
The expression \(y^2+xy+x^2\) is nonnegative, since
It follows that \(f(y)-f(x)\geq y-x>0\), so \(f\) is injective. Its range is \([-2,2]\), because \(f(-1)=-2\), \(f(1)=2\), and the continuous strictly increasing function takes every intermediate value. The theorem implies that its inverse on \([-2,2]\) is uniformly continuous, even though solving \(u=x+x^3\) for \(x\) is not needed here.
In fact, this example gives a stronger estimate. For \(x,y\in[-1,1]\), assume first that \(x<y\). The calculation above gives \(|f(y)-f(x)|\geq y-x\). Interchanging \(x\) and \(y\) handles the other order, and equality of the inputs is immediate. Therefore
For \(u=f(x)\) and \(v=f(y)\), this becomes \(|f^{-1}(u)-f^{-1}(v)|\leq|u-v|\). Thus this particular inverse is Lipschitz with constant \(1\).
Worked Example: The Inverse of the Reciprocal Function on a Compact Interval
Let \(K=[1,3]\) and \(f(x)=1/x\). The function is continuous on \(K\), and it is injective: if \(1\leq x<y\leq3\), then \(1/x>1/y\). Its range is \([1/3,1]\), and its inverse is \(f^{-1}(u)=1/u\) on that range. The theorem guarantees that the inverse is uniformly continuous.
Here we can also check the estimate directly. If \(u,v\in[1/3,1]\), then \(uv\geq1/9\), and hence
So the inverse is Lipschitz with constant \(9\), which in particular verifies uniform continuity. The general theorem would still apply if the inverse could not be written in a convenient formula.
Why Compactness Matters
Compactness is not a decorative hypothesis. Without it, a continuous injective function may have an inverse that is not uniformly continuous. Consider \(f:\mathbb{R}\to(0,\infty)\), \(f(x)=e^x\). The exponential function is continuous and strictly increasing, so its inverse is \(f^{-1}(u)=\ln u\). Take \(u_n=1/n\) and \(v_n=2/n\). Both inputs belong to \((0,\infty)\), and
Thus \(\ln\) is not uniformly continuous on \((0,\infty)\). In the sequence proof, the corresponding inputs to \(f\) are \(-\ln n\) and \(\ln(2/n)\). They do not stay in a compact set: both move without bound as \(n\) increases. There is no compactness argument that supplies convergent subsequences in the domain.
This illustrates the precise role of the hypothesis. Compactness prevents the input pairs in a proposed counterexample from escaping all bounded regions. Once subsequences converge, continuity and injectivity force their limits to coincide. On a noncompact domain, close function values can occur at inputs that have no convergent subsequences in the domain, so this proof no longer applies.
A common mistake is to infer uniform continuity of an inverse merely from continuity and injectivity of the original function. The example \(e^x\) shows why that inference fails on a noncompact domain. Another mistake is to assume that a formula for the inverse is necessary. The compactness proof applies equally well to functions whose inverses have no simple expression.
Choose pairs of range points that become arbitrarily close while their inverse values remain separated by a fixed positive amount.
Write the inverse values as \(x_n,z_n\in K\); their function values are the close range points.
Compactness gives subsequences of both input sequences converging to points of \(K\).
The limiting function values agree, so injectivity makes the limiting inputs equal, contradicting their fixed separation.
The Cauchy-sequence viewpoint helps organize the contradiction: compactness gives convergent, and therefore Cauchy, subsequences; continuity carries their limits through \(f\); injectivity prevents distinct input limits from sharing the same output. This method proves a uniform estimate qualitatively, even when no explicit modulus of continuity is available.
Check Your Understanding
Use the compactness argument and the examples above to answer the following questions.
- Where does compactness enter the proof of the sequence lemma?
- Why does the lemma require injectivity as well as continuity?
- How does failure of uniform continuity for \(f^{-1}\) produce sequences to which the lemma applies?
- Why is the inverse of \(x\mapsto x^3\) uniformly continuous on \([-1,1]\), even though it is not Lipschitz near zero?
- Which feature of the exponential example prevents the compact-domain proof from working?
- What conclusion about an inverse can be drawn from continuity, injectivity, and compactness of the original domain?