Multivariable calculus
Partial Derivatives of xyz e^z
For f(x,y,z) = xyz e^z, the partial with respect to x is yz e^z, the partial with respect to y is xz e^z, and the partial with respect to z is xy(z + 1)e^z. Only the z-partial needs the product rule, since z is the only variable appearing in two factors at once.
Find the variable that appears twice
With three variables the bookkeeping matters more, so start by asking which variable shows up in more than one factor. Here appears once, appears once, and appears twice: as the bare factor and inside . Only can trigger the product rule.
For the -partial, everything except is frozen, so is the constant times . The same reasoning gives the -partial.
For the -partial, freeze and so the constant multiplies the genuine product . Now apply the product rule and factor the common exponential.
The mistake: assuming every variable behaves the same way
In a symmetric looking expression like , it is tempting to write all three partials by the same pattern and produce for the -partial. That answer misses the term where the exponential is differentiated. It happens to agree with the truth where , and also wherever makes both versions vanish, but it is wrong everywhere else.
- Only appears in two -dependent factors, so only the -partial gets a product rule.
- The factored form shows the -partial vanishes when , or when , or when .
- The exponential never contributes a zero, since for every real .
A structural check: the -partial should contain no , and the -partial should contain no , because is degree one in each of those variables. The -partial does still contain , which is the visible fingerprint of the product rule.
The gradient at a point on the plane z = 0
Take . Both the -partial and the -partial carry a factor of , so they vanish. The -partial does not, because of the produced by the product rule.
Near the set where vanishes is exactly the plane , since and are nowhere near zero there. A gradient is perpendicular to its level set, so is the only direction it could point. That agreement is a strong check on the algebra.
Frequently asked questions
Why does the z-partial have a (z + 1) factor?
The product rule on gives . Both terms share , so factoring it out leaves . That factored form is more useful than the expanded one, because it shows immediately where the derivative is zero.
Do the mixed partials commute for this function?
Yes. For example, differentiating with respect to gives , and differentiating with respect to gives as well. The function is smooth on all of space, so Clairaut's theorem applies.