Skip to main content
Logo image

Section D.1 Orphaned Content

This is just a place to put content that was written and may or not be used.

Additional Narrative.

We can write this solution as
\begin{equation*} y = y_h + y_p\text{.} \end{equation*}
Substituting this into the equation and separating the \(y_h\) and \(y_p\) parts gives
\begin{align*} (y_h + y_p)'' + 2(y_h + y_p)' + 3(y_h + y_p) =\ & 9x \\ y_h'' + y_p'' - 4y_h' - 4y_p' + 3y_h + 3y_p =\ & 9x \\ y_h'' - 4y_h' + 3y_h + y_p'' - 4y_p' + 3y_p =\ & 9x \\ \us{\Large y_h \text{ part }}{{\ub{(y_h'' - 4y_h' + 3y_h)}}} + \ \us{\Large y_p \text{ part }}{{\ub{(y_p'' - 4y_p' + 3y_p)}}} =\ & 9x \end{align*}
Notice that each part looks like we separately plugged \(y_h\) and \(y_p\) into the left side of (32). Now, suppose the \(y_h\) part simplified to \(0\) and the \(y_p\) part gave you \(9x\text{,}\) then the sum of these parts still equal \(9x\text{.}\) This of \(y_h\) as the parts of the solution that cancel out with each other and \(y_p\) as the parts that simplify to \(9x\) (like in the previous section).
We can get these two parts by separately solving the equations,
\begin{equation*} y_h'' - 4y_h' + 3y_h = 0 \quad \text{and} \quad y_p'' - 4y_p' + 3y_p = 9x\text{,} \end{equation*}
for \(y_h\) and \(y_p\text{.}\) Adding these together gives the general solution, \(y = y_h + y_p\text{.}\) The next example summarizes this process.
Verifying that, say \(y=e^{3x}+e^{4x}\text{,}\) is a solution to the homogeneous equation
\begin{equation*} y'' - 4y' + 3y = 0\text{,} \end{equation*}
involves plugging it into the left-hand side of the equation and simplifying. If it is a solution, then you would expect all the terms to cancel out, leaving you with zero so that the equation is satisfied.
In the case of a nonhomogeneous equation,
\begin{equation*} y'' - 4y' + 3y = 9x\text{,} \end{equation*}
you would instead expect the left side to simplify to \(9x\) after plugging in a solution. Let’s brainstorm some functions that might simplify to \(9x\text{.}\)
Since we need the left side to simplify to \(9x\text{,}\) it seems reasonable to consider functions that have \(x\) terms, such as polynomials. Let’s try some below.
\(y\) \(y'' - 4y' + 3{\color{blue} y} =\!\!\!\) LHS LHS \(\os{?}{=} 9x\)
1 \(3\) \((3)'' - 4(3)' + 3({\color{blue} 3}) =\!\!\!\) \({\color{blue} 9}\) No
2 \(3x\) \((3x)'' - 4(3x)' + 3({\color{blue} 3x}) =\!\!\!\) \(-12 + {\color{blue} 9x}\) No
3 \(x^4\) \((x^4)'' - 4(x^4)' + 3({\color{blue} x^4}) =\!\!\!\) \(12x^2 - 16x^3 + {\color{blue} 3x^4}\) No
4 \(x^2+3x\) \((x^2+3x)'' - 4(x^2+3x)' + 3({\color{blue} x^2}+3x) =\!\!\!\) \(-10 + x + {\color{blue} 3x^2}\) No
5 \(3x-6\) \((3x-6)'' - 4(3x-6)' + 3({\color{blue} 3x}-6) =\!\!\!\) \(-30+{\color{blue} 9x}\) No
6 \(3x+4\) \((3x+4)'' - 4(3x+4)' + 3({\color{blue} 3x}+4) =\!\!\!\) \({\color{blue} 9x}\) Yes
Based on this table, we note that the correct solution is \(y = 3x + 4\) and
  • Row 1 shows that a constant term alone could never produce an \(x\) term.
  • Derivatives reduce the power of a polynomial, so the highest power term (highlighted in blue) comes from the \(y\) term.
     13 
    \(y'' - 4y' + \os{\large y\text{ term}}{\boxed{3y}}\)
  • Rows 3 & 4 illustrate the solution can’t have a \(x^2\) or higher-degree term.
  • Row 6 shows the solution (\(3x+4\)) needed an \(x\) term and constant term even though the right-hand side, \(9x\text{,}\) has only an \(x\) term.
concept into the left-side of (33) simplifies to \(0\text{.}\) Would it still be a solution if we tossed another term, say \(e^{3x}\text{,}\) onto it so that \(y=e^{3x} + 3x + 4\text{?}\) To find out, we plug it in and track this new term (in blue), like so
\begin{align*} \left( {\color{blue} c_1e^{x} + c_2e^{3x}} + 3x + 4 \right)'' -4\left( {\color{blue} c_1e^{x} + c_2e^{3x}} + 3x + 4 \right)' +3\left( {\color{blue} c_1e^{x} + c_2e^{3x}} + 3x + 4 \right) \\ \left( {\color{blue} e^{3x}} \right)'' + \left( 3x + 4 \right)'' -4\left( {\color{blue} e^{3x}} \right)' - 4\left( 3x + 4 \right)' +3\left( {\color{blue} e^{3x}} \right) + 3\left( 3x + 4 \right) =\ & 9x \\ \us{\large e^{3x} \text{ in the LHS of } \knowl{./knowl/xref/lncc-eqn1.html}{\text{(32)}}}{\ub{ \left( {\color{blue} e^{3x}} \right)'' -4\left( {\color{blue} e^{3x}} \right)' +3\left( {\color{blue} e^{3x}} \right)} } + \us{\large 3x + 4 \text{ in the LHS of } \knowl{./knowl/xref/lncc-eqn1.html}{\text{(32)}}}{\ub{ \left( 3x + 4 \right)'' -4\left( 3x + 4 \right)' +3\left( 3x + 4 \right) }} =\ & 9x \end{align*}
\begin{align*} \left( {\color{blue} 9e^{3x}} \right) -4\left( {\color{blue} 3e^{3x}} \right) +3\left( {\color{blue} e^{3x}} \right) + 0 -4\left( 3 \right) +3\left( 3x + 4 \right) =\ & 9x \\ {\color{blue} 9e^{3x} - 12e^{3x} + 3e^{3x}} - 12 + 9x + 12 =\ & 9x \\ {\color{blue} 0} + 9x =\ & 9x \end{align*}
There is a lot built into this result, so let’s carefully break it down.
  • First, \(y=e^{3x} + 3x + 4\) is a solution since it satisfies (32).
  • The solution contains the two parts
    \begin{equation*} y=\us{(1)}{\ul{e^{3x}}} + \us{(2)}{\ul{3x + 4}}\text{,} \end{equation*}
    where part (1) contains the terms that simplifies to \(0\) and part (2) contains the terms that simplify to \(9x\) when plugged into (32).
  • The third step looks like \(e^{3x}\) and \(3x+4\) were separately plugged into (32). As long as the equation is linear, this separation can happen.
\begin{equation} \underset{\text{terms that cancel}}{\underbrace{a_2 y_h'' + a_1 y_h' + a_0 y_h}} + \underset{\text{terms that account for } f(x)}{\underbrace{a_2 y_p'' + a_1 y_p' + a_0 y_p}} = f(x)\tag{51} \end{equation}
Now, let’s attempt Definition 15 to find a particular solution, \(y_p\text{.}\) Since the right-hand side of the original equation is \(e^{3x}\text{,}\) we might initially guess:
\begin{equation*} y_p = A e^{3x} \end{equation*}
However, this term \(e^{3x}\) is already part of the homogeneous solution, \(y_h\text{.}\) If we use this guess, we will not obtain a valid particular solution because it will be absorbed into the homogeneous part. To circumvent this, we adjust our guess by multiplying by \(x\) to ensure linear independence:
\begin{equation*} y_p = A x e^{3x} \end{equation*}
Let’s verify if this adjusted guess works by plugging it into the original equation. We find the necessary derivatives:
\begin{equation*} y_p = A x e^{3x} \end{equation*}
\begin{equation*} y_p' = A e^{3x} + 3A x e^{3x} \end{equation*}
\begin{equation*} y_p'' = 6A e^{3x} + 9A x e^{3x} \end{equation*}
Substituting these into the differential equation:
\begin{equation*} (6A e^{3x} + 9A x e^{3x}) - 4(A e^{3x} + 3A x e^{3x}) + 3(A x e^{3x}) = e^{3x} \end{equation*}
Simplifying, we get:
\begin{equation*} (6A e^{3x} + 9A x e^{3x}) - (4A e^{3x} + 12A x e^{3x}) + (3A x e^{3x}) = e^{3x} \end{equation*}
\begin{equation*} (6A e^{3x} - 4A e^{3x}) + (9A x e^{3x} - 12A x e^{3x} + 3A x e^{3x}) = e^{3x} \end{equation*}
\begin{equation*} 2A e^{3x} + 0 = e^{3x} \end{equation*}
This simplifies to:
\begin{equation*} 2A e^{3x} = e^{3x} \end{equation*}
Thus, we find:
\begin{equation*} A = \frac{1}{2} \end{equation*}
Therefore, the particular solution is:
\begin{equation*} y_p = \frac{1}{2} x e^{3x} \end{equation*}
This example demonstrates the importance of adjusting the form of \(y_p\) when it overlaps with \(y_h\text{.}\) In general, if our initial guess for \(y_p\) contains any term that is also part of \(y_h\text{,}\) we multiply that term by \(x\) to ensure independence. If the overlap persists, we multiply by higher powers of \(x\) (e.g., \(x^2\text{,}\) \(x^3\)) until the terms are linearly independent.

Additional Examples.

Example D.9.

Determine a particular solution to
\begin{equation*} y'' - 4y' - 12y = 3{e^{5t}} \end{equation*}
Solution.
The point here is to find a particular solution, however the first thing that we’re going to do is find the homogeneous solution to this differential equation. Recall that the homogeneous solution comes from solving,
\begin{equation*} y'' - 4y' - 12y = 0 \end{equation*}
The characteristic equation for this differential equation and its roots are.
\begin{equation*} {r^2} - 4r - 12 = \left( {r - 6} \right)\left( {r + 2} \right) = 0\hspace{0.25in} \Rightarrow \hspace{0.25in}\,\,{r_1} = - 2,\,\,\,\,{r_2} = 6 \end{equation*}
The homogeneous solution is then,
\begin{equation*} {y_c}\left( t \right) = {c_1}{{\bf{e}}^{ - 2t}} + {c_2}{{\bf{e}}^{6t}} \end{equation*}
At this point the reason for doing this first will not be apparent, however we want you in the habit of finding it before we start the work to find a particular solution. Eventually, as we’ll see, having the homogeneous solution in hand will be helpful and so it’s best to be in the habit of finding it first prior to doing the work for undetermined coefficients.
Now, let’s proceed with finding a particular solution. As mentioned prior to the start of this example we need to make a guess as to the form of a particular solution to this differential equation. Since
\begin{equation*} g(t) \end{equation*}
is an exponential and we know that exponentials never just appear or disappear in the differentiation process it seems that a likely form of the particular solution would be
\begin{equation*} {Y_P}\left( t \right) = A{{\bf{e}}^{5t}} \end{equation*}
Now, all that we need to do is do a couple of derivatives, plug this into the differential equation and see if we can determine what
\begin{equation*} A \end{equation*}
needs to be.
Plugging into the differential equation gives
\begin{align*} 25A{{\bf{e}}^{5t}} - 4\left( {5A{{\bf{e}}^{5t}}} \right) - 12\left( {A{{\bf{e}}^{5t}}} \right) & = 3{{\bf{e}}^{5t}}\\ - 7A{{\bf{e}}^{5t}} & = 3{{\bf{e}}^{5t}} \end{align*}
So, in order for our guess to be a solution we will need to choose
\begin{equation*} A \end{equation*}
so that,
\begin{equation*} - 7A = 3\hspace{0.25in} \Rightarrow \hspace{0.25in}A = - \frac{3}{7} \end{equation*}
Okay, we found a value for the coefficient. This means that we guessed correctly. A particular solution to the differential equation is then,
\begin{equation*} {Y_P}\left( t \right) = - \frac{3}{7}{{\bf{e}}^{5t}} \end{equation*}

Example D.10.

Solve the following initial value problem.
\begin{equation*} y'' - 4y' - 12y = 3{e^{5t}}\hspace{0.25in}\hspace{0.25in}y\left( 0 \right) = \frac{{18}}{7}\hspace{0.25in}y'\left( 0 \right) = - \frac{1}{7} \end{equation*}
Solution.
We know that the general solution will be of the form,
\begin{equation*} y\left( t \right) = {y_c}\left( t \right) + {Y_P}\left( t \right) \end{equation*}
and we already have both the homogeneous and particular solution from the first example so we don’t really need to do any extra work for this problem.
One of the more common mistakes in these problems is to find the homogeneous solution and then, because we’re probably in the habit of doing it, apply the initial conditions to the homogeneous solution to find the constants. This however, is incorrect. The homogeneous solution is only the solution to the homogeneous differential equation and we are after a solution to the nonhomogeneous differential equation and the initial conditions must satisfy that solution instead of the homogeneous solution.
So, we need the general solution to the nonhomogeneous differential equation. Taking the homogeneous solution and the particular solution that we found in the previous example we get the following for a general solution and its derivative.
\begin{align*} y\left( t \right) & = {c_1}{{\bf{e}}^{ - 2t}} + {c_2}{{\bf{e}}^{6t}} - \frac{3}{7}{{\bf{e}}^{5t}}\\ y'\left( t \right) & = - 2{c_1}{{\bf{e}}^{ - 2t}} + 6{c_2}{{\bf{e}}^{6t}} - \frac{{15}}{7}{{\bf{e}}^{5t}} \end{align*}
Now, apply the initial conditions to these.
\begin{align*} \frac{{18}}{7} = y\left( 0 \right) & = {c_1} + {c_2} - \frac{3}{7}\\ - \frac{1}{7} = y'\left( 0 \right) & = - 2{c_1} + 6{c_2} - \frac{{15}}{7} \end{align*}
Solving this system gives
\begin{equation*} c_{2} = 1\text{.} \end{equation*}
The actual solution is then.
\begin{equation*} y\left( t \right) = 2{{\bf{e}}^{ - 2t}} + {{\bf{e}}^{6t}} - \frac{3}{7}{{\bf{e}}^{5t}} \end{equation*}

Example D.11.

Find a particular solution for the equation
\begin{equation*} y'' - 4y' - 12y = \sin \left( {2t} \right) \end{equation*}
Solution.
Again, let’s note that we should probably find the homogeneous solution before we proceed onto the guess for a particular solution. However, because the homogeneous differential equation for this example is the same as that for the first example we won’t bother with that here.
Now, let’s take our experience from the first example and apply that here. The first example had an exponential function in the
\begin{equation*} g(t) \end{equation*}
and our guess was an exponential. This differential equation has a sine so let’s try the following guess for the particular solution.
\begin{equation*} {Y_P}\left( t \right) = A\sin \left( {2t} \right) \end{equation*}
Differentiating and plugging into the differential equation gives,
\begin{equation*} - 4A\sin \left( {2t} \right) - 4\left( {2A\cos \left( {2t} \right)} \right) - 12\left( {A\sin \left( {2t} \right)} \right) = \sin \left( {2t} \right) \end{equation*}
Collecting like terms yields
\begin{equation*} - 16A\sin \left( {2t} \right) - 8A\cos \left( {2t} \right) = \sin \left( {2t} \right) \end{equation*}
We need to pick
\begin{equation*} A \end{equation*}
so that we get the same function on both sides of the equal sign. This means that the coefficients of the sines and cosines must be equal. Or,
\begin{align*} & \sin \left( {2t} \right)\,:& - 16A & = 1\hspace{0.25in} \Rightarrow \hspace{0.25in}A = - \frac{1}{{16}} \end{align*}
Notice two things. First, since there is no cosine on the right hand side this means that the coefficient must be zero on that side. More importantly we have a serious problem here. In order for the cosine to drop out, as it must in order for the guess to satisfy the differential equation, we need to set
\begin{equation*} A \end{equation*}
to keep the sine around will also keep the cosine around.
What this means is that our initial guess was wrong. If we get multiple values of the same constant or are unable to find the value of a constant then we have guessed wrong.
One of the nicer aspects of this method is that when we guess wrong our work will often suggest a fix. In this case the problem was the cosine that cropped up. So, to counter this let’s add a cosine to our guess. Our new guess is
\begin{equation*} {Y_P}\left( t \right) = A\cos \left( {2t} \right) + B\sin \left( {2t} \right) \end{equation*}
Plugging this into the differential equation and collecting like terms gives,
\begin{align*} - 4A\cos \left( {2t} \right) - 4B\sin \left( {2t} \right) - 4\left( { - 2A\sin \left( {2t} \right) + 2B\cos \left( {2t} \right)} \right) - \\ 12\left( {A\cos \left( {2t} \right) + B\sin \left( {2t} \right)} \right) \\ & = \sin \left( {2t} \right)\\ \left( { - 4A - 8B - 12A} \right)\cos \left( {2t} \right) + \left( { - 4B + 8A - 12B} \right)\sin \left( {2t} \right) & = \sin \left( {2t} \right)\\ \left( { - 16A - 8B} \right)\cos \left( {2t} \right) + \left( {8A - 16B} \right)\sin \left( {2t} \right) & = \sin \left( {2t} \right) \end{align*}
Now, set the coefficients equal
\begin{align*} & \sin \left( {2t} \right)\,: & 8A - 16B & = 1 \end{align*}
Solving this system gives us
\begin{equation*} A = \frac{1}{{40}}\hspace{0.25in}\hspace{0.25in}B = - \frac{1}{{20}} \end{equation*}
We found constants and this time we guessed correctly. A particular solution to the differential equation is then,
\begin{equation*} {Y_P}\left( t \right) = \frac{1}{{40}}\cos \left( {2t} \right) - \frac{1}{{20}}\sin \left( {2t} \right) \end{equation*}

Example D.12.

Find a particular solution for the following differential equation.
\begin{equation*} y'' - 4y' - 12y = 2{t^3} - t + 3 \end{equation*}
Solution.
Once, again we will generally want the homogeneous solution in hand first, but again we’re working with the same homogeneous differential equation (you’ll eventually see why we keep working with the same homogeneous problem) so we’ll again just refer to the first example.
For this example,
\begin{equation*} g(t) \end{equation*}
is a cubic polynomial. For this we will need the following guess for the particular solution.
\begin{equation*} {Y_P}\left( t \right) = A{t^3} + B{t^2} + Ct + D \end{equation*}
Notice that even though
\begin{equation*} {t^2} \end{equation*}
in it our guess will still need one! So, differentiate and plug into the differential equation.
\begin{align*} 6At + 2B - 4\left( {3A{t^2} + 2Bt + C} \right) - 12\left( {A{t^3} + B{t^2} + Ct + D} \right) & = 2{t^3} - t + 3\\ - 12A{t^3} + \left( { - 12A - 12B} \right){t^2} + \left( {6A - 8B - 12C} \right)t + 2B - 4C - 12D & = 2{t^3} - t + 3 \end{align*}
Now, as we’ve done in the previous examples we will need the coefficients of the terms on both sides of the equal sign to be the same so set coefficients equal and solve.
\begin{align*} & {t^3}\,: & - 12A & = 2 & \Rightarrow \hspace{0.25in}A & = - \frac{1}{6}\\ & {t^2}\,: & - 12A - 12B & = 0 & \Rightarrow \hspace{0.25in}B & = \frac{1}{6}\\ & {t^1}\,: & 6A - 8B - 12C & = - 1 & \Rightarrow \hspace{0.25in}C & = - \frac{1}{9}\\ & {t^0}\,: & 2B - 4C - 12D & = 3 & \Rightarrow \hspace{0.25in}D & = - \frac{5}{{27}} \end{align*}
Notice that in this case it was very easy to solve for the constants. The first equation gave
\begin{equation*} B\text{,} \end{equation*}
etc. A particular solution for this differential equation is then
\begin{equation*} {Y_P}\left( t \right) = - \frac{1}{6}{t^3} + \frac{1}{6}{t^2} - \frac{1}{9}t - \frac{5}{{27}} \end{equation*}

Example D.13.

Write down the form of the particular solution to
\begin{equation*} y'' + p\left( t \right)y' + q\left( t \right)y = g\left( t \right) \end{equation*}
  1. \begin{equation*} g\left( t \right) = 16{{\bf{e}}^{7t}}\sin \left( {10t} \right) \end{equation*}
  2. \begin{equation*} g\left( t \right) = \left( {9{t^2} - 103t} \right)\cos t \end{equation*}
  3. \begin{equation*} g\left( t \right) = - {{\bf{e}}^{ - 2t}}\left( {3 - 5t} \right)\cos \left( {9t} \right) \end{equation*}

Example D.14.

Write down the form of the particular solution to
\begin{equation*} y'' + p\left( t \right)y' + q\left( t \right)y = g\left( t \right) \end{equation*}
for the following
\begin{equation*} g(t) \end{equation*}
’s.
  1. \begin{equation*} g\left( t \right) = 4\cos \left( {6t} \right) - 9\sin \left( {6t} \right) \end{equation*}
  2. \begin{equation*} g\left( t \right) = - 2\sin t + \sin \left( {14t} \right) - 5\cos \left( {14t} \right) \end{equation*}
  3. \begin{equation*} g\left( t \right) = {{\bf{e}}^{7t}} + 6 \end{equation*}
  4. \begin{equation*} g\left( t \right) = 6{t^2} - 7\sin \left( {3t} \right) + 9 \end{equation*}
  5. \begin{equation*} g\left( t \right) = 10{{\bf{e}}^t} - 5t{{\bf{e}}^{ - 8t}} + 2{{\bf{e}}^{ - 8t}} \end{equation*}
  6. \begin{equation*} g\left( t \right) = {t^2}\cos t - 5t\sin t \end{equation*}
  7. \begin{equation*} g\left( t \right) = 5{{\bf{e}}^{ - 3t}} + {{\bf{e}}^{ - 3t}}\cos \left( {6t} \right) - \sin \left( {6t} \right) \end{equation*}

Example D.15.

Find a particular solution for the following differential equation.
\begin{equation*} y'' - 4y' - 12y = {{\bf{e}}^{6t}} \end{equation*}
Solution.
This problem seems almost too simple to be given this late in the section. This is especially true given the ease of finding a particular solution for
\begin{equation*} t \end{equation*}
)’s that are just exponential functions. Also, because the point of this example is to illustrate why it is generally a good idea to have the homogeneous solution in hand first we’ll let’s go ahead and recall the homogeneous solution first. Here it is,
\begin{equation*} {y_c}\left( t \right) = {c_1}{{\bf{e}}^{ - 2t}} + {c_2}{{\bf{e}}^{6t}} \end{equation*}
Now, without worrying about the homogeneous solution for a couple more seconds let’s go ahead and get to work on the particular solution. There is not much to the guess here. From our previous work we know that the guess for the particular solution should be,
\begin{equation*} {Y_P}\left( t \right) = A{{\bf{e}}^{6t}} \end{equation*}
Plugging this into the differential equation gives,
\begin{align*} 36A{{\bf{e}}^{6t}} - 24A{{\bf{e}}^{6t}} - 12A{{\bf{e}}^{6t}} 0 & = {{\bf{e}}^{6t}} \end{align*}
Hmmmm…. Something seems wrong here. Clearly an exponential can’t be zero. So, what went wrong? We finally need the homogeneous solution. Notice that the second term in the homogeneous solution (listed above) is exactly our guess for the form of the particular solution and now recall that both portions of the homogeneous solution are solutions to the homogeneous differential equation,
\begin{equation*} y'' - 4y' - 12y = 0 \end{equation*}
In other words, we had better have gotten zero by plugging our guess into the differential equation, it is a solution to the homogeneous differential equation!
So, how do we fix this? The way that we fix this is to add a
\begin{equation*} t \end{equation*}
to our guess as follows.
\begin{equation*} {Y_P}\left( t \right) = At{{\bf{e}}^{6t}} \end{equation*}
Plugging this into our differential equation gives,
\begin{align*} \left( {12A{{\bf{e}}^{6t}} + 36At{{\bf{e}}^{6t}}} \right) - 4\left( {A{{\bf{e}}^{6t}} + 6At{{\bf{e}}^{6t}}} \right) - 12At{{\bf{e}}^{6t}} \\ & = {{\bf{e}}^{6t}}\\ \left( {36A - 24A - 12A} \right)t{{\bf{e}}^{6t}} + \left( {12A - 4A} \right){{\bf{e}}^{6t}} & = {{\bf{e}}^{6t}}\\ 8A{{\bf{e}}^{6t}} & = {{\bf{e}}^{6t}} \end{align*}
Now, we can set coefficients equal.
\begin{equation*} 8A = 1\hspace{0.25in}\hspace{0.25in} \Rightarrow \hspace{0.25in}\,\,\,\,\,A = \frac{1}{8} \end{equation*}
So, the particular solution in this case is,
\begin{equation*} {Y_P}\left( t \right) = \frac{t}{8}{{\bf{e}}^{6t}} \end{equation*}

Example D.16.

\(\ \ \)
  1. \(\ds y'' + 3y' + 2y = 6e^{2x} \text{.}\)
    Solution.
    To select the appropriate form for \(y_p\text{,}\) we should find \(y_h\) to ensure that \(y_p\) and \(y_h\) have no terms in common. Solving the LHCC version of our equation, we find
    \begin{equation*} y_h = c_1 e^{-x} + c_2 e^{-2x}\text{.} \end{equation*}
    Next, we select the initial form of \(y_p\text{.}\) Since the right-hand side is an \(e^{2x}\) function, we initially set \(y_p = A e^{2x}\) and note that \(y_h\) has no \(e^{2x}\) terms, so we proceed to find \(A\) by calculating two derivatives of \(y_p\text{,}\)
    \begin{align*} y_p =\amp\ A e^{2x} \\ y_p' =\amp\ 2A e^{2x} \\ y_p'' =\amp\ 4A e^{2x} \text{,} \end{align*}
    and substituting these into the equation and collecting like terms, to get
    \begin{gather*} 4A e^{2x} + 3(2A e^{2x}) + 2(A e^{2x}) = 6e^{2x} \\ 4A e^{2x} + 6A e^{2x} + 2A e^{2x} = 6e^{2x} \\ \ul{12A} e^{2x} = \ul{6} e^{2x} \text{.} \end{gather*}
    Matching the underlined coefficients leads to the equation
    \begin{gather*} 12A = 6 \quad \implies \quad A = \frac{1}{2} \text{.} \end{gather*}
    Finally, we write the particular solution as
    \begin{equation*} y_p = \frac{1}{2} e^{2x} \text{.} \end{equation*}
  2. \(\ds y'' - 3y' + y = 2x^2 + 3x \text{.}\)
    Solution.
    As before, we first find the homogeneous solution, which is
    \begin{equation*} y_h = c_1 e^x + c_2 x e^x \text{.} \end{equation*}
    Next, we select the initial form of \(y_p\) as
    \begin{gather*} y_p = Ax^2 + Bx + C \end{gather*}
    and note that \(y_p\) has no terms in common with \(y_h\text{,}\) so we compute \(y_p'\text{,}\) \(y_p''\text{,}\) plug these into the equation, and collect the \(x^2\text{,}\) \(x\text{,}\) and constant terms to get
    \begin{equation*} y_p' = 2Ax + B \qquad y_p'' = 2A \end{equation*}
    \begin{gather*} 2A - 3(2Ax + B) + (Ax^2 + Bx + C) = 2x^2 + 3x \\ 2A - 6Ax - 3B + Ax^2 + Bx + C = 2x^2 + 3x \\ \us{1}{\ul{A}}x^2 + \us{2}{\ul{(- 6A + B)}}x + \us{3}{\ul{(2A - 3B + C)}} = \us{1}{\ul{2}}x^2 + \us{2}{\ul{3}}x + \us{3}{\ul{0}} \text{.} \end{gather*}
    Matching the underlined coefficients leads to the following system of equations and solution for the coefficients \(A\text{,}\) \(B\text{,}\) and \(C\text{:}\)
    \begin{align*} \amp\ 1. \\ \amp\ 2. \\ \amp\ 3. \end{align*}
    \begin{align*} A =\amp\ 2 \\ -6A + B =\amp\ 3 \\ 2A - 3B + C =\amp\ 0 \end{align*}
    \begin{gather*} \\ \rightarrow \\ \end{gather*}
    \begin{align*} \amp\ A = 2 \\ \amp\ B = 9 \\ \amp\ C = 13 \end{align*}
    Finally, we write the particular solution as
    \begin{equation*} y_p = 2x^2 + 9x + 13 \text{.} \end{equation*}
  3. \(\ds y'' - 4y' - 12y = t{e^{4t}} \text{.}\)
    Solution.
    First find the homogeneous solution,
    \begin{equation*} y_h = c_1 e^{6t} + c_2 e^{-2t} \text{.} \end{equation*}
    For this example we need to select a particular solution that is a polynomial times an exponential. So, we’ll guess that the particular solution is
    \begin{equation*} Y_P\left( t \right) = \left( {At + B} \right){e^{4t}} \end{equation*}
    Now, we need to compute the first and second derivatives of this and plug them into the differential equation. Doing this gives
    \begin{gather*} Y_P'\left( t \right) = A{e^{4t}} + 4At{e^{4t}} + B{e^{4t}}\\ Y_P''\left( t \right) = 4A{e^{4t}} + 4A{e^{4t}} + 16At{e^{4t}} + 4B{e^{4t}} \end{gather*}
    Substituting these into the differential equation gives
    \begin{align*} 4A{e^{4t}} \amp\ + 4A{e^{4t}} + 16At{e^{4t}} + 4B{e^{4t}}\\ \amp\ - 4\left( {A{e^{4t}} + 4At{e^{4t}} + B{e^{4t}}} \right) - 12\left( {At + B} \right){e^{4t}} = t{e^{4t}} \end{align*}
    Grouping the \(e^{4t}\) and \(te^{4t}\) terms together gives us
    \begin{gather*} 16At{e^{4t}} - 4\left( {4At{e^{4t}}} \right) - 12At{e^{4t}} = t{e^{4t}}\\ 0 = t{e^{4t}} \end{gather*}
    Matching coefficients gives us \(A = \frac{1}{4}\text{.}\) So, the particular solution is
    \begin{equation*} Y_P\left( t \right) = \left( {\frac{1}{4}t + B} \right){e^{4t}} \end{equation*}
    We now need to find \(B\text{.}\) To do this we’ll need to plug this into the differential equation and solve for \(B\text{.}\) Doing this gives
    \begin{gather*} 4\left( {\frac{1}{4}t + B} \right){e^{4t}} + 4\left( {\frac{1}{4}t + B} \right){e^{4t}} + 16\left( {\frac{1}{4}t + B} \right)t{e^{4t}} + 4B{e^{4t}} - 4\left( {\frac{1}{4}{e^{4t}} + 4\left( {\frac{1}{4}t + B} \right){e^{4t}} + B{e^{4t}}} \right) - 12\left( {\frac{1}{4}t + B} \right){e^{4t}} = t{e^{4t}}\\ {e^{4t}} + {e^{4t}} + 4t{e^{4t}} + 4B{e^{4t}} - {e^{4t}} - 4t{e^{4t}} - 4B{e^{4t}} - 3t{e^{4t}} - 3B{e^{4t}} = t{e^{4t}}\\ - 3B{e^{4t}} = 0 \end{gather*}
    Matching coefficients gives us \(B = 0\text{.}\) So, the particular solution is then
    \begin{equation*} Y_P\left( t \right) = \frac{1}{4}t{e^{4t}} \end{equation*}
    A particular solution for this differential equation is then
    \begin{equation*} {Y_P}\left( t \right) = {e^{4t}}\left( { - \frac{t}{{12}} - \frac{1}{{36}}} \right) = - \frac{1}{{36}}\left( {3t + 1} \right){e^{4t}} \end{equation*}
  4. \(\ds y'' - 4y' - 12y = 3{e^{5t}} + \sin \left( {2t} \right) + t{e^{4t}} \text{.}\)
    Solution.
    This example is the reason that we’ve been using the same homogeneous differential equation for all the previous examples. There is nothing to do with this problem. All that we need to do it go back to the appropriate examples above and get the particular solution from that example and add them all together.
    Doing this gives
    \begin{equation*} {Y_P}\left( t \right) = - \frac{3}{7}{e^{5t}} + \frac{1}{{40}}\cos \left( {2t} \right) - \frac{1}{{20}}\sin \left( {2t} \right) - \frac{1}{{36}}\left( {3t + 1} \right){e^{4t}} \end{equation*}
  5. \(\ds y'' + y = 3 \cos x \text{.}\)
    Solution.
    Step 1: The right-hand side is trigonometric, so we guess:
    \begin{equation*} y_p = A \cos x + B \sin x \text{.} \end{equation*}
    Step 2: Differentiate the guessed solution:
    \begin{gather*} y_p' = -A \sin x + B \cos x, \quad y_p'' = -A \cos x - B \sin x \end{gather*}
    Step 3: Substitute into the original equation:
    \begin{gather*} (-A \cos x - B \sin x) + (A \cos x + B \sin x) = 3 \cos x \\ 0A \sin x + 0B \cos x = 3 \cos x \end{gather*}
    Step 4: Solve for \(A \) and \(B \text{:}\)
    \begin{gather*} A = 3, \quad B = 0 \end{gather*}
    Step 5: Write the particular solution:
    \begin{equation*} y_p = 3 \cos x \text{.} \end{equation*}
  6. \(\ds y'' + 3y' - 28y = 7t + e^{4t} - 1 \text{.}\)
    Solution.
    Following the method of Undetermined Coefficients, we find \(y_h\) as \(\ds y_h = c_1 e^{4t} + c_2 e^{-7t} \) and then find \(y_p\) through the steps that follow.
    Select Initial \(y_p\). The initial form of \(y_p\) is
    \begin{equation*} y_p = At + B + Ce^{4t}\text{,} \end{equation*}
    Adjust \(y_p\). Notice that \(y_p\) has an \(e^{4t}\) term, which overlaps with \(y_h\text{.}\) Therefore, we need to adjust \(y_p\) by multiplying the \(e^{4t}\) term by \(t\text{,}\)
    \begin{equation*} y_p = At + B + Cte^{4t}\text{.} \end{equation*}
    Now that \(y_p\) and \(y_h\) are independent, we can proceed to find the coefficients \(A\text{,}\) \(B\text{,}\) and \(C\text{.}\)
    Find the Coefficients of \(y_p\). Before plugging in \(y_p\text{,}\) let’s find \(y_p'\) and \(y_p''\text{:}\)
    \begin{align*} y_p =\amp\ At + B + Cte^{4t} \\ y_p' =\amp\ A + Ce^{4t} + 4Cte^{4t} \\ y_p'' =\amp\ 8Ce^{4t} + 16Cte^{4t} \text{.} \end{align*}
    Now, substituting these into the equation and collecting like terms, to get
    \begin{align*} 8Ce^{4t} + 16 Cte^{4t} \amp\ + 3(A + Ce^{4t} + 4Cte^{4t}) \\ \amp\ - 28(At + B + Cte^{4t}) = 7t + e^{4t} - 1\\ \us{1}{\ul{(11C)}}e^t + \us{2}{\ul{(-28A)}}\amp t + \us{3}{\ul{(3A-28B)}} = \us{1}{\ul{(1)}}e^{4t} + \us{2}{\ul{(7)}}t + \us{3}{\ul{(-1)}}\text{,} \end{align*}
    which leads to the following equations for \(A\text{,}\) \(B\text{,}\) and \(C\text{:}\)
    \begin{align*} \amp\ 1. \\ \amp\ 2. \\ \amp\ 3. \end{align*}
    \begin{align*} 11C =\amp\ 1 \\ -28A =\amp\ 7 \\ 3A - 28B =\amp\ -1 \end{align*}
    \begin{gather*} \\ \rightarrow \\ \end{gather*}
    \begin{align*} \amp\ C = 1/11 \\ \amp\ A = -1/4 \\ \amp\ B = 1/112 \end{align*}
    Finally, the general solution is
    \begin{equation*} y = y_h + y_p = c_1 e^{4t} + c_2 e^{-7t} - \frac{1}{4}t + \frac{1}{112} + \frac{1}{11}e^{4t} \text{.} \end{equation*}
  7. \(\ds y'' - 100y = 9{t^2}{e^{10t}} + \cos t - t\sin t \text{.}\)
  8. \(\ds 4y'' + y = e^{-2t}\sin \left( t/2 \right) + 6t\cos \left( t/2 \right) \text{.}\)
  9. \(\ds 4y'' + 16y' + 17y = e^{-2t}\sin \left( t/2 \right) + 6t\cos \left( t/2 \right) \text{.}\)
  10. \(\ds y'' + 8y' + 16y = e^{-4t} + \left( {t^2} + 5 \right)e^{-4t} \text{.}\)

Example D.17.

Solve the non-homogeneous differential equation:
\begin{equation*} y'' - 3y' + 2y = 5x + 1 \text{.} \end{equation*}
Find the particular solution.
Solution.
Step 1: Since the right-hand side is a polynomial of degree 1, we guess:
\begin{equation*} y_p = Ax + B \text{.} \end{equation*}
Step 2: Differentiate the guessed solution:
\begin{gather*} y_p' = A, \quad y_p'' = 0 \end{gather*}
Step 3: Substitute into the original equation:
\begin{gather*} 0 - 3A + 2(Ax + B) = 5x + 1 \\ 2Ax + 2B - 3A = 5x + 1 \end{gather*}
Step 4: Collect like terms and solve for \(A \) and \(B \text{:}\)
\begin{gather*} 2A = 5 \quad \implies \quad A = \frac{5}{2} \\ 2B - 3A = 1 \quad \implies \quad 2B - 3\left(\frac{5}{2}\right) = 1 \quad \implies \quad B = \frac{11}{2} \end{gather*}
Step 5: Write the particular solution:
\begin{equation*} y_p = \frac{5}{2}x + \frac{11}{2} \text{.} \end{equation*}

Reading Questions Additional Practice

1. When solving \(y'' - 2y' + y = e^x\text{,}\) the initial guess for \(y_p\) is adjusted to \(Ax^2 e^x\) because \(e^x\) overlaps with .

    When solving \(y'' - 2y' + y = e^x\text{,}\) the initial guess for \(y_p\) is adjusted to \(Ax^2 e^x\) because \(e^x\) overlaps with .
  • \(c_1 e^x\)
  • \(c_2 x^2 e^x\)
  • \(y_h\)
  • \(c_1 \cos(x)\)

2. Why do we adjust the particular solution \(y_p\) by multiplying it by \(x\) when solving LNCC equations?

Why do we adjust the particular solution \(y_p\) by multiplying it by \(x\) when solving LNCC equations?

3. In the general solution of an LNCC equation, what roles do \(y_h\) and \(y_p\) play, and why is it important that they are independent?

In the general solution of an LNCC equation, what roles do \(y_h\) and \(y_p\) play, and why is it important that they are independent?
You have attempted of activities on this page.