Consider the homogeneous equation with real-number coefficients (not functions of t):
y′′+a1y′+a0y=0,a0,a1∈R(E0)
Constant coefficients are continuous on all of R, so the solutions are defined on I=R.
Theorem. The characteristic polynomial of (E0) is
p(λ)=λ2+a1λ+a0
(obtained by substituting y′′→λ2, y′→λ, y→1). Let Δ=a12−4a0 be its discriminant.
Δ>0: p(λ)=0 has two distinct real roots λ1=λ2, and the general integral is
y(t)=c1eλ1t+c2eλ2t∀t∈R,∀c1,c2∈R
Δ=0: a single root λ1=λ2, of multiplicity 2, and
y(t)=(c1+c2t)eλ1t
Δ<0: two complex conjugate roots λ1,2=α±iω, with ω>0, and
y(t)=eαt(c1cos(ωt)+c2sin(ωt))
Example.y′′−3y′+2y=0: λ2−3λ+2=0 has roots 1 and 2 (Δ>0), so y=c1et+c2e2t. For y′′+2y′+y=0 (Δ=0, λ=−1): y=(c1+c2t)e−t. For y′′+2y′+5y=0 (λ=−1±2i): y=e−t(c1cos2t+c2sin2t).
In each case the two functions that are combined are l.i. solutions: eλ1t and eλ2t; eλ1t and teλ1t; eαtcos(ωt) and eαtsin(ωt).
Proof of case 1
Step 1: when eλt is a solution. The idea is to look for exponential solutions, because differentiating an exponential gives back a multiple of the same exponential. With y=eλt: y′=λeλt, y′′=λ2eλt, so
y′′+a1y′+a0y=λ2eλt+a1λeλt+a0eλt=eλt(λ2+a1λ+a0)=eλtp(λ)
Since eλt=0, this vanishes for every tif and only if p(λ)=0. Hence eλt is a solution if and only if λ is a root of the characteristic polynomial. With Δ>0 two solutions are obtained, y1=eλ1t and y2=eλ2t.
Step 2: they are independent. Wronskian at t0=0 (with e0=1):
W(0)=det(y1(0)y1′(0)y2(0)y2′(0))=det(1λ11λ2)=λ2−λ1=0
because the roots are distinct. By the theorem on the structure of the general integral of the homogeneous equation, the general integral is c1eλ1t+c2eλ2t ∎.
Case 2 (idea, direct check). With Δ=0 the root is λ1=−2a1, and step 1 gives a single solution eλ1t. One checks that y=teλ1t also works: y′=(1+λ1t)eλ1t, y′′=(2λ1+λ12t)eλ1t, and
y′′+a1y′+a0y=eλ1t[tp(λ1)+2λ1+a1]=0
because p(λ1)=0 and 2λ1+a1=0. The Wronskian at 0 is det(1λ101)=1=0.
Why sine and cosine appear in case 3
With Δ<0 step 1 works all the same in the complex numbers: y1=e(α+iω)t=eαteiωt and y2=e(α−iω)t=eαte−iωt are independent (complex) solutions. To get back to real functions one uses Euler's formulascos(ωt)=2eiωt+e−iωt,sin(ωt)=2ieiωt−e−iωt
and takes the combinations (which are still solutions, by the structure theorem)
yˉ1=2y1+y2=eαtcos(ωt),yˉ2=2iy1−y2=eαtsin(ωt)
which are real.
The physical meaning. For the damped harmonic oscillator y′′+mky′+mhy=0 case 3 is that of weak damping: the cos, sin part makes the position oscillate, the factor eαt with α=−2mk<0damps the oscillations. Indeed ∣y(t)∣≤Ceαt→0: the graph oscillates between the curves ±Ceαt.
For a homogeneous linear equation with constant coefficients of order n,
y(n)+an−1y(n−1)+⋯+a1y′+a0y=0
the characteristic polynomial is p(λ)=λn+an−1λn−1+⋯+a1λ+a0, and each root contributes solutions:
real root λ of multiplicity m: eλt,teλt,…,tm−1eλt;
pair of complex roots α±iω of multiplicity m: tkeαtcos(ωt) and tkeαtsin(ωt) for k=0,…,m−1.
In all there are n l.i. solutions, and the general integral is their combination with n constants.
Summary table
Roots of p(λ)=λ2+a1λ+a0
General integral of y′′+a1y′+a0y=0
real distinct λ1=λ2 (Δ>0)
c1eλ1t+c2eλ2t
real double λ1 (Δ=0)
(c1+c2t)eλ1t
complex α±iω (Δ<0)
eαt(c1cosωt+c2sinωt)
Common mistakes
In the case Δ=0 writing c1eλt+c2eλt: it is a single exponential, with a single constant; teλt is needed.
In the case Δ<0 taking ω with a sign or forgetting α: with λ=−21±i27 one has α=−21 and ω=27.
A root λ=0: it gives e0t=1, a constant (for instance y′′−3y′=0 has general integral c1+c2e3t).
Case 1: with y=eλt: y′′+a1y′+a0y=eλtp(λ), zero iff p(λ)=0. The Wronskian W(0)=λ2−λ1=0 guarantees linear independence.
Case 2:λ1=−2a1; for y=teλ1t one finds y′′+a1y′+a0y=eλ1t[tp(λ1)+2λ1+a1]=0, and W(0)=1=0.
Case 3: using Euler's formulascos(wt) = (e^(iwt) + e^(-iwt))/2 and sin(wt) = (e^(iwt) - e^(-iwt))/(2i) one passes from the complex solutions e(α±iω)t to a real basis given by eαtcos(ωt) and eαtsin(ωt).
Physics: in the damped oscillator α=−2mk<0: the factor eαt damps the oscillation, ∣y(t)∣≤Ceαt→0.
Order n
For an equation of order n, p(λ) has degree n.
Real root λ (multiplicity m): eλt,teλt,…,tm−1eλt.
Complex roots α±iω (multiplicity m): tkeαtcos(ωt) and tkeαtsin(ωt) for k=0,…,m−1.
In all n l.i. solutions.
Common mistakes:
Δ=0: forgetting the factor t in the second term.
Δ<0: confusing α (real part) with ω (imaginary part) or omitting α in the exponential: with λ=−21±i27 one has α=−21, ω=27.
Zero root λ=0: e0t=1 is a solution (y′′−3y′=0 has general integral c1+c2e3t).