Multivariable calculus
Partial Derivatives of e^(x y^2)
The partials of e^(x y^2) are f_x = y^2 e^(x y^2) and f_y = 2xy e^(x y^2). The exponential reproduces itself, so all the work is in the inner function x y^2. Holding y fixed makes it a constant multiple of x, giving y^2, while holding x fixed leaves x times the derivative of y^2, giving 2xy.
The exponential comes along unchanged
Set . Because , the outer factor of both partials is again. Everything that separates the two answers happens inside, in and .
Holding fixed makes a constant multiple of , and the constant is . No product rule is needed, because only one factor is moving.
For the frozen constant is , and it multiplies the that the power rule produces from . That is where comes from: the is carried through, not created.
Two ways the inner partial gets truncated
The first error is dropping the frozen variable and writing . Test it at : the true value is and the truncated one gives , short by exactly the factor .
The second is swapping the two inner partials. Unlike , this function is not symmetric in and , so the swap shows up at almost any test point: at the partial is while the partial is about , four times larger.
- Name the inner function before differentiating anything.
- Freeze one variable and read off exactly what multiplies the other.
- Attach the untouched last, so it cannot absorb a lost factor.
A whole line of critical points
The exponential is never zero, so vanishes only when , and at those points is zero too. The critical set is therefore the entire axis, and along it .
None of those points is a maximum or a minimum. Step off the axis at and the value rises to ; do the same at and it falls to . At the value is about and at it is about , so the axis is a watershed rather than a ridge or a trough.
One more shape check comes free: is never negative, so everywhere and never decreases as you move right. Any candidate partial carrying an odd power of out front would change sign with and is wrong on that ground alone.
Frequently asked questions
Why is there no x in the x partial?
Because is linear in , so with no left in it. The variable has not left the problem: it is still sitting inside the factor , which is why the partial still changes value as you move along a horizontal line.
Do the mixed second partials agree?
Yes, and checking that is a free test of both first partials. Differentiating with respect to gives , and differentiating with respect to gives the same expression. If yours disagree, one of the first partials is wrong.