Method of Undetermined Coefficients
- Make an ansatz for (i.e. guess) a solution with a number of undetermined coefficients , , , in it.
- Plug the ansatz in the equation to obtain a system of equations for the coefficients.
- Solve the system of equations to determine the coefficients.
Advanced Cases
Products
If the right hand side is a product of the basic cases then the ansatz should be the product of the corresponding ansatzes.
Sums
If the right hand side is a sum of the basic cases then the ansatz should be the sum of the corresponding ansatzes.
Table of Basic “Right Hand Sides” and Corresponding Ansatzes
| RHS | Ansatz |
|---|---|
| These basic cases should be combined with the rule that for a product of right hand sides we “guess” the product of the corresponding ansatzes and for a sum of right hand sides we “guess” the sum of corresponding ansatzes. |
Example
As a culminating example for this section let us find the solution to the following initial value problem
with and .
We start by finding the general solution to the complementary equation by considering the corresponding characteristic equation
which has a single solution . This means the general solution to the complementary equation is
Then we move on to find a particular solution to the non-homogeneous equation by the method of undetermined coefficients. First note that we should view the right hand side as a sum of two products of “basic right hand sides”. This means will find particular solutions for both summands of the right hand side separately and then sum them. Let’s start with
We see that the right hand side is a product of an exponential for which the ansatz would be and a trigonometric function for which the ansatz would be . So we should guess the product of these and our ansatz will be
with first derivative
and second derivative
Plugging these into the equation and collecting terms yields
so it follows that and . At this point we could check that indeed is a particular solution to the equation above.
So now we move on to the other summand in the right hand side
This right hand side is one of the basic ones and we should use the ansatz . However, we observe that this solves the complementary equation so we should move on to . Sadly this again solves the complementary equation, so we should move on to
which has derivative
and second derivative
Plugging these into the equation and collecting terms yields
and so . At this point we could check that indeed is a particular solution to the equation above. We could also check that the sum is a particular solution to our original equation which yields the general solution
Finally to determine the coefficients and we need to consider the initial conditions to obtain the equations
which are solved by and . So finally we find the solution
of the initial value problem.