Skip to main content

Handout Lesson 18, The Method of Undetermined Coefficients

Textbook Section(s).

This lesson is based on Section 3.5 of your textbook by Edwards, Penney, and Calvis.

Nonhomogeneous equations with constant coefficients.

Today, we continue our study of nonhomogeneous linear differential equations with constant coefficients.
\begin{gather} a_ny^{(n)}+a_{n-1}y^{(n-1)}+\dots+a_{1}y'+a_0y=f(x)\tag{✢} \end{gather}
where \(a_0, a_1, \dots, a_{n-1}, a_n\) are all constants.
Recall:
  • The spring equation
    \begin{equation*} mx''+cx'+kx=F_E \end{equation*}
    where \(F_E\) represents the is an equation of the type in (✢).
  • General solutions of (✢) have the form
    \begin{equation*} y=y_c+y_p \end{equation*}
    where:
We have already done extensive work to find the solutions of the associated homogeneous equation. Today we focus our attention on finding a particular solution of (✢) so that we can find all solutions of (✢).
Sometimes the structure of \(f(x)\) in (✢) can help us to make an educated guess for \(y_p\text{.}\)

Example 129. A first example of the method of undetermined coefficients.

(Number 2.5.15 from Trefor Bazett’s web site)
Find a general solution for
\begin{equation*} y''+5y'+y=2x^2+23x+23\text{.} \end{equation*}

Educated guesses for particular solutions.

Question 130.

What are some functions whose sequence of derivatives we understand really well?
For
\begin{gather} a_ny^{(n)}+a_{n-1}y^{(n-1)}+\dots+a_{1}y'+a_0y=f(x)\tag{✢✢} \end{gather}
where \(a_0, a_1, \dots, a_{n-1}, a_n\) are all constants.
If \(f(x)\) is . . . Educated Guess for \(y_p\)
a polynomial of degree \(m\) \(\spc{5in}\)
\(a\cos(\omega x)+b\sin(\omega x)\) \(\spc{5in}\)
\(e^{rx}\) \(\spc{5in}\)
If \(f(x)\) in (✢✢) has the form
\begin{equation*} P_m(x)e^{rx}\cos(\omega x) \quad \text{ or } \quad P_m(x)e^{rx}\sin(\omega x) \end{equation*}
where \(P_m(x)\) is a polynomial of degree \(m\text{,}\) then our educated guess for \(y_p\) would be
If the polynomial, exponential, or trigonometric function is missing from \(f(x)\text{,}\) then the guess can be modified accordingly. So the educated guess for \(f(x)=P_m(x)\cos(\omega x)\text{,}\) then the educated guess would be

Example 132.

(Number 2.5.5 from Trefor Bazett’s website)
Find a particular solution to
\begin{equation*} y''+2y=e^x+x^3 \end{equation*}

Modifying your educated guess.

Sometimes, our educated guess for the particular solution simply does not work. The following example came from Professor Bell’s notes.

Example 133. An educated guess that does not work.

Find a particular solution to
\begin{equation*} y''+y=\cos(x) \end{equation*}
Desmos was used to make the graph.
described in detail following the image
The graph of \(y=x\left(\frac{1}{2}\sin(x)\right)\) and the asymptotes \(y=\pm\frac{1}{2}x\text{.}\)

Question 134.

How do you modify portions of your educated guess when your educated guess and the solution of the associated homogeneous equation have terms of the same type?

Example 135. Modifying your guess for the method of undetermined coefficients.

Number 28 from Section 3.5 of your textbook by Edwards, et.al.
Set up an appropriate form for \(y_p\text{.}\) Do not solve for the coefficients.
\begin{equation*} y^{(4)}+9y''=(x^2+1)\sin(3x)\text{.} \end{equation*}