MathLabs
TheoremProved

The integrating factor formula

Statement

If P(x)P(x) and Q(x)Q(x) are continuous on an interval and μ(x)=e∫P(x) dx\mu(x)=e^{\int P(x)\,dx}, then every solution of the linear equation dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x) is given by y(x)=1μ(x)(∫μ(x)Q(x) dx+C)y(x) = \frac{1}{\mu(x)}\left(\int \mu(x) Q(x)\,dx + C\right).

Why is it true?

The trick is analogous to completing the square: we multiply the whole equation by a cleverly chosen factor μ(x)\mu(x) so that the left-hand side collapses into the derivative of a single product μ(x)y(x)\mu(x)y(x), turning a differential equation into something we can integrate directly.

Proof sketch

Define μ(x)=e∫P(x) dx\mu(x)=e^{\int P(x)\,dx}; differentiating with the chain rule gives μ′(x)=P(x)μ(x)\mu'(x)=P(x)\mu(x), since the derivative of the exponent ∫P(x) dx\int P(x)\,dx is P(x)P(x).

Multiply both sides of dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x) by μ(x)\mu(x): this gives μ(x)y′+μ(x)P(x)y=μ(x)Q(x)\mu(x)y' + \mu(x)P(x)y = \mu(x)Q(x).

By the product rule, ddx[μ(x)y(x)]=μ(x)y′(x)+μ′(x)y(x)\frac{d}{dx}[\mu(x)y(x)] = \mu(x)y'(x) + \mu'(x)y(x), and since μ′(x)=P(x)μ(x)\mu'(x)=P(x)\mu(x), this equals exactly μ(x)y′+μ(x)P(x)y\mu(x)y' + \mu(x)P(x)y — the left-hand side above. So the equation becomes ddx[μ(x)y(x)]=μ(x)Q(x)\frac{d}{dx}[\mu(x)y(x)] = \mu(x)Q(x).

Integrating both sides with respect to xx gives μ(x)y(x)=∫μ(x)Q(x) dx+C\mu(x)y(x) = \int \mu(x)Q(x)\,dx + C for an arbitrary constant CC. Dividing through by μ(x)\mu(x) (which is never zero, being an exponential) yields y(x)=1μ(x)(∫μ(x)Q(x) dx+C)y(x) = \frac{1}{\mu(x)}\left(\int \mu(x) Q(x)\,dx + C\right).

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. William E. Boyce, Richard C. DiPrima, Douglas B. Meade (2017). Elementary Differential Equations and Boundary Value Problems
  2. Morris Tenenbaum, Harry Pollard (1985). Ordinary Differential Equations