Section Selecting the Particular Solution Form
In the previous section, we saw that the general solution to a linear nonhomogeneous constant coefficient (LNCC) equation has two parts: the homogeneous solution \(y_h\) and the particular solution \(y_p\text{.}\) The homogeneous solution is found using the characteristic equation, while the particular solution is constructed by (1) selecting a form similar to the forcing function, \(f(x)\text{,}\) and (2) determining the coefficients of that form.
In this section, we focus on selecting a form for \(y_p\text{.}\) The key idea is to match the structural form of the forcing function \(f(x)\text{,}\) so that when it is substituted into the differential equation, all the resulting terms simplify to \(f(x)\text{.}\)
Subsection Selecting Basic Forms
The first step in choosing \(y_p\) is recognizing the structure of \(f(x)\text{.}\) Since \(y_p\) and its derivatives must eventually simplify to match \(f(x)\text{,}\) \(y_p\) should have a similar form. If \(f(x)\) is a polynomial, exponential, sine, or cosine function, then \(y_p\) should be too.
TableΒ 159 provides a guide for selecting an initial form of \(y_p\) based on the type of \(f(x)\text{.}\) In each case, \(A, B, C, \dots\) represent the undetermined coefficients weβll solve for later.
Forcing Function Type,\(f(x)\) | Particular Solution Form,\(y_p\) | |
1 | \(a\) (constant) | \(A\) |
2 | \(ax + b\) | \(Ax + B\) |
3 | \(ax^2 + bx + c\) | \(Ax^2 + Bx + C\) |
4 | \(ax^3 + bx^2 + cx + d\) | \(Ax^3 + Bx^2 + Cx + D\) |
5 | \(a e^{\ds\alpha x}\) | \(A e^{\ds\alpha x}\) |
6 | \(a \sin(\beta x) + b \cos(\beta x)\) | \(A \sin(\beta x) + B \cos(\beta x)\) |
One important note: even if a term is missing in \(f(x)\text{,}\) you should still include it in \(y_p\) if itβs part of the general form. For example:
Checkpoint 161. πβ Matching single term forcing functions to the particular form.
Subsection When Guessing \(y_p\) Works (and When It Doesnβt)
This method of guessing the particular solution based on the forcing function is very effective. However, it does have its limitations. In particular, it only applies when \(f(x)\) can be written as a sum or product of:
-
Polynomials, like \(f(x) = 3x^2 - 4x + 5\)
-
Exponentials, like \(f(x) = 6 e^{2x}\)
-
Sine and cosine functions, like \(f(x) = \cos(3x) + 2\sin(3x)\)
-
Any sum or product of these function types
Functions such as \(\ln x\text{,}\) \(\tan x\text{,}\) or \(1/x\) fall outside this category. For those, weβll need a different method entirely. But for the allowed types, this method offers a fast and reliable way to select \(y_p\text{.}\)
Checkpoint 162. πβ When to Guess \(y_p\).
Which types of forcing functions \(f(x)\) are suitable for the Method of Undetermined Coefficients?
- Polynomial functions like \(3x^2 - 4x + 5\)
- Correct! Polynomial functions are suitable for this method.
- Exponential functions like \(e^{2x}\)
- Correct! Exponential functions are also suitable.
- Sine or cosine functions like \(\sin(3x)\) or \(\cos(3x)\)
- Correct! Sine and cosine functions are suitable as well.
- Functions like \(\tan(x)\) or \(\ln(x)\)
- Not quite. The method does not apply to logarithmic or tangent functions.
Subsection Combining Basic Forms via Addition
If \(f(x)\) is a sum of different function types, say a polynomial plus an exponential, then \(y_p\) should be a sum of the corresponding matching forms.
π Example 163. Initial form of \(y_p\).
Checkpoint 164. πβ Sum of particular solution forms.
Select the initial form of the particular solution for an LNCC equation with forcing function:
\begin{equation*}
f(x) = 3e^{4x} + 2\sin(3x)\text{.}
\end{equation*}
- \(\ds\quad y_p = A e^{4x} + B e^{3x}\)
- Incorrect. Derivatives of this form will not yield a \(\sin(3x)\) term.
- \(\ds\quad y_p = A e^{4x} + B \sin(3x)\)
- Incorrect. This form is missing a term.
- \(\ds\quad y_p = e^{4x}(A \sin(3x) + B \cos(3x))\)
- Incorrect. This form is inappropriate since the forcing function is not a product of an exponential function and sine or cosine functions.
- \(\ds\quad y_p = A e^{4x} + B \sin(3x) + C \cos(3x)\)
- Correct! Although the forcing function does not contain a cosine term, the derivatives of cosine terms can still produce sine terms.
Subsection Combining Basic Forms via Multiplication
If the forcing function \(f(x)\) is a product of basic function typesβsuch as a polynomial times an exponentialβthen the particular solution \(y_p\) must also be a product of their matching forms. For example, the differential equation
\begin{equation*}
y'' + y' + 5y = 10x^2 e^{6x}\text{,}
\end{equation*}
has a forcing function that is a quadratic times an exponential, so we start with:
\begin{equation*}
y_p = (Ax^2 + Bx + C)(D e^{6x}) \text{.}
\end{equation*}
However, be careful: multiplying by \(D\) just makes new coefficients:
\begin{equation*}
y_p = (AD x^2 + BD x + CD) e^{6x}
\end{equation*}
Since each pair can be merged as single coefficient, we just relabel them:
\begin{equation*}
y_p = (Ax^2 + Bx + C) e^{6x}
\end{equation*}
Weβll use this simplification trick often. It keeps the form of \(y_p\) clean and will make solving for \(A\text{,}\) \(B\) and \(C\) much easier later.
Checkpoint 165. πβ Product of particular solution forms.
Select the initial form of the particular solution for an LNCC equation with forcing function:
\begin{equation*}
f(x) = x^2 e^{x}\text{.}
\end{equation*}
- \(\ds\quad y_p = (Ax^2 + Bx + C)e^{x}\)
- Correct! The forcing function is the product of a 2nd degree polynomial and an exponential function, so the particular solution should be the product the most general 2nd degree polynomial and an exponential function.
- \(\ds\quad y_p = Ax^2e^{x}\)
- Incorrect. Although this form perfectly matches the form of the forcing function, the solution could potentially include \(x\) and free terms.
- \(\ds\quad y_p = (x^2 + Ax + B)e^x\)
- Incorrect. The \(x^2\) term also needs a coefficient.
- \(\ds\quad y_p = (Ax^2 + Bx + C)(De^{x})\)
- Incorrect. The extra coefficient \(D\) is unnecessary, as it can be absorbed into the constants \(A, B,\) and \(C\text{.}\)
π Example 166. Initial form of \(y_p\) - Products of Forms.
For each of the following forcing functions, select an appropriate initial form of \(y_p\text{.}\) Simplify by combining or eliminating any redundant constants.
\(\ds f(x) = e^{-x}\cos(x)\)
\(\ds f(t) = t^{3}\cos t\)
Solution.
This is a 3rd degree polynomial times a cosine. So, initially we set:
\begin{equation*}
y_p = (At^3 + Bt^2 + Ct + D)(E\sin t + F\cos t)\text{.}
\end{equation*}
Multiplying the polynomial onto sine and cosine, gives us
\begin{align*}
y_p = (At^3 \amp + Bt^2 + Ct + D)E\sin t \\
\amp + (At^3 + Bt^2 + Ct + D)F\cos t \text{.}
\end{align*}
Distributing \(E\) and \(F\) shows that they are redundant, so we relabel as follows:
\begin{align*}
y_p = (At^3 \amp + Bt^2 + Ct + D)\sin t \\
\amp + (Et^3 + Ft^2 + Gt + H)\cos t
\end{align*}
\(\ds f(x) = x^2\cos x + x \sin x\)
Solution.
Here, both terms involve powers of \(x\) times trig functions. But we donβt need separate guessesβone form covers both:
\begin{align*}
y_p = (Ax^2 + Bx \amp + C)\cos x \\
\amp + (Dx^2 + Ex + F)\sin x
\end{align*}
With these examples and the table as a guide, youβre now equipped to handle both additive and multiplicative combinations in \(f(x)\text{.}\) Next, weβll deal with one last wrinkle: what to do if \(y_p\) accidentally overlaps with the homogeneous solution \(y_h\text{.}\)
Checkpoint 167. πβ Matching Forcing Function (with Products) to \(y_p\).
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\) 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 the overlapping part of \(y_p\) by \(x\text{.}\) 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 in \(y_p\) 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 the conflicting term by \(x\text{:}\)
\begin{equation*}
y_p = A x e^{3x}
\end{equation*}
Modification Rule for the Particular Solution.
If any term in your guess for \(y_p\) also appears in \(y_h\text{,}\) multiply that term by the independent variable \(x\text{.}\) Repeat as needed until all overlapping terms are eliminated.
Checkpoint 168. πβ Handling Like Terms.
- Multiply the 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 169. 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{.}\)
\(\ds y'' - 2y' + y = e^x\)
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\begin{equation*} y_p = A e^x\text{.} \end{equation*}
-
Since \(e^x\) is in \(y_h\text{,}\) we multiply \(y_p\) by \(x\text{:}\)\begin{equation*} y_p = A x e^x \end{equation*}But, \(x e^x\) is still in \(y_h\text{,}\) so we repeat:\begin{equation*} y_p = A x^2 e^x\text{.} \end{equation*}
\(\ds y''' + 4y' = \cos(2x) - \sin(x)\)
Solution.
-
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*}
\(\ds y'' + y = x e^x\)
Solution.
-
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*}
\(\ds y'' - 6y' + 9y = x^2 e^{3x}\)
Solution.
-
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 170. πβ 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\ds y_p = Ae^x \)
- Incorrect. This would be the correct initial form for the particular solution, but not the final form.
- \(\quad\ds y_p = Ae^x + Be^{3x} \)
- Incorrect. Donβt create the particular solution form based on the homogeneous solution.
- \(\quad\ds 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\ds 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.
Subsection π€ Wrap-Up
ποΈ \(\textbf{Key Takeaways...}\)
-
To choose \(y_p\text{,}\) match its structure to the form of \(f(x)\) (polynomial, exponential, sine, cosine, or combinations).
-
For sums like \(f(x) = x + e^x\text{,}\) build \(y_p\) as the sum of matching forms.
-
For products like \(f(x) = x^2 e^x\text{,}\) multiply the forms, but look out for redundant constants.
-
If \(y_p\) overlaps with \(y_h\text{,}\) multiply the conflicting terms in \(y_p\) by \(x\) until they are independent.
Check Your Understanding.
Checkpoint 171. π€π Separation of Variables Reading Questions.
(a) π€π Match Forcing Function to \(y_p\) Form.
(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. No terms in \(y_h\) should ever be removed.
- Multiply the like-term in \(y_p\) by \(x\text{.}\)
- Correct!
- 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 the forcing function and 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{?}\)
- \(\ds\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{.}\)
- \(\ds\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{.}\)
- \(\ds\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{.}\)
- \(\ds\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.
You have attempted of activities on this page.