4 Finding a particular integral

In the previous subsection we explained what is meant by a particular integral. Now we look at a simple method to find a particular integral. In fact our method is rather crude. It involves trial and error and educated guesswork. We try solutions which are of the same general form as the f ( x ) on the right-hand side.

Example 13

Find a particular integral of the equation

d 2 y d x 2 d y d x 6 y = e 2 x

Solution

We shall attempt to find a solution of the inhomogeneous problem by trying a function of the same form as that on the right-hand side of the ODE. In particular, let us try y ( x ) = A e 2 x , where A is a constant that we shall now determine. If y ( x ) = A e 2 x then

d y d x = 2 A e 2 x and d 2 y d x 2 = 4 A e 2 x .

Substitution in the ODE gives:

4 A e 2 x 2 A e 2 x 6 A e 2 x = e 2 x

that is,

4 A e 2 x = e 2 x

To ensure that y is a solution, we require 4 A = 1 , that is, A = 1 4 .

Therefore the particular integral is y p ( x ) = 1 4 e 2 x .

In Example 13 we chose a trial solution A e 2 x of the same form as the ODE’s right-hand side. Table 2 provides a summary of the trial solutions which should be tried for various forms of the right-hand side.

Table 2 : Trial solutions to find the particular integral

f ( x ) Trial solution
(1) constant term c  constant term k
(2) linear, a x + b A x + B
(3) polynomial in x polynomial in x
of degree r : of degree r :
a x r + + b x + c A x r + + B x + k
(4) a cos k x A cos k x + B sin k x
(5) a sin k x A cos k x + B sin k x
(6) a e k x A e k x
(7) a e k x A e k x
Task!

By trying a solution of the form y = α e x find a particular integral of the equation   d 2 y d x 2 + d y d x 2 y = 3 e x

Substitute y = α e x into the given equation to find α , and hence find the particular integral:

α = 3 2 ; y p ( x ) = 3 2 e x

Example 14

Obtain a particular integral of the equation:   d 2 y d x 2 6 d y d x + 8 y = x .

Solution

In Example 13 and the last Task, we found that a fruitful approach for a first order ODE was to assume a solution in the same form as that on the right-hand side. Suppose we assume a solution y ( x ) = α x and proceed to determine α . This approach will actually fail, but let us see why. If y ( x ) = α x then d y d x = α and d 2 y d x 2 = 0 . Substitution into the differential equation yields 0 6 α + 8 α x = x and α .

Comparing coefficients of x :

8 α x = x so α = 1 8

Comparing constants: 6 α = 0 so α = 0

We have a contradiction! Clearly a particular integral of the form α x is not possible. The problem arises because differentiation of the term α x produces constant terms which are unbalanced on the right-hand side. So, we try a solution of the form y ( x ) = α x + β with α , β constants. This is consistent with the recommendation in Table 2 on page 43. Proceeding as before d y d x = α , d 2 y d x 2 = 0. Substitution in the differential equation now gives:

0 6 α + 8 ( α x + β ) = x

Equating coefficients of x and then equating constant terms we find:

8 α = 1 (1)

6 α + 8 β = 0 (2)

From ( 1 ) , α = 1 8 and then from (2) β = 3 32 .

The required particular integral is   y p ( x ) = 1 8 x + 3 32 .

Task!

Find a particular integral for the equation:

d 2 y d x 2 6 d y d x + 8 y = 3 cos x

First decide on an appropriate form for the trial solution, referring to Table 2 (page 43) if necessary:

From Table 2, y = A cos x + B sin x , A and B constants. Now find d y d x and d 2 y d x 2 and substitute into the differential equation:

Differentiating, we find:

d y d x = A sin x + B cos x d 2 y d x 2 = A cos x B sin x

Substitution into the differential equation gives:

( A cos x B sin x ) 6 ( A sin x + B cos x ) + 8 ( A cos x + B sin x ) = 3 cos x

Equate coefficients of cos x :

7 A 6 B = 3

Also, equate coefficients of sin x :

7 B + 6 A = 0 Solve these two equations in A and B simultaneously to find values for A and B , and hence obtain the particular integral:

A = 21 85 , B = 18 85 , y p ( x ) = 21 85 cos x 18 85 sin x