Multivariable calculus
Gradient of x^3 - 3xy^2: Monkey Saddle Worked Out
For f(x, y) = x^3 - 3xy^2 the gradient is (3x^2 - 3y^2, -6xy). At the point (2, 1) it equals (9, -12), a vector of length 15. The gradient is zero only at the origin, where the surface forms a monkey saddle with three rising and three falling directions.
Take the mixed term apart one variable at a time
The term contains both variables, so it contributes to both partials, just in different ways. Holding fixed makes a coefficient in front of .
Now hold fixed. The term is a constant and disappears, while becomes the coefficient in front of .
At : and , so with .
The mistake: letting the mixed term vanish from one partial
The most common wrong answer is , dropping from the -component. The reasoning behind the slip is that is a constant when is frozen, so surely it differentiates to zero.
It does not, because is not standing alone. It is multiplied by , and is the live variable. A constant times differentiates to that constant, not to zero. Compare with .
- A term dies under only if it contains no at all.
- contains , so it survives in as .
- Sanity check at : has derivative , which is at . The formula gives , so it agrees.
One critical point, and a surface that goes up three ways
Set both components to zero. From you get or . If , the first equation gives , so . If , it gives , so . The origin is the only critical point.
In polar coordinates , which oscillates three times as you circle the origin. That is the monkey saddle: three directions where the surface rises and three where it falls, so the animal gets grooves for two legs and a tail.
This function is also harmonic, meaning its two pure second partials cancel.
Frequently asked questions
Why does the second derivative test fail at the origin here?
At every second partial is zero, so and the test is inconclusive. You classify the point directly instead: changes sign through the origin, so it is neither a maximum nor a minimum.
Where does the gradient of x^3 - 3xy^2 point purely along the y-axis?
You need with , so with . Along the diagonals the gradient is , which is vertical.