Professional Documents
Culture Documents
Homework 2 - Solution PDF
Homework 2 - Solution PDF
(a) Let S be a nonempty, bounded subset of Rm , show that diam S := sup{d(x, y) | x, y ∈ S} exists in
R and diam S = diam S.
Solution: Since S is bounded, for any s ∈ S, there exists M > 0, such that ∥s∥ < M . Then, by
triangle inequality, for any x, y ∈ S,
So the set {d(x, y) | x, y ∈ S} is bounded above, and its supremum, diam S exists in R.
Since S ⊆ S, it’s clear that diam S ≤ diam S by the property of supremum. We only need to show
diam S ≤ diam S. Fix ε > 0, and choose x, y ∈ S, recall that S is the set of all adherent point of S,
we have B(x, ε) ∩ S ̸= ϕ and B(y, ε) ∩ S ̸= ϕ. Hence, we can pick x′ , y ′ ∈ S, such that d(x, x′ ) < ε
and d(y, y ′ ) < ε.
Then,
Since ε > 0 is arbitrary, by taking limit ε → 0, we have diam S ≤ diam S, and this completes the
proof.
1
(b) Let {xn } be a sequence in Rm and En = {xk | k ≥ n}, where n ∈ N. Show that {xn } is a Cauchy
sequence if and only if each En is bounded and lim diam En = 0.
n→∞
Solution:
( =⇒ ): Let {xn } be a Cauchy sequence, which converges to some L ∈ Rm by the Cauchy criteria.
For any ε > 0, there exists N ∈ N, such that, n > N implies that d(xn , L) < ε. It is equivalent to
En ⊂ B(L, ε) for any n > N . For n ≤ N , let r = max{ε, ∥x1 − L∥, ∥x2 − L∥, · · · , ∥xN − L∥},
then En ⊆ B(L, r). Hence, each En is bounded.
Since {xn } be a Cauchy sequence, for any ε > 0, there exists N ∈ N, such that, p, q > n > N
implies that d(xp , xq ) < ε. Our choice of p, q guarantees that xp , xq ∈ En , and we have diam En =
| diam En − 0| < ε by taking supremum. This proves lim diam En = 0.
n→∞
( ⇐= ): If each En is bounded and lim diam En = 0, then for any ε > 0, there exists N ∈ N, such
n→∞
that, n > N implies that | diam En − 0| = diam En < 2ε . Consider p, q > N , then xp , xq ∈ EN and
ε
d(xp , xq ) ≤ diam EN < 2 < ε, which proves {xn } is a Cauchy sequence. The boundedness of En
is implicitly used to guarantee the existence of diam En .
(c) If {xk }∞ ∞ m
k=1 is a Cauchy sequence in U , then {f (xk )}k=1 is a Cauchy sequence in R .
2
3. Let f : R2 → R be defined by
xy 2
x2 +y 4
if (x, y) ̸= (0, 0),
f (x, y) =
0 if (x, y) = (0, 0).
(a) Prove that the direction derivative of f along any direction exists.
xy 2
Solution: For (x, y) ̸= (0, 0), f (x, y) = , and we can compute its partial derivatives:
x2 + y 4
x2 − y 4 x2 − y 4
fx (x, y) = −y 2 , fy (x, y) = 2xy .
(x2 + y 4 )2 (x2 + y 4 )2
Hence, the directional derivative at every (x, y) ̸= (0, 0) along any direction u = (u1 , u2 ) exists, and
is given by Du f (x, y) = (fx , fy ) · u.
For (x, y) = (0, 0), we fix (u1 , u2 ) = u ∈ R2 , then by definition of directional derivative, we have
u1 u22
= lim 2
h→0 u1 + h2 u4 2
u22
= if u1 ̸= 0.
u1
If u1 = 0, we also have
Therefore, at (x, y) = (0, 0), the direction derivative of f along any direction u exists as well.
(b) Prove that lim f (x, y) does not exist and hence f is not continuous at (0, 0).
(x,y)→(0,0)
x · x2
lim f (x, y) = lim = 0.
(x,y)→(0,0) x→0 x2 + x4
3
Along x = y 2 , we have
y4 1
lim f (x, y) = lim = ̸= 0.
(x,y)→(0,0) y→0 y 4 + y 4 2
Along different paths, the limit does not give the same result, which implies the limit does not exist.
Hence, f is not continuous at (0, 0).
Hence, for any closed subset C ⊆ K, the inverse image of C under f −1 is closed, which proves the
continuity of f −1 .
4
5. Let f : R2 → R be defined by
(x2 + y 2 ) sin √ 1
if (x, y) ̸= (0, 0),
f (x, y) = x2 +y 2
0 if (x, y) = (0, 0).
Show that
∂f ∂f
(a) , are discontinuous at (0, 0).
∂x ∂y
Solution: For (x, y) ̸= (0, 0), we can compute fx and fy easily using chain rule and product rule,
which are
! !
1 x 1
fx (x, y) = 2x sin p −p cos p ,
x2 + y 2 x2 + y 2 x2 + y 2
! !
1 y 1
fy (x, y) = 2y sin p −p cos p .
x2 + y 2 x2 + y 2 x2 + y 2
Since x/|x| is either +1 or −1 depending on the sign of x, we can see the latter term diverges as
x → 0. Similar for fy along the y-axis. Hence, both fx and fy are not continuous at (0, 0).
Solution: For (x, y) ̸= (0, 0), the partial derivatives fx , fy can be computed explicitly, and both fx
and fy are clearly continuous everywhere except the origin. By theorem 3.2 in the lecture notes, f is
differentiable on R2 \ {(0, 0)}.
For (x, y) = (0, 0), we observe that, for any h ∈ R2 \ {(0, 0)}, we have
1
f (h) − f (0, 0) = ∥h∥2 sin = o (h) .
h