Section Continuous Functions Between Metric Spaces
In our preview activity we saw how to formally define what it means for a function \(f : \R \to \R\) to be continuous at a point.
Note that
Definition 6.2 depends only on being able to measure how close points are to each other. Since that is precisely what a metric does, we can extend this notion of continuity to define continuity for functions between metric spaces. Continuity is an important idea in topology, and we will work with this idea extensively throughout the semester.
If we let \(d_E : \R \times \R \to \R\) be defined by \(d_R(x,y) = | x - y |\text{,}\) then we have seen that \(d_E\) is a metric on \(\R\) (note that \(d_E\) is the Euclidean metric on \(\R\)). Using this metric we can reformulate what it means for a function \(f : \R \to \R\) to be continuous at a point.
Definition 6.3. Alternate Definition.
A function \(f : \R \to \R\) is continuous at a point \(a\) if, given any \(\epsilon \gt 0\text{,}\) there exists a \(\delta \gt 0\) so that \(d_E(x,a) \lt \delta\) implies \(d_E(f(x), f(a)) \lt \epsilon\text{.}\)
This alternate definition depends on the metric \(d_E\text{.}\) We could easily replace the metric \(d\) with any other metric we choose. This allows us to define continuity at a point for functions between metric spaces.
Definition 6.4.
Let \((X,d_X)\) and \((Y, d_Y)\) be metric spaces. A function \(f:X \to Y\) is continuous at \(a \in X\) if, given any \(\epsilon \gt 0\text{,}\) there exists a \(\delta \gt 0\) so that \(d_X(x,a)\lt \delta\) implies \(d_Y(f(x), f(a)) \lt \epsilon\text{.}\)
Once we have defined continuity at a point, we can define continuous functions.
Definition 6.5.
Let \((X,d_X)\) and \((Y, d_Y)\) be metric spaces. A function \(f:X \to Y\) is continuous if \(f\) is continuous at every point in \(X\text{.}\)
Example 6.6.
In general, to prove that a function \(f:X \to Y\) is continuous, where \((X,d_X)\) and \((Y, d_Y)\) are metric spaces, we begin by choosing an arbitrary element \(a\) in \(X\text{.}\) Then we let \(\epsilon\) be a number greater than \(0\) and show that there is a \(\delta \gt 0\) so that \(d_Y(f(x),f(a)) \lt \epsilon\) whenever \(d_X(x,a) \lt \delta\text{.}\) The \(\delta\) we need cannot depend on \(x\) (since \(x\) isn’t known), but can depend on the value of \(a\) that we choose, and will likely depend on \(\epsilon\) as well. That is, there is a function \(C\) of only the independent variables \(a\) and \(\epsilon\) that produces the \(\delta\text{,}\) or \(\delta = C(a,\epsilon)\text{.}\) As an example, let \(X = \R\) and let \(d_X\) be defined as
\begin{equation*}
d_X(x,y) = \min\{|x-y|,1\}\text{.}
\end{equation*}
The proof that
\(d_X\) is a metric is left for
Exercise 9. Consider
\(f : X \to Y\) defined by
\(f(x) = x^2\text{,}\) where
\((Y,d_Y) = (\R, d_E)\text{.}\) To show that
\(f\) is continuous, we let
\(a \in \R\) and let
\(\epsilon \gt 0\text{.}\)
Scratch work. What happens next is not part of the proof, but shows how we go about finding a \(\delta\) we need. We are looking for \(\delta \gt 0\) such that \(d_X(x,a) \lt \delta\) implies that \(d_E(f(x),f(a)) \lt \epsilon\text{.}\) That is, we want to make
\begin{equation*}
d_E(f(x),f(a)) = \sqrt{(f(x)-f(a))^2} = |f(x)-f(a)| = |x^2-a^2| \lt \epsilon
\end{equation*}
whenever
\begin{equation*}
d_X(x,a) = \min\{|x-a|, 1\} \lt \delta\text{.}
\end{equation*}
Now \(|x^2-a^2| = |(x-a)(x+a)| = |x-a| \ |x+a|\text{.}\) If \(d_X(x,a) \lt \delta\text{,}\) then \(\min\{|x-a|, 1\} \lt \delta\text{.}\) If we choose \(\delta \lt 1\text{,}\) then \(d_X(x,a) \lt \delta \lt 1\) implies that \(|x-a| \lt 1\) and so \(d_X(x,a) = |x-a|\text{.}\) Now
\begin{equation*}
|x+a| = |(x-a) + 2a| \leq |x-a| + 2|a| \lt 1+2|a|\text{.}
\end{equation*}
It follows that
\begin{equation*}
|x-a| \ |x+a| \lt \delta(1+2|a|)\text{.}
\end{equation*}
To make this product less that \(\epsilon\text{,}\) we can choose \(\delta\) such that \(\delta(1+2|a|) \lt \epsilon\) or \(\delta \lt \frac{\epsilon}{1+2|a|}\text{.}\) That is, there is a function \(C\) of \(\epsilon\) that gives us the \(\delta\) we want, namely \(\delta = C(a,\epsilon) = \left\{1, \frac{\epsilon}{1+2|a|}\right\}\text{.}\) Now we ignore this paragraph and present the proof, which is essentially reversing the steps we just made. If the steps can’t be reversed, then we have to rethink our argument. The next step in the proof might seem like magic to the uninitiated reader, but we have seen behind the curtain so it isn’t a mystery to us.
Let \(\delta\) be a positive number less than \(\min\left\{1, \frac{\epsilon}{1+2|a|}\right\}\text{.}\) Then
\begin{equation*}
d_X(x,a) = \min\{|x-a|,1\} \lt \delta
\end{equation*}
implies that \(d_X(x,a) \lt \delta \lt 1\) and so \(d_X(x,a) = |x-a| \lt \delta \lt 1\text{.}\) Then
\begin{equation*}
|x+a| = |(x-a) + 2a| \leq |x-a| + 2|a| \lt 1+2|a|\text{.}
\end{equation*}
It follows that
\begin{align*}
d_E(f(x),f(a)) \amp = \sqrt{(f(x)-f(a))^2}\\
\amp = |f(x)-f(a)|\\
\amp = |x^2-a^2|\\
\amp = |(x-a)(x+a)|\\
\amp = |x-a| \ |x+a|\\
\amp \lt \delta (1+2|a|)\\
\amp \lt \left(\frac{\epsilon}{1+2|a|}\right) (1+2|a|)\\
\amp = \epsilon\text{.}
\end{align*}
We conclude that \(f\) is continuous at every point in \(X\) and so \(f\) is a continuous function.
Not all functions are continuous as we see in the next example.
Example 6.7.
Let \(X = Y = \R\) and define \(f : X \to Y\) by \(f(x) = x\text{.}\) Let \(d_X\) be the Euclidean metric and \(d_Y\) the discrete metric. (Recall that \(d_Y(x,y) = 1\) whenever \(x \neq y\text{.}\)) Let \(a \in X\) and let \(0 \lt \epsilon \lt 1\text{.}\)
Let \(\delta \gt 0\text{,}\) and let \(x = a+\frac{\delta}{2}\text{.}\) Then \(x \neq a\) and \(d_X(x,a) \lt \delta\text{.}\) However,
\begin{equation*}
d_Y(f(x),f(a)) = d_Y(x,a) = 1\text{.}
\end{equation*}
So if \(0 \lt \epsilon \lt 1\text{,}\) there is no \(\delta \gt 0\) such that \(d_X(x,a) \lt \delta\) implies that \(d_Y(f(x),f(a)) \lt \epsilon\text{.}\) We conclude that \(f\) is continuous at no point in \(X\text{.}\)
Certain functions are always continuous, as the next activity shows.
Activity 6.2.
(a)
Let \((X, d_X)\) and \((Y, d_Y)\) be metric spaces, and let \(b \in Y\text{.}\) Define \(f : X \to Y\) by \(f(x) = b\) for every \(x \in X\text{.}\) Show that \(f\) is a continuous function.
(b)
Let \((X, d)\) be a metric space. Define the function \(i_X : X \to X\) by \(i_X(x) = x\) for every \(x \in X\text{.}\) Show that \(i_X\) is a continuous function. (The function \(i_X\) is called the identity function on \(X\text{.}\))
(c)
Why doesn’t the argument in part (b) contradict
Example 6.7?
More complicated examples are in the next activity.
Activity 6.3.
Let \(X = (\R^2, d_T)\) and \(Y = (\R^2, d_M)\text{,}\) where
\begin{equation*}
d_T((x_1, x_2), (y_1,y_2)) = | x_1-y_1 | + | x_2-y_2 |
\end{equation*}
is the taxicab metric and
\begin{equation*}
d_M((x_1, x_2), (y_1,y_2)) = \max\{| x_1-y_1 |, | x_2-y_2 |\}
\end{equation*}
is the max metric. Define \(f : \R^2 \to \R^2\) by \(f((a,b)) = (a+b, b)\text{.}\)
(a)
Is \(f\) a continuous function from \(X\) to \(Y\text{?}\) Justify your answer.
(b)
Is \(f\) a continuous function from \(Y\) to \(X\text{?}\) Justify your answer.