Docsity

Second Midterm Exam Solution - Calculus | Math 2, Exams of Calculus

Toggle sidebar
bg1
Second midterm exam
Math2D
Solutions
1 Exercise 1 (20 points)
Let us consider the function f(x, y) = x2yโˆ’x2โˆ’y2
2. Find the critical points of the functions.
Are these points local maximum, local minimum or neither of those ?
Solution: We are looking for the points such that ~
โˆ‡f=hfx(x, y), fy(x, y)i=~
0. That is
fx(x, y) = 2xy โˆ’2x= 0 โ†’2x(yโˆ’1) = 0,
fy(x, y) = x2โˆ’y= 0.
The first equation gives either x= 0 or y= 1. If x= 0, the second equation becomes y= 0.
If y= 1, the second equation gives x2โˆ’1 = 0, that is x=ยฑ1. We get then 3 critical points:
(0,0), (โˆ’1,1) and (1,1).
Let us compute J:
J=
๎˜Œ
๎˜Œ
๎˜Œ
๎˜Œ
fxx fxy
fyx fyy
๎˜Œ
๎˜Œ
๎˜Œ
๎˜Œ
=
๎˜Œ
๎˜Œ
๎˜Œ
๎˜Œ
2yโˆ’2 2x
2xโˆ’1
๎˜Œ
๎˜Œ
๎˜Œ
๎˜Œ
= 2 โˆ’2yโˆ’4x.
For (0,0), then J= 2 >0 and fxx(0,0) = โˆ’2<0. It is a local maximum.
For (โˆ’1,1), then J= 4 >0 and fxx(โˆ’1,1) = 0 and fyy(โˆ’1,1) = โˆ’1<0. It is a local maximum.
For (1,1), then J=โˆ’4. It is a saddle point.
1
pf3
pf4
pf5

Partial preview of the text

Download Second Midterm Exam Solution - Calculus | Math 2 and more Exams Calculus in PDF only on Docsity!

Second midterm exam

Math2D

Solutions

1 Exercise 1 (20 points)

Let us consider the function f (x, y) = x^2 y โˆ’ x^2 โˆ’ y 2

  1. Find the critical points of the functions. Are these points local maximum, local minimum or neither of those?

Solution: We are looking for the points such that โˆ‡~f = ใ€ˆfx(x, y), fy (x, y)ใ€‰ = ~0. That is

fx(x, y) = 2xy โˆ’ 2 x = 0 โ†’ 2 x(y โˆ’ 1) = 0, fy(x, y) = x^2 โˆ’ y = 0.

The first equation gives either x = 0 or y = 1. If x = 0, the second equation becomes y = 0. If y = 1, the second equation gives x^2 โˆ’ 1 = 0, that is x = ยฑ1. We get then 3 critical points: (0, 0), (โˆ’ 1 , 1) and (1, 1). Let us compute J:

J =

โˆฃโˆฃ fxx^ fxy fyx fyy

โˆฃโˆฃ 2 y^ โˆ’^2 2 x 2 x โˆ’ 1

= 2 โˆ’ 2 y โˆ’ 4 x.

For (0, 0), then J = 2 > 0 and fxx(0, 0) = โˆ’ 2 < 0. It is a local maximum. For (โˆ’ 1 , 1), then J = 4 > 0 and fxx(โˆ’ 1 , 1) = 0 and fyy(โˆ’ 1 , 1) = โˆ’ 1 < 0. It is a local maximum. For (1, 1), then J = โˆ’4. It is a saddle point.

2 Exercise 2 (20 points)

Let us consider the function f (x, y) = (x^2 + y) cos( ฯ€xy 2 ). What is the equation of the tangent plane of the graph at the point (x, y) = (1, 3). Does the plane pass through the origin?

Solution: The equation of the plane is by definition:

z โˆ’ z 0 = fx(x 0 , y 0 )(x โˆ’ x 0 ) + fy(x 0 , y 0 )(y โˆ’ y 0 ),

with x 0 = 1, y 0 = 3 and z 0 = f (x 0 , y 0 ) = (x^20 + y 0 ) cos( ฯ€x 20 y^0 ) = 4 cos( 32 ฯ€ ) = 0.

fx(x, y) = 2x cos(

ฯ€xy 2 ) โˆ’ (x^2 + y)

ฯ€y 2 sin(

ฯ€xy 2 ) โ†’ fx(x 0 , y 0 ) = 6ฯ€

fy(x, y) = cos( ฯ€xy 2

) โˆ’ (x^2 + y) ฯ€x 2

sin( ฯ€xy 2

) โ†’ fy(x 0 , y 0 ) = 2ฯ€

This gives the following equation for the plane:

z = 6ฯ€(x โˆ’ 1) + 2ฯ€(y โˆ’ 3).

The coordinates of the plane are (0, 0 , 0). Plugging this in the plane equation gives: 0 = โˆ’ 6 ฯ€ โˆ’ 6 ฯ€ = โˆ’ 12 ฯ€ which is obviously wrong. The origin is then not a point of the plane.

4 Exercise 4-(20 points)

Let us consider the function f (x, y) = (^) xx 2 ++yy 2. a) Write the differential df of the function f (x, y). b) Knowing that x = r cos(ฮธ) and y = r sin(ฮธ) and using chain rule: find the partial deriva- tives โˆ‚f โˆ‚r and โˆ‚f โˆ‚ฮธ. (express the result as a function of r and ฮธ). c) Compute the value of these partial derivatives at r = 1, ฮธ = ฯ€ 2.

Solution: a) df = fxdx + fydy, with

fx =

x^2 + y^2

โˆ’ 2 x x + y (x^2 + y^2 )^2

y^2 โˆ’ x^2 โˆ’ 2 xy (x^2 + y^2 )^2

fy =

x^2 + y^2 โˆ’ 2 y

x + y (x^2 + y^2 )^2

x^2 โˆ’ y^2 โˆ’ 2 xy (x^2 + y^2 )^2

This gives

df = y^2 โˆ’ x^2 โˆ’ 2 xy (x^2 + y^2 )^2 dx + x^2 โˆ’ y^2 โˆ’ 2 xy (x^2 + y^2 )^2 dy.

b) The chain rule gives: โˆ‚f โˆ‚r = fx โˆ‚x โˆ‚r + fy โˆ‚y โˆ‚r and โˆ‚f โˆ‚ฮธ = fx โˆ‚x โˆ‚ฮธ + fy โˆ‚y โˆ‚ฮธ. Using x = r cos(ฮธ) and y = r sin(ฮธ). Therefore

โˆ‚x โˆ‚r = cos(ฮธ),^

โˆ‚y โˆ‚r = sin(ฮธ), โˆ‚x โˆ‚ฮธ =^ โˆ’r^ sin(ฮธ),^

โˆ‚y โˆ‚ฮธ =^ r^ cos(ฮธ).

and (remember that x^2 + y^2 = r^2 )

fx = y^2 โˆ’ x^2 โˆ’ 2 xy (x^2 + y^2 )^2

cos^2 (ฮธ) โˆ’ sin^2 (ฮธ) โˆ’ 2 cos(ฮธ) sin(ฮธ) r^2

fy = x^2 โˆ’ y^2 โˆ’ 2 xy (x^2 + y^2 )^2

sin^2 (ฮธ) โˆ’ cos^2 (ฮธ) โˆ’ 2 cos(ฮธ) sin(ฮธ) r^2

Then

โˆ‚f โˆ‚r

cos^2 (ฮธ) โˆ’ sin^2 (ฮธ) โˆ’ 2 cos(ฮธ) sin(ฮธ) r^2

cos(ฮธ) + sin^2 (ฮธ) โˆ’ cos^2 (ฮธ) โˆ’ 2 cos(ฮธ) sin(ฮธ) r^2

sin(ฮธ), โˆ‚f โˆ‚ฮธ

cos^2 (ฮธ) โˆ’ sin^2 (ฮธ) โˆ’ 2 cos(ฮธ) sin(ฮธ) r^2 (โˆ’r sin(ฮธ)) +

sin^2 (ฮธ) โˆ’ cos^2 (ฮธ) โˆ’ 2 cos(ฮธ) sin(ฮธ) r^2 (r cos(ฮธ)).

c) Plugging r = 1 and ฮธ = ฯ€/2 in the above expressions, we get

โˆ‚f โˆ‚r

โˆ‚f โˆ‚ฮธ

5 Exercise 5-(20 points)

Find the absolute maximum and minimum of the function f (x, y) = (x^2 + 1)(y^2 + 14 ) on the domain D = [โˆ’ 2 , 2] ร— [โˆ’ 1 , 1]. Hint: you can use the fact that the boundaries y = โˆ’1 and y = 1 are symmetric (so are x = โˆ’ 2 and x = 2).

Solution: We need to first look for the critical points such that โˆ‡~f = ใ€ˆfx(x, y), fy (x, y)ใ€‰ = ~0. That is

fx(x, y) = 2x(y^2 +

) = 0 โ†’ x = 0, fy(x, y) = 2y(x^2 + 1) = 0 โ†’ y = 0.

There is only one critical point (0, 0) and

J =

โˆฃโˆฃ fxx(0,^ 0)^ fxy(0,^ 0) fyx(0, 0) fyy (0, 0)

1 2 0 0 2

J > 0 and fxx(0, 0) = 1/ 2 > 0. The point (0, 0) is a local minimum and f (0, 0) = 14.

The domain D has 4 boundaries, but since the boundary y = โˆ’1 is the same as y = 1 and x = โˆ’2 is the same as x = 2 (f (x, y) depends on x^2 and y^2 , so the sign of x and y doesnโ€™t matter). Let us look at the boundary D 1 = {โˆ’ 2 โ‰ค x โ‰ค 2 , y = โˆ’ 1 }. Then f (x, โˆ’1) = 54 (x^2 + 1). This is parabola that has a minimum at x = 0 (draw quickly a graph to see this or compute the derivative). Therefore the minimum on this boundary is f (0, โˆ’1) = 54 and the maximum must be either at x = โˆ’2 or x = 2 and f (2, โˆ’1) = f (โˆ’ 2 , โˆ’1) = 254.

Let us look now at the boundary D 2 = {x = 2, โˆ’ 1 โ‰ค y โ‰ค 1 }. Then f (2, y) = 5(y^2 + 14 ). This is also parabola that has a minimum at y = 0. Therefore the minimum on this boundary is f (2, 0) = 54 and the maximum must be either at y = โˆ’1 or y = 1 and f (2, โˆ’1) = f (2, โˆ’1) = 254.

Comparing all the maximums and minimums we found, we conclude that the absolute mini- mum occurs at (0, 0) with the value f (0, 0) = 54 and the absolute maximum occurs at the points (ยฑ 2 , ยฑ1) with the f (ยฑ 2 , ยฑ1) = 254.