Solve the Bernoulli equation $xy' - y = xy^2$.
I started with diving both sides by $x$, and ended up with $y' - \frac{y}{x} = y^2$. Then, I divided both sides by $y^2$ and got $\frac{y'}{y^2} - \frac{1}{xy} = 1$. Can someone help me finish this problem?
Let $g(x)=\frac{1}{y(x)}$ then $$g'(x)=\frac{-y'(x)}{(y(x))^2}$$ so we reduce the equation to $$-g'(x)-\frac{g(x)}{x} = 1$$
Can you finish from here?