Multivariable calculus
Directional derivative of x e^y at (3, 0) along (0, 1)
At (3, 0) the gradient of f(x,y) = x e^y is (1, 3). The direction (0, 1) is already a unit vector pointing along the y axis, so the dot product picks out the y partial alone and the directional derivative is 3. Axis directions always recover ordinary partial derivatives.
At x = 3, y = 0, in the unit direction (0, 1).
A partial derivative is a directional derivative
Holding fixed makes a constant, so . Holding fixed leaves as the constant multiplier on , so , which is the original function again.
Now dot with . The zero kills the term and the one keeps the term untouched, which is exactly the definition of the partial with respect to .
The mistake: treating a partial as a different object
Directional derivatives are usually taught after partials, so they can look like a separate machine. They are the same measurement: the partials are the two directional derivatives along and , and every other direction is a weighted blend of them.
- Direction gives
- Direction gives
- Direction gives , which coincidentally ties the axis rate at this point
The related slip is direction , which points the same way but has length 2 and would report 6. And dropping the when differentiating with respect to gives 1 instead of 3.
Not the steepest direction, but close
The steepest ascent at runs along , with rate .
So the axis captures about 95 percent of the maximum available rate at this point. That is the usual pattern when one partial is much larger than the other: its axis is nearly the steepest direction.
The build re-checks that (0, 1) has length 1, rebuilds the gradient of x e^y at (3, 0) by central differences on the function itself, and fails unless the dot product is still 3.
Frequently asked questions
Is the answer 3 just the partial derivative with respect to y?
Yes. Along the unit vector the dot product reduces to . Partials are the axis cases of directional derivatives.
Why is the y partial larger than the x partial at (3, 0)?
Because scales with , and there, while does not depend on at all and equals 1.