Multivariable calculus
Partial Derivatives of cos(x^2 y): Chain Rule
The partials of cos(x^2 y) are f_x = -2xy sin(x^2 y) and f_y = -x^2 sin(x^2 y). The outer cosine becomes minus sine of the same inner expression each time. The inner partial of x^2 y is 2xy with respect to x, since y is a constant multiplier, and x^2 with respect to y.
The inner function is a product, but only one factor varies
Put . Differentiating with respect to treats as a constant coefficient and gives . Differentiating with respect to treats as a constant coefficient and gives . Neither step needs the product rule, because in each case one factor is frozen.
Notice the outer factor is identical in both. Only the inner partial distinguishes them, which is true of every chain rule problem with a single inner function.
Reaching for the product rule too early
Students often try to apply the product rule to itself, as if it were . It is not a product. It is a single cosine of a product, and the product lives entirely inside the argument where the constant-multiple rule handles it.
The other frequent error is losing the from the partial and writing . At that gives instead of the true , a factor of out, which is exactly the missing .
- Identify the inner function first, in this case .
- Differentiate the outer cosine, keeping the inner expression intact.
- Differentiate the inner function with respect to one variable only.
Where the surface is flat
Both partials vanish exactly where , that is on the curves for integer . Nothing extra comes from the factors and out front: can only lose its at , and there the argument is , so the sine is zero anyway. The case is worth reading slowly, because means or : both coordinate axes are already in the family.
Along the axis the function is the constant . That is a ridge at the maximum height of a cosine, not an isolated extremum, so the second derivative test cannot classify it and the bound has to.
Frequently asked questions
Does the chain rule apply more than once here?
Once. The outer cosine is the only composition, and ordinary single variable differentiation handles the inner . You would chain again only if the inner function were itself a composition, which is not.
Why is there no y in the y partial?
Because is linear in , so with no remaining. The variable has not vanished from the problem though: it is still there inside .