12.6 The Gradient and Directional Derivatives | ||
Suppose that you are hiking in rugged terrain. You can think of your altitude at the point given by longitude . Similarly, facing due north, the slope of the terrain is given by . However, in terms of
Suppose we want to find the instantaneous rate of change of
0. | ||||||||
| |||||||||||||
Notice that this limit resembles the definition of partial derivative, except that in this case, both variables may change. Further, you should observe that the directional derivative in the direction of the positive 1, 0 )
. Likewise, the directional deriva-tive in the direction of the positive ) is In fact, it turns out that any directional derivative can be calculated simply, in terms of the first partial derivatives, as we see in the following theorem. | ||||
| |||||||||||||||||||||||||||
| ||||||||||||||||||||
For convenience, we define the gradient of a function to be the vector-valued function whose components are the first-order partial derivatives of f | ||
| |||||||||||||
Observe that, using the gradient, we can write a directional derivative as the dot product of the gradient and the unit vector in the direction of interest, as follows. For any unit
vector ,
| ||||
| |||||||||||||
| Theorem 6.2 makes it easy to compute directional derivatives. Further, writing directional derivatives as a dot product has many important consequences, one of which we see in the following example. | ||
| ||||||||||||||||||||||
A graphical interpretation of the directional derivatives in example 6.2 is given below. Suppose we intersect the surface and in Figure 12.34c, we show the case for . In each case, the directional derivative gives the slope of the curve at the origin (in the new coordinate system). Notice that the direction vectors in example 6.2 parts (a) and (b) differ only by sign and the resulting curves in Figures 12.34b and 12.34c are exact mirror images of each other.
Another way of viewing the directional derivative graphically is with level curves. | ||
| ||||||||||||||||
![]() |
Keep in mind that the directional derivative gives the rate of change of a function in a given direction. In this case, it's reasonable to ask in what direction a given function has its maximum or minimum rate of increase. In order to answer such questions, you must first recall from Theorem 3.2 in Chapter 10 that for any two vectors , where ![]()
![]()
Notice now that the maximum value of | |||
| |||||||||||||||||
| In using Theorem 6.3, remember that the directional derivative corresponds to the rate of change of the function | ||
| ||||||||||||||||||||
Notice that the direction of maximum increase in example 6.3 points away from the origin, since the displacement vector from . This should make sense given the familiar shape of the paraboloid. The contour plot of
| ||
| ||||||||||||||||
| Most of the results of this section extend easily to functions of any number of variables. | ||
| |||||||||||||||
| As was the case for functions of two variables, the gradient gives us a simple representation of directional derivatives in three dimensions. | ||
| ||||||||||||||
As in two dimensions, we have that
![]() f (x, y, z) | |||||||
| |||||||||||||||||||||
Recall that for any constant
f (a, b, c) f (a, b, c) f (a, b, c) | ||||
| |||||||||||||
We refer to the line through f (a, b, c)
In the following example, we illustrate the use of the gradient at a point to find the tangent plane to a surface at that point. | ||||
| ||||||||||||||||||||
Recall that in section 12.4, we found that a normal vector to the tangent plane to the surface Note that this is simply a special case of the gradient formula of example 6.7, as follows. First, observe that we can rewrite the equation
| ||||
![]() |
Just as it is important to constantly think of ordinary derivatives as slopes of tangent lines and as instantaneous rates of change, it is crucial to keep in mind at all times the interpretations of gradients. | |
| ||||||||||||||||||