Tut Sol1.
Tut Sol1.
p
T1–1. Show that the function d(x, y) = |x − y| defines a metric on R.
The given function is symmetric and non-negative with d(x, y) = 0 if and only if x = y.
It remains to check that the triangle inequality holds. This is the case because
p p
d(x, y) = |x − y| ≤ |x − z| + |z − y|
p p
≤ |x − z| + |z − y| = d(x, z) + d(z, y).
The given function is symmetric and non-negative with d(x, y) = 0 if and only if x = y.
However, it does not satisfy the triangle inequality because
T1–3. Compute the distances d1 (f, g) and d∞ (f, g) when f, g ∈ C[0, 1] are the functions
defined by f (x) = x and g(x) = x3 .
To compute the distance d∞ (f, g), we need to compute the maximum value of
This means that h(x) is increasing for x < 1/2 and decreasing for x > 1/2, so
T1–5. Show that d1 (x1/n , 1) → 0 as n → ∞ in the space C[0, 1]. Does the same
statement hold in the case of the d∞ metric?
T1–6. Show that the d∞ metric in R2 is the limit of the dp metric by showing that
1/p
limp→∞ |x|p + |y|p
= max(|x|, |y|) for all x, y ∈ R.
Suppose first that |y| < |x|. Then x is nonzero and | xy | < 1, so
1/p h y p i1/p
lim |x|p + |y|p
= lim |x| · 1 + = |x|.
p→∞ p→∞ x
This settles the case |y| < |x| and the case |x| < |y| is similar. When |x| = |y|, we have
1/p 1/p
lim |x|p + |y|p = lim 2|x|p = lim 21/p |x| = |x|.
p→∞ p→∞ p→∞
T2–1. Let (X, d) be a metric space. Given a point x ∈ X and a real number r > 0,
show that A = {y ∈ X : d(x, y) > r} is open in X.
Let y ∈ A be given and note that ε = d(x, y) − r is positive. We claim that B(y, ε) is
contained entirely within A. In fact, one has
Completing the square, one may express the given set in the form
A = (x, y) ∈ R2 : x2 + y 2 − 2y < 0
one has x3 + 2x2 − 3x > 0 if and only if x ∈ (−3, 0) ∪ (1, ∞). Thus, the complement of A is
the union of two open sets, so the complement of A is open and A is closed.
T2–4. Consider the set X = A ∪ B, where A = (0, 1) and B = [2, 3). Show that A, B
are both open in X and thus closed in X as well.
The set A is open because it is the open ball B(1/2, 1/2). Similarly, the set B is open
because it is the open ball B(5/2, 1). Since the sets A and B are the complements of one
another, the fact that they are both open implies that they are both closed as well.
Consider the closed intervals Cn = [1/n, 3 − 1/n], for instance. Since the left endpoint is
decreasing to 0 and the right one is increasing to 3, the union of the intervals is (0, 3).
T2–6. Let (X, d) be a metric space whose metric d is discrete. What can you say about
a sequence {xn } which is convergent in X?
Suppose the sequence converges to x. Then there exists an integer N > 0 such that
Since (−r, r) is open in R, its inverse image must then be open in X by continuity.
T3–2. Show that every function f : X → Y is continuous when X, Y are metric spaces
and the metric on X is discrete.
To show that f is continuous at x, let ε > 0 be given and δ > 0 be arbitrary. Then
The given sequence converges pointwise to the zero function f (x) = 0. To show that the
convergence is uniform, one needs to show that
x
goes to zero as n → ∞. Consider the function fn (x) = x2 +n2
on [0, ∞). Since
x2 + n2 − 2x2 n2 − x 2
fn′ (x) = = ,
(x2 + n2 )2 (x2 + n2 )2
this function is increasing when x < n and decreasing when x > n, so its maximum value is
n 1
sup |fn (x) − f (x)| = sup fn (x) = fn (n) = = .
x≥0 x≥0 2n 2 2n
The given sequence converges pointwise to the zero function f (x) = 0. To show that the
convergence is not uniform, we consider the expression
x
sup |fn (x) − f (x)| = sup fn (x) = sup .
x≥0 x≥0 x≥0 x+n
As one can easily check, fn′ (x) = n/(x + n)2 is positive, so fn (x) is increasing and
x x
sup |fn (x) − f (x)| = sup = lim = 1.
x≥0 x≥0 x+n x→∞ x+n
It suffices to find a sequence of points in A such that their limit is not in A. There are
obviously lots of examples, but the simplest one is probably
Let {xn } be a Cauchy sequence in X. Then there exists an integer N > 0 such that
Since the metric d is discrete, this actually gives xm = xn for all m, n ≥ N . Thus,
xm = xN for all m ≥ N
T4–3. Let (X, d) be a metric space and suppose A, B ⊂ X are complete. Show that
the union A ∪ B is complete as well.
T4–4. Show that f (x) = ln(x + 2) has a unique fixed point in [0, 2].
The function f is increasing, so it maps the interval [0, 2] into the interval
for some point c between x and y. Since f ′ (x) = 1/(x + 2), this actually gives
1 1
|f (x) − f (y)| = · |x − y| ≤ · |x − y|.
c+2 2
In particular, f is a contraction and the result follows by Banach’s fixed point theorem.
T4–5. Show that f (x) = x3 is a contraction on X = (0, 1/2), but it has no fixed point
in X. Does this contradict Banach’s theorem?
The function f is increasing, so it maps the interval (0, 1/2) into the interval
It does not have any fixed points because x3 = x implies that x = 0, ±1 and none of these
points lies in X. To show that f is a contraction, we use the mean value theorem to write
for some point c between x and y. Since f ′ (x) = 3x2 , we conclude that
3
|f (x) − f (y)| = 3c2 · |x − y| ≤ · |x − y|.
4
This example does not contradict Banach’s theorem because X = (0, 1/2) is not complete.
No. For instance, f (x) = 1/x is continuous on (0, ∞) and xn = 1/n is Cauchy, but the
sequence f (xn ) = n is not Cauchy because f (xn ) − f (xn−1 ) = 1 for all n.