I'll state the question from my textbook below:
If $x (1+y)^{1/2} + y(1+x)^{1/2} = 0$, for, $-1<x<1$, prove that
$\frac{dy}{dx} = - \frac{1}{(1+x)^2}$
Here's how I tried proving it:
$x (1+y)^{1/2} + y(1+x)^{1/2} = 0$
Rearranging and squaring we get:
$x^2(1+y) = y^2(1+x)$
Simplifying and factorizing we get:
$(x+y+xy)(x-y) = 0$
Case I:
$x+y+xy = 0$
From here we get the desired equation. Since the proof is irrelevant to my question, I'll skip it. But I note that if I replace the value of $y$ I get from this equation is in harmony with the original equation given in the question.
Case II:
$x-y = 0$
Clearly in this case,
$\frac{dy}{dx} = 1$
This is where the problem arises. Isn't this a valid answer too? Probably not, because the value of $y$ I get from this equation satisfies the original equation only for $x = -1,0$. Why is this? Here are the questions I'm looking answer for:
1) Is something wrong with squaring the equation?
2) Is there a mathematical reason to reject $x-y = 0$ as a possibility?
I am also interested in alternative methods to prove the required equation. So if you have any, feel free to post them as an answer. Any help would be appreciated.