Multivariable calculus
Partial Derivatives of sin(x)cos(y)
For f(x, y) = sin(x)cos(y), the partial derivative with respect to x is cos(x)cos(y), and the partial derivative with respect to y is negative sin(x)sin(y). When you differentiate with respect to one variable, the factor built from the other variable is a constant and rides along untouched.
Freeze one variable, differentiate the other
This function is a product of two pieces that never mix: depends only on , and depends only on . To find , treat as a fixed number, say . Then you are differentiating , which gives . Put back in place of .
Now swap roles. Holding fixed makes the constant, and the derivative of is , so the minus sign appears only in the partial.
The mistake: differentiating both factors at once
The most common error is to apply the single variable product rule and write for . That is the derivative you would get if moved along with , which is not what a partial derivative asks. In the variable is frozen, so has derivative zero with respect to and the product rule collapses to a constant multiple.
- Ask which letter is moving before you write a single symbol.
- The factor with no moving letter in it is a constant multiplier, not a term to differentiate.
- You only need the product rule when both factors contain the moving variable, as in .
A quick sanity check at the origin: and . That matches the surface. The whole line sits at height zero, since for every , so walking along it changes nothing, while stepping off it in lifts you at unit slope.
Why physicists like this surface
Differentiate twice in each variable and you get and . Adding them gives a clean relation.
So is an eigenfunction of the Laplacian with eigenvalue . On the square , it is pinned to zero along the edges and , and vanishes along the other two edges, so it is a genuine standing wave mode. Products like this are what separation of variables hands you when you solve a partial differential equation on a rectangle.
Frequently asked questions
Why is there a minus sign in the y partial but not the x partial?
Because while . The minus comes from the cosine factor, and cosine is the factor carrying .
Are the mixed partials equal here?
Yes. Differentiating by gives , and differentiating by gives the same thing. The function is smooth everywhere, so Clairaut's theorem guarantees it.