Higher-order equations with a superposition principle, solved via characteristic equations.
IntuitionIntuition: oscillation and the superposition principle
A mass on a spring, a swinging pendulum with small amplitude, and the current in an RLC circuit all obey the same shape of law: an unknown function together with its derivatives combine linearly. If you know two separate motions that each satisfy the law, their sum (or any weighted combination) also satisfies it — this is the superposition principle. It is the reason we can build every possible motion out of just two building-block solutions.
Parabola for the characteristic polynomial r^2-3r+2, crossing the r-axis at r=1 and r=2.
Damped harmonic oscillator y′′+2ζy′+y=0: the solution oscillates inside the decaying exponential envelope ±e−ζt.
SchoolPrecise statement: second-order linear equations with constant coefficients
Definition: Homogeneous linear differential equation
A second-order equation of the form ay′′+by′+cy=0, where a,b,c are constants and a=0, is called homogeneous linear because the right-hand side is zero and y appears only to the first power in every term.
ay′′+by′+cy=0
Because differentiating erx just multiplies it by r, we try the ansatz y=erx. Substituting into the equation and dividing by the common factor erx=0 turns the differential equation into a plain quadratic equation in r:
ar2+br+c=0
The three cases of the characteristic equation ar2+br+c=0 and the resulting general solution
Discriminant
Roots
General solution
Δ>0
Two distinct real roots r1=r2
y=c1er1x+c2er2x
Δ=0
One repeated real root r
y=(c1+c2x)erx
Δ<0
Complex conjugate roots r=α±iβ
y=eαx(c1cos(βx)+c2sin(βx))
UndergraduateUniversity level: theorems and proofs
If y1 and y2 both satisfy ay′′+by′+cy=0, then for any constants c1,c2 the combination y=c1y1+c2y2 also satisfies the equation. If moreover the Wronskian W(y1,y2)=y1y2′−y2y1′ is nonzero at some point, every solution of the equation has this form.
Why is it true?
Differentiation is a linear operation: the derivative of a sum is the sum of derivatives, and constants factor out. Since the left side of the equation is built only from y, y′, y′′ multiplied by constants and added together, plugging in a combination of two solutions just adds up two copies of zero.
Proof
Suppose L[y]=ay′′+by′+cy. Since differentiation satisfies (u+v)′=u′+v′ and (ku)′=ku′ for a constant k, the operator L is linear: L[c1y1+c2y2]=a(c1y1+c2y2)′′+b(c1y1+c2y2)′+c(c1y1+c2y2)=c1(ay1′′+by1′+cy1)+c2(ay2′′+by2′+cy2)=c1L[y1]+c2L[y2].
Because y1,y2 solve the equation, L[y1]=0 and L[y2]=0, so L[c1y1+c2y2]=c1⋅0+c2⋅0=0: the combination is again a solution. This proves the first half.
For the second half, the theory of linear ODEs guarantees that the solution space of a second-order equation is exactly two-dimensional (an initial condition y(x0)=y0, y′(x0)=y0′ picks out a unique solution, giving two free parameters). A nonzero Wronskian W(y1,y2)=y1y2′−y2y1′ at some point x0 means the linear system c1y1(x0)+c2y2(x0)=y0, c1y1′(x0)+c2y2′(x0)=y0′ has a unique solution (c1,c2) for every choice of initial data. So every solution matches some c1y1+c2y2 for suitable constants, which means {y1,y2} spans the whole two-dimensional solution space.
The general solution of ay′′+by′+cy=0 is determined entirely by the roots of the characteristic equation ar2+br+c=0: distinct real roots give y=c1er1x+c2er2x, a repeated real root gives y=(c1+c2x)erx, and complex conjugate roots r=α±iβ give y=eαx(c1cos(βx)+c2sin(βx)).
Why is it true?
Exponentials are the natural building blocks because differentiating erx just rescales it by r; feeding this ansatz into a linear equation with constant coefficients collapses calculus into algebra — finding roots of a polynomial.
Proof
Try the ansatz y=erx. Then y′=rerx and y′′=r2erx; substituting into ay′′+by′+cy=0 gives (ar2+br+c)erx=0. Since erx is never zero, this forces the characteristic equation ar2+br+c=0. By the quadratic formula, r=2a−b±b2−4ac.
Case Δ>0: the two roots r1=r2 give solutions er1x and er2x. Their Wronskian is (r2−r1)e(r1+r2)x=0, so by the superposition theorem the general solution is y=c1er1x+c2er2x.
Case Δ=0: there is one repeated root r=−b/(2a), giving only one exponential solution erx. To find a second independent solution, try y2=v(x)erx (reduction of order) and substitute into the equation; because r is a double root of ar2+br+c, the terms in v and v′ cancel, leaving av′′erx=0, i.e. v′′=0, so v=c1+c2x. This yields the second solution xerx, and the general solution y=(c1+c2x)erx.
Case Δ<0: the roots are complex conjugates r=α±iβ with α=−b/(2a), β=−Δ/(2a). Euler's formula eiβx=cos(βx)+isin(βx) turns the complex solutions e(α±iβ)x into two independent real solutions eαxcos(βx) and eαxsin(βx) (by taking the real and imaginary parts, which are themselves solutions since L has real coefficients), giving the general solution y=eαx(c1cos(βx)+c2sin(βx)).
UndergraduateReal-World Applications and Worked Examples
The three cases of the characteristic equation are not just algebra — they describe three physically distinct behaviours of a damped spring-mass system my′′+cy′+ky=0 (mass m, damping c, stiffness k): underdamped oscillation that dies out while wiggling (Δ<0), overdamped return with no wiggle at all (Δ>0), and critically damped return, the fastest possible non-oscillating return (Δ=0) — exactly the design goal of a car's shock absorber or a door closer.
Example: Finding a general solution: distinct real roots
Solve y′′−5y′+6y=0.
Solution
The characteristic equation is r2−5r+6=0.
Factoring, (r−2)(r−3)=0, so the roots are r1=2 and r2=3: two distinct real roots.
By the theorem above (case Δ>0), the general solution is y=c1e2x+c2e3x, where c1,c2 are arbitrary constants fixed by initial conditions.
Example: Undetermined coefficients for a forced equation
Find a particular solution of y′′−y=e2x.
Solution
The homogeneous equation y′′−y=0 has characteristic equation r2−1=0, with roots r=±1; the forcing term e2x has exponent 2, which is not one of these roots, so there is no resonance.
Try the ansatz yp=Ae2x. Then yp′′=4Ae2x, and substituting gives 4Ae2x−Ae2x=3Ae2x, which must equal e2x.
Matching coefficients, 3A=1, so A=31, giving the particular solution yp=31e2x. The full general solution is y=c1ex+c2e−x+31e2x.
What is the general solution of y′′−7y′+12y=0?
For y′′+2y′+5y=0, what kind of roots does the characteristic equation have, and what is the general solution?
A car's shock absorber, modeled by my′′+cy′+ky=0, is designed to return the car body to rest as fast as possible without any bouncing. Which case of the characteristic equation should the engineer aim for?
To find a particular solution of y′′−y=e2x by undetermined coefficients, which trial form should you use?