Integrating factors is a method to solve scalar Linear First Order ODEs.
Consider
We multiply bothsides by integrating factor such that the left hand side to be the exact derivative of a product. For this to work, we need
Applying the integrating factor, we have
From there, simple integration and algebra will solve the equation.