This method is more limited in scope; it applies only to the special case of (2), where p(t) is a constant and g(t) has some special form. The advantage of the method is that it does not require any integrations and is therefore quick to use. The homogeneous equation
The idea behind the method of undetermined coefficients is to look for yp(t) which is of a form like that of g(t). This is possible only for special functions g(t), but these special cases arise quite frequently in applications.
We start with the case where g(t) is an exponential:
![]() |
(3) |
Example: Find the general solution of the equation
y'+2y=et.
The solution of the homogeneous equation isaet+2aet=et,
leading to a=1/3. The general solution isWhy did this work? The idea is simply that if y is an exponential, then so is y', and so if both y and g are exponentials, then all terms in the equation are exponentials and we can hope to obtain a solution by setting coefficients equal to each other.
There are some other classes of functions for which this works. For instance, if y is a polynomial of degree n, then y' is a polynomial of degree n-1. If g is a polynomial, we can therefore look for polynomial solutions. Consider
y'+2y=t2.
The right hand side is a polynomial of degree 2, so we look for a solution in the same form y=at2+bt+c. This leads to y'=2at+b, andy'+2y=2at2+(2a+2b)t+b+2c=t2.
To satisfy this, we want to set
We note that the solution (3) breaks down if , since
it would involve a division by zero. More generally, if the equation reads
Examples:
1.
y'+2y=te-2t.
Herey=te-2t(at+b)=e-2t(at2+bt).
We findy'=e-2t(-2at2+(2a-2b)t+b),
so thaty'+2y=e-2t(2at+b)=te-2t.
We compare coefficients to find a=1/2, b=0. The general solution of the equation is2.
y'+2y=tet.
In this casey=et(at+b).
This leads toy'+2y=et(3at+3b+a)=tet,
so we need3.
y'=t.
In this casey'=2at+b=t,
leading to a=1/2, b=0. The general solution is