UNIHIVE

Study Hub UNIPORT MTH 340

MTH 340 · Ordinary Differential Equation

Homogeneous equations with constant coefficients

The characteristic equation and its three cases (distinct real, repeated, complex roots), initial-value problems, and higher-order equations.

Our notes

2 min read

The method

For ay″ + by′ + cy = 0, try y = e^(rx): a r² + b r + c = 0, the characteristic (auxiliary) equation.

The three cases

RootsGeneral solution
Real and distinct r₁, r₂y = C₁e^(r₁x) + C₂e^(r₂x)
Repeated ry = (C₁ + C₂x)e^(rx)
Complex α ± iβy = e^(αx)(C₁ cos βx + C₂ sin βx)

The complex case comes from Euler's formula e^(iθ) = cos θ + i sin θ.

Worked example (distinct). y″ − 5y′ + 6y = 0, y(0) = 0, y′(0) = 1.
r² − 5r + 6 = 0: r = 2, 3. y = C₁e^(2x) + C₂e^(3x).
y(0) = C₁ + C₂ = 0; y′(0) = 2C₁ + 3C₂ = 1. So C₂ = 1, C₁ = −1: y = e^(3x) − e^(2x).
Check: y′ = 3e^(3x) − 2e^(2x), y″ = 9e^(3x) − 4e^(2x); y″ − 5y′ + 6y = (9 − 15 + 6)e^(3x) + (−4 + 10 − 6)e^(2x) = 0 ✓.

Worked example (repeated). y″ + 4y′ + 4y = 0: (r + 2)² = 0, y = (C₁ + C₂x)e^(−2x).

Worked example (complex). y″ + 2y′ + 5y = 0: r = (−2 ± √(4 − 20))/2 = −1 ± 2i. y = e^(−x)(C₁ cos 2x + C₂ sin 2x): a decaying oscillation.

Higher order

Same idea with a polynomial of degree n. A root of multiplicity k gives e^(rx), xe^(rx), ..., x^(k−1)e^(rx); a complex pair of multiplicity k gives the matching x-powers times cosines and sines.
Worked example. y‴ − y′ = 0: r³ − r = r(r − 1)(r + 1) = 0, y = C₁ + C₂eˣ + C₃e^(−x).
Worked example. y⁗ + 2y″ + y = 0: (r² + 1)² = 0, r = ±i twice: y = (C₁ + C₂x)cos x + (C₃ + C₄x)sin x.

Application: the spring-mass system

m x″ + c x′ + k x = 0 (mass m, damping c, spring constant k).

  • c² < 4mk: underdamped (oscillates while dying away, complex roots).
  • c² = 4mk: critically damped (fastest return without oscillating, repeated root): the target for car shock absorbers.
  • c² > 4mk: overdamped (slow return, distinct negative roots).
  • c = 0: simple harmonic motion with ω = √(k/m).

The same equation describes an RLC circuit: L q″ + R q′ + q/C = 0.

Exams usually ask: solve second- and higher-order homogeneous equations for each root type; IVPs; classify the damping of a spring or circuit; write the equation from given roots.

Common mistake: writing C₁e^(rx) + C₂e^(rx) for a repeated root. That is only one independent solution; the second is xe^(rx).

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 340 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.