Undetermined
Coefficients
Master the method for finding particular solutions to nonhomogeneous linear ODEs by guessing the right form and solving for unknown constants.
What Is a Nonhomogeneous ODE?
A second-order linear ODE with constant coefficients has the general form:
When \( g(t) = 0 \), the equation is homogeneous. When \( g(t) \neq 0 \), it is nonhomogeneous: some external forcing function drives the system.
No forcing: \( g(t) = 0 \)
External drive: \( g(t) = 3e^{2t} \)
Structure of the General Solution
The general solution to a nonhomogeneous equation has two parts:
The Big Idea: Guess and Solve
Certain forcing functions \( g(t) \) reproduce their own form under differentiation: polynomials, exponentials, and sines/cosines. We exploit this by guessing a particular solution of the same type, then determining the coefficients.
Which \( g(t) \) Works?
Undetermined coefficients applies only when \( g(t) \) is a finite linear combination of these families:
The Guess Table
Match the form of \( g(t) \) to your trial particular solution \( Y_p \):
| Forcing \( g(t) \) | Trial \( Y_p \) |
|---|---|
| \( P_n(t) \) (degree \( n \) poly) | \( A_n t^n + \cdots + A_1 t + A_0 \) |
| \( P_n(t)\,e^{\alpha t} \) | \( (A_n t^n + \cdots + A_0)\,e^{\alpha t} \) |
| \( P_n(t)\,e^{\alpha t}\cos\beta t \) or \( \sin\beta t \) | \( e^{\alpha t}[(A_n t^n + \cdots + A_0)\cos\beta t + (B_n t^n + \cdots + B_0)\sin\beta t] \) |
The Modification Rule
If any term in your trial \( Y_p \) is already a solution of the homogeneous equation \( y_c \), the guess will fail (you will get \( 0 = \text{nonzero} \)).
Undetermined Coefficients vs Variation of Parameters
| Undetermined Coeff. | Variation of Params. | |
|---|---|---|
| Applies to | Polynomials, exponentials, sin/cos | Any continuous \( g(t) \) |
| Coefficient type | Constant coefficients only | Variable coefficients OK |
| Difficulty | Algebraic (easier) | Integral-based (harder) |
| Strategy | Guess form, solve for constants | Replace constants in \( y_c \) with functions |
How to Apply the Method
Example 1: Exponential Forcing
Example 2: Polynomial Forcing
Example 3: Trigonometric Forcing
Example 4: Modification Rule in Action
Superposition: Combined \( g(t) \)
When \( g(t) \) is a sum of different types, find a particular solution for each piece separately and add them.
Common Mistakes to Avoid
Quick Reference Summary
| \( g(t) \) Form | Trial \( Y_p \) | If Overlap? |
|---|---|---|
| \( ke^{\alpha t} \) | \( Ae^{\alpha t} \) | Multiply by \( t^s \) |
| \( k\sin\beta t \) or \( k\cos\beta t \) | \( A\cos\beta t + B\sin\beta t \) | Multiply by \( t^s \) |
| \( a_n t^n + \cdots + a_0 \) | \( A_n t^n + \cdots + A_0 \) | Multiply by \( t^s \) |
| \( t^n e^{\alpha t}\sin\beta t \) | \( e^{\alpha t}[\text{poly}\cdot\cos\beta t + \text{poly}\cdot\sin\beta t] \) | Multiply by \( t^s \) |
| \( \ln t,\; \tan t,\; 1/t \) | Use Variation of Parameters | |
Question 1 of 5
What is the correct trial particular solution for
\( y'' + 9y = 5\cos(3t) \)
given that \( y_c = C_1\cos 3t + C_2\sin 3t \)?
Question 2 of 5
For the equation \( y'' - 4y = 8t^2 + 3 \), which trial form should you use for \( Y_p \)?
Question 3 of 5
Solve: \( y'' + y' - 2y = 6e^{t} \). Which value of the undetermined coefficient \( A \) satisfies the equation if \( Y_p = Ate^{t} \)?
Question 4 of 5
For which forcing function is the method of undetermined coefficients not applicable?
Question 5 of 5
For the equation \( y'' - y = e^{t} + e^{-t} \), the complementary solution is \( y_c = C_1 e^t + C_2 e^{-t} \). What is the correct trial for \( y_p \)?