Lesson 3: Undetermined Coefficients
Estimated time: 40-50 minutes
Learning Objectives
By the end of this lesson, you will be able to:
- State the structure: general solution = yh + yp
- Choose the correct guess form for polynomial, exponential, and trigonometric forcing
- Apply the modification rule when the guess overlaps with yh
- Solve complete nonhomogeneous IVPs
- Handle combinations and sums of forcing terms
The Big Picture
For ay'' + by' + cy = g(t), the general solution is:
y = yh + yp
where yh is the general solution to the homogeneous equation (from Lessons 1-2) and yp is any particular solution to the full nonhomogeneous equation.
Method of Undetermined Coefficients: For certain types of g(t) (polynomials, exponentials, sines/cosines, and their products), we guess the form of yp with unknown coefficients, substitute into the ODE, and solve for those coefficients.
The Guessing Rules
| g(t) | Guess for yp |
|---|---|
| antn + ... + a0 | Antn + ... + A1t + A0 |
| eαt | Aeαt |
| cos βt or sin βt | A cos βt + B sin βt (always include BOTH) |
| eαt cos βt | eαt(A cos βt + B sin βt) |
| tneαt | (Antn + ... + A0)eαt |
Basic Examples
Example 1: Polynomial Forcing
Solve y'' - 3y' + 2y = 4t.
Step 1 (yh): r² - 3r + 2 = (r-1)(r-2) = 0. yh = c1et + c2e2t.
Step 2 (Guess): g(t) = 4t, so guess yp = At + B.
Step 3 (Substitute): yp' = A, yp'' = 0. Plug in: 0 - 3A + 2(At + B) = 4t.
2At + (-3A + 2B) = 4t + 0.
Match coefficients: 2A = 4 ⇒ A = 2. -3(2) + 2B = 0 ⇒ B = 3.
Answer: y = c1et + c2e2t + 2t + 3.
Example 2: Exponential Forcing
Solve y'' + y' - 2y = 3e4t.
yh: r² + r - 2 = (r+2)(r-1) = 0. yh = c1e-2t + c2et.
Guess: yp = Ae4t. (4 is not a root, so no modification needed.)
Substitute: 16Ae4t + 4Ae4t - 2Ae4t = 3e4t ⇒ 18A = 3 ⇒ A = 1/6.
Answer: y = c1e-2t + c2et + (1/6)e4t.
Example 3: Trigonometric Forcing
Solve y'' + 4y = sin(3t).
yh: r² + 4 = 0 ⇒ r = ±2i. yh = c1cos(2t) + c2sin(2t).
Guess: yp = A cos(3t) + B sin(3t).
Substitute: yp'' = -9A cos(3t) - 9B sin(3t).
(-9A + 4A) cos(3t) + (-9B + 4B) sin(3t) = sin(3t).
-5A cos(3t) - 5B sin(3t) = sin(3t).
A = 0, B = -1/5.
Answer: y = c1cos(2t) + c2sin(2t) - (1/5)sin(3t).
The Modification Rule
Modification Rule: If any term in your initial guess is already a solution to the homogeneous equation, multiply the entire guess by t. If it still overlaps, multiply by t².
Example 4: Modification Required
Solve y'' - 2y' + y = et.
yh: (r-1)² = 0 ⇒ r = 1 (repeated). yh = (c1 + c2t)et.
Initial guess: Aet -- but et is in yh! Try Atet -- also in yh!
Modified guess: yp = At²et.
Substitute: yp' = A(2t + t²)et, yp'' = A(2 + 4t + t²)et.
A(2 + 4t + t²)et - 2A(2t + t²)et + At²et = et.
A(2)et = et ⇒ A = 1/2.
Answer: y = (c1 + c2t)et + (1/2)t²et.
Check Your Understanding
1. What form would you guess for yp if g(t) = 5e-3t and the characteristic roots are r = 1, 2?
2. What form would you guess if g(t) = 4 cos(2t) and the characteristic roots are r = ±2i?
3. Solve y'' + y = 2t + 1.
Key Takeaways
- General solution = yh + yp (homogeneous + particular).
- Guess the form based on g(t): polynomials, exponentials, trig (always include both sin and cos).
- The modification rule: if the guess overlaps yh, multiply by t (or t² if needed).
- Works only for specific forms of g(t). For anything else, use variation of parameters (Lesson 4).
- Apply IVP conditions to the complete general solution y = yh + yp, never to yh alone.
Ready for More?
Next Lesson
In Lesson 4, learn variation of parameters -- a method that works for any forcing function.
Start Lesson 4