![]() |
Integrating Factor Method |
PPLATO @ | ||||
PPLATO / Tutorials / Differential equations |
||||||
|
![]() |
Consider an ordinary differential equation (o.d.e.) that we wish to solve to find out how the variable y depends on the variable x.
If the equation is first order then the highest derivative involved is a first derivative.
If it is also a linear equation then this means that each term can involve y either as the derivative dydx OR through a single factor of y.
Any such linear first order o.d.e. can be re-arranged to give the following standard form:
dydx + P(x) y = Q(x) |
- where P(x) and Q(x) are functions of x, and in some cases may be constants.
A linear first order o.d.e. can be solved using the integrating factor method.
After writing the equation in standard form, P(x) can be identified. One then multiplies the equation by the following 'integrating factor':
This factor is defined so that the equation becomes equivalent to:
Integrating both sides with respect to x gives:
Finally, division by the integrating factor (IF) gives y explicitly in terms of x, i.e. gives the solution to the equation.
In each case, derive the general solution. When a boundary condition is also given, derive the particular solution.
Click on questions to reveal their solutions
Exercise 1:
dydx + y = x ; y(0) = 2
Solution:
Compare with the form: dydx + P(x) y = Q(x) ⇒ P(x) = 1.
Integrating factor: | IF | = | e∫P(x) dx = e∫dx = ex | |
Multiply equation by IF: | ex dydx + exy | = | exx | |
i.e. | d dx [ exy] | = | exx | |
Integrate both sides with respect to x: | exy | = | ex(x − 1) + C | |
{ Note: integrate by parts, i.e.: |
∫u
dvdx dx
= uv −
dudx dx
withu ≡ x and
dvdx ≡ ex |
|||
→ | xex − ∫exdx | |||
→ | xex − ex = ex(x - 1) } | |||
i.e. | y | = | (x − 1) + Ce−x |
Particular solution with y(0) = 2:
2 | = | (0 − 1) + Ce0 | |
= | −1 + C | ||
i.e. | C | = | 3 |
∴ | y | = | (x − 1) + 3 e−x |
Exercise 2:
Solution:
P(x) = 1.
Integrating factor: | IF | = | e∫P(x) dx = e∫dx = ex | |
Multiply equation by IF: | ex dydx + exy | = | ex e−x | |
i.e. | ddx [ exy] | = | 1 | |
Integrate: | exy | = | x + C | |
i.e. | y | = | e−x (x + C) |
Particular solution with x = 0, y = 1:
1 | = | e0 (0 + C) | |
= | 1⋅C | ||
i.e. | C | = | 1 |
∴ | y | = | e−x (x + 1) |
Exercise 3:
Solution:
Equation is linear, 1st order, i.e. dydx + P(x) y = Q(x) ⇒ dydx + 2xy = 10x, so: P(x) = 2x, Q(x) = 10
Integrating factor: | IF | = | e∫P(x) dx = e2∫ dxx = e2 ln x = e ln x2 = x2 | |
Multiply equation by IF: | x2dydx + 2xy | = | 10x3 | |
i.e. | ddx [ x2⋅y] | = | 10x3 | |
Integrate: | x2y | = | 52x4 + C | |
i.e. | y | = | 52x2 + Cx2 |
Particular solution: y(1) = 3, i.e. y(x) = 3 when x = 1:
i.e. | 3 | = | 52⋅1 + 12 |
i.e. | 62 | = | 52 + C |
i.e. | C | = | 12 |
∴ | y | = | 52x2 + 12x2 = 12 (5x2 + 1x2) |
Exercise 4:
Solution:
Put the equation into standard form: dydx − ( 1x) y = x
Compare with: dydx + P(x) y = Q(x) ⇒ P(x) = − 1x
Integrating factor: | IF | = | e∫P(x) dx = e− ∫ dxx = e− ln x = e ln (x−1) = 1x | |
Multiply equation by IF: | 1x dydx − 1x2 y | = | 1 | |
i.e. | ddx [ 1xy] | = | 1 | |
Integrate: | 1xy | = | x + C | |
i.e. | y | = | x2 + Cx |
Particular solution with y(1) = 3:
i.e. | 3 | = | 1 + C |
i.e. | C | = | 2 |
∴ | y | = | x2 + 2x) |
Exercise 5:
Solution:
Make equation linear in y: dydx − 2xy = x3 sin x ⇒ P(x) = − 2x .
Integrating factor: | IF | = | e∫P(x) dx = e−2∫dxx = e−2 ln x = e ln (x−2) = 1x2 | |
Multiply equation by IF: | 1x2 dydx − 2x3 y | = | x sin x | |
i.e. | d dx [ 1x2y ] | = | x sin x | |
Integrate: | yx2 | = | −x cos x − ∫1⋅(− cos x) dx + C' | |
{ Note: integrate by parts, i.e.: | ∫u dvdx dx = uv − dudx dx withu ≡ x and dvdx ≡ sin x} | |||
i.e. | yx2 | = | −x cos x + sin x + C | |
i.e. | y | = | x3 cos x + x2 sin x + Cx2 |
Exercise 6:
Solution:
Standard form: dydx − (2x)y = x ⇒ P(x) = − 2x .
Integrating factor: | IF | = | e∫P(x) dx = e−2 ∫ dxx = e−2 ln x = e ln (x−2) = 1x2 | |
Multiply equation by IF: | 1x2 dydx − 2x3 y | = | 1x | |
i.e. | d dx [ 1x2y ] | = | 1x | |
Integrate: | 1x2y | = | ∫ dxx | |
i.e. | 1x2y | = | ln x + C | |
i.e. | y | = | x2 ln x + Cx2 |
Exercise 7:
Solution:
The equation is already in standard form: dydx + P(x)y = Q(x), i.e. linear 1st order o.d.e. , so P(x) = cot x
Integrating factor: | IF | = | e∫P(x) dx = e∫ cos xsin x dx ≡ e∫ ƒ′(x)ƒ(x) dx = eln (sin x) = sin x | |
Multiply equation: | sin x⋅dydx + sin x (cos xsin x) y | = | sin xsin x | |
i.e. | sin x⋅dydx + cos x⋅y | = | 1 | |
i.e. | ddx [ sin x⋅y ] | = | 1 | |
Integrate: | sin x⋅y | = | x + C |
Exercise 8:
Solution:
P(x) = cot x = cos xsin x
Integrating factor: | IF | = | e∫P(x) dx = e∫ cos xsin x dx ≡ e∫ ƒ′(x)ƒ(x) dx = eln (sin x) = sin x | |
Multiply equation: | sin x⋅dydx + sin x (cos xsin x) y | = | sin x⋅cos x | |
i.e. | ddx [ sin x⋅y ] | = | sin x⋅cos x | |
Integrate: | y sin x | = | ∫sin x⋅cos x | |
{ Note: ∫sin x cos x ≡ ∫ƒ(x) ƒ′(x) dx ≡ ∫ƒ(x) dƒdx⋅dx ≡ ∫ƒ dƒ = 12ƒ2 + C} | ||||
i.e. | y sin x | = | 12 sin2 x + C | |
= | 12⋅ 12 (1 − cos 2x) + C | |||
i.e. | 4y sin x + cos 2x | = | C' = 4C + 1 |
Exercise 9:
Solution:
Standard form: dydx + (2xx2 − 1)y = xx2 − 1 ⇒ P(x) = 2xx2 − 1
Integrating factor: | IF | = | e∫P(x) dx = e∫2xx2 − 1 dx = eln x2 − 1 = x2 − 1 | |
Multiply equation by IF: | (x2 − 1) dydx + 2xy | = | x | |
i.e. | ddx [ (x2 − 1)y ] | = | x | |
Integrate: | (x2 − 1)y | = | 12x2 + C |
Exercise 10:
Solution:
P(x) = − tan x and Q(x) = − sec x
Integrating factor IF = e−∫tan x dx = e−∫ sin xcos x dx = e+∫ − sin xcos x dx = eln (cos x) = cos x
Multiply equation by IF: | cos x dydx − cos x⋅ sin xcos xy | = | − cos x⋅sec x | |
i.e. | ddx [ cos x⋅y ] | = | −1 | |
Integrate: | y cos x | = | −x + C |
Particular solution with y(0) = 1, i.e. y = 1 when x = 0:
cos 0 | = | 0 + C | |
∴ | C | = | 1 |
i.e. | y cos x | = | −x + 1 |
ƒ(x) | ∫ƒ(x) dx | ƒ(x) | ∫ƒ(x) dx | |
---|---|---|---|---|
xn | xn+1 n+1 (n ≠ −1) | [g(x)]n g'(x) | [g(x)]n+1 n+1 (n ≠ −1) | |
1x | ln x | g'(x)g(x) | ln g(x) | |
ex | ex | ax | axln a (a > 0) | |
sin x | −cos x | sinh x | cosh x | |
cos x | sin x | cosh x | sinh x | |
tan x | − ln cosx | tanh x | ln cosh x | |
cosec x | ln tan x2 | cosech x | ln tanh x2 | |
sec x | ln sec x + tan x | sec x | 2 tan−1ex | |
sec2 x | tan x | sec2 x | tanh x | |
cot x | ln sin x | cot x | ln sinh x | |
sin2 x | x2 − sin 2x4 | sinh2 x | sinh 2x4 − x2 | |
cos2 x | x2 + sin 2x4 | cosh2 x | sinh 2x4 + x2 | |
1a2 + x2 | 1a tan −1 xa (a > 0) | √a2 + x2 | a22 [ sinh−1( xa ) + x √a2−x2 a2 ] | |
1a2 − x2 | 12a ln a + xa − x (0 < x < a) | √a2−x2 | a22 [ sin−1( xa ) + x √a2−x2 a2 ] | |
1x2 − a2 | 12a ln x − ax + a (x > a > 0) | √x2 − a2 | a22 [−cosh−1( xa ) + x √x2−a2 a2 ] | |
1 √ a2 + x2 | ln x + √a2 + x2 a (a > 0) | |||
1 √ a2 − x2 | sin−1 xa (−a < x < a) | 1 √ x2 − a2 | ln x + √x2 − a2 a (x > a > 0) |
The linear first order differential equation:
has the integrating factor IF = e∫P(x) dx.
The integrating factor method is sometimes explained in terms of simpler forms of differential equation. For example, when constant coefficients a and b are involved, the equation may be written as:
In our standard form this is:
- with an integrating factor of: