Skip to main content
Logo image

Section 7.5 Method of Undetermined Coefficients

When solving a non-homogeneous linear differential equation, selecting the correct form for the particular solution, \(y_p\text{,}\) is just the beginning. The next step is determining the values of its unknown coefficients, such as \(A\) and \(B\text{.}\) In this section, we’ll explore how to compute these coefficients by substituting the guessed particular solution into the original equation.
Let’s revisit the example we discussed earlier. Consider the differential equation:
\begin{equation} y'' - 4y' + 3y = 9x\text{.}\tag{38} \end{equation}
We guessed that the particular solution would be linear, so we set
\begin{equation*} y_p = Ax + B\text{.} \end{equation*}
Our goal now is to determine the values of \(A\) and \(B\text{.}\) To do this, we substitute \(y_p = Ax + B\) into the original differential equation. Here’s how it works:
\begin{gather*} y_p = Ax + B \quad \implies \quad y_p' = A \quad \implies \quad y_p'' = 0 \end{gather*}
Substituting \(y_p\text{,}\) \(y_p'\text{,}\) and \(y_p''\) into (38) results in:
\begin{align*} 0 - 4A + 3(Ax + B) =\amp\ 9x \\ -4A + 3Ax + 3B =\amp\ 9x \end{align*}
By matching the coefficients of like terms on opposite sides of the equation,
we solve:
\begin{align*} 3A =\amp\ 9 \quad \implies \quad A = 3\\ -4A + 3B =\amp\ 0 \quad \implies \quad B = 4 \end{align*}
Thus, the particular solution is:
\begin{equation*} y_p = 3x + 4\text{.} \end{equation*}
Regardless of \(y_p\)’s form, the process of finding the coefficients remains consistent:
  • Substitute the chosen \(y_p\) into the differential equation.
  • Collect and match coefficients of like terms on both sides of the equation.
  • Solve the resulting system to find \(A, B, C, \ldots\text{.}\)
This is why the method is called the "method of undetermined coefficients." and the complete process is summarized as follows.

Method 5. Undetermined Coefficients.

The linear nonhomogeneous equation with constant coefficients,
\begin{equation} a_n\ y^{(n)} + a_{n-1}\ y^{(n-1)} + \cdots + a_2\ y'' + a_1\ y' + a_0\ y = f(x),\tag{39} \end{equation}
has a general solution given by
\begin{equation} y = y_h + y_p,\tag{40} \end{equation}
where \(y_h\ \) is the solution to the homogeneous equation
\begin{equation} a_n\ y^{(n)} + a_{n-1}\ y^{(n-1)} + \cdots + a_2\ y'' + a_1\ y' + a_0\ y = 0,\tag{41} \end{equation}
and \(y_p\) is the particular solution found through the following steps...
Select Initial \(y_p\)
Select the initial form of \(y_p\) that generalizes \(f(x)\text{.}\)
Adjust \(y_p\)
If \(y_p\) shares terms with \(y_h\text{,}\) repeatedly multiply the terms by \(x\) until there are no terms in common.
Find the Coefficients of \(y_p\)
Plug \(y_p\) into (39) and match terms on each side to solve for the unknown coefficients of \(y_p\text{.}\)
Now for a few examples to illustrate the complete application of the nndetermined coefficients method.

Example 22.

\(\ \ \)
\(\ds y'' - 3y' + y = 2x^2 + 3x \text{.}\)
Solution.
Following the method of Undetermined Coefficients, we first find \(y_h\) as
\begin{equation*} y_h = c_1 e^x + c_2 x e^x \text{.} \end{equation*}
\begin{gather*} y_p = Ax^2 + Bx + C \end{gather*}
and adjust \(y_p\), if necessary. A quick check shows that \(y_p\) has no terms in common with \(y_h\text{.}\)
Finally, we find the coefficients of \(y_p\). To do this, let’s compute \(y_p'\text{,}\) \(y_p''\text{,}\) plug these into the equation, and collect the \(x^2\text{,}\) \(x\text{,}\) and constant terms as follows:
\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*}
The general solution is then
\begin{equation*} y = y_h + y_p = c_1 e^x + c_2 x e^x + 2x^2 + 9x + 13 \text{.} \end{equation*}
\(\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*}

Reading Questions Check-Point Questions

1. After substituting \(y_p = Ax + B \) into the equation \(y'' - 4y' + 3y = 9x \text{,}\) you find the system of equations...

    After substituting \(y_p = Ax + B \) into the equation \(y'' - 4y' + 3y = 9x \text{,}\) you find the system of equations:
    \begin{equation*} 3A = 9 \end{equation*}
    and
    \begin{equation*} -4A + 3B = 0\text{.} \end{equation*}
    What are the values of \(A \) and \(B \text{?}\)
  • \(A = 3, B = 4 \)
  • Correct! Solving the system yields \(A = 3 \) and \(B = 4 \text{.}\)
  • \(A = 1, B = 2 \)
  • Incorrect. Double-check your algebra when solving the system of equations.
  • \(A = 3, B = 0 \)
  • Incorrect. While \(A \) is correct, you need to solve for \(B \) as well.
  • \(A = 2, B = 4 \)
  • Incorrect. \(A = 3 \text{,}\) not 2.

2. Which of the following is NOT a step in finding the coefficients of the particular solution?

    Which of the following is NOT a step in finding the coefficients of the particular solution?
  • Plugging \(y_p \) into the differential equation.
  • Incorrect. This is the first step in determining the coefficients.
  • Applying the initial conditions.
  • Correct! The initial conditions are used to solve for the unknown constants in the general solution, not the particular solution.
  • Collecting and matching like terms.
  • Incorrect. This is a crucial step for finding the values of \(A \) and \(B \text{.}\)
  • Solving the resulting system of equations.
  • Incorrect. This is the final step in finding the coefficients.

3. Consider the equation...

    Consider the equation
    \begin{equation} y'' - 4y' + 3y = 9x\text{.}\tag{42} \end{equation}
    If the particular solution is assumed to be
    \begin{equation*} y_p = Ax + B\text{,} \end{equation*}
    which of the following represents the correct coefficient-matching equations when substituting into the differential equation?
  • \(3A = 9, -4A + 3B = 9\)
  • Incorrect. Remember to match coefficients of like terms separately (i.e., coefficients of \(x\) and constant terms).
  • \(3A = 9, -4A + 3B = 0\)
  • Correct! Matching coefficients of \(x\) gives \(3A = 9\text{,}\) and matching constant terms gives \(-4A + 3B = 0\text{.}\)
  • \(A = 9, -4A + B = 0\)
  • Incorrect. Re-check the coefficients and ensure you match the terms correctly.
  • \(3A = 3, -4B + A = 9\)
  • Incorrect. Verify which terms correspond to coefficients of \(x\) and the constant terms.

4. Why do we adjust the form of \(y_p\) by multiplying terms by \(x\) when there is overlap with \(y_h\text{?}\)

    Why do we adjust the form of \(y_p\) by multiplying terms by \(x\) when there is overlap with \(y_h\text{?}\)
  • To make the computation of derivatives easier.
  • Incorrect. The adjustment is not made for the ease of differentiation but to ensure the independence of terms.
  • To ensure that \(y_p\) and \(y_h\) remain independent.
  • Correct! Multiplying by \(x\) ensures that the particular solution does not overlap with the homogeneous solution.
  • To match the degree of the polynomial in \(f(x)\text{.}\)
  • Incorrect. While the degree of \(y_p\) is related to \(f(x)\text{,}\) the adjustment addresses overlap with \(y_h\text{.}\)
  • To simplify the resulting system of equations.
  • Incorrect. The adjustment is made to maintain independence between \(y_p\) and \(y_h\text{,}\) not for simplification purposes.

5. Suppose
\begin{equation*} y'' - 4y' + 3y = 6e^x\text{.} \end{equation*}
Which of the following is the correct initial guess for \(y_p\text{?}\)

    Suppose
    \begin{equation*} y'' - 4y' + 3y = 6e^x\text{.} \end{equation*}
    Which of the following is the correct selection for \(y_p\text{?}\)
  • \(y_p = Ae^x\)
  • Incorrect. Remember to consider whether \(e^x\) overlaps with any terms in \(y_h\text{.}\)
  • \(y_p = Axe^x\)
  • Correct! Since \(e^x\) is a term in \(y_h\text{,}\) we need to multiply the particular solution by \(x\) to ensure independence.
  • \(y_p = Ax + B\)
  • Incorrect. This form is more suited for a polynomial right-hand side like \(f(x) = 6x\text{.}\)
  • \(y_p = A\)
  • Incorrect. A constant form of \(y_p\) would only be appropriate if \(f(x)\) were a constant.

6. What are the main steps for finding \(y_p\) using the method of undetermined coefficients?

    What are the main steps for finding \(y_p\) using the method of undetermined coefficients?
  • Select the particular solution, integrate it, and solve for coefficients.
  • Incorrect. Integration is not a part of the method of undetermined coefficients.
  • Select the particular solution, adjust it if necessary, and find its coefficients.
  • Correct! The process involves making an educated guess, substituting it, and solving for unknown coefficients.
  • Select the homogeneous solution, adjust for \(y_p\text{,}\) and differentiate.
  • Incorrect. The focus is on selecting and solving for \(y_p\text{,}\) not guessing the homogeneous solution.
  • Choose \(y_p\text{,}\) integrate the result, and verify the solution.
  • Incorrect. Integration is not a step in this method; it’s about solving for coefficients of \(y_p\text{.}\)
You have attempted of activities on this page.