Integrating Factor

Definition

The integrating factor method is a technique for solving first order ordinary differential equations of the form

dydx+f(x)y=g(x),

where f(x) and g(x) are any two arbitrary functions of x only. Equations of this form are not separable, however we can combine the two terms on the left-hand side into a single derivative by using an integrating factor.

The integrating factor IF is given by integrating f(x) and then exponentiating:

IF=eF(x),

where F(x) is defined by F(x)=f(x)dx.

It is important to note that the constant of integration is not included; this method requires that the derivative of F(x) is f(x), i.e. F(x)=f(x), and the constant of integration is not necessary to meet this condition.

Method

Multiplying the original differential equation by the integrating factor IF=eF(x) gives

eF(x)dydx+f(x)eF(x)y=g(x)eF(x).

Now note that the left hand side is the derivative of the integrating factor multiplied by y:

ddx[eF(x)y]=eF(x)dydx+f(x)eF(x)y.

This result comes from the product rule, with the first term on the right-hand side containing the derivative of y and the second term containing the derivate of eF(x).

The original equation can now be written in the form

ddx[eF(x)y]=g(x)eF(x).

This equation can be solved by integrating both sides:

ddx[eF(x)y]dx=g(x)eF(x)dx,

As integration is the opposite of differentiation, the left-hand side can be simplified:

ddx[eF(x)y]dx=eF(x)y.

Hence the equation becomes:

eF(x)y=g(x)eF(x)dx.

Provided that the integral on the right-hand side is simple enough to compute, this will lead to a solution.

Worked Examples

Example 1

Solve dydx+3y=x.

Solution

The general form of a first order linear ordinary differential equation is:

dydx+f(x)y=g(x).

In the given equation, f(x)=3 and g(x)=x.

Recall that the integrating factor is given by IF=eF(x), where F(x)=f(x)dx. For this equation, the function F(x) is:

F(x)=3dx=3x.

As mentioned above, it is not necessary to include a constant of integration.

The integrating factor for this equation is therefore given by:

IF=e3x.

Multiplying both sides of the original equation by the integrating factor gives:

e3xdydx+3e3xy=xe3x.

Note: At this point it is advisable to check that the left-hand side is indeed the derivative of the integrating factor multiplied by y:

\[\frac{\mathrm{d </div>{\mathrm{d} x} \left[ e^{3x}y \right] = e^{3x}\frac{\mathrm{d} y}{\mathrm{d} x} + 3 e^{3x}y.\]

The simplified form of the equation is therefore:

ddx[e3xy]=xe3x.

Integrating both sides gives:

e3xy=xe3xdx.

To compute the integral on the right-hand side it is necessary to use integration by parts.

Recall the formula for integration by parts:

uvdx=uvuvdx.

Choose u=x and v=e3x. Then:

u=x,v=13e3x,u=1,v=e3x,

and the integral becomes:

xe3xdx=x13e3x113e3xdx,=x3e3x19e3x+C.

Note: At this point it is necessary to include the constant of integration.

Substituting this result for the integral back into the equation gives:

e3xy=x3e3x19e3x+C.

Multiplying both sides by e3x gives the solution for y(x):

y=x319+Ce3x.

}}

Video Example 1

Newcastle University Maths-Aid uses the integrating factor method to find the general solution of dydx+3y=x.

Example 1

Solve dydx1xy=x2.

Solution

The general form of a first order linear ordinary differential equation is:

dydx+f(x)y=g(x).

In the given equation, f(x)=1x and g(x)=x2.

Note: If the function f(x) includes a minus sign it is essential to include this minus sign when computing the integrating factor.

Recall that the integrating factor is given by IF=eF(x), where F(x)=f(x)dx. For this equation, the function F(x) is:

F(x)=1xdx=ln(x)=ln(x1).

As mentioned above, it is not necessary to include a constant of integration.

The integrating factor for this equation is therefore given by:

IF=eln(x1).

By the laws of logarithms this simplifies to become:

IF=1x.

Multiplying both sides of the original equation by the integrating factor gives:

1xdydx1x2y=x.

Note: At this point it is advisable to check that the left-hand side is indeed the derivative of the integrating factor multiplied by y:

\[\frac{\mathrm{d </div>{\mathrm{d} x} \left[ \frac{1}{x}y \right] = \frac{1}{x}\frac{\mathrm{d} y}{\mathrm{d} x} - \frac{1}{x^2}y.\]

The simplified from of the equation is therefore:

ddx[1xy]=x.

Integrating both sides gives:

1xy=xdx=12x2+C

Multiplying both sides by x gives the solution for y:

y=12x3+Cx.

}}

Video Example 2

Newcastle University Maths-Aid uses the integrating factor method to find the general solution of dydx1xy=x2.

Video Example

Prof. Robin Johnson uses the integrating factor method to find the general solution of xdydx+2y=x2.

Workbook

This workbook produced by HELM is a good revision aid, containing key points for revision and many worked examples.

See Also

External Resources

Whiteboard maths

More Support

You can get one-to-one support from Maths-Aid.