Multivariable calculus
Partial Derivatives of sin(xy)
For f(x, y) = sin(xy), the partial derivative with respect to x is y cos(xy), and the partial derivative with respect to y is x cos(xy). The chain rule gives cosine of the inside, then multiplies by the derivative of the inside product xy, which is y when x moves and x when y moves.
Outside first, then the inside
Name the inside , so . The chain rule for partials says differentiate the outside at the inside, then multiply by the partial derivative of the inside.
With held fixed, is a straight line in with slope , so . Symmetrically , which gives the second partial.
At the inside is , so and . Same cosine, different multipliers.
The mistake: forgetting the inside factor
Students write and stop. That answer would be correct if the inside were just . Here the inside changes times as fast as does, so the rate of change of is scaled by . Drop that factor and your answer is wrong by a whole variable.
- Write the inside function down explicitly before you differentiate.
- Check units of variation: if then for every , so must be zero along that line, and is.
- The bare answer fails that test, since it equals when .
A symmetry you can use as a check
Multiply the first partial by and the second by and you get the same expression, . So the two partials satisfy a single relation at every point.
That is exactly what you expect for a function that depends on and only through the product . Any such function is constant along the hyperbolas , and the relation above is the algebraic fingerprint of that.
Frequently asked questions
Is sin(xy) the same as sin(x)sin(y)?
No. has a product inside one sine, while is a product of two sines. Test at : the first is , the second is .
What is the gradient of sin(xy)?
It is . The cosine sets the size and sign, and the vector sets the direction, which is perpendicular to the level hyperbola through the point.