0

Suppose a function $f(x,y)=x+y$ and We have to find $\partial f/\partial x$ given $x+y=1$. There two ways I can do this but I'm confused about which one is right and why?


$$f(x,y)=x+y=1$$ $$\Rightarrow \frac{\partial f}{\partial x}=0$$


$$\frac{\partial f}{\partial x}=\frac{\partial }{\partial x}(x+y)=1$$

which one is correct?

1 Answers1

1

It's not clear what you mean by "given $x+y=1$".

  • If you have to find $\frac{\partial f}{\partial x}$ at a location $(x,y)$ where $x+y=1$, then it's just the general derivative, $1$, evaluated at that $(x,y)$, but the result is $1$ since that is a constant function. This is your second proposal.
  • If you are saying the domain of $f$ is restricted to the line where $x+y=1$, then a change in $x$ induces a change in $y$ (so that you remain within the domain) and the function is a constant $1$ on its domain. And then this derivative is $0$. This is your first proposal.
2'5 9'2
  • 54,717