Multivariable calculus
Partial Derivatives of sin(xyz): Chain Rule
The partials of sin(xyz) are f_x = yz cos(xyz), f_y = xz cos(xyz) and f_z = xy cos(xyz). The outer sine becomes a cosine of the same product each time, and the inner partial of xyz with respect to one variable is just the product of the other two.
A triple product, one variable at a time
Set . Holding and fixed makes a constant multiple of , so . The same reasoning gives and for the other two variables.
The rule of thumb: the coefficient of each partial is the product of the variables you did not differentiate with respect to. That is the constant-multiple rule doing its job, not the product rule.
The mistake: using the product rule on xyz
A partial derivative freezes the other variables, so is not a product of three functions of . Applying the product rule anyway and writing for answers a different question. That sum is the rate of change when all three variables increase together at the same rate, a directional derivative along , not a partial derivative at all.
Test it at , where . The true . The product rule answer uses and gives about , nearly double.
- Freeze the other two variables and name their product.
- Differentiate the outer sine, leaving intact inside the cosine.
- Multiply by the frozen product, not by a sum of three terms.
Symmetry as a free check
The function is unchanged if you swap any two of its variables, so its partials must respect that too. Swap and in and the expression comes back identical. A candidate answer that breaks this symmetry is wrong before you test a single number.
On the plane the product is zero, so and the three partials collapse to , and . The gradient there points purely along the direction, which says the function changes only as you step off that plane.
Frequently asked questions
How many chain rule steps does sin(xyz) need?
One. There is a single outer sine wrapped around a single inner function, and the three partials differ only in what the inner partial evaluates to. You would chain twice only if the inner function were itself a composition.
Where does the gradient vanish?
Wherever all three of , and are zero. That happens on the surfaces , and also wherever two of the three variables are zero, for example along the whole axis.