Multivariable calculus
Directional derivative of x^2 + 4y^2 at (1, 1)
At (1, 1) the gradient of f(x,y) = x^2 + 4y^2 is (2, 8). Dotting with the unit direction (0.96, -0.28) gives -8/25, that is -0.32. The direction sits a little past the tangent to the level ellipse, so the value is small and negative even though the bowl is steep here.
At x = 1, y = 1, in the unit direction (0.96, -0.28).
An elliptic bowl and its gradient
Each term differentiates on its own: gives and contributes nothing to the partial, while gives and contributes nothing to the partial.
The lopsidedness matters. The 4 in front of makes the surface climb four times faster in than in at the same coordinate value, and the gradient leans heavily toward the axis.
The mistake: assuming outward means uphill
The direction moves away from the origin in , and the surface is a bowl, so students often expect an increase. The level curves are ellipses, not circles, and stepping that way crosses onto a slightly lower ellipse.
- , and the level curve through the point is
- Step along the direction to , where , lower than 5
- Only for a circular bowl like would outward always mean uphill
The other frequent slip is writing and forgetting the 4. That would give , positive, and the sign of the answer would be wrong as well as its size.
Almost tangent to the level ellipse
The angle between and is about 92.2 degrees, only just past the right angle. That is why the answer is close to zero despite a gradient of length .
The exactly tangent direction is , which is close to our direction but not equal to it. That small gap is the whole of the .
The build re-checks that (0.96, -0.28) has length 1, rebuilds the gradient of x^2 + 4y^2 at (1, 1) by central differences on the function itself, and fails unless the dot product is still -0.32.
Frequently asked questions
How can the answer be negative on a bowl that opens upward?
A bowl has directions of every kind at every point except its bottom. Here the term shrinks at rate while the term grows at only , so the step nets out downhill.
Where is the only point with all directional derivatives zero?
At the origin, where . That is the minimum of the bowl, and it is the one place where no direction changes to first order.