Multivariable calculus
Partial Derivatives of sin(x^2 + y^2): Chain Rule
The partials of sin(x^2 + y^2) are f_x = 2x cos(x^2 + y^2) and f_y = 2y cos(x^2 + y^2). Treat the inner expression x^2 + y^2 as one block: the outer sine becomes a cosine of that same block, and the block's own partial supplies the factor 2x or 2y.
One chain rule, two partials
Write , so . The single variable chain rule does all the work. Differentiate the outer sine, then multiply by the partial derivative of with respect to whichever variable you are varying.
For the outer factor is identical. Only the inner partial changes, from to , so compute once and reuse it.
Where students lose the inner derivative
The usual error is writing and stopping. That is the derivative of with respect to , not with respect to . It is off by exactly the factor . At , the true partial is and the truncated version gives , a ratio of , which is .
A second slip is treating as constant so aggressively that disappears from inside the cosine. Holding fixed means its value stays put during the differentiation, not that it leaves the expression.
- Name the inner function before you differentiate anything.
- Write the outer derivative with still in it, then substitute back.
- Multiply by the inner partial as a separate written step, not mentally.
Reading the answer geometrically
Both partials carry the same cosine factor, so the gradient is , a scalar times the radial vector . Wherever it is not the zero vector, the gradient points straight toward or straight away from the origin, which is what you expect from a surface depending only on distance from the origin.
It also tells you where both partials vanish at once: either , or , meaning . Those circles are the crests and troughs of the ripple.
Frequently asked questions
Do I have to apply the chain rule separately for each variable?
You apply it twice, but only the inner factor changes. The outer derivative is common to both, so compute it once and attach for the partial and for the partial.
What is the gradient at the origin?
The zero vector. Both partials contain a factor of or , so both vanish at . Near the origin behaves like , so that critical point is a local minimum with value .