I assume you are taking the derivative with respect to x? If so you need to use the chain rule, i.e. .
To start you off
.
Also, if then
I hope that helps.
you don't need to do it like that... (i assume that your last " y' " is derivated by the x ) it's much easier (for more complex problems) to just get the constant (in this case y) out ...
this :
is being used for derivate something like this (where are two functions )
that what you did there is like that for (2x^2) for derivate on "x" you do that's to much work to be done, especially when we have constant on our hands
sorry i don't have intention to be rude or something but to do derivation of function and constant like derivation of two functions ... that's not wrong but not needed at all
Except that you are assuming that y is a constant with respect to x and I was not assuming this. Because there was no statement of dependence of y on x it is more correct to assume dependence and then if there is no dependence we can just say and everything simplifies to your case.