MTH 250 · Elementary Differential Equations
Our notes
2 min readStructure of the solution
For ay″ + by′ + cy = g(x): y = y_c + y_p, where y_c (the complementary function) solves the homogeneous equation and y_p (a particular integral) is any one solution of the full equation.
Method of undetermined coefficients
Guess y_p of the same form as g(x), with unknown coefficients, then substitute.
| g(x) | Trial y_p |
|---|---|
| Polynomial of degree n | General polynomial of degree n |
| ke^(ax) | Ae^(ax) |
| k cos βx or k sin βx | A cos βx + B sin βx |
| e^(ax) × polynomial or trig | Product of the forms |
Modification rule: if a term of the trial solution already appears in y_c, multiply the trial by x (or x² if needed).
Example 1. y″ − 3y′ + 2y = 4x.
- y_c: r² − 3r + 2 = 0 → r = 1, 2 → y_c = C₁e^x + C₂e^(2x).
- Try y_p = Ax + B: 0 − 3A + 2Ax + 2B = 4x → 2A = 4, −3A + 2B = 0 → A = 2, B = 3.
- y = C₁e^x + C₂e^(2x) + 2x + 3. Check y_p: y″ = 0, y′ = 2: −6 + 2(2x + 3) = 4x ✓.
Example 2. y″ − 3y′ + 2y = e^(3x). Try Ae^(3x): (9 − 9 + 2)A = 1 → A = 1/2. y_p = ½e^(3x).
Example 3 (modification). y″ − 3y′ + 2y = e^x. Since e^x is in y_c, try y_p = Axe^x.
- y_p′ = A(1 + x)e^x, y_p″ = A(2 + x)e^x.
- A[(2 + x) − 3(1 + x) + 2x]e^x = A(−1)e^x = e^x → A = −1.
- y_p = −xe^x. Check: (2 + x) − 3(1 + x) + 2x = −1, times −1 gives +1 ✓.
Example 4 (trig). y″ + y = 3 sin 2x. Try A cos 2x + B sin 2x: (−4 + 1)(A cos 2x + B sin 2x) = 3 sin 2x → A = 0, B = −1. y_p = −sin 2x.
Forced vibrations and resonance
m x″ + k x = F₀ cos(ωt). If the forcing frequency ω equals the natural frequency √(k/m), the modification rule gives y_p = t(...): the amplitude grows with time: resonance (why soldiers break step on bridges).
Superposition
If g = g₁ + g₂, find y_p for each part and add.
Exams usually ask: find the general solution of non-homogeneous equations with polynomial, exponential and trigonometric right sides; use the modification rule.
Common mistake: trying only A sin 2x for g = sin 2x when the equation has a y′ term. Include both cos and sin in the trial.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Calculus Volume 3, 7.2 Nonhomogeneous Linear Equations
(opens openstax.org in a new tab)
OpenStax, Calculus Volume 3, 7.2 Nonhomogeneous Linear Equations, CC BY-NC-SA 4.0 · licence
-
Ordinary differential equation
(opens en.wikipedia.org in a new tab)
Wikipedia, Ordinary differential equation, CC BY-SA 4.0 · licence
-
Method of undetermined coefficients
(opens en.wikipedia.org in a new tab)
Wikipedia, Method of undetermined coefficients, CC BY-SA 4.0 · licence
-
Resonance
(opens en.wikipedia.org in a new tab)
Wikipedia, Resonance, CC BY-SA 4.0 · licence
-
NOUN MTH 302: Elementary Differential Equations
NOUN course book (PDF, about 0.3 MB, 54 pages). First-order to Sturm-Liouville problems.
(opens nou.edu.ng in a new tab)
-
OpenStax, Calculus Volume 3 (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Calculus Volume 3 (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Undetermined Coefficients: Solving non-homogeneous ODEs
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Second Order Non-Homogeneous Ordinary Differential Equations: Meaning, Example and Solution
28 min · ≈ 126 MB · about ₦71
(opens youtube.com in a new tab)
-
Introduction To Second Order Linear NonHomogeneous Differential Equations
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Method of Undetermined Coefficients - Nonhomogeneous 2nd Order Differential Equations
41 min · ≈ 185 MB · about ₦104
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.