Take y″ + 2y′ + 5y = 0. The discriminant is 4 − 20 = −16, so the roots are (−2 ± 4i)/2 = −1 ± 2i. There is no real number that solves the characteristic quadratic, and it is tempting to conclude that no real function solves the equation. The conclusion does not follow: the roots are numbers that satisfy a quadratic, and the solutions are functions of t built from them.
The reason a cosine and a sine appear is that an exponential with an imaginary exponent is a cosine plus i times a sine. This course does not use that identity, because the answer can be checked directly, which is the standard throughout: a candidate is a solution when its residual is zero.
Theorem · The solutions for a complex pairIf a·r² + b·r + c = 0 has the roots α ± βi with α and β real and β not zero, then e^(αt)·cos(βt) and e^(αt)·sin(βt) both solve a·y″ + b·y′ + c·y = 0, and the general solution is e^(αt)·(C₁·cos(βt) + C₂·sin(βt)).
Take y = e^(αt)·cos(βt). The product rule, with the chain rule supplying the factor β in front of the sine, gives y′ = e^(αt)·(α·cos(βt) − β·sin(βt)) and y″ = e^(αt)·((α² − β²)·cos(βt) − 2·α·β·sin(βt)). Then a·y″ + b·y′ + c·y equals e^(αt) times (a·(α² − β²) + b·α + c)·cos(βt) − β·(2a·α + b)·sin(βt).
The root pair has real part α = −b/(2a), so 2a·α + b = 0 and the sine term vanishes. It also has product α² + β² = c/a, since (α + βi)·(α − βi) = α² + β². With b = −2a·α the cosine bracket is a·α² − a·β² − 2a·α² + c = c − a·(α² + β²), which is 0.
The sine case is the same computation with the roles of the two terms exchanged. That these two functions are all the solutions is stated here and not proved; “Superposition and the Wronskian” shows why they can fit any starting value and rate.
□
A check by hand
For y″ + 2y′ + 5y = 0 the roots give α = −1 and β = 2. Take the sine solution y = e^(−t)·sin(2t). Its rates, by the product rule, are below, and the cosine terms and the sine terms of the residual each cancel exactly.
y = e^(−t)·sin(2t)
y′ = e^(−t)·(2·cos(2t) − sin(2t))
y″ = e^(−t)·(−4·cos(2t) − 3·sin(2t))
cosine terms of y″ + 2y′ + 5y: −4 + 2·2 + 0 = 0
sine terms of y″ + 2y′ + 5y: −3 + 2·(−1) + 5 = 0
Reading the motion from the root
The same equation has the envelope e^(−t) and turns at speed 2, so one full turn takes π units of t. The lab's three presets have three different real parts. The first, α = −1, shrinks. The second is y″ + 4y = 0, with α = 0: it neither shrinks nor grows and keeps its size for ever. The third has α = 1 and grows.
Example · A growing oscillationFor y″ − 2y′ + 2y = 0 the discriminant is 4 − 8 = −4 and the roots are 1 ± i, so α = 1 and β = 1. The general solution is e^t·(C₁·cos t + C₂·sin t).
With y(0) = 1 and y′(0) = 0 the first condition gives C₁ = 1 and the second is α·C₁ + β·C₂ = 1 + C₂ = 0, so C₂ = −1. The solution turns once every 2π and its size multiplies by e each time t increases by 1.
That last sentence is the whole content of the real part. A spring that loses energy to friction is described by a solution with a negative α, and one that is driven harder at every swing has a positive α. The next course measures both.