sol3
sol3
SOLUTIONS to HOMEWORK 3
Consequently, f is continuous a.
= D1 f (q) + D3 f (q)D1 g(p) D2 f (q) + D3 f (q)D2 g(p) .
1
2
(b) If F (x, y) = 0 for all (x, y), then DF (x, y) = 0 0 , and, in view of the above
identity,
0 = D1 f (q) + D3 f (q)D1 g(p) and 0 = D2 f (q) + D3 f (q)D2 g(p).
Hence
D1 f (x, y, g(x, y))) D2 f (x, y, g(x, y)))
D1 g(x, y) = − and D2 g(x, y) = − .
D3 f (x, y, g(x, y)) D3 f (x, y, g(x, y))
Problem 3.
(a) Let f : R → R be defined by
x2 sin(1/x) if x = 0,
f (x) =
0 if x = 0.
Show that f is differentiable at 0 but f is not continuous at 0.
(b) Let g : R2 → R be defined by
1
(x2 + y 2 ) sin( √ ) if (x, y) = 0,
g(x, y) = x2 +y 2
0 if (x, y) = 0.
Show that g is differentiable at (0, 0) but Di g is not continuous at (0, 0).
Solution: (a) For x = 0, f (x) = 2x sin(1/x) − cos(1/x) and at x = 0,
x2 sin(1/x)
f (0) = lim = lim x sin(1/x) = 0.
x→0 x x→0
√ √
Take (xj , yj ) = (1/(2 2πj), 1/(2 2πj). Then (xj , yj ) → (0, 0) and x2j + yj2 =
1/(2πj). So,
1 1
D1 f (xj , yj ) = − √ cos(2πj) = − √
2 2
1 1
D2 f (xj , yj ) = − √ cos(2πj) = − √ .
2 2
Consequently, D1 f and D2 f are not continuous at (0, 0). On the othere hand, g is
differentiable at (0, 0), then Dg(0, 0) = [0 0]. We calculate the limit
g(x, y) − g(0, 0) − 0 · x − 0 · y 1
lim = lim x2 + y 2 sin( ) = 0,
(x,y)→(0,0) x2 + y 2 (x,y)→(0,0) x2 + y 2
3
Hence D(h) = D1 D2 f (a/2 + t∗ , a/2 + s∗ )h2 . On the other hand, D(h) = g(a + h) −
2g(a) + g(a − h) and D1 D2 f (a/2 + t∗ , a/2 + s∗ ) = g (a + s∗ + t∗ ). Moreover, if
h → 0, then s∗ , t∗ → 0 so that
g(a + h) − 2g(a) + g(a − h) D(h)
= = D1 D2 f (a/2 + t∗ , a/2 + s∗ )
h2 h2
= g (a + s∗ + t∗ ) → g (a)
since g is continuous.