$$y\sqrt{x+2}=xy+3$$ find $\frac {dy}{dx}$ for $x \ge -2$.
The given answer is $$-\frac{y(2(x+2)^{1/2}-1)}{2(x(x+2)^{1/2}-x-2)}$$
Here's my work so far:
$$y\sqrt{x+2}=xy+3$$ $$y\frac d{dx}\sqrt{x+2}+\frac{dy}{dx}\sqrt{x+2}=y\frac d{dx}x+\frac{dy}{dx}x+0$$ $$y\cdot\frac12(x+2)^{-1/2}+\frac{dy}{dx}(x+2)^{1/2}=y\cdot1+\frac{dy}{dx}x+0$$ $$\frac{dy}{dx}(x+2)^{1/2}-\frac{dy}{dx}x=-y\cdot\frac12(x+2)^{-1/2}+y$$ $$\frac{dy}{dx}\left((x+2)^{1/2}-x\right)=-\frac12y(x+2)^{-1/2}+y$$ $$\frac{dy}{dx}=\frac{-\frac12y(x+2)^{-1/2}+y}{(x+2)^{1/2}-x}$$
Please be kind; it is my first time posting here and I'm still in highschool. I'm just having trouble figuring out where I'm going wrong here.
There was no mistake in your work, and your final "$\frac{dy}{dx}=\frac{-\frac12y(x+2)^{-1/2}+y}{(x+2)^{1/2}-x}$" was very close to the "given answer $-\frac{y(2(x+2)^{1/2}-1)}{2(x(x+2)^{1/2}-x-2)}$" you are reporting: $$\begin{align}\frac{dy}{dx}&=\frac{-\frac12y(x+2)^{-1/2}+y}{(x+2)^{1/2}-x}\\ &=-\frac{\left(y-\frac12y(x+2)^{-1/2}\right)2(x+2)^{1/2}}{\left(x-(x+2)^{1/2}\right)2(x+2)^{1/2}}\\&=-\frac{y\left(2(x+2)^{1/2}-1\right)}{2\left(x(x+2)^{1/2}-x-2\right)}. \end{align}$$