Multivariable calculus
Directional derivative of x^2 y at (1, 2)
At the point (1, 2) the gradient of f(x,y) = x^2 y is (4, 1). Dotting that with the unit direction (0.6, 0.8) gives a directional derivative of 16/5, which is 3.2. That number is the rate of change of f per unit of distance moved from (1, 2) in that direction.
At x = 1, y = 2, in the unit direction (0.6, 0.8).
Gradient first, then one dot product
A directional derivative in a unit direction is nothing more than the gradient dotted with that direction. There is no new differentiation rule to learn.
Treat as a constant to get , then treat as a constant to get . Evaluate both at the point before you dot, not after.
The direction has to be a unit vector
This is the mistake that costs the most marks. If the question hands you the direction and you dot with it as given, you get , which is five times too large. Divide by the length first.
The reason is what the number means: change in per unit of distance travelled. A vector of length 5 walks five units for every one unit the formula assumes, so the rate comes out scaled by 5.
How 3.2 compares with the steepest rate
The largest directional derivative at a point is the length of the gradient there, and it happens in the gradient's own direction. Here .
- Steepest ascent direction:
- Our direction sits about 39.1 degrees away from that, so
- , which is the answer above up to the rounding in the cosine
The build re-checks that (0.6, 0.8) has length 1, rebuilds the gradient of x^2 y at (1, 2) by central differences on the function itself, and fails unless that gradient dotted with the direction is still 3.2 to within a relative 1e-4.
Frequently asked questions
What happens if I dot with (3, 4) instead of (0.6, 0.8)?
You get 16 instead of 3.2. The two vectors point the same way, but only the unit one measures change per unit distance. Always normalise before the dot product.
Can the directional derivative here ever be larger than 3.2?
Yes. The maximum over all unit directions is , reached in the direction of the gradient itself.