The Gradient and Level Sets
1. Let f(x, y) = x2 + y2.
(a) Find the gradient ∇f. Solution. ∇f(x, y) = h2x, 2yi.
(b) Pick your favorite positive number k, and let C be the curve f(x, y) = k. Draw the curve on the axes below. Now pick a point (a, b) on the curve C. What is the vector ∇f(a, b)? Draw the vector ∇f(a, b) with its tail at the point (a, b). What relationship does the vector have to the curve? Solution. The curve f(x, y) = k is a circle in the xy-plane centered at the origin. The vector ∇f(a, b) is equal to h2a, 2bi, and this vector is perpendicular to the circle (no matter what value of k you picked and what point (a, b) you picked).
(c) Let ~r(t) be any parameterization of your curve C. What is f(~r(t))? What happens if you use the d Chain Rule to find dt f(~r(t))? Use this to explain your observation from (b). Solution. f(~r(t)) is always equal to k, since ~r(t) parameterizes the curve C, and the curve C is exactly the set of points where f(x, y) = k.
d d d Since f(~r(t)) = k for all t, dt f(~r(t)) = dt k = 0. By the Chain Rule, we know that dt f(~r(t)) is also equal to ∇f(~r(t)) · ~r0(t), so the gradient ∇f(~r(t)) is always perpendicular to r~0(t). Recall that r~0(t) gives the direction of the tangent vector, so ∇f is always perpendicular to the tangent vector.
2. Here is the level set diagram (contour map) of a function f(x, y). The value of f(x, y) on each level set is labeled. For each of the three points (a, b) marked in the picture, draw a vector showing the direction of ∇f(a, b). (Don’t worry about the magnitude of ∇f(a, b).)
1 1
4 3
2
0
Solution. Let’s look at the upper right point. We know that ∇f(a, b) is perpendicular to the curve at (a, b), but there are still two possible directions:
1
4 3
2
0
To determine which is correct, we use the definition of ∇f(a, b): it is defined to be hfx(a, b), fy(a, b)i. We can tell from the original picture that fx(a, b) > 0 (see the worksheet “Partial Derivatives” for more explanation), so the vector ∇f(a, b) must point to the right. Using the same reasoning for the other two points, we get the following vectors:
1
4 3
2
0 √ 3. Let S be the cylinder x2 + y2 = 4. Find the plane tangent to S at the point (1, 3, 5).
2 √ Solution. If we let f(x, y, z) = x2 + y2, then S is the level set f(x, y, z) = 4. Therefore, ∇f(1, 3, 5) will be a normal vector for the tangent plane we want. √ √ √ ∇f = h2x, 2y, 0i, so ∇f(1, 3, 5) = h2, 2 3, 0i. Since (1, 3, 5) is a point on the tangent plane, the √ √ √ √ tangent plane has equation h2, 2 3, 0i · hx − 1, y − 3, z − 5i = 0, or 2(x − 1) + 2 3(y − 3) = 0 .
Note that this is exactly the same problem as #1 from the worksheet “Tangent Planes and Linear Approximation”; this solution, however, is simpler than the one we came up with before.