Homework 3

Table of Contents

Problem 1

Show (iii)     \implies (i) and (iv)     \iff (i) of Theorem 2.1.5 and give examples of:

  1. A continuous function f ⁣:XY\func{f}{X}{Y} such that there exists some open set UXU \subseteq X such that f(U)f\p{U} is not open in YY;

  2. A continuous function f ⁣:XY\func{f}{X}{Y} such that there exists some closed set KXK \subseteq X such that f(K)f\p{K} is not closed in YY.

Theorem (2.1.5)

Let (X,dX)\p{X, d_X} be a metric space, and let (Y,dY)\p{Y, d_Y} be another metric space. Let f ⁣:XY\func{f}{X}{Y} be a function. Then the following four statements are equivalent:

  1. f is continuous.
  2. Whenever (x(n))n=1\p{x^{\p{n}}}_{n=1}^\infty is a sequence in XX which converges to some point x0Xx_0 \in X with respect to the metric dXd_X, the sequence (f(x(n)))n=1\p{f\p{x^{\p{n}}}}_{n=1}^\infty converges to f(x0)f\p{x_0} with respect to the metric dYd_Y.
  3. Whenever VV is an open set in YY, the set f1(V){xX|f(x)V}f^{-1}\p{V} \coloneqq \set{x \in X \st f\p{x} \in V} is an open set in XX.
  4. Whenever FF is a closed set in YY, the set f1(F){xXf(x)F}f^{-1}\p{F} \coloneqq \set{x \in X \mid f\p{x} \in F} is a closed set in XX.
Solution.

(iii)     \implies (i):

Let x0Xx_0 \in X and ε>0\varepsilon > 0. Consider BY(f(x0),ε)B_Y\p{f\p{x_0}, \varepsilon}, which is an open set (by the long proposition). Thus, by assumption, f1(BY(f(x0),ε))f^{-1}\p{B_Y\p{f\p{x_0}, \varepsilon}} is also open and contains x0x_0 by construction. Thus, (by the long proposition again, x0x_0 is an interior point, so) there exists δ>0\delta > 0 such that BX(x0,δ)f1(BY(f(x0),ε))B_X\p{x_0, \delta} \subseteq f^{-1}\p{B_Y\p{f\p{x_0}, \varepsilon}}. In other words,

dX(x,x0)<δ    xBX(x0,δ)    xf1(BY(f(x0),ε))    f(x)BY(f(x0),ε)    dY(f(x),f(x0))<ε,\begin{aligned} d_X\p{x, x_0} < \delta &\implies x \in B_X\p{x_0, \delta} \\ &\implies x \in f^{-1}\p{B_Y\p{f\p{x_0}, \varepsilon}} \\ &\implies f\p{x} \in B_Y\p{f\p{x_0}, \varepsilon} \\ &\implies d_Y\p{f\p{x}, f\p{x_0}} < \varepsilon, \end{aligned}

so ff is continuous at x0x_0 because ε\varepsilon was arbitrary. Since x0x_0 was also arbitrary, this shows that ff is continuous.

(iii)     \iff (iv):

Given any subset EYE \subseteq Y, we have

xf1(YE)    f(x)YE    f(x)E    xf1(E)    xXf1(E).\begin{aligned} x \in f^{-1}\p{Y \setminus E} &\iff f\p{x} \in Y \setminus E \\ &\iff f\p{x} \notin E \\ &\iff x \notin f^{-1}\p{E} \\ &\iff x \in X \setminus f^{-1}\p{E}. \end{aligned}

In other words,

f1(YE)=Xf1(E).()f^{-1}\p{Y \setminus E} = X \setminus f^{-1}\p{E}. \tag{$*$}

If (iii) holds, then given a closed set FYF \subseteq Y, (the long proposition implies) its complement YFY \setminus F is open, so by (iii), f1(YF)f^{-1}\p{Y \setminus F} is open and by (*), its complement is f1(F)f^{-1}\p{F} and must be closed.

Similarly, if (iv) holds, then given an open VYV \subseteq Y, its complement YVY \setminus V is closed. Using (iv), f1(YV)f^{-1}\p{Y \setminus V} is closed and using (*) again, we see f1(V)f^{-1}\p{V} must be open.

Examples

  1. Let X=Y=RX = Y = \R and consider the constant function f(x)=0f\p{x} = 0, which is trivially continuous. Then U=XU = X is open (since the entire metric space is both open and closed in itself), but f(U)={0}f\p{U} = \set{0}, which is not open in R\R.

  2. Let X=Y=RX = Y = \R and consider the function f(x)=11+x2f\p{x} = \frac{1}{1 + x^2}, which is continuous since 1+x21 + x^2 is continuous and is never 00. If we take K=RK = \R, then KK is closed (by the same reasoning above) and f(K)=(0,1]f\p{K} = \poc{0, 1}, which is not closed in R\R.

Common Mistakes

The most common mistakes were giving examples since the choice of XX and YY can make or break your example. For example, if you define f ⁣:R{0}\func{f}{\R}{\set{0}} by f(x)=0f\p{x} = 0, then while it's true that f(R)={0}f\p{\R} = \set{0} still, the problem is that in the (discrete) metric space {0}\set{0}, the singleton {0}\set{0} is open.

Similarly, I saw some students use f ⁣:R[0,)\func{f}{\R}{\pco{0, \infty}}, f(x)=x2f\p{x} = x^2, and U=(1,1)U = \p{-1, 1}. The issue here is that [0,)\pco{0, \infty} has different open sets from R\R itself. Indeed, f(U)=(0,1]f\p{U} = \poc{0, 1} which is not open in R\R, but is relatively open in [0,)\pco{0, \infty} since

[0,1)=(1,1)[0,).\pco{0, 1} = \p{-1, 1} \cap \pco{0, \infty}.

See Proposition 1.3.4.

Problem 4

Prove Proposition 2.3.2. (Hint: modify the proof of Proposition 9.6.7.)

Proposition (2.3.2; Maximum principle)

Let (X,d)\p{X, d} be a compact metric space, and let f ⁣:XR\func{f}{X}{\R} be a continuous function. Then ff is bounded. Furthermore, if XX is non-empty, then ff attains its maximum at some point xmaxXx_{\max} \in X and also attains its minimum at some point xminXx_{\min} \in X.

Solution.

First, if we can show that all continuous functions on compact metric spaces attain a maximum, then they also attain a minimum. Indeed, note that f-f is continuous, so there exists xminXx_{\min} \in X such that f(xmin)=sup(f(X))-f\p{x_{\min}} = \sup \p{-f\p{X}} by assumption. Finally, recall from 131A that

inff(X)=sup(f(X)).=(f(xmin))=f(xmin),\inf f\p{X} = -\sup \p{-f\p{X}}. = -\p{-f\p{x_{\min}}} = f\p{x_{\min}},

so ff also attains a minimum. Thus, we only need to show that ff attains its maximum. (Alternatively, you can just redo the whole proof with supf(X)\sup f\p{X} replaced with inff(X)\inf f\p{X}.)

Since XX is compact and ff is continuous, its image f(X)f\p{X} is also compact, which means ff is automatically bounded. If XX \neq \emptyset, then f(X)f\p{X} \neq \emptyset and is bounded, so supf(X)\sup f\p{X} exists in R\R. Recall (from 131A) that there is a sequence (yn)nf(X)\p{y_n}_n \subseteq f\p{X} such that ynsupf(X)y_n \to \sup f\p{X}.

From here, there are two ways to finish the problem.

Solution 1 (using abstract nonsense)

We have shown that supf(X)\sup f\p{X} is an adherent point of f(X)f\p{X}. Since f(X)f\p{X} is compact, it is also closed, so supf(X)f(X)\sup f\p{X} \in f\p{X} or in other words, there exists xmaxXx_{\max} \in X such that f(xmax)=supf(X)f\p{x_{\max}} = \sup f\p{X}.

Solution 2 (using sequences)

By definition of f(X)f\p{X}, for each nNn \in \N, there exists xnXx_n \in X such that f(xn)=ynf\p{x_n} = y_n. Since XX is compact, there is a convergent subsequence (xnk)k\p{x_{n_k}}_k which converges to some x0Xx_0 \in X. Thus, because ff is continuous,

f(x0)=limkf(xnk)=limkynk=supf(X),f\p{x_0} = \lim_{k\to\infty} f\p{x_{n_k}} = \lim_{k\to\infty} y_{n_k} = \sup f\p{X},

so we can take xmax=x0x_{\max} = x_0.