Multivariable calculus
Directional derivative of x^3 + y^3 - 3xy at (1, 2)
At (1, 2) the gradient of f(x,y) = x^3 + y^3 - 3xy is (-3, 9). Dotting with the unit direction (-0.28, 0.96) gives 237/25, that is 9.48. The gradient has length 3 times the square root of 10, about 9.4868, so this direction is close to the steepest one but not equal to it.
At x = 1, y = 2, in the unit direction (-0.28, 0.96).
The cross term is where the care goes
The cubes are straightforward. The term is the one to slow down on: with held fixed it differentiates to , and with held fixed it differentiates to .
At that is and . Note the partial is negative even though is positive, because the cross term dominates the small cube there.
The mistake: differentiating the cross term as a constant
Writing instead of is the standard error, and it survives unnoticed whenever the other variable happens to be 1. Here , so it turns the partial from into and the answer from 9.48 into 8.64.
The second mistake is interpretive. Since is so close to the maximum rate of about , it is tempting to say the given direction is the direction of steepest ascent. It is not, it is about 2.2 degrees away, and the two are genuinely different vectors.
- Given direction:
- Steepest ascent direction:
- The gap is 2.17 degrees and its cosine is 0.99928, which is why the two rates look almost identical
The same surface has a point with no rate at all
This surface is the standard example for critical points, and comparing with those points sharpens what a directional derivative measures.
At every unit direction gives 0, because the gradient itself vanishes. One step away at , the same function is climbing at nearly 9.5 units per unit distance. Gradients can change fast, so evaluate at the point the question asks about and nowhere else.
The build re-checks that (-0.28, 0.96) has length 1, rebuilds the gradient of x^3 + y^3 - 3xy at (1, 2) by central differences on the function itself, and fails unless the dot product is still 9.48.
Frequently asked questions
What is the largest possible directional derivative at (1, 2)?
It is , reached along . Our direction gets 9.48 of that.
Why is the x component of the gradient negative here?
Because compares with . At we have and , so the cross term wins and increasing decreases .