4.4 Undetermined Coefficients–Superposition Approach: Class Notes
4.4a
The techniques in this lesson apply to nonhomogeneous DEs of the form whose input functions (that is, ) are constants, polynomials, exponentials, sines and cosines, and sums and products of these.
From 4.1: Consider .
Here . The complete (general) solution is
where is the complementary function and is the particular solution. is a solution to the associated homogeneous DE .
How do we find from scratch? Notice that comprises an exponential function and a polynomial function.
Complementary function. Auxiliary equation:
First piece. Consider . Since is exponential with exponent , guess
Substitute:
Second piece. Consider . Since is a 2nd-degree polynomial, guess a general 2nd-degree polynomial:
This goes into the equation:
Match coefficients, solving from the top down:
By superposition, , and the general solution to the nonhomogeneous DE is :
Answer:
Tip: We could have found both pieces at once with .
4.4b
Example
Solve the given differential equation by undetermined coefficients.
Solution
Step 1: complementary function. Complete the square in the auxiliary equation:
Step 2: the polynomial piece .
Matching coefficients: , , and , so
Step 3: the piece . It is a product of a linear function and an exponential, so
By the product rule (factoring out ),
Substitute into and cancel :
So , and :
Answer:
4.4c
Example
Solution
Setting ourselves up for potential failure: since , try
We must always first find :
The guess is redundant with : it is a solution of the homogeneous equation, so it produces 0 on the left side. To find a form of that is independent with , we insert factor(s) of . Here
where this factor of avoids redundancy with . Then
Substitute into and cancel :
Recall :
Answer:
Example
Solution
For , the guess needs both cosine and sine:
Multiply by the coefficients , , and substitute:
Solve by elimination. Multiply the first equation by and the second by , then add:
Multiply the first equation by and the second by , then add:
Answer:
forms, assuming no redundancy
Aside: when there is redundancy
Suppose is part of . Then the form for is redundant (its term solves the homogeneous equation), so multiply by :
If is also part of , this form is still redundant (its term), so insert another factor of .