Multivariable calculus
Partial Derivatives of e^(xy) cos y
For f(x,y) = e^(xy) cos y, the partial with respect to x is y e^(xy) cos y, and the partial with respect to y is e^(xy) times (x cos y - sin y). Only the y-partial needs the product rule, because cos y is constant when x is the moving variable.
Decide which factors are alive
This is the cleanest example of a rule that saves time: before differentiating, list which factors actually contain the variable you are moving. In , only contains , so is a constant multiplier and the product rule is not needed.
In , both factors are alive: depends on through the exponent and obviously does. Now the product rule is unavoidable.
Factor the common out. The exponential is never zero, so the factored form immediately tells you the -partial vanishes exactly when , that is when .
The mistake: sign and chain rule slips in the y-partial
Two errors dominate here. The first is writing instead of , because the derivative of cosine carries the minus sign. The second is writing for the derivative of in , forgetting that the chain rule brings down the inner derivative .
- , not and not .
- . The coefficient is always the other variable.
- . The minus sign is what makes the two terms compete rather than reinforce.
A structural check: the -partial must contain untouched, because a constant factor passes straight through differentiation. If your -partial has a in it, you differentiated a factor that was supposed to be frozen.
A point where the two partials disagree
At the exponential is , , and . The -partial picks up the factor and dies; the -partial survives.
This is a good reminder that a partial derivative can be zero without anything special happening to the function. Along the line the function is constantly 1, so of course moving in changes nothing there.
Frequently asked questions
Why does the x-partial have no sine term?
Because does not depend on . When you differentiate with respect to , that factor behaves like a fixed number and comes along unchanged. Sine only appears when you differentiate , which happens only in the -partial.
Where does the gradient vanish?
The -partial is zero when or . On the line the -partial reduces to , which is zero only at . On the branch where the -partial is , and there, so it never vanishes. The origin is the only critical point.