Solve $$\left(y-x\frac{dy}{dx}\right)=a\left(y^2+\frac{dy}{dx}\right)$$
I solved it by dividing both sides with $y^2/dx$: $$\frac{(ydx-xdy)}{y^2}=a\left(dx+\frac{dy}{y^2}\right)$$ and then integrate to get $$x/y=ax-a/y+c$$But that doesn't match the answer given by SymbolLab:
$$y=\frac{ac_1+xc_1}{a\left(-1+xc_1+ac_1\right)}$$
What's the problem here? Why doesn't my simple differential equation solution match with the given answer?