Second-order linear homogeneous ODE
ay'' + by' + cy = 0. Solve auxiliary equation aλ² + bλ + c = 0.
Three cases by discriminant: distinct real roots λ1, λ2 → y = Aeλ1x + Beλ2x; repeated root λ → y = (A + Bx)eλx; complex roots p ± qi → y = epx(A cos qx + B sin qx).
Worked examples
y'' − 5y' + 6y = 0: roots 2, 3; y = Ae2x + Be3x.
y'' + 4y = 0: roots ±2i; y = A cos 2x + B sin 2x. Simple harmonic motion.
y'' − 4y' + 4y = 0: repeated root 2; y = (A + Bx)e2x.
Frequently asked questions
SHM?
Second-order ODE with imaginary roots gives sinusoidal solutions. The classic spring/mass equation.
Non-homogeneous?
Add particular integral to general solution.