Homework 3
Table of Contents
Problem 1
Show (iii) ⟹ (i) and (iv) ⟺ (i) of Theorem 2.1.5 and give examples of:
-
A continuous function f:X→Y such that there exists some open set U⊆X such that f(U) is not open in Y;
-
A continuous function f:X→Y such that there exists some closed set K⊆X such that f(K) is not closed in Y.
Theorem (2.1.5)
Let (X,dX) be a metric space, and let (Y,dY) be another metric space. Let f:X→Y be a function. Then the following four statements are equivalent:
- f is continuous.
- Whenever (x(n))n=1∞ is a sequence in X which converges to some point x0∈X with respect to the metric dX, the sequence (f(x(n)))n=1∞ converges to f(x0) with respect to the metric dY.
- Whenever V is an open set in Y, the set f−1(V):={x∈X∣f(x)∈V} is an open set in X.
- Whenever F is a closed set in Y, the set f−1(F):={x∈X∣f(x)∈F} is a closed set in X.
Solution.
(iii) ⟹ (i):
Let x0∈X and ε>0. Consider BY(f(x0),ε), which is an open set (by the long proposition). Thus, by assumption, f−1(BY(f(x0),ε)) is also open and contains x0 by construction. Thus, (by the long proposition again, x0 is an interior point, so) there exists δ>0 such that BX(x0,δ)⊆f−1(BY(f(x0),ε)). In other words,
dX(x,x0)<δ⟹x∈BX(x0,δ)⟹x∈f−1(BY(f(x0),ε))⟹f(x)∈BY(f(x0),ε)⟹dY(f(x),f(x0))<ε,
so f is continuous at x0 because ε was arbitrary. Since x0 was also arbitrary, this shows that f is continuous.
(iii) ⟺ (iv):
Given any subset E⊆Y, we have
x∈f−1(Y∖E)⟺f(x)∈Y∖E⟺f(x)∈/E⟺x∈/f−1(E)⟺x∈X∖f−1(E).
In other words,
f−1(Y∖E)=X∖f−1(E).(∗)
If (iii) holds, then given a closed set F⊆Y, (the long proposition implies) its complement Y∖F is open, so by (iii), f−1(Y∖F) is open and by (∗), its complement is f−1(F) and must be closed.
Similarly, if (iv) holds, then given an open V⊆Y, its complement Y∖V is closed. Using (iv), f−1(Y∖V) is closed and using (∗) again, we see f−1(V) must be open.
Examples
-
Let X=Y=R and consider the constant function f(x)=0, which is trivially continuous. Then U=X is open (since the entire metric space is both open and closed in itself), but f(U)={0}, which is not open in R.
-
Let X=Y=R and consider the function f(x)=1+x21, which is continuous since 1+x2 is continuous and is never 0. If we take K=R, then K is closed (by the same reasoning above) and f(K)=(0,1], which is not closed in R.
Common Mistakes
The most common mistakes were giving examples since the choice of X and Y can make or break your example. For example, if you define f:R→{0} by f(x)=0, then while it's true that f(R)={0} still, the problem is that in the (discrete) metric space {0}, the singleton {0} is open.
Similarly, I saw some students use f:R→[0,∞), f(x)=x2, and U=(−1,1). The issue here is that [0,∞) has different open sets from R itself. Indeed, f(U)=(0,1] which is not open in R, but is relatively open in [0,∞) since
[0,1)=(−1,1)∩[0,∞).
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) be a compact metric space, and let f:X→R be a continuous function. Then f is bounded. Furthermore, if X is non-empty, then f attains its maximum at some point xmax∈X and also attains its minimum at some point xmin∈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 is continuous, so there exists xmin∈X such that −f(xmin)=sup(−f(X)) by assumption. Finally, recall from 131A that
inff(X)=−sup(−f(X)).=−(−f(xmin))=f(xmin),
so f also attains a minimum. Thus, we only need to show that f attains its maximum. (Alternatively, you can just redo the whole proof with supf(X) replaced with inff(X).)
Since X is compact and f is continuous, its image f(X) is also compact, which means f is automatically bounded. If X=∅, then f(X)=∅ and is bounded, so supf(X) exists in R. Recall (from 131A) that there is a sequence (yn)n⊆f(X) such that yn→supf(X).
From here, there are two ways to finish the problem.
Solution 1 (using abstract nonsense)
We have shown that supf(X) is an adherent point of f(X). Since f(X) is compact, it is also closed, so supf(X)∈f(X) or in other words, there exists xmax∈X such that f(xmax)=supf(X).
Solution 2 (using sequences)
By definition of f(X), for each n∈N, there exists xn∈X such that f(xn)=yn. Since X is compact, there is a convergent subsequence (xnk)k which converges to some x0∈X. Thus, because f is continuous,
f(x0)=k→∞limf(xnk)=k→∞limynk=supf(X),
so we can take xmax=x0.