Occasionally you will come across a differential equation
for which the inhomogeneous term,
, forms part of the complementary function. One such example is the equation
It is straightforward to check that the complementary function is
Note that the first of these terms has the same form as the inhomogeneous term,
, on the right-hand side of the differential equation.
You should verify for yourself that trying a particular integral of the form
will not work in a case like this. Can you see why?
Instead, try a particular integral of the form
. Verify that
Substitute these expressions into the differential equation to find
.
Finally, the particular integral is
and so the general solution to the differential equation is:
This shows a generally effective method - where the inhomogeneous term
appears in the complementary function use as a trial particular integral
times what would otherwise be used.