126 Functions
D. Find a linear transformation T on R
2
and a closed subset C of R
2
such that T (C) is
not closed.
E. Show that a function f mapping a compact set S ⊂ R
n
into R
m
is continuous if and
only if its graph G(f) = {(x, f(x)) : x ∈ S} is compact.
HINT: For ⇒, use Theorem 5.4.3. For ⇐, use Theorem 5.3.1(2).
F. Give a function defined on [0, 1] that has a closed graph but is not continuous.
G. Suppose that f is a positive continuous function on R
n
such that lim
kxk→∞
f(x) = 0
[i.e., for all ε > 0, there is an N so that |f(x)| < ε for all x with kxk > N]. Show
that f attains its maximum.
H. Let f be a periodic function on R, meaning that there is d > 0 with f(x + d) = f(x)
for all x ∈ R. (We call d the period of f if it is the least positive number with this
property and say that f is d-periodic.) Show that if f is continuous, then f attains its
maximum and minimum on R.
I. (a) Give an example of a continuous function on R
2
satisfying f (x + 1, y) = f(x, y)
for all x, y ∈ R that does not attain its maximum.
(b) Find and prove a variant of the previous exercise that is valid for functions on R
2
.
J. Let A be a compact subset of R
n
. Show that for any point x ∈ R
n
, there is a closest
point a in A to x. (This means that the point a ∈ A satisfies kx − ak ≤ kx − bk for
all b ∈ A. It does not imply that a is unique—it may not be.)
HINT: Fix x and define a useful continuous function on A.
K. For a function f on [0, ∞), we say that lim
x→∞
f(x) = L if for every ε > 0, there is
some N > 0 so that |f(x) − L| < ² for all x > N . Suppose that lim
x→∞
f(x) = f(0)
and that f is continuous. Prove that f attains its maximum and minimum values.
L. Suppose that C is a compact subset of R
n
and that f is a continuous, one-to-one
function of C onto D ⊂ R
m
. Prove that the inverse function f
−1
is continuous.
HINT: Fix d
0
∈ D, c
0
= f
−1
(d
0
) and ε > 0. Show that there is a r > 0 so that B
r
(d
0
)
is disjoint from f(C \ B
ε
(c
0
)).
M. A space-filling curve. Let T be a right triangle with side lengths 3, 4, and 5. Drop a
perpendicular line from the right angle to the opposite side, splitting the triangle into
two similar pieces. Label the smaller triangle T (0) and the larger one T (1). Then
divide each T (ε) into two pieces in the same way, labeling the smaller T (ε0) and the
larger T (ε1). Recursively divide each triangle T (ε
1
. . . ε
n
) into two smaller similar
triangles labeled T (ε
1
. . . ε
n
0) and T (ε
1
. . . ε
n
1). Now consider each point x ∈ [0, 1]
in its base 2 (binary) expansion x = 0.ε
1
ε
2
ε
3
. . . , where ε
i
is 0 or 1. Define a function
f : [0, 1] → T by defining f(x) to be the point in
T
n≥1
T (ε
1
. . . ε
n
).
(a) Prove that T (ε
1
. . . ε
n
) has diameter at most 5(.8)
n
.
(b) If x = 0.ε
1
. . . ε
n−1
100000. . . has a finite binary expansion, then it has a second
binary representation x = 0.ε
1
. . . ε
n−1
011111. . . ending in ones. Prove that both
expansions yield the same value for f(x).
(c) Hence prove that f(x) is well defined for each x ∈ [0, 1].
(d) Prove that f is continuous. HINT: If x and y agree to the nth decimal, what do
f(x) and f(y) have in common?
(e) Prove that f maps [0, 1] onto T .