Docsity

Solutions to Homework 2 - Vector Calculus | MATH 20E, Assignments of Calculus

Toggle sidebar
bg1
Math 20E Solutions to Assignment 2 [email protected]
This assignment carries a total of twenty points. The assignments contribute ten
percent to your final grade.
Question 1. Compute the matrix of partial derivatives of f(x, y, z) = (x−y , y +z).
Solution.
∇f(x, y, z) = µ1−1 0
0 1 1 .
Question 2. Consider the function
f(x, y) = (xy2
x2+y2if (x, y)6= (0,0)
0 Otherwise
Show (a) that ∂f /∂x and ∂f/∂ y exist at (0,0) and (b) If g(t) = (at, bt) for constants a
and b, then f◦gis differentiable and (f◦g)0(0) = ab2/(a2+b2), but ∇f(0,0)·g0(0) = 0.
Solution 2. For (a) we use the definition of partial derivatives:
∂f
∂x (0,0) = lim
h→0
f(h, 0) −f(0,0)
h= lim
h→0
0−0
h= 0.
So fx(0,0) = 0 and similarly fy(0,0) = 0. For (b), note that
f(g(t)) = ab2t3
(a2+b2)t2=ab2t
a2+b2
and so the derivative of f(g(t)) with respect to tis ab2/(a2+b2), as required. On the
other hand,
∇f(0,0) ·g0(0) = (0,0) ·(0,0) = 0.
Question 3. A function u=f(x, y) with continuous second partial derivatives
satisfying Laplace’s equation
uxx +uyy = 0
is called a harmonic function. Show that u=x3−3xy2is harmonic.
Solution 3. Since uxx = 6xand uy y = 6x,uxx −uyy = 0 and so uis harmonic.
1
pf2

Partial preview of the text

Download Solutions to Homework 2 - Vector Calculus | MATH 20E and more Assignments Calculus in PDF only on Docsity!

Math 20E Solutions to Assignment 2 [email protected]

This assignment carries a total of twenty points. The assignments contribute ten percent to your final grade.

Question 1. Compute the matrix of partial derivatives of f (x, y, z) = (x − y, y + z).

Solution.

∇f (x, y, z) =

Question 2. Consider the function

f (x, y) =

xy^2 x^2 +y^2 if (x, y)^6 = (0,^ 0) 0 Otherwise

Show (a) that ∂f /∂x and ∂f /∂y exist at (0, 0) and (b) If g(t) = (at, bt) for constants a and b, then f ◦g is differentiable and (f ◦g)′(0) = ab^2 /(a^2 +b^2 ), but ∇f (0, 0)·g′(0) = 0.

Solution 2. For (a) we use the definition of partial derivatives:

∂f ∂x (0, 0) = lim h→ 0

f (h, 0) − f (0, 0) h = lim h→ 0

h

So fx(0, 0) = 0 and similarly fy(0, 0) = 0. For (b), note that

f (g(t)) = ab^2 t^3 (a^2 + b^2 )t^2

ab^2 t a^2 + b^2

and so the derivative of f (g(t)) with respect to t is ab^2 /(a^2 + b^2 ), as required. On the other hand, ∇f (0, 0) · g′(0) = (0, 0) · (0, 0) = 0.

Question 3. A function u = f (x, y) with continuous second partial derivatives satisfying Laplace’s equation uxx + uyy = 0

is called a harmonic function. Show that u = x^3 − 3 xy^2 is harmonic.

Solution 3. Since uxx = 6x and uyy = 6x, uxx − uyy = 0 and so u is harmonic.

Question 4. Determine the second-order Taylor formula for ex+y^ at (0, 0).

Solution. Recall

TN (x, y) =

∑^ N

|z|=

fz (0) xz z!

is the N th order Taylor formula. For N = 2 we get

T 2 (x, y) =

∑^2

|z|=

fz (0)

xz z!

For |z| = 0 we get z! = 1 = xz^ and fz (0) = f (0) = 1. For |z| = 1 we have z = x or z = y. So we get z! = 1 in each case and fx(0) = 1 and fy(0) = 1. So far we have

T 1 (x, y) = 1 + x + y.

Finally, for |z| = 2 we get z! = 2! = 2 when z = xx, z! = 2! = 2 when z = yy, and z! = 1!1! = 1 when z = xy. Also xz^ in each case is x^2 , y^2 and xy. Also fz (0) = 1 in all cases, so

T 2 (x, y) = 1 + x + y +

x^2 +

y^2 + xy.

Question 5. Find the critical points of f (x, y) = xy + 1/x + 1/y and then determine whether they are local maxima, local minima, or saddle points.

Solution. Clearly ∇f (x, y) = (y − 1 /x^2 , x − 1 /y^2 ) so the critical points are points (x, y) where y = 1/x^2 and x = 1/y^2 , or where ∇f does not exist. Now ∇f does not exist when x = 0 or y = 0. But since f is not defined there, we don’t have to worry about those points. Now suppose x 6 = 0 and y 6 = 0. Then ∇f = 0 implies y = y^4 and so y(1 − y^3 ) = 0. Therefore y = 1 which gives x = 1, so (1, 1) is a critical point. The Hessian matrix at (x, y) is

Hf (x, y) =

2 /x^3 1 2 /y^3

At (1, 1), this is

Hf (1, 1) =

Since det(H 1 ) = 2 and det(H 2 ) = 3, Hf (1, 1) is positive definite. Therefore f has a local minimum at (x, y) = (1, 1).