Multivariable calculus
Gradient of x^3 y - x y^3: Full Worked Solution
For f(x, y) = x^3 y - x y^3 the gradient is (3x^2 y - y^3, x^3 - 3x y^2). At the point (2, 1) it equals (11, 2). Both terms contain both variables, so both terms contribute to both components, which is where most sign and exponent errors creep in.
Every term survives both partials, so work term by term
Neither term is free of or free of , so nothing drops out. Handle one term at a time. For , treat as a fixed number, which makes the coefficient of and the coefficient of .
For , the roles reverse. Now multiplies and multiplies .
At : the first component is and the second is , so .
The mistake: moving the exponent to the wrong variable
The classic wrong second component is , from differentiating with respect to and pulling the exponent off out of muscle memory. The exponent that moves is the one attached to the variable you are differentiating.
In the carries an invisible exponent of . Bringing it down and reducing gives , so the whole rides along untouched.
- , not and not .
- Watch the minus sign on : it stays with the term, giving in the partial and in the partial.
- Symmetry check: swapping and turns into , and it also swaps the two gradient components with a sign flip. Both answers pass that test.
Where the gradient is zero
Factor each component. The first is and the second is , and both must vanish at once.
Suppose . Then the second equation becomes , forcing . Suppose instead . Substituting into the second component gives , so again and then . The origin is the only critical point.
The function itself factors as , so it is zero on four lines through the origin and alternates sign between them, eight sectors in all. That confirms the origin is a saddle rather than an extreme value.
Frequently asked questions
What is the maximum rate of increase of x^3 y - x y^3 at (2, 1)?
It is the length of the gradient there, , which is about . It is achieved in the direction .
Do the mixed second partials of this function agree?
Yes. Differentiating with respect to gives , and differentiating with respect to gives the same . Clairaut's theorem guarantees this for any polynomial.