Multivariable calculus
Partials of x sin(y) + y cos(x)
For f(x, y) = x sin(y) + y cos(x), the partial derivative with respect to x is sin(y) minus y sin(x), and the partial derivative with respect to y is x cos(y) plus cos(x). Both terms contain both variables, so each term contributes something to each partial.
Term by term, with the roles swapping
Take first. In the term the moving variable sits in the front factor, so its derivative is . In the term the moving variable sits inside the cosine, so is the constant multiplier and you get .
Now . The roles reverse: has as the multiplier and gives , while has as the multiplier and gives .
Notice that each partial keeps one piece of each term. That is the signature of a function where the variables genuinely interact.
The mistake: assuming a term drops out
When a term visibly contains the other variable, students often discard it. Here contains , but it also contains , so it survives as . A term only disappears when the moving variable is completely absent from it.
- Scan each term for the moving variable before deciding anything.
- If the moving variable is present, differentiate that term and keep the rest as a constant multiplier.
- If it is absent, and only then, the term contributes zero.
A second slip is losing the minus sign on . It comes from , not from anything about .
Linearisation at the origin
Evaluate everything at . The function value is . The partials are and .
So near the origin the surface behaves like the plane . Test it at : the true value is , and the linear estimate is . The error is about , roughly the size you expect from a quadratic correction at that scale.
Frequently asked questions
Do the mixed partials agree?
Yes. Differentiating by gives , and differentiating by gives . The function is smooth, so Clairaut's theorem applies.
Is the origin a critical point?
No. The gradient there is , which is not the zero vector, so the surface has a genuine slope in the direction and cannot have a maximum, minimum, or saddle at that point.