Subsection Modifying Particular Solutions
We now know how to choose a form for
\(y_p\) based on the structure of
\(f(x)\text{,}\) but thereβs one final complication: If a term in
\(y_p\) matches a term in the homogeneous solution
\(y_h\text{,}\) then that term cannot contribute to generating
\(f(x)\text{.}\) Instead, it will give zero, since that is what terms in
\(y_h\) do when substituted into the differential equation.
To fix this, we multiply every term of the form in
\(y_p\) that contains the overlapping term by
\(x\text{,}\) not just the overlapping term itself. If thereβs still overlap, we multiply by
\(x\) againβrepeating until
\(y_p\) shares no like terms with
\(y_h\text{.}\)
For example, consider:
\begin{equation*}
y'' - 4y' + 3y = e^{3x}
\end{equation*}
The homogeneous solution and the initial particular solution are:
\begin{equation*}
y_h = c_1 e^x + {\DLO c_2 e^{3x}}, \quad y_p = {\DLO A e^{3x}}\text{.}
\end{equation*}
Notice that
\(y_h\) and
\(y_p\) both contain the like terms:
\(c_2 e^{3x}\) and
\(A e^{3x}\text{.}\) This means that plugging
\(y_p\) into the left side of the equation will simplify to
\(0\text{,}\) not
\(e^{3x}\text{,}\) as required.
So we modify \(y_p\) by multiplying its form, here just the single term \(A e^{3x}\text{,}\) by \(x\text{:}\)
\begin{equation*}
y_p = A x e^{3x}
\end{equation*}
Now,
\(y_p\) has no terms in common with
\(y_h\text{,}\) ensuring that they are independent.
Modification Rule for the Particular Solution.
If any term in your guess for
\(y_p\) also appears in
\(y_h\text{,}\) multiply every term of the form that contains it (the group of terms in
\(y_p\) chosen to match one part of
\(f(x)\)) by the independent variable
\(x\text{,}\) and leave the other forms in
\(y_p\) alone. Repeat as needed until all overlapping terms are eliminated.
Multiplying the whole form matters when only part of it overlaps. For instance, if \(y_h\) contains a constant \(C_1\) but no \(x\) term and the guess is \(y_p = Ax + B\text{,}\) only \(B\) overlaps, but the whole polynomial gets the \(x\text{:}\)
\begin{equation*}
y_p = x(Ax + B) = Ax^2 + Bx \text{.}
\end{equation*}
Multiplying only \(B\) would give \(Ax + Bx = (A + B)x\text{,}\) which leaves just one coefficient and no way to match the \(x\)-terms of \(f(x)\text{.}\)
Checkpoint 178 πβ Handling Like Terms.
What should you do if
\(y_p\) contains a term also present in
\(y_h\text{?}\)
-
Multiply every term of the form in \(y_p\) that contains it by the independent variable.
-
-
Multiply only that one term in \(y_p\) by the independent variable.
-
-
Delete the term from \(y_p\text{.}\)
-
-
Multiply the term in \(y_h\) by the independent variable.
-
-
Use integration to eliminate the term.
-
Letβs work through some examples where modification is required, and see how this rule plays out.
π Example 179 Modifying the Initial Form of \(y_p\).
For each LNCC equation below:
-
Find the homogeneous solution \(y_h\text{.}\)
-
Select the initial form of \(y_p\text{.}\)
-
Modify \(y_p\) to ensure it has no overlap with \(y_h\text{.}\)
-
\(\displaystyle y'' - 2y' + y = e^x\)
-
\(\displaystyle y''' + 4y' = \cos(2x) - \sin(x)\)
-
\(\displaystyle y'' + y = x e^x\)
-
\(\displaystyle y'' - 6y' + 9y = x^2 e^{3x}\)
Solution.
-
-
The characteristic equation is
\begin{equation*}
r^2 - 2r + 1 = 0\text{,}
\end{equation*}
which has a repeated root: \(r=1\text{.}\) So,
\begin{equation*}
y_h = c_1 e^x + c_2 x e^x \text{.}
\end{equation*}
-
The natural guess for
\(y_p\) to match
\(e^x\) is:
\(\quad y_p = A e^x\text{.}\)
-
Since
\(e^x\) is in
\(y_h\text{,}\) we multiply
\(y_p\) by
\(x\text{:}\) \(\quad y_p = A x e^x \text{.}\)
But,
\(x e^x\) is still in
\(y_h\text{,}\) so we repeat:
\(\quad y_p = A x^2 e^x\text{.}\)
-
-
Since the characteristic equation is
\begin{equation*}
r^3 + 4r = 0\text{,}
\end{equation*}
the roots are: \(r = 0, \pm 2i\) and
\begin{equation*}
y_h = c_1 + c_2 \cos(2x) + c_3 \sin(2x)\text{.}
\end{equation*}
-
The guess for \(y_p\) is
\begin{align*}
y_p \amp = \ob{A \cos(2x) + B \sin(2x)}^{\large\text{already in } y_h}\\
\amp \hphantom{=\ A \cos(2x)} + D \cos(x) + E \sin(x)\text{.}
\end{align*}
-
Only the \(\cos(2x)\) and \(\sin(2x)\) terms conflict. Modify them:
\begin{align*}
y_p = Ax\cos(2x) \amp + Bx\sin(2x) \\
\amp + D \cos(x) + E \sin(x)\text{.}
\end{align*}
-
-
The characteristic equation
\begin{equation*}
r^2 + 1 = 0\text{,}
\end{equation*}
has roots: \(r = \pm i\text{,}\) leading to
\begin{equation*}
y_h = c_1 \cos(x) + c_2 \sin(x)\text{.}
\end{equation*}
-
The initial guess for \(y_p\) is
\begin{equation*}
y_p = (Ax + B)\ e^x\text{.}
\end{equation*}
-
No modification is needed since
\(e^x\) doesnβt appear in
\(y_h\text{.}\)
-
-
The characteristic equation
\begin{equation*}
r^2 - 6r + 9 = 0\text{,}
\end{equation*}
has the repeated solution \(r = 3\text{,}\) so
\begin{equation*}
y_h = (c_1 + c_2 x) e^{3x}\text{.}
\end{equation*}
-
The initial guess for \(y_p\) is:
\begin{equation*}
y_p = (Ax^2 + Bx + C) e^{3x}\text{.}
\end{equation*}
-
Multiplying out \(y_h\) and \(y_p\) helps show that \(e^{3x}\) and \(x e^{3x}\) are conflicting terms. Multiplying all terms by \(x^2\) gives the correct form:
\begin{equation*}
y_p = (Ax^4 + Bx^3 + Cx^2) e^{3x}\text{.}
\end{equation*}
Now that we know how to construct an appropriate and independent form for
\(y_p\text{,}\) the last step is to determine the values of the unknown coefficients.
Checkpoint 180 πβ Select the Correct Form of \(y_p\).
Consider the linear non-homogeneous constant coefficient equation
\begin{equation*}
y'' - 4y' + 3y = \frac12 e^x\text{.}
\end{equation*}
Given that the homogeneous solution is \(y_h = c_1 e^x + c_2 e^{3x}\text{,}\) select the form of the particular solution after any necessary modifications.
-
\(\quad y_p = Ae^x \)
-
Incorrect. This would be the correct initial form for the particular solution, but not the final form.
-
\(\quad y_p = Ae^x + Be^{3x} \)
-
Incorrect. Donβt create the particular solution form based on the homogeneous solution.
-
\(\quad y_p = (Ax + B)e^x\)
-
Incorrect. This form indicates the forcing function contains the product of a first degree polynomial and an exponential function.
-
\(\quad y_p = Axe^{x} \)
-
Correct! The initial form would be \(Ae^x\text{,}\) but a like-term is also in \(y_h\text{.}\) One multiplication by \(x\) resolves this.
Checkpoint 181 π€π Reading Questions.
(a) πβ Match Forcing Function to \(y_p\) Form.
Match each forcing function
\(f(x)\) to its correct initial form of
\(y_p\text{.}\)
- \(f(x) = x^3\)
- \(y_p = A x^3 + B x^2 + C x + D\)
- \(f(x) = e^{2x}\)
- \(y_p = A e^{2x}\)
- \(f(x) = 2x + 5\)
- \(y_p = A x + B\)
- \(f(x) = e^{3x}\)
- \(y_p = A e^{3x}\)
- \(f(x) = \cos(4x)\)
- \(y_p = A \cos(4x) + B \sin(4x)\)
- \(f(x) = x^2 e^x\)
- \(y_p = (A x^2 + B x + C) e^x\)
- \(f(x) = x \cos x\)
- \(y_p = (A x + B) \cos x + (C x + D) \sin x\)
(b) πβ What is the Next Move?
Which statement best describes the next action you should take when the particular solution,
\(y_p\text{,}\) has a like-term with the homogeneous solution,
\(y_h\text{?}\)
-
This is normal, move on.
-
Incorrect. The \(y_p\) cannot have terms in common with \(y_h\text{.}\)
-
Remove the like-term from \(y_p\text{.}\)
-
Incorrect. Removing a term from \(y_p\) leaves no way to produce that part of \(f(x)\text{.}\)
-
Multiply every term of the form in \(y_p\) that contains the like-term by \(x\text{.}\)
-
Correct! Every term of that form gets the \(x\text{,}\) not just the like-term.
-
Multiply only the like-term in \(y_p\) by \(x\text{.}\)
-
Incorrect. Multiply the whole form: \(Ax + B\) becomes \(Ax^2 + Bx\text{.}\) Multiplying only \(B\) gives \(Ax + Bx = (A + B)x\text{,}\) which loses a coefficient.
-
Multiply the like-term in \(y_h\) by \(x\text{.}\)
-
Incorrect. The particular solution should be modified, not the homogeneous solution.
(c) πβ Modify \(y_p\).
If an equation has a forcing function and a homogeneous solution,
\begin{equation*}
f(x) = x^2 e^{3x}\quad \text{and} \quad y_h = (c_1 + c_2 x) e^{3x}\text{,}
\end{equation*}
select the correct modified form of \(y_p\text{?}\)
-
\(\quad y_p = A x^2 e^{3x}\)
-
Incorrect. The form of \(y_p\) should be modified until there are no terms in common with \(y_h\text{.}\)
-
\(\quad y_p = (A x^4 + B x^3 + C x^2) e^{3x}\)
-
Correct! The modified form of \(y_p\) is \((A x^4 + B x^3 + C x^2) e^{3x}\text{.}\)
-
\(\quad y_p = (A x^3 + B x^2) e^{3x}\)
-
Incorrect. The form of \(y_p\) should be modified until there are no terms in common with \(y_h\text{.}\)
-
\(\quad y_p = (A x^2 + B x) e^{3x}\)
-
Incorrect. The form of \(y_p\) should be modified until there are no terms in common with \(y_h\text{.}\)
(d) πβ Match the Scenario to the Correct Action.
The homogeneous solution to the LNCC equation
\begin{equation*}
y'' - 4y' + 4y = f(x)
\end{equation*}
is given by
\begin{equation*}
y_h = c_1 e^{2x} + c_2 x e^{2x}\text{.}
\end{equation*}
On the left side are initial
\(y_p\) forms for various forcing functions,
\(f(x)\text{.}\)
Drag each initial
\(y_p\) form to its correct modified form on the right.
- \(y_p = e^{2x}\left(A\cos x + B\sin x\right) \)
- \(y_p = Ae^{4x} \)
- No modification needed
- \(y_p = (Ax^3+Bx^2+Cx)e^{2x}\)
- \(y_p = (Ax+B)e^{2x} \)
- \(y_p = (Ax^3+Bx^2)e^{2x}\)
- \(y_p = Axe^{2x} \)
- \(y_p = (Ax^2+Bx+C)e^{2x}\)
- \(y_p = Ae^{2x} \)
- \(y_p = Ax^2e^{2x} \)
- \(y_p = (Ax^2+Bx)e^{2x}\)
(e) πβ REVIEW: Valid Forcing Functions for Undetermined Coefficients.
Which of the following are valid types of forcing functions for the Method of Undetermined Coefficients?