Finding Particular Solutions to Nonhomogeneous ODEs
June 10, 2019
Undetermined Coefficients
Undetermined coefficients is also a “trial solution” like the $y=e^{rt}$ in solving $y_c$. Some examples before we head to the theories.
Examples
-
Find a particular solution of
Here the input $f(x)=3x+2$, therefore we will try $y_p=Ax+B$ same form as the input, then:
Substitute the trial solutions into original equation:
Then we have $A=3/4$, $B=-1/16$, then the particular solution is
-
Find a particular solution of
Input $f(x)=2e^{3x}$ then our trial solution is
These give:
Clearly $A=\displaystyle \frac{2}{5}$ and
-
Find the particular solutions of
For cos and sin, we try the whole trial solution
because they appear in each other’s derivative, then
The above examples are designed to work. But it’s not always that lucky. If we just follow the form of $f(x)$, it may happen that the trial solution ends up in the $y_c$ that makes the equation go to zero, regardless of value of $x$. In that case we will never make $0=f(x)$. Thus we have some rules to handle these situations.
General Approach
In principle, the method of undetermined coefficients applies whenever the input $f(x)$ is a linear combination of the products of the following three types:
- A polynomial in $x$
- An exponential function $e^{rx}$
- $\cos kx$ or $\sin kx$
Such function is, for example:
In practice, we first find the $y_c$ that satisfy the homogeneous solution $Ly_c=0$, and we check if $f(x)$ is in $y_c$ or any derivatives of $f(x)$ is in $y_c$, If there’s no terms in $y_c$, then we can take $f(x)$ and formulae our trial solutions.
If we found there exists a duplicate, we need to multiply the trial solution by a $x^s$ to make duplicates term disappear. $s$ should be the order of polynomial in $y_c$ plus 1.
Exponential Input theorem
Exponential Shift Rule
Assuming . What if ? We have exponential shift rule: