5 Finding the general solution of a second order linear inhomogeneous ODE

The general solution of a second order linear inhomogeneous equation is the sum of its particular integral and the complementary function. In subsection 2 (page 32) you learned how to find a complementary function, and in subsection 4 (page 42) you learnt how to find a particular integral. We now put these together to find the general solution.

Example 15

Find the general solution of d 2 y d x 2 + 3 d y d x 10 y = 3 x 2

Solution

The complementary function was found in Example 8 to be y cf = A e 2 x + B e 5 x .

The particular integral is found by trying a solution of the form y = a x 2 + b x + c , so that

d y d x = 2 a x + b , d 2 y d x 2 = 2 a

Substituting into the differential equation gives

2 a + 3 ( 2 a x + b ) 10 ( a x 2 + b x + c ) = 3 x 2

Comparing constants: 2 a + 3 b 10 c = 0

Comparing x terms: 6 a 10 b = 0

Comparing x 2 terms: 10 a = 3

So a = 3 10 b = 9 50 c = 57 500 y p ( x ) = 3 10 x 2 9 50 x 57 500 .

Thus the general solution is y = y p ( x ) + y cf ( x ) = 3 10 x 2 9 50 x 57 500 + A e 2 x + B e 5 x

Key Point 9

The general solution of a second order constant coefficient ordinary differential equation

a d 2 y d x 2 + b d y d x + c y = f ( x ) is y = y p + y cf

being the sum of the particular integral and the complementary function.

y p contains no arbitrary constants; y cf contains two arbitrary constants.