Multivariable calculus
Partial Derivatives of sin(xy)cos(z)
For f(x,y,z) = sin(xy)cos(z), the partial derivative with respect to x is y cos(xy)cos(z), with respect to y is x cos(xy)cos(z), and with respect to z is negative sin(xy)sin(z). The cos(z) factor is a constant for the x and y partials, and the minus sign appears only in the z partial.
Split the function before you differentiate
This function factors into a part that depends only on and and a part that depends only on . Whenever a function splits like that, each partial derivative differentiates one factor and copies the other down unchanged. No product rule is needed, because one of the two factors is constant for the variable in question.
For , the factor is a constant. Differentiate with respect to : the outside derivative is and the inside derivative of with respect to is .
The partial is identical with the roles of and swapped, giving . For the factor is the constant, and the derivative of is .
The mistake: losing the inside derivative or the minus sign
The single most common error is writing for the partial and forgetting the factor . The argument of the sine is , not , so the chain rule owes you the inside derivative. A quick way to notice is dimensional: differentiating with respect to should leave present, and it does.
The second error is a sign. Only the partial picks up a minus, because only there do you differentiate a cosine. The and partials differentiate a sine, which gives a plain cosine with no sign change.
- Differentiating gives , with the inside derivative attached.
- Differentiating gives , with the inside derivative attached.
- The inside derivative of is in the direction and in the direction.
A quick numerical spot check
Pick a point where the trigonometry is easy and test all three at once. At the argument is and is , so , , and .
That gives , and . The middle value makes sense: near that point, holding and , the function behaves like , whose slope at is exactly . The other two vanish because moving in or from there does not change the value to first order.
Frequently asked questions
Why is there no product rule for the x partial?
The product rule is needed when both factors depend on the differentiating variable. Here does not depend on at all, so it is a constant multiplier and rides along untouched. You would need the product rule for , since has two dependent factors.
Are the mixed partials equal here?
Yes. Sines, cosines and products of them are smooth everywhere, so Clairaut's theorem applies and the order of differentiation does not matter for any pair of variables.