A second order linear ODE with constant coefficients:
dx2d2y+adxdy+by=f(x)
or equivalently:
y′′+2γy′+ω02y=f(x)
Homogeneous Case (f(x)=0)
Try solution y=eλx:
λ2eλx+2γλeλx+ω02eλx=0
Dividing by eλx gives the characteristic equation:
λ2+2γλ+ω02=0
Roots: λ=−γ±γ2−ω02
Three Cases for the Roots

| Case | Condition | Roots | General Solution |
|---|
| Two real distinct | γ2>ω02 | λ1,λ2 (real) | y=Aeλ1x+Beλ2x |
| Repeated root | γ2=ω02 | λ=−γ (double) | y=(A+Bx)eλx |
| Complex conjugate | γ2<ω02 | −γ±iΩ | y=e−γx(AcosΩx+BsinΩx) |
where Ω=ω02−γ2.
Derivation of the Repeated Root Solution
When λ1=λ2, we only have one solution y1=eλx.
Method of reduction of order: Seek second solution as y2=v(x)eλx.
Substituting and solving gives v′= constant, so v=Bx.
Hence y=(A+Bx)eλx.
Inhomogeneous Case: Particular Integral
Principle of Superposition
General solution = Complementary Function + Particular Integral
y=yc+yp
- yc: general solution to homogeneous equation
- yp: any particular solution to inhomogeneous equation
Finding Particular Integral
Use trial solutions based on the form of f(x):
| f(x) | Try yp |
|---|
| Polynomial of degree n | General polynomial of degree n |
| FeKx | AeKx (unless K=λ1 or λ2) |
| FsinKx or FcosKx | AsinKx+BcosKx |
| Product/compound | Combine forms |
If trial form appears in yc: Multiply by x (or x2 for double root).
Examples
Example 1: y′′+5y′+6y=12
Characteristic: λ2+5λ+6=0⇒λ=−2,−3
yc=Ae−2x+Be−3x
Try yp=C. Then yp′′=0, yp′=0, so 6C=12, giving C=2.
y=Ae−2x+Be−3x+2
Example 2: y′′+4y=cosx
Characteristic: λ2+4=0⇒λ=±2i
yc=Acos2x+Bsin2x
Try yp=Ccosx+Dsinx. Substituting:
(−C+4C)cosx+(−D+4D)sinx=cosx
3Ccosx+3Dsinx=cosx
C=31,D=0
y=Acos2x+Bsin2x+31cosx
Initial Value Problems
Apply initial conditions y(x0)=y0, y′(x0)=y1 to determine A and B.
Physical Applications
- Springs: mx¨+cx˙+kx=F(t)
- Circuits: Lq¨+Rq˙+Cq=V(t)
- Pendulum (small angle): θ¨+Lgθ=0
The mathematical structure is universal; the physics provides the coefficients.