Docsity

Gradient of Function - Multivariable Calculus - Solved Past Paper, Exams of Calculus

Toggle sidebar
bg1
Math 215 Second Exam Solutions March 20, 2003
Problem 1. (10 pts.)
(a – 3 pts.) Compute the gradient of the function f(x, y) = x3y−xy2.
Solution.
∇f=hfx, fyi=h3x2y−y2, x3−2xyi.
♣
(b – 3 pts.) Find the maximum rate of change of this function at the point P(3,2).
Solution. Maximum rate of change of f(x, y) at Pis equal to the magnitute of the gradient vector at this point,
i.e., is |∇f(3,2)|=|h50,15i| = 5√109 (and it occurs in the direction of the gradient vector). ♣
(c – 4 pts.) Find the rate of change of this function f(x, y)at the point Q(1,−2) in the direction of the vector v=h2,4i.
Solution. First we need to find ∇f(1,−2) and the unit vector uin the direction of v:
∇f(1,−2) = h−10,5i,u=u
|u|=h2,4i
√20 =h1
√5,2
√5i
Then
Duf(1,−2) = ∇(f)(−1,2) •u=h−10,5i•h 1
√5,2
√5i= 0,
i.e., the function does not change in this direction. ♣
Problem 2. (15 pts.) Find and classify all critical points of the function
f(x, y) = xy2+y2−x2
2−2x+ 3.
Solution.
∇f=hy2−x−2,2xy + 2yiH=fxx fxy
fyx fyy =−1 2y
2y2x+ 2,
∇f=0=⇒(y2−x−2 = 0
2xy + 2y= 2y(x+ 1) = 0 =⇒(−x−2 = 0
y= 0 or (y2−1 = 0
x=−1,
and we have three critical points, (−2,0), (−1,1) and (−1,−1). Then
H(−2,0) = −1 0
0−2=⇒det H= 2 >0
fxx =−1<0=⇒local maximum
H(−1,1) = −1 2
2 0=⇒det H=−4<0=⇒saddle
H(−1,−1) = −1−2
−2 0 =⇒det H=−4<0=⇒saddle.
–2
–1
0
1
2
y
–3 –2 –1 1 2
x
–3 –2 –1 012
x–2
–1
0
1
2
y
–10
–5
0
5
10
15
♣
1
pf3
pf4
pf5

Partial preview of the text

Download Gradient of Function - Multivariable Calculus - Solved Past Paper and more Exams Calculus in PDF only on Docsity!

Math 215 Second Exam Solutions March 20, 2003

Problem 1. (10 pts.)

(a – 3 pts.) Compute the gradient of the function f (x, y) = x^3 y − xy^2.

Solution. ∇f = 〈fx, fy 〉 = 〈 3 x^2 y − y^2 , x^3 − 2 xy〉. ♣ (b – 3 pts.) Find the maximum rate of change of this function at the point P (3, 2). Solution. Maximum rate of change of f (x, y) at P is equal to the magnitute of the gradient vector at this point, i.e., is |∇f (3, 2)| = |〈 50 , 15 〉| = 5

109 (and it occurs in the direction of the gradient vector). ♣ (c – 4 pts.) Find the rate of change of this function f (x, y) at the point Q(1, −2) in the direction of the vector v = 〈 2 , 4 〉. Solution. First we need to find ∇f (1, −2) and the unit vector u in the direction of v:

∇f (1, −2) = 〈− 10 , 5 〉, u = u |u|

Then

Duf (1, −2) = ∇(f )(− 1 , 2) • u = 〈− 10 , 5 〉 • 〈

i.e., the function does not change in this direction. ♣ Problem 2. (15 pts.) Find and classify all critical points of the function

f (x, y) = xy^2 + y^2 −

x^2 2

− 2 x + 3.

Solution.

∇f = 〈y^2 − x − 2 , 2 xy + 2y〉 H =

[

fxx fxy fyx fyy

]

[

− 1 2 y 2 y 2 x + 2

]

∇f = 0 =⇒

y^2 − x − 2 = 0 2 xy + 2y = 2y(x + 1) = 0

−x − 2 = 0 y = 0

or

y^2 − 1 = 0 x = − 1

and we have three critical points, (− 2 , 0), (− 1 , 1) and (− 1 , −1). Then

H(− 2 , 0) =

[

]

det H = 2 > 0 fxx = − 1 < 0 =⇒ local maximum

H(− 1 , 1) =

[

]

=⇒ det H = − 4 < 0 =⇒ saddle

H(− 1 , −1) =

[

]

=⇒ det H = − 4 < 0 =⇒ saddle.

0

1

2

y

–3 –2 –1 1 2 x

–3 – –1 0 x 1 2 –

0

1

2

–10 y

0

5

10

15

2 Problem 3. (15 pts.) Using Lagrange multipliers, find the points on the unit circle centered at C(3, 4) that are closest and farthest from the origin.

Solution. Distance from a point P (x, y) to the origin is given by the distance formula d(O, P ) =

x^2 + y^2. Since maximizing or minimizing d(O, P ) is equivalent to maximizing or minimizing d(O, P )^2 (d(O, P ) is positive), we have the following constrained optimization problem:

f (x, y) = x^2 + y^2 → max/min subject to the constrain g(x, y) = (x − 3)^2 + (y − 4)^2 = 1.

Our Lagrange multiplier equations then take the form { ∇f (x, y) = λ∇g(x, y) g(x, y) = (x − 3)^2 + (y − 4)^2 = 1 or  



2 x = 2λ(x − 3) 2 y = 2λ(y − 4) (x − 3)^2 + (y − 4)^2 = 1 Multiplying the first equation by y and the second equation by x, we get xy = λxy − 3 λy = λxy − 4 λx, or y =

x. Geometrically, this means that the points we are looking for lie on the line that goes through the origin and the center of our circle (i.e., part of this line inside the circle is the diameter of the circle), see the picture on the right. Gradient of f (x, y) points in the direction of this line, and since we know that the diameter is perpendicular to the circle, ∇f is proportional to ∇g at these points.

0

1

2

3

4

5

6

y

1 2 3 4 5 6 x From the constraint equation we then get:

(x − 3)^2 + (y − 4)^2 =

x − 3

x − 4

= (x − 3)^2

= 1, (x − 3)^2 =

x = 3 ±

or

y =

x =

or

so the closest point is (2. 4 , 3 .2) (dsitance is 4) and the farthest point is (3. 6 , 4 .8) (distance is 6). ♣

Problem 4. (20 pts.)

(a – 10 pts.) Consider the iterated integral

0

√y

y x

dx dy representing the double integral of the function f (x, y) = y x

over

the region D. Make a careful sketch of the region of integration and then evaluate this integral by switching the order of integration.

Solution. Our region is bounded by the following curves: y = 0, y = 1, x =

y( or y = x^2 ), x = 1, and is pictured on the right. Changing the limits of integration, we get: ∫ (^1)

0

√y

y x dx dy =

D

y x dA =

0

∫ (^) x 2

0

y x dy dx

0

y^2 x

]y=x^2 y=

dx =

0

x^4 x dx =

x^4 4

] 1

0

0

1

0.2 0.4 0.6 0.8 1 x

4 Problem 6. (20 pts.)

(a – 10 pts.) Sketch the region of integration E for the iterated triple integral

0

∫ (^2) − 2 z

0

∫ (^4) −y 2

0

f (x, y, z) dx dy dz and then

rewrite this integral as

E

f (x, y, z) dz dy dx (i.e., find the appropriate limits of integration).

Solution. The region E is bounded by the coordinate planes, the plane y = 2 − 2 z (or z = 1 −

y 2

), and the cylinder x = 4 − y^2 (or y =

4 − x) (see the plot on the right), and we have: ∫ ∫ ∫

E

f (x, y, z) dV =

0

∫ (^2) − 2 z

0

∫ (^4) −y 2

0

f (x, y, z) dx dy dz

0

∫ √ 4 −x

0

∫ (^1) − y 2

0

f (x, y, z) dz dy dx.

0 1 2 3 4

x

0

1

2

y

0

1

(^) z ♣

(b – 10 pts.) Consider the triple integral

E

f (P ) dV that can be written in spherical coordinates as the following iterated

integral:

∫ (^2) π

0

∫ π 2

π 6

0

ρ^2 sin φ dρ dφ dθ. What is the function f (P )? Describe (or sketch) the region of integration

E. Evaluate this integral and explain what it represents. Solution. The region E is the region inside the sphere ρ = 3, above the xy- plane, and below the cone given by φ =

π 6

(see the plot on the right). The function f (P ) = 1 (the expression ρ^2 sin φ under the integral represents the scaling of the volume element in spherical coordinates). Therefore, this integral represents the volume of E and we have:

Volume(E) =

E

1 dV

∫ (^2) π

0

∫ π 2

π 6

0

ρ^2 sin φ dρ dφ dθ

= 2π ρ^3 3

] 3

0

(− cos φ)

] π 2 π 6 = 9π

0 1 2 3

x

      • 0 1 2 3

y

0

1

2 z

5 Problem 7. (10 pts.) The graph below is a plot of some level curves for a function f (x, y), along with arrows representing the gradient ∇(f ) (adjacent level curves represent the same change in f ). D is the region bounded by (and including) the oval constraint curve shown, which is given by g(x, y) =a constant. On the graph, please carefully mark and label the following:

(a – 2 pts.) An example of a critical point that is a local minimum. (b – 2 pts.) An example of a critical point that is a local maximim. (c – 2 pts.) An example of a critical point that is a saddle. (d – 2 pts.) Location of the absolute maximum of f (x, y) on the region D. (e – 2 pts.) Location of the absolute minimum of f (x, y) on the region D. Solution. An example of a local maximum is the point A(4. 06 , 4 .01) (note that the gardient vectors point towards A), an example of a local minimum is the point B(− 5. 59 , − 6 .62) (the gradient vectors point away from it), an example of a saddle point is the point C(4. 12 , − 2 .25); there are of course other examples. The absolute maximum of f (x, y) on D is attained inside the region at the point Q(− 5. 57 , − 2 .50), and the absolute minimum of f (x, y) on D is attained on the boundary at the point P (− 6. 86 , 2 .32). ♣

Q

P

C

B

A

y

x