MTH 340 · Ordinary Differential Equation
Our notes
2 min readThe method
For ay″ + by′ + cy = 0, try y = e^(rx): a r² + b r + c = 0, the characteristic (auxiliary) equation.
The three cases
| Roots | General solution |
|---|---|
| Real and distinct r₁, r₂ | y = C₁e^(r₁x) + C₂e^(r₂x) |
| Repeated r | y = (C₁ + C₂x)e^(rx) |
| Complex α ± iβ | y = e^(αx)(C₁ cos βx + C₂ sin βx) |
The complex case comes from Euler's formula e^(iθ) = cos θ + i sin θ.
Worked example (distinct). y″ − 5y′ + 6y = 0, y(0) = 0, y′(0) = 1.
r² − 5r + 6 = 0: r = 2, 3. y = C₁e^(2x) + C₂e^(3x).
y(0) = C₁ + C₂ = 0; y′(0) = 2C₁ + 3C₂ = 1. So C₂ = 1, C₁ = −1: y = e^(3x) − e^(2x).
Check: y′ = 3e^(3x) − 2e^(2x), y″ = 9e^(3x) − 4e^(2x); y″ − 5y′ + 6y = (9 − 15 + 6)e^(3x) + (−4 + 10 − 6)e^(2x) = 0 ✓.
Worked example (repeated). y″ + 4y′ + 4y = 0: (r + 2)² = 0, y = (C₁ + C₂x)e^(−2x).
Worked example (complex). y″ + 2y′ + 5y = 0: r = (−2 ± √(4 − 20))/2 = −1 ± 2i. y = e^(−x)(C₁ cos 2x + C₂ sin 2x): a decaying oscillation.
Higher order
Same idea with a polynomial of degree n. A root of multiplicity k gives e^(rx), xe^(rx), ..., x^(k−1)e^(rx); a complex pair of multiplicity k gives the matching x-powers times cosines and sines.
Worked example. y‴ − y′ = 0: r³ − r = r(r − 1)(r + 1) = 0, y = C₁ + C₂eˣ + C₃e^(−x).
Worked example. y⁗ + 2y″ + y = 0: (r² + 1)² = 0, r = ±i twice: y = (C₁ + C₂x)cos x + (C₃ + C₄x)sin x.
Application: the spring-mass system
m x″ + c x′ + k x = 0 (mass m, damping c, spring constant k).
- c² < 4mk: underdamped (oscillates while dying away, complex roots).
- c² = 4mk: critically damped (fastest return without oscillating, repeated root): the target for car shock absorbers.
- c² > 4mk: overdamped (slow return, distinct negative roots).
- c = 0: simple harmonic motion with ω = √(k/m).
The same equation describes an RLC circuit: L q″ + R q′ + q/C = 0.
Exams usually ask: solve second- and higher-order homogeneous equations for each root type; IVPs; classify the damping of a spring or circuit; write the equation from given roots.
Common mistake: writing C₁e^(rx) + C₂e^(rx) for a repeated root. That is only one independent solution; the second is xe^(rx).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Calculus Volume 3, 7.1 Second-Order Linear Equations
(opens openstax.org in a new tab)
OpenStax, Calculus Volume 3, 7.1 Second-Order Linear Equations, CC BY-NC-SA 4.0 · licence
-
Differential Equations - Real & Distinct Roots
Paul's Online Notes: worked examples step by step. About 0.5 MB a page.
(opens tutorial.math.lamar.edu in a new tab)
-
Differential Equations - Complex Roots
Paul's Online Notes: worked examples step by step. About 0.5 MB a page.
(opens tutorial.math.lamar.edu in a new tab)
-
Differential Equations - Repeated Roots
Paul's Online Notes: worked examples step by step. About 0.5 MB a page.
(opens tutorial.math.lamar.edu in a new tab)
-
Calculus Volume 3, 7.3 Applications
(opens openstax.org in a new tab)
OpenStax, Calculus Volume 3, 7.3 Applications, CC BY-NC-SA 4.0 · licence
-
Lebl, Notes on Diffy Qs: Differential Equations for Engineers
A whole free textbook: read online or download the PDF (about 4 MB). Every MTH 340 topic, with exercises and answers.
(opens jirka.org in a new tab)
Jiří Lebl, Notes on Diffy Qs, CC BY-NC-SA 4.0 · licence
Watch
-
Linear Second-Order Differential Equations Part 1: Homogeneous Case
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
How to Solve Constant Coefficient Homogeneous Differential Equations
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
Second Order Equations
19 min · ≈ 86 MB · about ₦48
(opens youtube.com in a new tab)
-
Lec 9 | MIT 18.03 Differential Equations, Spring 2006
50 min · ≈ 225 MB · about ₦126
(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.