Solve the differential equation $\displaystyle y' - xy^2 = 2xy$

What I have done:

$\displaystyle \frac{dy}{dx}=2xy+xy^2 $

At this point I thought it would be best to factor out the x term.

$\displaystyle \frac{dy}{dx}=x(2y+y^2)$

$\displaystyle \frac{dy}{2y+y^2}=xdx $

Is my work so far correct? Looking at the left side I don't know what the next step is.