Directional derivative and gradient examples
Example 1
Let (a) Find . (b) Find the derivative of in the direction of (1,2) at the point (3,2).
Solution: (a) The gradient is just the vector of partial derivatives. The partial derivatives of at the point are:
Therefore, the gradient is
(b) Let be a unit vector. The directional derivative at (3,2) in the direction of is
To find the directional derivative in the direction of the vector (1,2), we need to find a unit vector in the direction of the vector (1,2). We simply divide by the magnitude of .
Plugging this expression for into equation (1) for the directional derivative, and we find that the directional derivative at the point in the direction of is
Example 2
For the of Example 1, find the directional derivative of at the point (3,2) in the direciton of .
Solution: The unit vector in the direction of is
Since we are still at the point (3,2), equation (1) is still valid. We plug in our new to obtain
Example 3
For the of Example 1 at the point (3,2), (a) in which direction is the directional derivative maximal, (b) what is the directional derivative in that direction?
Solution: (a) The gradient points in the direction of the maximal directional derivative. The directional derivative is maximal in the direction of (12,9). (A unit vector in that direction is .)
(b) The magnitude of the gradient is this maximal directional derivative, which is . Hence the directional derivative at the point (3,2) in the direction of (12,9) is 15.
We could double-check by calculating the result using equation (1) and the unit vector . Then we find that
which agrees with our result.
Example 4
For the of Example 1 at the point (3,2), (a) what is the directional derivative in the direction (-3,4) (which is perpendicular to ), and (b) what is the directional derivative in the direction (-4,-3) (which is opposite of the direction of )?
Solution: (a) The directional derivative must be zero. (b) The directional derivative must be , which is . (You can verify these by calculating the results directly using equation (1).)