For dtdy+p(t)y(t)=g(t) consider a μ(t) that μdtdy+μp(t)y(t)=μg(t) take dtdμ=μp(t)⟹μ=Cep(t)t therefore, we can turn the equation above to dtd(μy)=μg(t)⟹y=μ∫μg(t)dt+C then plug μ in as the solution.