Example of separable equation

Solve $$ (x^2 y - 3y) \frac{dy}{dx} - 2xy^2 = 4x. $$

We move around terms, $$\begin{align*} y(x^2 - 3) \frac{dy}{dx} &= 2x(2 + y^2) \\ \frac{y}{2+y^2} dy &= \frac{2x}{x^2 - 3}dx. \end{align*}$$ Integrating, $$ \frac12 \ln(2+y^2) = \ln(x^2 - 3) + C $$ so $$ (2+y^2)^{1/2} = A(x^2 - 3). $$