Why does y disappear when taking ∂f/∂x of x² + y²?

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
bobsmith76
Messages
336
Reaction score
0

Homework Statement



I don't understand why

∂f/∂x = xy = y

whereas

∂f/∂x = x2 + y2 = 2x

Why does the y disappear in the second but not in the first?
 
Physics news on Phys.org
hi bobsmith76! :wink:

you mean? …
∂/∂x (xy) = y

∂/∂x (x2 + y2) = 2x​

in each case, y is treated as a constant

in the first, it's multiplied, so it stays; in the second, it's on its own, so its derivative is zero :smile:

∂/∂x means differentiating wrt x while keeping all other variables constant​