0

I need to find partial derivatives of a function $z = 2z + xy^2$. Usually, I'd just simplify it to $z = -xy^2$ and find that $\cfrac{\partial z}{\partial x}=-y^2$ and $\cfrac{\partial z}{\partial y}=-2yx$, however, my professor said this is not the way to solve this. I've been unsuccessful in searching for anything like this on the internet(probably due to the lack of my searching skills) so I'd appreciate any kind of information or help.

1 Answers1

0

Let me make explicit why I say that there is no (substantive) reason for your professor's objection to your method. In particular, it is because (partial) differentiation is a linear operator, and in particular respects addition and scalar multiplication. I will address partial differentiation with respect to $y$ only, for brevity.

Since (partial) differentiation respects addition and scalar multiplication, then the following are equivalent: $$\frac\partial{\partial y}[z]=\frac\partial{\partial y}[2z+xy^2]\\\frac\partial{\partial y}[z]=2\frac\partial{\partial y}[z]+\frac\partial{\partial y}[xy^2]\\\frac\partial{\partial y}[z]+-2\frac\partial{\partial y}[z]=2\frac\partial{\partial y}[z]+-2\frac\partial{\partial y}[z]+\frac\partial{\partial y}[xy^2]\\-\frac\partial{\partial y}[z]=\frac\partial{\partial y}[xy^2]\\\frac\partial{\partial y}[z]=-\frac\partial{\partial y}[xy^2]\\\frac\partial{\partial y}[z]=\frac\partial{\partial y}[-xy^2]$$ That last, of course, is precisely what you'd have found if you started by the quick rearrangement of the original equation to the form $z=-xy^2,$ and then done the partial differentiation. But this is hardly surprising, as $z=2z+xy^2$ and $z=-xy^2$ are also equivalent and so applying partial differentiation to both sides of the two equations should garner another pair of equivalent equations.

You did absolutely nothing that was incorrect. It isn't the only way to proceed (in fact, there are uncountably-infinitely-many ways we could do this problem), but yours is (I contend) the best way to proceed of all of them.

Cameron Buie
  • 102,994