The Gradient and the Directional Derivative
Continued

Although we are motivated by our experiences hiking and the three dimensional pictures that help us visualize functions of the form

z = f(x, y)

everything we do in this module applies to functions of the form

z = f(x1, x2, ... xn)

with n independent variables.

In this situation we define n partial derivatives by

Missing equations

We also define a new vector, called the gradient vector, by

Missing equation

We are interested in the rate at which z changes as we move away from x in various different directions. Each possible direction is indicated by a unit vector,

u = (u1, u2, ... un)

The directional derivative in the direction u is given by

Missing equation

Sometimes we use the notation fu for the directional derivative.

In Multivariable Calculus, Linear Algebra, and Differential Equations in a Real and Complex World we prove that if all the partial derivatives of the function f are continuous then

fu = grad f . u

Since u is a unit vector and

fu = grad f . u = ||u|| ||grad f|| cos theta = ||grad f|| cos theta

where theta is the angle between grad f and u, we see that the directional derivative is at its maximum when u is pointing in the same direction as grad f and is at a minimum when u is pointing in the opposite direction. Thus, the direction of steepest ascent is grad f and the direction of steepest descent is -grad f.


Compute the gradient of each of the following functions. This gives us a vector at each point (x, y) that is pointing uphill. Use your CAS window to draw a picture showing these vectors. This picture is called a vector field. Compare the vector field with a three-dimensional plot of the indicated function. Does the vector field appear to be pointing upward?


Copyright c 1997 by Frank Wattenberg, Department of Mathematics, Montana State University, Bozeman, MT 59717