find the solution:

(y^(2) dx)/(1-x)=dy

Separate variables to get:

dx/(1-x) = dy/y^2
Integrate each side and do not forget the integration constant.