Find a course

Module 4: Second-Order Linear EquationsLesson 7 of 1215 min

Second-Order Linear Equations with Constant Coefficients

Solve ay″ + by′ + cy = 0 with the characteristic equation, handle real, repeated and complex roots, and use superposition to fit initial conditions.

Step 1 of 13Learn

Guess an exponential

Second-order equations are the language of mechanics, because Newton's law involves acceleration, a second derivative. The simplest and most important family is the homogeneous linear equation with constant coefficients:

a·y″ + b·y′ + c·y = 0

Here's the key idea. Exponentials keep their shape when differentiated, so try y = e^(rt). Then y′ = re^(rt) and y″ = r2e^(rt). Substituting:

(ar2 + br + c)·e^(rt) = 0

Since e^(rt) is never zero, we need

a·r2 + b·r + c = 0

This is the characteristic equation. A calculus problem has turned into a quadratic. Its roots r = (−b ± √(b2 − 4ac)) / (2a) tell you everything, and the discriminant b2 − 4ac decides which of three cases you're in.

Case 1: two distinct real roots (b2 − 4ac > 0). Then y = C₁e^(r₁t) + C₂e^(r₂t).

Example. y″ − 5y′ + 6y = 0. Characteristic equation r2 − 5r + 6 = 0, so (r − 2)(r − 3) = 0 and r = 2, 3. General solution: y = C₁e^(2t) + C₂e^(3t).

Why can we add two solutions? Because the equation is linear and homogeneous: if y₁ and y₂ each make the left side zero, so does any combination C₁y₁ + C₂y₂. This is the superposition principle, and it's the reason linear equations are so much easier than nonlinear ones.

Step 2 of 13Practice · Work it out

For y″ + y′ − 12y = 0, the characteristic roots are r₁ and r₂. What is the larger root?

Step 3 of 13Learn

Repeated and complex roots

Case 2: a repeated root (b2 − 4ac = 0). The quadratic gives only one root, r = −b/(2a), and so only one exponential. A second-order equation needs two independent solutions. The second turns out to be t·e^(rt):

y = (C₁ + C₂t)·e^(rt)

Example. y″ + 4y′ + 4y = 0. r2 + 4r + 4 = (r + 2)2, so r = −2 twice. y = (C₁ + C₂t)e^(−2t).

Case 3: complex roots (b2 − 4ac < 0). The roots come in a conjugate pair r = α ± βi. Using Euler's formula, e^(iβt) = cos βt + i sin βt, the complex exponentials combine into real solutions:

y = e^(αt)·(C₁ cos βt + C₂ sin βt)

Example. y″ + 2y′ + 5y = 0. r = (−2 ± √(4 − 20))/2 = −1 ± 2i. So α = −1, β = 2, and y = e^(−t)(C₁ cos 2t + C₂ sin 2t): an oscillation at angular frequency 2 inside a decaying envelope e^(−t).

Pure oscillation. y″ + ω^2y = 0 has r = ±ωi, so α = 0 and y = C₁ cos ωt + C₂ sin ωt. No growth or decay, just steady oscillation, the simple harmonic oscillator.

Reading the roots. The real part α controls growth (α > 0) or decay (α < 0). The imaginary part β controls oscillation frequency. You can predict the whole behavior from the roots before writing a single solution.

Step 4 of 13Chart

The three root cases, released from y = 1

Distinct real roots give a slow exponential return; a repeated root gives the fastest return without overshoot; complex roots give a decaying oscillation.

The three root cases, released from y = 1Line chart with 12 categories: 0: Real roots: y″+3y′+2y=0 1, Repeated: y″+2y′+y=0 1, Complex: y = e^(−0.2t)cos 2t 1; 0.5: Real roots: y″+3y′+2y=0 0.845, Repeated: y″+2y′+y=0 0.91, Complex: y = e^(−0.2t)cos 2t 0.489; 1: Real roots: y″+3y′+2y=0 0.6, Repeated: y″+2y′+y=0 0.736, Complex: y = e^(−0.2t)cos 2t -0.341; 1.5: Real roots: y″+3y′+2y=0 0.396, Repeated: y″+2y′+y=0 0.558, Complex: y = e^(−0.2t)cos 2t -0.733; 2: Real roots: y″+3y′+2y=0 0.252, Repeated: y″+2y′+y=0 0.406, Complex: y = e^(−0.2t)cos 2t -0.438; 2.5: Real roots: y″+3y′+2y=0 0.157, Repeated: y″+2y′+y=0 0.287, Complex: y = e^(−0.2t)cos 2t 0.172; 3: Real roots: y″+3y′+2y=0 0.097, Repeated: y″+2y′+y=0 0.199, Complex: y = e^(−0.2t)cos 2t 0.527; 3.5: Real roots: y″+3y′+2y=0 0.059, Repeated: y″+2y′+y=0 0.136, Complex: y = e^(−0.2t)cos 2t 0.374; 4: Real roots: y″+3y′+2y=0 0.036, Repeated: y″+2y′+y=0 0.092, Complex: y = e^(−0.2t)cos 2t -0.065; 4.5: Real roots: y″+3y′+2y=0 0.022, Repeated: y″+2y′+y=0 0.061, Complex: y = e^(−0.2t)cos 2t -0.37; 5: Real roots: y″+3y′+2y=0 0.013, Repeated: y″+2y′+y=0 0.04, Complex: y = e^(−0.2t)cos 2t -0.309; 5.5: Real roots: y″+3y′+2y=0 0.008, Repeated: y″+2y′+y=0 0.027, Complex: y = e^(−0.2t)cos 2t 0.001.-1-0.500.5100.511.522.533.544.555.5t
Real and repeated cases use y(0) = 1, y′(0) = 0. The complex case solves y″ + 0.4y′ + 4.04y = 0.
The three root cases, released from y = 1
tReal roots: y″+3y′+2y=0Repeated: y″+2y′+y=0Complex: y = e^(−0.2t)cos 2t
0111
0.50.8450.910.489
10.60.736-0.341
1.50.3960.558-0.733
20.2520.406-0.438
2.50.1570.2870.172
30.0970.1990.527
3.50.0590.1360.374
40.0360.092-0.065
4.50.0220.061-0.37
50.0130.04-0.309
5.50.0080.0270.001

Step 5 of 13Try the calculator

Characteristic root finder

Enter a, b and c for ay″ + by′ + cy = 0. The calculator gives the discriminant and the roots (real part and imaginary part).

Discriminant b² − 4ac
-16
Real root r₁ (if discriminant ≥ 0)
-1
Real root r₂ (if discriminant ≥ 0)
-1
Real part α (complex case)
-1
Imaginary part β (complex case)
2

Step 6 of 13Practice · Match the pairs

Match each equation to the form of its general solution.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. y″ − 9y = 0
  2. y″ + 9y = 0
  3. y″ + 6y′ + 9y = 0
  4. y″ + 6y′ + 13y = 0

Step 7 of 13Compare

ay″ + by′ + cy = 0: the three cases

Aspectb² − 4ac > 0b² − 4ac = 0b² − 4ac < 0
RootsTwo real, r₁ ≠ r₂One repeated, r = −b/(2a)Complex pair α ± βi
General solutionC₁e^(r₁t) + C₂e^(r₂t)(C₁ + C₂t)e^(rt)e^(αt)(C₁cos βt + C₂sin βt)
Typical behaviorExponential growth or decay, at most one crossing of zeroLike the real case, the boundary just before oscillationOscillation; decays if α < 0, grows if α > 0
Exampley″ − y′ − 6y = 0 (r = 3, −2)y″ + 4y′ + 4y = 0 (r = −2)y″ + 2y′ + 5y = 0 (r = −1 ± 2i)

Step 8 of 13Learn

Fitting initial conditions

With two constants in the general solution, you need two conditions, usually y(0) and y′(0).

Example. Solve y″ + 2y′ + 5y = 0 with y(0) = 1 and y′(0) = 3.

General solution: y = e^(−t)(C₁ cos 2t + C₂ sin 2t).

  1. Use y(0) = 1. At t = 0: y = C₁. So C₁ = 1.
  2. Differentiate. y′ = −e^(−t)(C₁ cos 2t + C₂ sin 2t) + e^(−t)(−2C₁ sin 2t + 2C₂ cos 2t).
  3. Use y′(0) = 3. At t = 0: y′ = −C₁ + 2C₂ = 3, so −1 + 2C₂ = 3 and C₂ = 2.
  4. Answer. y = e^(−t)(cos 2t + 2 sin 2t).

Why two solutions must be independent. If you picked y₁ = e^(2t) and y₂ = 3e^(2t), their combination C₁y₁ + C₂y₂ is just one exponential with one effective constant, and you couldn't match arbitrary y(0) and y′(0). The test for independence is the Wronskian:

W = y₁y₂′ − y₁′y₂

If W ≠ 0, the pair is independent and every solution can be written as C₁y₁ + C₂y₂. For e^(2t) and e^(3t), W = e^(2t)·3e^(3t) − 2e^(2t)·e^(3t) = e^(5t), never zero.

Common mistake: in the repeated root case, writing C₁e^(rt) + C₂e^(rt). That's really one solution; the t multiplier is essential.

Step 9 of 13Practice · Work it out

Solve y″ − 4y = 0 with y(0) = 3 and y′(0) = 2, using y = C₁e^(2t) + C₂e^(−2t). What is C₁?

Step 10 of 13Note

Step 11 of 13Practice · True or false

The functions e^(−2t) and t·e^(−2t) are both solutions of y″ + 4y′ + 4y = 0 and are linearly independent.

Step 12 of 13Note

Step 13 of 13Practice · Choose one

Solutions of y″ + by′ + 9y = 0 oscillate with decreasing amplitude. Which value of b is consistent with this?