Skip to content
Part IA Michaelmas, Lent, Easter Term

Second Order Linear ODEs

Standard Form

A second order linear ODE with constant coefficients:

d2ydx2+adydx+by=f(x)\frac{d^2y}{dx^2} + a\frac{dy}{dx} + by = f(x)

or equivalently:

y′′+2γy′+ω02y=f(x)y'' + 2\gamma y' + \omega_0^2 y = f(x)


Homogeneous Case (f(x)=0f(x) = 0)

Try solution y=eλxy = e^{\lambda x}:

λ2eλx+2γλeλx+ω02eλx=0\lambda^2 e^{\lambda x} + 2\gamma \lambda e^{\lambda x} + \omega_0^2 e^{\lambda x} = 0

Dividing by eλxe^{\lambda x} gives the characteristic equation:

λ2+2γλ+ω02=0\lambda^2 + 2\gamma\lambda + \omega_0^2 = 0

Roots: λ=−γ±γ2−ω02\lambda = -\gamma \pm \sqrt{\gamma^2 - \omega_0^2}


Three Cases for the Roots

Three cases shown on complex plane: two real roots (overdamped), repeated root (critical), complex conjugate roots (underdamped)

CaseConditionRootsGeneral Solution
Two real distinctγ2>ω02\gamma^2 > \omega_0^2λ1,λ2\lambda_1, \lambda_2 (real)y=Aeλ1x+Beλ2xy = Ae^{\lambda_1 x} + Be^{\lambda_2 x}
Repeated rootγ2=ω02\gamma^2 = \omega_0^2λ=−γ\lambda = -\gamma (double)y=(A+Bx)eλxy = (A + Bx)e^{\lambda x}
Complex conjugateγ2<ω02\gamma^2 < \omega_0^2−γ±iΩ-\gamma \pm i\Omegay=e−γx(Acos⁡Ωx+Bsin⁡Ωx)y = e^{-\gamma x}(A\cos\Omega x + B\sin\Omega x)

where Ω=ω02−γ2\Omega = \sqrt{\omega_0^2 - \gamma^2}.


Derivation of the Repeated Root Solution

When λ1=λ2\lambda_1 = \lambda_2, we only have one solution y1=eλxy_1 = e^{\lambda x}.

Method of reduction of order: Seek second solution as y2=v(x)eλxy_2 = v(x)e^{\lambda x}.

Substituting and solving gives v′=v' = constant, so v=Bxv = Bx.

Hence y=(A+Bx)eλxy = (A + Bx)e^{\lambda x}.


Inhomogeneous Case: Particular Integral

Principle of Superposition

General solution = Complementary Function + Particular Integral

y=yc+ypy = y_c + y_p

  • ycy_c: general solution to homogeneous equation
  • ypy_p: any particular solution to inhomogeneous equation

Finding Particular Integral

Use trial solutions based on the form of f(x)f(x):

f(x)f(x)Try ypy_p
Polynomial of degree nnGeneral polynomial of degree nn
FeKxFe^{Kx}AeKxAe^{Kx} (unless K=λ1K = \lambda_1 or λ2\lambda_2)
Fsin⁡KxF\sin Kx or Fcos⁡KxF\cos KxAsin⁡Kx+Bcos⁡KxA\sin Kx + B\cos Kx
Product/compoundCombine forms

If trial form appears in ycy_c: Multiply by xx (or x2x^2 for double root).

Examples

Example 1: y′′+5y′+6y=12y'' + 5y' + 6y = 12

Characteristic: λ2+5λ+6=0⇒λ=−2,−3\lambda^2 + 5\lambda + 6 = 0 \Rightarrow \lambda = -2, -3

yc=Ae−2x+Be−3xy_c = Ae^{-2x} + Be^{-3x}

Try yp=Cy_p = C. Then yp′′=0y_p'' = 0, yp′=0y_p' = 0, so 6C=126C = 12, giving C=2C = 2.

y=Ae−2x+Be−3x+2y = Ae^{-2x} + Be^{-3x} + 2

Example 2: y′′+4y=cos⁡xy'' + 4y = \cos x

Characteristic: λ2+4=0⇒λ=±2i\lambda^2 + 4 = 0 \Rightarrow \lambda = \pm 2i

yc=Acos⁡2x+Bsin⁡2xy_c = A\cos 2x + B\sin 2x

Try yp=Ccos⁡x+Dsin⁡xy_p = C\cos x + D\sin x. Substituting:

(−C+4C)cos⁡x+(−D+4D)sin⁡x=cos⁡x(-C + 4C)\cos x + (-D + 4D)\sin x = \cos x

3Ccos⁡x+3Dsin⁡x=cos⁡x3C\cos x + 3D\sin x = \cos x

C=13,D=0C = \frac{1}{3}, D = 0

y=Acos⁡2x+Bsin⁡2x+13cos⁡xy = A\cos 2x + B\sin 2x + \frac{1}{3}\cos x


Initial Value Problems

Apply initial conditions y(x0)=y0y(x_0) = y_0, y′(x0)=y1y'(x_0) = y_1 to determine AA and BB.


Physical Applications

  • Springs: mx¨+cx˙+kx=F(t)m\ddot{x} + c\dot{x} + kx = F(t)
  • Circuits: Lq¨+Rq˙+qC=V(t)L\ddot{q} + R\dot{q} + \frac{q}{C} = V(t)
  • Pendulum (small angle): θ¨+gLθ=0\ddot{\theta} + \frac{g}{L}\theta = 0

The mathematical structure is universal; the physics provides the coefficients.