If $x\sqrt{1-y}+y\sqrt{1-x}=0$, then show that $\frac{dy}{dx}=\frac{-1}{(1+x)^2} $.
Attempt:
On differentiating both sides w.r.t x, I got the following result, which doesn't match with the expected expression.
$$\frac{d}{dx} \{ x\sqrt{1-y} + y\sqrt{1-x} \} = 0$$ $$\frac{dx}{dx}\sqrt{1-y}+x\frac{d}{dx}\{\sqrt{1-y}\}+\frac{dy}{dx}\{\sqrt{1-x}\}+y\frac{d}{dx}\{\sqrt{1-x}\}=0$$ $$\sqrt{1-y}+x\frac{1}{2\sqrt{1-y}}\frac{dy}{dx}+\sqrt{1-x}\frac{dy}{dx}+y\frac{1}{2\sqrt{1-x}}=0$$ $$\frac{dy}{dx}\{x\frac{1}{2\sqrt{1-y}}+\sqrt{1-x}\}=-1\times\{\sqrt{1-y}+y\frac{1}{2\sqrt{x-1}}\}$$ $$\frac{dy}{dx}=-\frac{\sqrt{1-y}+y\frac{1}{2\sqrt{x-1}}}{x\frac{1}{2\sqrt{y-1}}+\sqrt{x-1}}$$
Any help will be appreciated.
$$x\sqrt{1-y}=-y\sqrt{1-x}$$
For real $x,y$ both must have opposite signs.
Squaring both sides $$x^2(1-y)=y^2(1-x)$$
$$0=x^2-y^2+xy(x-y)=(x-y)(x+y+xy)$$
Unless $x=y\implies x=y=0$ $$x+y+xy=0\iff y=?$$