Second-Order Linear Equations with Constant Coefficients
Solve ay″ + by′ + cy = 0 with the characteristic equation, handle real, repeated and complex roots, and use superposition to fit initial conditions.
Welcome back!
Step 1 of 13Learn
Guess an exponential
Second-order equations are the language of mechanics, because Newton's law involves acceleration, a second derivative. The simplest and most important family is the homogeneous linear equation with constant coefficients:
a·y″ + b·y′ + c·y = 0
Here's the key idea. Exponentials keep their shape when differentiated, so try y = e^(rt). Then y′ = re^(rt) and y″ = r2e^(rt). Substituting:
(ar2 + br + c)·e^(rt) = 0
Since e^(rt) is never zero, we need
a·r2 + b·r + c = 0
This is the characteristic equation. A calculus problem has turned into a quadratic. Its roots r = (−b ± √(b2 − 4ac)) / (2a) tell you everything, and the discriminant b2 − 4ac decides which of three cases you're in.
Case 1: two distinct real roots (b2 − 4ac > 0). Then y = C₁e^(r₁t) + C₂e^(r₂t).
Example. y″ − 5y′ + 6y = 0. Characteristic equation r2 − 5r + 6 = 0, so (r − 2)(r − 3) = 0 and r = 2, 3. General solution: y = C₁e^(2t) + C₂e^(3t).
Why can we add two solutions? Because the equation is linear and homogeneous: if y₁ and y₂ each make the left side zero, so does any combination C₁y₁ + C₂y₂. This is the superposition principle, and it's the reason linear equations are so much easier than nonlinear ones.
Step 2 of 13Practice · Work it out
For y″ + y′ − 12y = 0, the characteristic roots are r₁ and r₂. What is the larger root?
Step 3 of 13Learn
Repeated and complex roots
Case 2: a repeated root (b2 − 4ac = 0). The quadratic gives only one root, r = −b/(2a), and so only one exponential. A second-order equation needs two independent solutions. The second turns out to be t·e^(rt):
y = (C₁ + C₂t)·e^(rt)
Example. y″ + 4y′ + 4y = 0. r2 + 4r + 4 = (r + 2)2, so r = −2 twice. y = (C₁ + C₂t)e^(−2t).
Case 3: complex roots (b2 − 4ac < 0). The roots come in a conjugate pair r = α ± βi. Using Euler's formula, e^(iβt) = cos βt + i sin βt, the complex exponentials combine into real solutions:
y = e^(αt)·(C₁ cos βt + C₂ sin βt)
Example. y″ + 2y′ + 5y = 0. r = (−2 ± √(4 − 20))/2 = −1 ± 2i. So α = −1, β = 2, and y = e^(−t)(C₁ cos 2t + C₂ sin 2t): an oscillation at angular frequency 2 inside a decaying envelope e^(−t).
Pure oscillation. y″ + ω^2y = 0 has r = ±ωi, so α = 0 and y = C₁ cos ωt + C₂ sin ωt. No growth or decay, just steady oscillation, the simple harmonic oscillator.
Reading the roots. The real part α controls growth (α > 0) or decay (α < 0). The imaginary part β controls oscillation frequency. You can predict the whole behavior from the roots before writing a single solution.
Step 4 of 13Chart
The three root cases, released from y = 1
Distinct real roots give a slow exponential return; a repeated root gives the fastest return without overshoot; complex roots give a decaying oscillation.
| t | Real roots: y″+3y′+2y=0 | Repeated: y″+2y′+y=0 | Complex: y = e^(−0.2t)cos 2t |
|---|---|---|---|
| 0 | 1 | 1 | 1 |
| 0.5 | 0.845 | 0.91 | 0.489 |
| 1 | 0.6 | 0.736 | -0.341 |
| 1.5 | 0.396 | 0.558 | -0.733 |
| 2 | 0.252 | 0.406 | -0.438 |
| 2.5 | 0.157 | 0.287 | 0.172 |
| 3 | 0.097 | 0.199 | 0.527 |
| 3.5 | 0.059 | 0.136 | 0.374 |
| 4 | 0.036 | 0.092 | -0.065 |
| 4.5 | 0.022 | 0.061 | -0.37 |
| 5 | 0.013 | 0.04 | -0.309 |
| 5.5 | 0.008 | 0.027 | 0.001 |
Step 5 of 13Try the calculator
Characteristic root finder
Enter a, b and c for ay″ + by′ + cy = 0. The calculator gives the discriminant and the roots (real part and imaginary part).
- Discriminant b² − 4ac
- -16
- Real root r₁ (if discriminant ≥ 0)
- -1
- Real root r₂ (if discriminant ≥ 0)
- -1
- Real part α (complex case)
- -1
- Imaginary part β (complex case)
- 2
Step 6 of 13Practice · Match the pairs
Match each equation to the form of its general solution.
Tap an answer, then tap the place where it belongs (or drag it there).
- y″ − 9y = 0
- y″ + 9y = 0
- y″ + 6y′ + 9y = 0
- y″ + 6y′ + 13y = 0
Step 7 of 13Compare
ay″ + by′ + cy = 0: the three cases
| Aspect | b² − 4ac > 0 | b² − 4ac = 0 | b² − 4ac < 0 |
|---|---|---|---|
| Roots | Two real, r₁ ≠ r₂ | One repeated, r = −b/(2a) | Complex pair α ± βi |
| General solution | C₁e^(r₁t) + C₂e^(r₂t) | (C₁ + C₂t)e^(rt) | e^(αt)(C₁cos βt + C₂sin βt) |
| Typical behavior | Exponential growth or decay, at most one crossing of zero | Like the real case, the boundary just before oscillation | Oscillation; decays if α < 0, grows if α > 0 |
| Example | y″ − y′ − 6y = 0 (r = 3, −2) | y″ + 4y′ + 4y = 0 (r = −2) | y″ + 2y′ + 5y = 0 (r = −1 ± 2i) |
Step 8 of 13Learn
Fitting initial conditions
With two constants in the general solution, you need two conditions, usually y(0) and y′(0).
Example. Solve y″ + 2y′ + 5y = 0 with y(0) = 1 and y′(0) = 3.
General solution: y = e^(−t)(C₁ cos 2t + C₂ sin 2t).
- Use y(0) = 1. At t = 0: y = C₁. So C₁ = 1.
- Differentiate. y′ = −e^(−t)(C₁ cos 2t + C₂ sin 2t) + e^(−t)(−2C₁ sin 2t + 2C₂ cos 2t).
- Use y′(0) = 3. At t = 0: y′ = −C₁ + 2C₂ = 3, so −1 + 2C₂ = 3 and C₂ = 2.
- Answer. y = e^(−t)(cos 2t + 2 sin 2t).
Why two solutions must be independent. If you picked y₁ = e^(2t) and y₂ = 3e^(2t), their combination C₁y₁ + C₂y₂ is just one exponential with one effective constant, and you couldn't match arbitrary y(0) and y′(0). The test for independence is the Wronskian:
W = y₁y₂′ − y₁′y₂
If W ≠ 0, the pair is independent and every solution can be written as C₁y₁ + C₂y₂. For e^(2t) and e^(3t), W = e^(2t)·3e^(3t) − 2e^(2t)·e^(3t) = e^(5t), never zero.
Common mistake: in the repeated root case, writing C₁e^(rt) + C₂e^(rt). That's really one solution; the t multiplier is essential.
Step 9 of 13Practice · Work it out
Solve y″ − 4y = 0 with y(0) = 3 and y′(0) = 2, using y = C₁e^(2t) + C₂e^(−2t). What is C₁?
Step 10 of 13Note
Step 11 of 13Practice · True or false
The functions e^(−2t) and t·e^(−2t) are both solutions of y″ + 4y′ + 4y = 0 and are linearly independent.
Step 12 of 13Note
Step 13 of 13Practice · Choose one
Solutions of y″ + by′ + 9y = 0 oscillate with decreasing amplitude. Which value of b is consistent with this?
Lesson complete!