Timedora

Integrating Factors for Linear Differential Equations

A practical lesson on transforming first-order linear equations into product derivatives, solving them with an integrating factor, and applying initial conditions.

From Linear Equation to Product Derivative

Put the equation in standard form

The integrating-factor method solves a first-order linear differential equation written as

y′+p(x)y=q(x),y' + p(x)y = q(x),

where pp and qq are known functions and yy is the unknown. If the equation is instead a(x)y′+b(x)y=c(x)a(x)y' + b(x)y = c(x), divide every term by a(x)a(x) to reach standard form. This is valid only where a(x)≠0a(x)\ne 0. The method applies on intervals where the resulting coefficient functions are continuous.

The aim is to make the left side a derivative of a product. That matters because a product derivative can be integrated in one step, even though the original equation contains both y′y' and yy.

Why the works

For y′+p(x)y=q(x)y' + p(x)y = q(x), choose

μ(x)=e∫p(x) dx.\mu(x)=e^{\int p(x)\,dx}.

Differentiating gives μ′=pμ\mu'=p\mu. The product rule then shows exactly why this choice works:

(μy)′=μ′y+μy′=pμy+μy′.(\mu y)'=\mu'y+\mu y'=p\mu y+\mu y'.

Thus multiplying every term of the equation by μ\mu changes it into

(μy)′=μq.(\mu y)'=\mu q.

Now integrate both sides, then divide by μ\mu to isolate yy:

μy=∫μq dx+C,y=∫μq dx+Cμ.\mu y=\int \mu q\,dx+C, \qquad y=\frac{\int \mu q\,dx+C}{\mu}.

The arbitrary constant that could multiply the chosen μ\mu does not change the resulting family of solutions, so the customary expression above is sufficient. The workflow is: standard form, , multiply and identify the product derivative, integrate, isolate yy, and use any to find CC.

For an y(x0)=y0y(x_0)=y_0, the same method can be written using definite integrals from x0x_0 to xx:

y(x)=e−∫x0xp(s) ds[y0+∫x0xe∫x0up(s) dsq(u) du].y(x)=e^{-\int_{x_0}^{x}p(s)\,ds}\left[y_0+\int_{x_0}^{x}e^{\int_{x_0}^{u}p(s)\,ds}q(u)\,du\right].

This form incorporates the initial value directly, rather than finding an integration constant separately.

Worked initial-value problem

Solve y′+2y=4y'+2y=4 with y(0)=1y(0)=1.

Here p(x)=2p(x)=2, so

μ(x)=e∫2 dx=e2x.\mu(x)=e^{\int 2\,dx}=e^{2x}.

Multiply both sides of the equation by e2xe^{2x}:

e2xy′+2e2xy=4e2x.e^{2x}y'+2e^{2x}y=4e^{2x}.

The left side is (e2xy)′(e^{2x}y)', because the product rule gives (e2xy)′=e2xy′+2e2xy(e^{2x}y)'=e^{2x}y'+2e^{2x}y. Integrating,

e2xy=∫4e2x dx=2e2x+C.e^{2x}y=\int 4e^{2x}\,dx=2e^{2x}+C.

Divide by e2xe^{2x}, which is never zero, to get the general solution y=2+Ce−2xy=2+Ce^{-2x}. Apply the : 1=y(0)=2+C1=y(0)=2+C, so C=−1C=-1. Therefore

y(x)=2−e−2x.y(x)=2-e^{-2x}.

Check both requirements. Its derivative is y′=2e−2xy'=2e^{-2x}, so

y′+2y=2e−2x+2(2−e−2x)=4,y'+2y=2e^{-2x}+2(2-e^{-2x})=4,

and y(0)=2−1=1y(0)=2-1=1. A common mistake is to stop before dividing by μ\mu, or to multiply only some terms by the ; either error prevents the product-derivative step from giving the intended solution.