Partial derivatives give us an understanding of how a surface changes when we move in the and directions. We made the comparison to standing in a rolling meadow and heading due east: the amount of rise/fall in doing so is comparable to . Likewise, the rise/fall in moving due north is comparable to . The steeper the slope, the greater in magnitude .
But what if we didn’t move due north or east? What if we needed to move northeast and wanted to measure the amount of rise/fall? Partial derivatives alone cannot measure this. This section investigates directional derivatives, which do measure this rate of change.
We begin with a definition.
Let be continuous on an open set and let be a unit vector. For all points , the directional derivative of at in the direction of is
The partial derivatives and are defined with similar limits, but only or varies with , not both. Here both and vary with a weighted , determined by a particular unit vector . This may look a bit intimidating but in reality it is not too difficult to deal with; it often just requires extra algebra. However, the following theorem reduces this algebraic load.
Let be differentiable at , and let be a unit vector. The directional derivative of at in the direction of is
We will use Theorem 13.5.1, with and . This means that
Let and let . Find the directional derivative of , at , in the following directions:
toward the point ,
in the direction of , and
toward the origin.
Solution††margin: The surface is plotted in Figure 13.6.1, where the point is indicated in the -plane as well as the point which lies on the surface of . We find that and ; and .
Let be the unit vector that points from the point to the point , as shown in the figure. The vector ; the unit vector in this direction is . Thus the directional derivative of at in the direction of is
Thus the instantaneous rate of change in moving from the point on the surface in the direction of (which points toward the point ) is . Moving in this direction moves one steeply downward.
We seek the directional derivative in the direction of . The unit vector in this direction is . Thus the directional derivative of at in the direction of is
Starting on the surface of at and moving in the direction of (or ) results in no instantaneous change in -value. This is analogous to standing on the side of a hill and choosing a direction to walk that does not change the elevation. One neither walks up nor down, rather just “along the side” of the hill.
Finding these directions of “no elevation change” is important.
At , the direction towards the origin is given by the vector ; the unit vector in this direction is . The directional derivative of at in the direction of the origin is
Moving towards the origin means “walking uphill” quite steeply, with an initial slope of .
As we study directional derivatives, it will help to make an important connection between the unit vector that describes the direction and the partial derivatives and . We start with a definition and follow this with a Key Idea.
Let be differentiable on an open set that contains the point .
The gradient of is .
The gradient of at is .
To simplify notation, we often express the gradient as . It is often useful to think of the gradient as an operator:
The operator only has any meaning when it operates on a function; it doesn’t mean anything by itself. But this notation does help us to apply it correctly to find the gradient. The gradient allows us to compute directional derivatives in terms of a dot product.
The directional derivative of in the direction of the unit vector is
The properties of the dot product previously studied allow us to investigate the properties of the directional derivative. Given that the directional derivative gives the instantaneous rate of change of when moving in the direction of , three questions naturally arise:
In what direction(s) is the change in the greatest (i.e., the “steepest uphill”)?
In what direction(s) is the change in the least (i.e., the “steepest downhill”)?
In what direction(s) is there no change in ?
Using the key property of the dot product, we have
(13.4) |
where is the angle between the gradient and . (Since is a unit vector, .) This equation allows us to answer the three questions stated previously.
Equation (13.4) is maximized when , i.e., when the gradient and have the same direction. We conclude the gradient points in the direction of greatest change.
Equation (13.4) is minimized when , i.e., when the gradient and have opposite directions. We conclude the gradient points in the opposite direction of the least change.
Equation (13.4) is 0 when , i.e., when the gradient and are orthogonal to each other. We conclude the gradient is orthogonal to directions of no change.
This result is rather amazing. Once again imagine standing in a rolling meadow and face the direction that leads you steepest uphill. Then the direction that leads steepest downhill is directly behind you, and side-stepping either left or right (i.e., moving perpendicularly to the direction you face) does not change your elevation at all.
Recall that a level curve is defined as a curve in the - plane along which the -values of a function do not change. Let a surface be given, and let’s represent one such level curve as a vector-valued function, . As the output of does not change along this curve, for all , for some constant .
Since is constant for all , . By the Multivariable Chain Rule, we also know
This last equality states : the gradient is orthogonal to the derivative of . Our conclusion: at any point on a surface, the gradient at that point is orthogonal to the level curve that passes through that point.
We restate these ideas in a theorem, then use them in an example.
Let be differentiable on an open set with gradient , let be a point in and let be a unit vector.
The maximum value of is ; the direction of maximal increase is .
The minimum value of is ; the direction of minimal increase is .
At , is orthogonal to the level curve passing through .
Let and let . Find the directions of maximal/minimal increase, and find a direction where the instantaneous rate of change is 0.
SolutionWe begin by finding the gradient. We see that and , thus
Thus the direction of maximal increase is . In this direction, the instantaneous rate of change is .
Figure 13.6.2 shows the surface plotted from two different perspectives. In each, the gradient is drawn at with a dashed line (because of the nature of this surface, the gradient points “into” the surface). Let be the unit vector in the direction of at . Each graph of the figure also contains the vector . This vector has a “run” of 1 (because in the - plane it moves 1 unit) and a “rise” of , hence we can think of it as a vector with slope of in the direction of , helping us visualize how “steep” the surface is in its steepest direction.
The direction of minimal increase is ; in this direction the instantaneous rate of change is .
Any direction orthogonal to is a direction of no change. We have two choices: the direction of and the direction of . The unit vector in the direction of is shown in each graph of the figure as well. The level curve at is drawn: recall that along this curve the -values do not change. Since is a direction of no -change, this vector is tangent to the level curve at .
Let . Find the directional derivative of in any direction at .
SolutionWe find . At , we have . According to Theorem 13.6.2, this is the direction of maximal increase. However, is directionless; it has no displacement. And regardless of the unit vector chosen, .
Figure 13.6.3 helps us understand what this means. We can see that lies at the top of a paraboloid. In all directions, the instantaneous rate of change is 0.
So what is the direction of maximal increase? It is fine to give an answer of , as this indicates that all directional derivatives are 0.
The fact that the gradient of a surface always points in the direction of steepest increase/decrease is very useful, as illustrated in the following example.
Consider the surface given by . Water is poured on the surface at . What path does it take as it flows downhill?
SolutionLet be the vector-valued function describing the path of the water in the - plane; we seek and . We know that water will always flow downhill in the steepest direction; therefore, at any point on its path, it will be moving in the direction of . (We ignore the physical effects of momentum on the water.) Thus will be parallel to , and there is some constant such that .
We find and write as and as . Then
This implies
As equals both expressions, we have
To find an explicit relationship between and , we can integrate both sides with respect to . Recall from our study of differentials that . Thus:
Now raise both sides as a power of : | ||||
As the water started at the point , we can solve for :
Thus the water follows the curve in the - plane. The surface and the path of the water is graphed in Figure 13.6.4(a). In part (b) of the figure, the level curves of the surface are plotted in the - plane, along with the curve . Notice how the path intersects the level curves at right angles. As the path follows the gradient downhill, this reinforces the fact that the gradient is orthogonal to level curves.
The concepts of directional derivatives and the gradient are easily extended to three (and more) variables. We combine the concepts behind Definitions 13.6.1 and 13.6.2 and Theorem 13.6.1 into one set of definitions.
Let be differentiable on an open ball and let be a unit vector in .
The gradient of is .
The gradient of at is
The directional derivative of in the direction of is
The same properties of the gradient given in Theorem 13.6.2, when is a function of two variables, hold for , a function of three variables.
Let be differentiable on an open set with gradient , let be a point in , and let be a unit vector.
The maximum value of is ; the direction of maximal increase is .
The minimum value of is ; the direction of minimal increase is .
At , when and are orthogonal.
We interpret the third statement of the theorem as “the gradient is orthogonal to level surfaces,” the three-variable analogue to level curves.
If a point source is radiating energy, the intensity at a given point in space is inversely proportional to the square of the distance between and . That is, when , for some constant .
Let , let be a unit vector, and let Measure distances in inches. Find the directional derivative of at in the direction of , and find the direction of greatest intensity increase at .
SolutionWe need the gradient , meaning we need , and . Each partial derivative requires a simple application of the Quotient Rule, giving
The directional derivative tells us that moving in the direction of from results in a slight decrease in intensity. (The intensity is decreasing as moves one farther from the origin than .)
The gradient gives the direction of greatest intensity increase. Notice that
That is, the gradient at is pointing in the direction of , that is, towards the origin. That should make intuitive sense: the greatest increase in intensity is found by moving towards to source of the energy.
The directional derivative allows us to find the instantaneous rate of change in any direction at a point. We can use these instantaneous rates of change to define lines and planes that are tangent to a surface at a point, which is the topic of the next section.
What is the difference between a directional derivative and a partial derivative?
For what is ?
For what is ?
The gradient is to level curves.
The gradient points in the direction of increase.
It is generally more informative to view the directional derivative not as the result of a limit, but rather as the result of a product.
In Exercises 7–12, a function is given. Find .
In Exercises 13–18, a function and a point are given. Find the directional derivative of in the indicated directions. Note: these are the same functions as in Exercises 7–12.
In Exercises 19–24, a function and a point are given.
Find the direction of maximal increase of at .
What is the maximal value of at ?
Find the direction of minimal increase of at .
Give a direction such that at .
Note: these are the same functions and points as in Exercises 13–18.
,
,
, .
, .
,
,
In Exercises 25–28, a function , a vector and a point are given.
Find .
Find at , where is the unit vector in the direction of .
, ,
, ,
, ,
, ,
In Exercises 29–30, a function and a point are give. Find the direction of maximum increase and the maximal value of the directional derivative for at
at
at