Integrating factor

For first order linear ODEs the integrating factor method can be used to find a particular solution without first finding the homogeneous solution. Consider

x˙+p(t)x=f(t). \dot x + p(t) x = f(t).

We first take the antiderivative P(t)=p(t)dxP(t) = \int p(t) dx. Multiply both sides of the above equation by eP(t)e^{P(t)} to get

eP(t)(x˙+p(t)x)=eP(t)f(t). e^{P(t)} (\dot x + p(t) x) = e^{P(t)} f(t).

Then notice that eP(t)(x˙+p(t)x)=ddt[eP(t)x]e^{P(t)}(\dot x + p(t) x) = \frac{d}{dt} \left[ e^{P(t)} x \right].

ddt[eP(t)x]=eP(t)f(t)eP(t)x=eP(t)f(t)dtx=eP(t)eP(t)f(t)dt. \begin{align*} \frac{d}{dt} \left[ e^{P(t)} x \right] &= e^{P(t)} f(t) \\ e^{P(t)} x &= \int e^{P(t)} f(t) dt \\ x &= e^{-P(t)} \int e^{P(t)} f(t) dt. \end{align*}

The benefit of this method is that we can find a particular solution immediately, unlike variation of parameters; however the ODE must be first order and eP(t)f(t)e^{P(t)} f(t) must be easy to integrate.