Solving first order D.E. by integrating factors