I am self learning calculus and have a problem that may be simple here but I cant find an answer on the web so here it is:
If we have the equation:
$$y = y^2x$$
and differentiate it (implicitly and using product rule) we get:
$$\frac{dy}{dx} = \frac{y^2}{1-2xy}.$$
However, $y =y^2x$ can be simplified to $1 = xy$, i.e. $y = \frac{1}{x} $, which when differentiated using the power rule gives $\frac{dy}{dx} = -\frac{1}{x^2}$. The two differentials are different, as $\frac{dy}{dx} = -\frac{1}{x^2}$ does not equal $\frac{dy}{dx} = \frac{y^2}{1-2xy}$.
Why is this when we are essentially differentiating the same equation?
(I plotted the graph on wolfram alpha and they are indeed not the same.)
The equation is $$ y(1-xy)=0 $$ so the curve is the union of the line $y=0$ and of the hyperbola $xy=1$.
The function is locally invertible at every point; the derivative at points with nonzero $y$-coordinate is $y'=-1/x^2$; the derivative at points with zero $y$-coordinate is $y'=0$.
If you do implicit differentiation, you get $$ y'=2yy'x+y^2 $$ that indeed gives $$ y'=\frac{y^2}{1-2xy} $$ which is not contradictory: if $y=0$, then $y'=0$; if $y\ne0$, then $xy=1$ and you get $$ y'=-y^2=-\frac{1}{x^2} $$