Let be a differebtiable function of and . As the directional derivative gives the rate of change of at (of course when is a unit vector), to find the direction in which increases most rapidly, we have to maximize . Because is differentiable, we have:
where is the angle between the gradient and the direction vector . Therefore:
The maximum value of occurs when or . This means reaches its maximum value when has the same direction as (that is when ), and the largest value of is .
When has the opposite direction as ; that is when , we have or . This means moving in the opposite direction of , the function decreases most rapidly.
If we move in a direction that is normal to (), there is zero change in .
When , the rate of change of is zero in all directions (because for every ).
Figure 1. A function increases most rapidly if we move in the direction of its gradient and decreases most rapidly if we move in the opposite direction of its gradient.
This way we could prove the following theorem.
Theorem 1. Suppose a function is differentiable at . Then
If , increases most rapidly if we move in the direction of . The maximum value of is .
If , decreases most rapidly if we move in the opposite direction of . The minimum value of is .
Suppose . If we move in a direction that is normal to , there will be no change in .
If , the rate of change of is zero in all directions. For every , we have .
Example 1
Suppose the temperature (measured in degree Fahrenheit) in the space when is given by , where and are measured in inches. If you are at , which way should you move to cool down fastest? What is the rate of temperature decrease?
Solution
Temperature decreases most rapidly if we move in the opposite direction of . So we need to find :
Therefore, to cool down most rapidly we need to move in the direction of and our unit vector is
The rate of change in temperature if we move along would be
Example 2
Suppose you are climbing a mountain. Further suppose you are equipped with a map showing the height of each point of the mountain is given by (all measured in kilometers). If you want to start climbing from , find the path to the peak of the mountain if you always move in the direction of maximum height increase.
Solution
If you want to always climb in the direction of maximum increase in height, you have to move in the direction of . If is the parametrization of the path, we should have:
for some which may vary along the path. In other words, at each point of the path we have a different . Because , we have:
Therefore we have: By integrating both sides we have:
Thus: where . We can find such that lies on the path: and our path to the peak is . This path is shown in thick black in the following figure. As we enforced, the path is along the gradient vectors. We also see that the path is perpendicular to level curves at the points of intersections. This is not a coincidence; gradient at each point is perpendicular to level curves (or level surfaces).