Solutions For Homework 7: Autumn 2015
Solutions For Homework 7: Autumn 2015
Autumn 2015
Solution for Problem 6, page 99. I’ll follow the hint from the assignment and work with
the function F : E → R2 defined by
F (x) = (x, f (x)).
(⇒) Suppose f is continuous. Then, since x 7→ x is continuous, F is continuous by part
(a) of Theorem 4.10 (because its components x 7→ x and f are continuous).
So the graph
Γ(f ) = {(x, f (x)) : x ∈ E}
of f is the image of E through the continuous function F . Since continuous functions preserve
compactness (Theorem 4.14), the graph is indeed compact.
(⇐) Conversely, assume that the graph Γ(f ) is compact. We want to show that f is
continuous, or equivalently (by the corollary to Theorem 4.8) that the inverse image f −1 (C)
of a closed subset C ⊆ R is closed.
f −1 (C) consists of those points x ∈ E such that f (x) ∈ C, or equivalently, such that the
second component of F (x) = (x, f (x)) belongs to C. In other words, f −1 (C) consists of the
first components of those points (x, f (x)) ∈ Γ(f ) which also belong to R × C. If I denote the
two coordinate functions on R2 by φ1 and φ2 as in Example 4.11, so that
φ1 (x1 , x2 ) = x1 and φ2 (x1 , x2 ) = x2 ,
then we’ve just proven the following formula:
f −1 (C) = φ1 Γ(f ) ∩ φ−1
2 (C) . (1)
C ⊆ R is closed, so φ−1 2
2 (C) ⊆ R is closed because the coordinate functions φi are continuous
(Example 4.11).
We are assuming that Γ(f ) is compact, so Γ(f ) ∩ φ−1
2 (C) is again compact, being a closed
subset of a compact metric space (Theorem 2.35).
Finally, φ1 : R2 → R is continuous, so it maps compact sets onto compact sets by Theorem
4.14. All in all, (1) now ensures that f −1 (C) ⊂ E ⊂ R is compact and hence closed by
Theorem 2.34.
Solution for Problem 8, page 99. By uniform continuity there is a δ > 0 such that
|f (x) − f (y)| < 1 provided x, y ∈ E and |x − y| < δ. (2)
1
2
(2) means that each f (E ∩ Ij ) is bounded (because it has diameter ≤ 1), so that f (E) is
contained in a finite union of bounded sets. Finite unions of bounded sets are bounded, so
we are done.
To see that the boundedness of E is essential, take say E = R and define f by f (x) = x for
all x ∈ E. It is immediate that f is uniformly bounded, but the range of f is all of R which
is unbounded.
Solution for Problem 11, page 99. I will give the alternate proof for Problem 13 sepa-
rately, after this one. Here, I’m just showing that (f (xn ))n is Cauchy if f : X → Y is
uniformly continuous and (xn )n is Cauchy.
Fix ε > 0. We want to show that there is some positive integer N such that
n, m ≥ N ⇒ d(f (xn ), f (xm )) < ε. (3)
Now, by uniform continuity, we know that there is some δ > 0 such that
d(xn , xm ) < δ ⇒ d(f (xn ), f (xm )) < ε. (4)
On the other hand, because (xn )n is Cauchy, there is a positive integer N such that
n, m ≥ N ⇒ d(xn , xm ) < δ. (5)
Equations (4) and (5) together give (3), which completes the proof.
Alternate solution for Problem 13, page 99. Let x ∈ X \E be an arbitrary point. First
off, we want to define the value g(x) of an extension g : X → R of f (this is what it means to
extend f from E to all of X; see Problem 5 from the textbook for the definition of ’extension’).
Since E is dense, there is a sequence (xn )n in E that converges to x. Since xn → x in
X, the sequence (xn )n is Cauchy. By Problem 11 solved above the absolute continuity of f
implies that (f (xn ))n is also Cauchy. Since by part (c) of Theorem 3.11 the real line R is
complete, the Cauchy sequence (f (xn ))n converges to some y ∈ R; set g(x) = y. We now
have to check a few things.
Step 1: The value g(x) = y from above is well defined. Here’s what this means:
Recall that in order to set g(x) = y I chose some sequence (xn )n ⊂ E converging to x. What I
want to prove now is that the real number y from the construction above does not depend on
the specific sequence xn that converges to x, only on x itself (otherwise the formula g(x) = y
is not justified).
Suppose you have sequences xn → x and x0n → x with xn , x0n ∈ E and fix an arbitrarily
small ε > 0. Since f is uniformly continuous, there is some δ > 0 such that
d(p, q) < δ ⇒ d(f (p), f (q)) < ε. (6)
3
would contain both 0 and 1 and hence would have to contain the entire interval [0, 1] by
Theorem 4.23. This means that its image can’t be contained in Q.
In conclusion, the answer to all of the questions at the end of Problem 13 is ’yes’ except
for the last one, which has a negative answer.
E1. Give an example of a continuous function f : (0, 1) → R and a Cauchy sequence (xn )n
in (0, 1) such that (f (xn ))n is not Cauchy in R.
Solution. Take say f (x) = x1 . This is continuous by, say, Theorem 4.9 (dividing a continuous
function by a non-zero continuous functions yields something continuous).
Now have a look at the sequence n1 in (0, 1). It is Cauchy because it is convergent in the
larger metric space [0, 1), but applying f to it turns it into the sequence n, which is unbounded
and hence not Cauchy.
E2. Show that a metric space (X, d) is disconnected if and only if there exists a continuous
function f : X → R whose range f (X) is the two-element set {0, 1}.
Solution. According to Problem 1 from Homework 4, a metric space is disconnected if and
only if it can be written as the disjoint union of two non-empty open subsets (or equivalently,
two non-empty closed subsets); see also Definition 3 in that homework assignment.
(⇒) Suppose first that I can write X A ∪ B, with A ∩ B = ∅ and both A and B are open
and non-empty. Define a function f : X → R by
(
0 if x ∈ A
f (x) =
1 if x ∈ B
Clearly, f (X) = {0, 1}. To see that f is continuous, use the criterion that the preimage of
every relatively open subset of {0, 1} ⊂ R is open. {0, 1} has four subsets, namely
∅, {0}, {1} and {0, 1}.
Their preimages through f are
∅, A, B and respectively X,
all of which are indeed open.
(⇐) If there is a function f : X → R as in the statement, then the inverse images A =
f (0) and B = f −1 (1) of the relatively open subsets
−1