13.2 Integrating Factors

exe^{x} shows up a lot in differential equations, because it has properties that are helpful when we differentiate it. One way in which it helps us is in solving first-order linear differential equations, which are equations of the form

d⁢yd⁢x+p⁢(x)⁢y=q⁢(x)\frac{dy}{dx}+p(x)y=q(x)

This can be solved using the product rule. If we define a function f⁢(x)f(x), we can write by the product rule that the derivative of y⁢ef⁢(x)ye^{f(x)} is

d⁢yd⁢x⁢ef+ef⁢d⁢fd⁢x⁢y\frac{dy}{dx}e^{f}+e^{f}\frac{df}{dx}y (13.1)

This doesn’t immediately look like our equation, but if we multiply through by efe^{f}, we get that

d⁢yd⁢x⁢ef⁢(x)+p⁢(x)⁢ef⁢(x)⁢y=q⁢(x)⁢ef⁢(x)\frac{dy}{dx}e^{f(x)}+p(x)e^{f(x)}y=q(x)e^{f(x)} (13.2)

What we can do here is write that the left hand side is equal to the derivative of y⁢ef⁢(x)ye^{f(x)}. This only works, however, if the derivative of f⁢(x)f(x) is equal to p⁢(x)p(x). 11 1 This is because dd⁢x⁢[y⁢ef⁢(x)]=dd⁢x⁢y⁢ef⁢(x)+y⁢dd⁢x⁢[ef⁢(x)]=d⁢yd⁢x⁢ef⁢(x)+y⁢dd⁢x⁢[f⁢(x)]⁢ef⁢(x)\begin{aligned} \frac{d}{dx}\left[ye^{f(x)}\right]&=\frac{d}{dx}{y}e^{f(x)}+y% \frac{d}{dx}\left[e^{f(x)}\right]\\ &=\frac{dy}{dx}e^{f(x)}+y\frac{d}{dx}\left[f(x)\right]e^{f(x)}\\ \end{aligned} And if f⁢(x)=∫p⁢(x)⁢𝑑x\begin{aligned} f(x)=\int p(x)dx\end{aligned} then dd⁢x⁢[f⁢(x)]=p⁢(x)\begin{aligned} \frac{d}{dx}\left[f(x)\right]=p(x)\end{aligned} And thus dd⁢x⁢[y⁢ef⁢(x)]=d⁢yd⁢x⁢ef⁢(x)+p⁢(x)⁢ef⁢(x)⁢y\frac{d}{dx}\left[ye^{f(x)}\right]=\frac{dy}{dx}e^{f(x)}+p(x)e^{f(x)}y which is just the left-hand side of the equation. If it is, we can write that

dd⁢x⁢[y⁢ef⁢(x)]=q⁢(x)⁢ef⁢(x)\frac{d}{dx}\left[ye^{f(x)}\right]=q(x)e^{f(x)} (13.3)

And thus we can solve the equation by integrating.