Multiplying by μ = e∫P(x)dx is designed so the product rule runs in reverse: μ·y′ + μ·P(x)·y is precisely the derivative of μ·y. That single derivative is what makes the equation integrable in one step. This is a different tactic from spotting an exact differential equation, though the two topics often appear together.