Integral factor in differential equations