There are two methods to solve 2nd order linear Non-homogenous D.E.: Variation of Parameters and Method of Undetermined Coefficients. (see this notes for details)
A common question is: when to use which method?
Simple Guideline: If (the right-hand side of the D.E.
) is a
- Polynomial
- Exponential (
)
- Sine or Cosine (
or
)
- Or combinations of the above
use Method of Undetermined Coefficients for fast solution. Note: It is 100% correct to use Variation of Parameters for the above cases, but it is usually slower due to the integration involved.
For all other cases not covered above, use Variation of Parameters.
Examples from Midterm
(2016 Q10) . Use Method of Undetermined Coefficients since
is a sum of exponential functions.
(2015 Q9) . Use Method of Undetermined Coefficients since
is a cosine function.
(2015 Q10) . Although
is an exponential, it is not of the form
. Also, the fact that
and
are integrals clearly suggests that they are related to the
in the method of Variation of Parameters. So we use Variation of Parameters.
(2014 Q10) . On the surface,
does not fall into the category of polynomial/exponential/cos/sine, so we use Variation of Parameters as shown in the official answer.
However, if we know the identity , we can actually rewrite the equation as
and use Method of Undetermined Coefficients.
Outline of solution using Method of Undetermined Coefficients:
Guess . Then
, where we can clearly see that
. Then
. Upon plugging in the initial conditions, we find that
.
Hence .





