Linear equations and integrating factors

Multiplying $y' + p(t)\,y = q(t)$ by $\mu = e^{\int p\,dt}$ turns the left side into the derivative of $\mu y$, so one integration solves it.

From Differential Equations.