100%
PAGE 1

Nonhomogeneous Eqs: Method of Undetermined Coefficients

Review of Homogeneous Equations

We know how to solve homogeneous eqs: \( ay'' + by' + cy = 0 \)

solution: \( y = c_1 y_1 + c_2 y_2 \)

\( y_1 = e^{r_1 t} \), \( y_2 = e^{r_2 t} \)

and \( r_1 \) and \( r_2 \) are solutions to

\[ ar^2 + br + c = 0 \]

Hypothesis for Nonhomogeneous Equations

For nonhomogeneous \( ay'' + by' + cy = f(t) \) \( (f(t) \neq 0) \)

a logical hypothesis is

\[ y = c_1 y_1 + c_2 y_2 + y_p \]

\( c_1 y_1 + c_2 y_2 \):

Solves the homogeneous eq \( (f(t) = 0) \), called Complementary solution \( (y_c) \)

\( y_p \):

Due to \( f(t) \neq 0 \), called particular solution

general solution: \[ y = y_c + y_p \]

Concept Note: The principle of superposition allows the general solution of a linear nonhomogeneous differential equation to be expressed as the sum of the complementary solution \( y_c \) (which zeroes out the homogeneous part) and any particular solution \( y_p \) (which accounts for the nonhomogeneous forcing term \( f(t) \)).
PAGE 2

Verification of General Solution Form

Sub \( y = y_c + y_p \) into \( ay'' + by' + cy = f(t) \)

\[ y' = y_c' + y_p' \]

\[ y'' = y_c'' + y_p'' \]

\[ a(y_c'' + y_p'') + b(y_c' + y_p') + c(y_c + y_p) = f(t) \]

\[ (a y_c'' + b y_c' + c y_c) + (a y_p'' + b y_p' + c y_p) = f(t) \]

Note on the first term:

\( (a y_c'' + b y_c' + c y_c) = 0 \) because \( y_c \) solves \( ay'' + by' + cy = 0 \)

Two things we notice:

  1. hypothesis \( y = y_c + y_p \) is good
  2. \( y_p \) satisfies \( ay_p'' + by_p' + cy_p = f(t) \)
    suggesting \( y_p \) and its derivatives resemble \( f(t) \)

Heuristic Guidelines for \( y_p \):

  • if \( f(t) \) is polynomial, \( y_p \) must be polynomial too
  • if \( f(t) \) is exponential, \( y_p \) must be exponential
  • if \( f(t) \) contains sine or cosine, \( y_p \) must be sine and cosine
Method Rule: When guessing the trial form of \( y_p \), include terms with undetermined coefficients that span all linearly independent derivatives produced by \( f(t) \). If any term overlaps with a solution in \( y_c \), multiply that trial component by \( t \) (or \( t^s \)) to eliminate the linear dependency.
PAGE 3

Example: Method of Undetermined Coefficients (Polynomial Forcing Function)

Given the second-order non-homogeneous differential equation:

\[ y'' + 3y' + 2y = 2t^2 + 4t \]

General Form

\[ y = y_c + y_p \]

Complementary Solution (\(y_c\))

Solve homogeneous equation: \[ y'' + 3y' + 2y = 0 \]

\[ y_c = c_1 e^{-t} + c_2 e^{-2t} \]

Explanation: The characteristic equation is \(r^2 + 3r + 2 = 0\), which factors as \((r + 1)(r + 2) = 0\), yielding roots \(r = -1\) and \(r = -2\). Hence, \(y_c = c_1 e^{-t} + c_2 e^{-2t}\).

\(y_p\) resembles the right side (a 2nd-degree polynomial).

So, we assume:

\[ y_p = At^2 + Bt + C \]

where:

  • \(A\), \(B\), and \(C\) are undetermined coefficients.

\(y_p\) must satisfy: \[ y'' + 3y' + 2y = 2t^2 + 4t \]

Computing derivatives of the ansatz:

\[ \begin{aligned} y_p &= At^2 + Bt + C \\ y_p' &= 2At + B \\ y_p'' &= 2A \end{aligned} \]

Substitute \(y_p\), \(y_p'\), and \(y_p''\) into the differential equation:

\[ 2A + 3(2At + B) + 2(At^2 + Bt + C) = 2t^2 + 4t \]

Group like powers of \(t\):

\[ 2A t^2 + (6A + 2B)t + (2A + 3B + 2C) = 2t^2 + 4t + 0 \]

Matching coefficients:

  • For \(t^2\): \(2A = 2 \implies A = 1\)
  • For \(t^1\): \(6A + 2B = 4 \implies 6(1) + 2B = 4 \implies 2B = -2 \implies B = -1\)
  • For \(t^0\): \(2A + 3B + 2C = 0 \implies 2(1) + 3(-1) + 2C = 0 \implies -1 + 2C = 0 \implies C = \frac{1}{2}\)

Determined Coefficients:

\[ A = 1, \quad B = -1, \quad C = \frac{1}{2} \]
PAGE 4

General Solution (Conclusion of Example 1)

Recall the general solution structure: \[ y = y_c + y_p \]

\[ y = \left( c_1 e^{-t} + c_2 e^{-2t} \right) + \left( t^2 - t + \frac{1}{2} \right) \]

where:

  • \(y_c = c_1 e^{-t} + c_2 e^{-2t}\) is the complementary solution.
  • \(y_p = t^2 - t + \frac{1}{2}\) is the particular solution.

Example: Exponential Forcing Function

Consider the differential equation:

\[ y'' - 4y' + 3y = 8e^{-t} \]

Complementary Solution (\(y_c\))

\[ y_c = c_1 e^{t} + c_2 e^{3t} \]

Explanation: The characteristic equation is \(r^2 - 4r + 3 = 0\), giving \((r - 1)(r - 3) = 0\), with roots \(r = 1\) and \(r = 3\).

Since the non-homogeneous term is \(f(t) = 8e^{-t}\), we assume a particular solution of the same exponential form with an undetermined coefficient:

\[ y_p = Ae^{-t} \]

\(y_p\) satisfies: \[ y'' - 4y' + 3y = 8e^{-t} \]

Note that \(y_p' = -Ae^{-t}\) and \(y_p'' = Ae^{-t}\).

Substituting \(y_p\) and its derivatives into the ODE:

\[ Ae^{-t} - 4(-Ae^{-t}) + 3(Ae^{-t}) = 8e^{-t} \]

Simplifying the left-hand side: \((1 + 4 + 3)Ae^{-t} = 8Ae^{-t} = 8e^{-t}\).

\[ A = 1 \]

So, the particular solution is:

\[ y_p = e^{-t} \]

Final General Solution

\[ y = c_1 e^{t} + c_2 e^{3t} + e^{-t} \]

where:

  • \(y_c = c_1 e^{t} + c_2 e^{3t}\)
  • \(y_p = e^{-t}\)
PAGE 5

Method of Undetermined Coefficients: Multi-Term Forcing & Trigonometric Functions

What if \[ y'' - 4y' + 3y = 8e^{-t} + 10e^{4t} + 3t^2 - 2t + 10 \]

\[ y_c = c_1 e^t + c_2 e^{3t} \]

↓ handle one term at a time

\[ y_p = A e^{-t} + B e^{4t} + C t^2 + D t + E \]

where each component corresponds to terms in the forcing function:

  • \( A e^{-t} \): for \( 8e^{-t} \)
  • \( B e^{4t} \): for \( 10e^{4t} \)
  • \( C t^2 + D t + E \): for \( 3t^2 - 2t + 10 \)

Solve for \( A, B, C, D, E \) by subbing \( y_p \) into the ODE.

Superposition Principle: When the non-homogeneous term is a sum of several terms, we can find the particular solution by taking a linear combination of the trial forms for each separate term.

Trigonometric Forcing Functions

If \( f(t) = 3 \sin(t) \), for example, for undetermined coefficients to work, \( y_p \) must keep its general form through differentiation.

If we used \( y_p = A \sin(t) \):

\[ y_p' = A \cos(t) \]

← NOT \( \sin(t) \) any more, this is a problem

To fix this, we need to have BOTH cosine and sine in \( y_p \).

PAGE 6

Because:

\[ \begin{aligned} y_p &= A \sin(t) + B \cos(t) \\ y_p' &= A \cos(t) - B \sin(t) \\ y_p'' &= -A \sin(t) - B \cos(t) \end{aligned} \]
} form is kept

Example

\[ y'' - y' - 2y = \cos(t) \]

\[ y_c = c_1 e^{-t} + c_2 e^{2t} \]

\( f(t) \) has \( \cos(t) \) so we need BOTH cosine and sine in \( y_p \)

\[ y_p = A \cos(t) + B \sin(t) \]

Sub into \( y'' - y' - 2y = \cos(t) \):

\[ -A \cos(t) - B \sin(t) + A \sin(t) - B \cos(t) - 2A \cos(t) - 2B \sin(t) = \cos(t) + 0 \cdot \sin(t) \]

Matching coefficients:

  • \[ -A - B - 2A = 1 \] (\( \cos(t) \) coeff)
  • \[ -B + A - 2B = 0 \] (\( \sin(t) \) coeff)

\[ A = \frac{1}{10}, \quad B = -\frac{3}{10} \]

So \[ y = c_1 e^{-t} + c_2 e^{2t} + \frac{1}{10} \cos(t) - \frac{3}{10} \sin(t) \]

PAGE 7

Method of Undetermined Coefficients: Example

Example

\[ y'' + 4y' + 13y = (12t - 2)e^{-2t} + 6e^{-2t}\sin(2t) \]

Complementary Solution:

\[ y_c = C_1 e^{-2t}\cos(3t) + C_2 e^{-2t}\sin(3t) \]

Note: The characteristic equation for the homogeneous part is \( r^2 + 4r + 13 = 0 \), giving roots \( r = -2 \pm 3i \). Hence, \( y_c = e^{-2t}(C_1 \cos(3t) + C_2 \sin(3t)) \).

Decomposition of the Forcing Function:

\[ f(t) = (12t - 2)e^{-2t} + 6e^{-2t}(\sin(2t)) \]

Component structure and corresponding trial forms:

  • \( (12t - 2)e^{-2t} \): product of a 1st-degree polynomial and an exponential \( e^{-2t} \), yielding trial form \( (At + B)e^{-2t} \).
  • \( 6e^{-2t}\sin(2t) \): product of an exponential \( e^{-2t} \) and a sine function \( \sin(2t) \), yielding trial form \( (C\sin(2t) + D\cos(2t))e^{-2t} \).

Trial Particular Solution:

\[ y_p = (At + B)e^{-2t} + (C\sin(2t) + D\cos(2t))e^{-2t} \]

\[ y_p' = \dots \]

\[ y_p'' = \dots \]

Substitute into ODE:

\[ \vdots \]

\[ A = \frac{4}{3}, \quad B = -\frac{2}{9}, \quad C = 0, \quad D = \frac{6}{5} \]
PAGE 8

Resonance and Duplicate Roots Discussion

Discussion on Overlap with Complementary Solution

If the \( f(t) \) had \( 6e^{-2t}\sin(3t) \)

then its part in \( y_p \) is \( (C\sin(3t) + D\cos(3t))e^{-2t} \)

would match \( y_c = C_1 e^{-2t}\cos(3t) + C_2 e^{-2t}\sin(3t) \) exactly

which gets absorbed into \( y_c \) but left that part in \( y_p \) unaccounted for.

Explanation: When a term in the particular solution duplicates a solution to the homogeneous equation, multiplying the trial particular solution by \( t \) (or an appropriate power of \( t \)) is necessary to remove the linear dependence.

Next time: fix this problem