Source
Adapted from my own handwritten and hand-typed notes from Year 1 to Year 3 of my EEE degree
For a non-homogeneous equation
the general solution is
Where:
- is the general solution of the associated homogeneous equation (from the characteristic equation)
- is any one particular solution of the full equation
The method of undetermined coefficients finds by guessing its form, when is a polynomial, exponential, sine/cosine, or sums and products of these (functions whose derivatives look like themselves).
Step 1: guess the form
| contains | Try |
|---|---|
| polynomial of degree | (full polynomial of degree ) |
| (even just one of them) | |
| a sum of the above | the sum of the matching guesses |
Step 2: modification rule
If any term of the guess is already a solution of the homogeneous equation (it appears in ), multiply that part by . If it still clashes, multiply by again.
Step 3: solve for the coefficients
Differentiate twice, substitute into , and compare coefficients of matching terms (, , , ). No arbitrary constants appear in .
Worked example
Solve .
Working:
- : , so
- Guess (no clash with )
- Substituting:
- So and , giving ,
Choosing for other right sides (same )
- :
- : is in , so use
- :
Worked example: double clash
Solve .
Working:
- , so
- Both and clash, so use
- and . Substituting, all terms cancel and , so
When is not of these types (e.g. , ), use Variation of Parameters.