The equation and the three cases
- y″ + ay′ + by = 0
Try y = e^(rx). That gives the characteristic equation r² + ar + b = 0, and the sign of its discriminant a² − 4b picks the row of the general solution above: two real roots r₁ ≠ r₂, complex roots α ± βi, or one double root r.
Example
y″ + 2y′ + 5y = 0: r² + 2r + 5 = 0 gives r = −1 ± 2i, so α = −1 and β = 2:
y = e^(−x)(C₁ cos 2x + C₂ sin 2x)
y″ − y′ − 6y = 0: r² − r − 6 = 0 gives r = 3 and r = −2, so y = C₁e^(3x) + C₂e^(−2x).
y″ + 4y′ + 4y = 0: r² + 4r + 4 = 0 gives the double root r = −2, so y = (C₁ + C₂x)e^(−2x).
The initial conditions fix the constants
y″ + 2y′ + 5y = 0 with y(0) = 1 and y′(0) = 1. From the solution above, y(0) = C₁ = 1, and y′ = e^(−x)((−C₁ + 2C₂) cos 2x + (−C₂ − 2C₁) sin 2x) gives y′(0) = −1 + 2C₂ = 1, so C₂ = 1: y = e^(−x)(cos 2x + sin 2x). A damped oscillation: the factor e^(−x) shrinks while the sine-cosine part swings.
Where next
- First order, the same idea with one root: first-order linear differential equation and y′ = ky.
- With a right side f(x) in place of 0: the non-homogeneous linear differential equation, y = yₕ + yₚ.
- The roots when the discriminant is negative: quadratic equation with complex roots.
Common mistakes
- Stopping at e^((α ± βi)x). The complex case is rewritten as a cosine and a sine.
- Forgetting the x in the double-root case. C₁e^(rx) + C₂e^(rx) is one solution, not two.
- Keeping the i in the answer. β goes in cos βx and sin βx, without an i.
Common questions
Why does the guess y = e^(rx) work?
Because the derivative of e^(rx) is r · e^(rx): every term of the equation becomes a constant times the
same e^(rx), and what is left is r² + ar + b = 0.
Where do the cosine and sine come from?
From e^((α + βi)x) = e^(αx)(cos βx + i sin βx), Euler’s formula. The real and imaginary parts are each a
real solution, and the two together span all of them.