I have been working through an ODE finding the general solution and following the modulus through the equation has left me with four general solutions, as shown below. Online ODE solvers, however, have only calculated the two (positive and negative), on the right hand side of the page. Am I incorrect with my use of the modulus operator after I integrated each side then?
$$\begin{align*}x\frac{dy}{dx}&=y-\frac{1}{y}\quad\quad(-1<y<1)\\ \int\frac{1}{y-\frac{1}{y}}\ dy&=\int\frac{1}{x}\ dx\\ \int\frac{y}{y^2-1}\ dy&=\int\frac{1}{x}\ dx\\ \frac{1}{2}\ln{|y^2-1|}&=\ln{|x|}+c\\ \sqrt{|y^2-1|}&=A|x|\ \text{, where $A=e^c$}\\ |y^2-1|&=A^2x^2\\ \implies y^2-1&=A^2x^2&1-y^2&=A^2x^2\\ y^2&=A^2x^2+1&y^2&=1-A^2x^2\\ \\ \therefore y&=\pm\sqrt{Kx^2+1}&y&=\pm\sqrt{1-Kx^2}\ \text{, where $K=A^2$}\\ \end{align*}$$
Thanks :)
If $-1<y<1$ then $|y^2-1|=1-y^2$.
Another approach: Write the equation as $$\dfrac{x\ dy-y\ dx}{x^2}=\dfrac{-1}{x^2y}\ dx$$ or $$\left(\dfrac{y}{x}\right)d\left(\dfrac{y}{x}\right)=\dfrac{-1}{x^3}\ dx$$ and $$\left(\dfrac{y}{x}\right)^2=\dfrac{1}{x^2}+C$$