I am trying to find the derivative $\frac{dy}{dx}$ of the following function $ye^{xy} = \sin x$ using implicit differentiation.
What I have is the following using product rule:
$$\frac{d}{dx}ye^{xy}=\frac{d}{dx}\sin x$$ $$\implies y^2e^{xy} + \frac{dy}{dx}e^{xy}=\cos x$$
However, I noticed in the solution manual it has it as the following and not sure why:
$$\frac{d}{dx}ye^{xy}=\frac{d}{dx}\sin x$$ $$\implies ye^{xy} \left(x\frac{dy}{dx} + y\right) + \frac{dy}{dx}e^{xy}=\cos x$$
$$\frac{d}{dx}ye^{xy}=\frac{d}{dx}\sin x$$ This line is not correct: $$\implies \color {red}{y^2e^{xy}} + \frac{dy}{dx}e^{xy}=\cos x$$
Note that you can do this: $$\frac{d}{dx}ye^{xy}=e^{xy}\frac{dy}{dx}+y\frac{de^{xy}}{dx}$$ And apply the chain rule: $$\frac{de^{xy}}{dx}=\frac{de^{xy}}{dxy}\frac{dxy}{dx}=e^{xy}(y'x+y)$$ Therefore: $$\frac{d}{dx}ye^{xy}=e^{xy}y'+ye^{xy}(y'x+y)$$