dy/dx + P(x)y = Q(x) — the integrating-factor recipe.
A first-order linear DE has the form dy/dx + P(x)y = Q(x). Solve with the integrating factor e^(∫P dx).