368 Chapter 14 Partial Differentiation
When doing such problems, it is easy to forget that we require a unit vector in the
calculation ∇f · u. You may prefer to r emember that this can always be written as
∇f · v/|v|. In the previous example, we mi ght then have computed h2, 4i · h3, 4i/| h3, 4i|,
rather than remembering to first compute u = h3 , 4i/|h3, 4i|.
EXAMPLE 14.5.2 Find a tangent vector to z = x
2
+ y
2
at (1, 2) in the directi on of
the vector h3, 4i and show that it is parallel to the tangent plane at that point.
Since h3/5, 4/ 5i is a unit vector in the desired direction, we can easily expand it to a
tangent vector simply by adding the third coordinate computed in the previous example:
h3/5, 4/5, 22/5i. To see that this vector is parallel to the tangent plane, we can compute
its dot product with a normal to the plane. We know that a normal to the t a ngent pl ane
is
hf
x
(1, 2), f
y
(1, 2), −1i = h2, 4, −1i,
and t he dot product is h2, 4, −1i · h3/5, 4/5, 22/5i = 6/5 + 16/5 − 22/5 = 0, so t he two
vectors a re perpendicular. (Not e t hat the vector normal to the surface, namely hf
x
, f
y
, −1i,
is simply the gradient with a −1 tacked on as the third component.)
The slope of a surface given by z = f (x, y) i n the direction of a (two-dimensional)
unit vector u is called the direction al derivative of f, written D
u
f. The directional
derivative immediately provides us with some additional information. We know that
D
u
f = ∇f · u = |∇f ||u|cos θ = |∇f |cos θ
if u is a unit vector; θ is the angle between ∇f and u. This tells us immediately that the
largest va lue o f D
u
f occurs when cos θ = 1, namely, when θ = 0, so ∇f is parallel to u.
In other words, the gradient ∇f points i n the dir ection of steepest ascent of the surface,
and |∇f | is the slope in that direction. Likewise, the smallest value of D
u
f occurs when
cos θ = −1, namely, when θ = π, so ∇f is anti-parallel to u. In other words, −∇f points
in the direction of steepest descent of the surface, a nd −|∇f | is the slope in that directio n.
EXAMPLE 14.5.3 Investigate the directio n of steepest ascent and descent for z =
x
2
+ y
2
.
The gradient is h2x, 2yi = 2hx, yi; this is a vector parallel to the vector hx, yi, so the
direction of steepest ascent is directly away from the origin, starting at the point (x, y) .
The direction of steepest descent is thus directly toward the origin from (x, y). Note that
at (0, 0) the gradient vector is h0, 0i, which has no direction, and it is clear from the plot
of this surface that there is a minimum point at the origin, and tangent vectors in all
directions are parallel to the x-y plane.
If ∇f is perpendicular to u, D
u
f = |∇f|cos(π/2) = 0, since cos(π/ 2) = 0. This means
that in either of the two directi o ns perpendicular to ∇f, the slope of the surface is 0; this