Differential Equations · § 05

Second-Order Linear ODEs

The characteristic equation method for solving ay'' + by' + cy = 0. Three root cases, two arbitrary constants, and the full solution strategy explained step by step.

3Root Cases
12Worked Examples
10Quiz Questions
Share this page

§ 01The Standard Form

A second-order linear ODE with constant coefficients has the form ay'' + by' + cy = g(x), where a, b, c are real constants and a ≠ 0. When g(x) = 0, the equation is homogeneous, and that is exactly what this page covers.

Second-Order Linear Homogeneous ODE — Standard Form
ay'' + by' + cy = 0 a, b, c ∈ ℝ,   a ≠ 0

The requirement that the coefficients a, b, c are constants (not functions of x) is what makes this family of ODEs particularly tractable. Variable-coefficient second-order ODEs (like Euler's equation or Bessel's equation) require different, more advanced techniques.

The equation is second order, so its general solution contains exactly two arbitrary constants, C₁ and C₂. To determine both constants, you need two initial conditions: typically the value of y and the value of y' at some point x = x₀.

Why Solutions Have the Form y = eʳˣ

The key insight that unlocks this entire family of equations is to guess that a solution has the exponential form y = eʳˣ for some constant r. This is not a wild guess, exponential functions are the only functions that are proportional to all of their own derivatives, which is exactly what the equation ay'' + by' + cy = 0 requires.

If y = eʳˣ, then y' = reʳˣ and y'' = r²eʳˣ. Substituting into the ODE:

Substituting y = eʳˣ
a(r²eʳˣ) + b(reʳˣ) + c(eʳˣ) = 0 Factor out eʳˣ (which is never zero): eʳˣ(ar² + br + c) = 0 Since eʳˣ ≠ 0 for any x, we must have: ar² + br + c = 0

This quadratic in r is called the characteristic equation. Its roots determine everything about the solution. There are exactly three cases, depending on the discriminant b² − 4ac.

§ 02The Three Root Cases at a Glance

Solve ar² + br + c = 0 and check the discriminant. The nature of the roots completely determines the form of the general solution.

Case 1 — Overdamped
b² − 4ac > 0
Two distinct real roots r₁ ≠ r₂
y = C₁er₁x + C₂er₂x

Two independent exponentials. The solution either grows, decays, or has mixed behaviour depending on the signs of r₁ and r₂.

Case 2 — Critically Damped
b² − 4ac = 0
One repeated real root r = −b/(2a)
y = (C₁ + C₂x)erx

The factor x is required to generate a second linearly independent solution: otherwise both terms collapse to the same exponential.

Case 3 — Underdamped
b² − 4ac < 0
Complex conjugate roots r = α ± βi
y = eαx(C₁cos βx + C₂sin βx)

The solution oscillates. The exponential envelope eαx governs whether the oscillations grow (α > 0), decay (α < 0), or remain constant (α = 0).

The roadmap for every problem (1) Write the characteristic equation ar² + br + c = 0. (2) Solve for r using the quadratic formula. (3) Identify which case applies. (4) Write down the appropriate general solution. (5) Apply initial conditions if given to find C₁ and C₂.

§ 03Case 1 — Two Distinct Real Roots

When b² − 4ac > 0, the quadratic ar² + br + c = 0 has two distinct real roots r₁ and r₂. Both y = er₁x and y = er₂x are solutions, and because they are linearly independent, their linear combination is the general solution.

General Solution — Case 1
y = C₁er₁x + C₂er₂x

Two functions are linearly independent if neither is a constant multiple of the other. For distinct exponentials er₁x and er₂x with r₁ ≠ r₂, this is always true, their Wronskian W = (r₂ − r₁)e(r₁+r₂)x is never zero.

Physical Interpretation: Overdamped Systems

In a spring-mass-damper system, this case corresponds to overdamping, the damping force is so strong that the system returns to equilibrium without oscillating. Both exponential terms either decay (if r₁, r₂ < 0) or grow (if positive), but there is no oscillation.

Example 1 — Straightforward Distinct Roots

Find the general solution of y'' − 5y' + 6y = 0.

1
Write the characteristic equation (replace y'' → r², y' → r, y → 1):r² − 5r + 6 = 0
2
Factorise:(r − 2)(r − 3) = 0
3
Roots: r₁ = 2, r₂ = 3. Discriminant = 25 − 24 = 1 > 0 ✓ (Case 1).
y = C₁e2x + C₂e3x
Example 2 — Negative Roots (Decay)

Solve y'' + 5y' + 6y = 0.

1
Characteristic equation:r² + 5r + 6 = 0
2
Factorise:(r + 2)(r + 3) = 0
3
Roots: r₁ = −2, r₂ = −3. Both negative — the solution decays to zero as x → ∞.
y = C₁e−2x + C₂e−3x
Example 3 — Using the Quadratic Formula

Solve 2y'' − 3y' − 2y = 0.

1
Characteristic equation:2r² − 3r − 2 = 0
2
Quadratic formula: r = [3 ± √(9 + 16)] / 4 = [3 ± √25] / 4 = [3 ± 5] / 4.
3
Roots:r₁ = (3 + 5)/4 = 2     r₂ = (3 − 5)/4 = −½
y = C₁e2x + C₂e−x/2
Example 4 — Initial Value Problem (Case 1)

Solve the IVP: y'' − 5y' + 6y = 0,   y(0) = 2,   y'(0) = 5.

1
From Example 1, the general solution is y = C₁e2x + C₂e3x.
2
Compute y':y' = 2C₁e2x + 3C₂e3x
3
Apply y(0) = 2:   C₁ + C₂ = 2    ...(i)
4
Apply y'(0) = 5:   2C₁ + 3C₂ = 5    ...(ii)
5
Subtract (i) from (ii):   C₂ = 1.   Substitute back:   C₁ = 1.
y = e2x + e3x

§ 04Case 2 — Repeated Real Root

When b² − 4ac = 0, the quadratic has a single real root r = −b/(2a) of multiplicity two. Using erx twice gives only one independent solution, so we multiply by x to generate the second.

Repeated Root: r = −b / (2a)
y = (C₁ + C₂x)erx

Why Does xerx Work?

If r is a double root of ar² + br + c = 0, then we can verify directly by substituting y₂ = xerx:

y₂' = erx + rxerx = (1 + rx)erx

y₂'' = rerx + r(1 + rx)erx = (2r + r²x)erx

Substituting into ay'' + by' + cy and collecting terms yields a(r² + br + c)xerx + (2ar + b)erx. Because r is a double root, ar² + br + c = 0 and 2ar + b = 0 (the derivative of the characteristic polynomial at a double root is also zero), so the whole expression equals zero. Therefore xerx is indeed a solution.

The two solutions erx and xerx are linearly independent (their Wronskian equals e2rx ≠ 0), so the general solution is their linear combination.

Physical Interpretation: Critical Damping

In mechanics, a repeated root corresponds to critical damping, the boundary between oscillatory (underdamped) and purely exponential (overdamped) behaviour. A critically damped system returns to equilibrium as quickly as possible without oscillating. This is the ideal for car suspension systems and door closers.

Example 5 — Repeated Root

Find the general solution of y'' − 6y' + 9y = 0.

1
Characteristic equation:r² − 6r + 9 = 0
2
Factorise:(r − 3)² = 0
3
Double root: r = 3. Discriminant = 36 − 36 = 0 ✓ (Case 2).
y = (C₁ + C₂x)e3x
Example 6 — IVP with Repeated Root

Solve: y'' + 4y' + 4y = 0,   y(0) = 3,   y'(0) = −1.

1
Characteristic equation: r² + 4r + 4 = (r + 2)² = 0. Double root: r = −2.
2
General solution: y = (C₁ + C₂x)e−2x.
3
Differentiate (product rule):y' = C₂e−2x − 2(C₁ + C₂x)e−2x = (C₂ − 2C₁ − 2C₂x)e−2x
4
Apply y(0) = 3:   C₁ = 3.
5
Apply y'(0) = −1:   C₂ − 2C₁ = −1  →  C₂ − 6 = −1  →  C₂ = 5.
y = (3 + 5x)e−2x
Example 7 — Repeated Root with Leading Coefficient

Solve: 4y'' + 12y' + 9y = 0.

1
Characteristic equation: 4r² + 12r + 9 = 0.
2
Factorise: (2r + 3)² = 0. Double root: r = −3/2.
3
Alternatively, use the formula: r = −12/(2·4) = −3/2. ✓
y = (C₁ + C₂x)e−3x/2

§ 05Case 3 — Complex Conjugate Roots

When b² − 4ac < 0, the characteristic equation has no real roots. Instead it has a pair of complex conjugate roots r = α ± βi, where α = −b/(2a) and β = √(4ac − b²)/(2a). The resulting real general solution involves oscillations wrapped in an exponential envelope.

Complex Roots: r = α ± βi    (β > 0)
y = eαx(C₁ cos βx + C₂ sin βx)

Where Does This Form Come From? — Euler's Formula

The characteristic equation gives roots r₁ = α + βi and r₂ = α − βi, so the complex-valued general solution is y = Ae(α+βi)x + Be(α−βi)x. Using Euler's formula e = cos θ + i sin θ, we can write:

Applying Euler's Formula
e(α+βi)x = eαxeiβx = eαx(cos βx + i sin βx) e(α−βi)x = eαxe−iβx = eαx(cos βx − i sin βx)

Taking real linear combinations: C₁ = (A + B) and C₂ = i(A − B) produces the real-valued solution above. The constants C₁ and C₂ are real when we impose the requirement of real initial conditions.

The Three Sub-Cases of Oscillation

Sign of αBehaviourPhysical name
α < 0Oscillations decay to zeroUnderdamped
α = 0Pure, sustained oscillationsUndamped (simple harmonic)
α > 0Oscillations grow without boundNegatively damped (unstable)

Physical Interpretation: Underdamped Systems

A mass on a spring with light damping exhibits exactly this behaviour. The oscillation frequency is β/(2π) Hz, and the decay rate is controlled by α. The free oscillation of guitar strings, the ringing of a tuning fork, and the oscillation of an LC electrical circuit are all described by solutions of this form.

Example 8 — Simple Harmonic Motion (α = 0)

Solve y'' + 4y = 0.

1
Characteristic equation:r² + 4 = 0  →  r² = −4  →  r = ±2i
2
Here α = 0 and β = 2. No exponential envelope — pure oscillation.
y = C₁ cos 2x + C₂ sin 2x
Example 9 — Decaying Oscillation (α < 0)

Find the general solution of y'' + 2y' + 5y = 0.

1
Characteristic equation: r² + 2r + 5 = 0.
2
Quadratic formula: r = [−2 ± √(4 − 20)] / 2 = [−2 ± √(−16)] / 2 = [−2 ± 4i] / 2.r = −1 ± 2i
3
Here α = −1 and β = 2. The oscillations decay because α < 0.
y = e−x(C₁ cos 2x + C₂ sin 2x)
Example 10 — IVP with Complex Roots

Solve: y'' + 2y' + 5y = 0,   y(0) = 1,   y'(0) = 3.

1
From Example 9: y = e−x(C₁ cos 2x + C₂ sin 2x).
2
Apply y(0) = 1:   e⁰(C₁ · 1 + C₂ · 0) = C₁ = 1.
3
Differentiate y (product rule + chain rule):y' = −e−x(C₁ cos 2x + C₂ sin 2x) + e−x(−2C₁ sin 2x + 2C₂ cos 2x)
4
Apply y'(0) = 3:   −(C₁) + 2C₂ = 3  →  −1 + 2C₂ = 3  →  C₂ = 2.
y = e−x(cos 2x + 2 sin 2x)
Example 11 — Non-Monic with Complex Roots

Solve: y'' + y' + y = 0.

1
Characteristic equation: r² + r + 1 = 0.
2
Quadratic formula: r = [−1 ± √(1 − 4)] / 2 = [−1 ± √(−3)] / 2 = −½ ± (√3/2)i.
3
α = −½,   β = √3/2.
y = e−x/2(C₁ cos(√3 x/2) + C₂ sin(√3 x/2))
Example 12 — Classify Without Solving

Without finding the roots, identify which case applies to each ODE.
(a) y'' − 4y' + 4y = 0    (b) y'' + y = 0    (c) y'' − 7y' + 10y = 0

1
(a) a=1, b=−4, c=4. Discriminant = 16 − 16 = 0. Case 2: Repeated root.
2
(b) a=1, b=0, c=1. Discriminant = 0 − 4 = −4 < 0. Case 3: Complex roots.
3
(c) a=1, b=−7, c=10. Discriminant = 49 − 40 = 9 > 0. Case 1: Distinct real roots.
(a) Case 2 — y=(C₁+C₂x)e2x  |  (b) Case 3 — y=C₁cos x+C₂sin x  |  (c) Case 1 — y=C₁e2x+C₂e5x

§ 06The Wronskian and Linear Independence

Two solutions y₁ and y₂ form a fundamental set of solutions, and hence give the true general solution, if and only if they are linearly independent. The Wronskian is the test.

The Wronskian of y₁ and y₂
W(y₁, y₂) = y₁y₂' − y₂y₁'

If W ≠ 0 at any point in the interval of interest, the two solutions are linearly independent and their linear combination C₁y₁ + C₂y₂ is the complete general solution. Abel's theorem tells us something stronger: if W ≠ 0 at one point, then W ≠ 0 everywhere on the interval (for constant-coefficient equations).

For the three cases above:

Casey₁y₂Wronskian W
Distinct real rootser₁xer₂x(r₂−r₁)e(r₁+r₂)x ≠ 0
Repeated rooterxxerxe2rx ≠ 0
Complex rootseαxcos βxeαxsin βxβe2αx ≠ 0 (β>0)

In all three cases the Wronskian is never zero, confirming that our solution pairs are always linearly independent. This guarantees that every solution of the ODE can be written as C₁y₁ + C₂y₂ for some constants C₁ and C₂: the general solution truly is general.

§ 07Common Mistakes

Mistake 1: Forgetting the x factor in Case 2 If the characteristic equation gives a double root r, writing y = C₁erx + C₂erx is wrong — both terms are identical and you have only one independent solution. The correct second solution is xerx.
Mistake 2: Leaving the solution in complex form Writing y = C₁e(α+βi)x + C₂e(α−βi)x is mathematically valid but not the standard real-valued form. Always apply Euler's formula to convert to y = eαx(A cos βx + B sin βx). Initial conditions require real constants.
Mistake 3: Applying initial conditions to the general solution before differentiating To find both C₁ and C₂, you need two equations: one from y(x₀) = y₀ and one from y'(x₀) = y₀'. Always write down y', then substitute x = x₀ separately into y and y'.
Mistake 4: Misidentifying α and β from the roots If the roots are r = −3 ± 5i, then α = −3 and β = 5 (positive). Many students use β = ±5. β is always taken as the positive imaginary part, and the ± is already built into cos βx and sin βx.
Mistake 5: Confusing the ODE's coefficients with the characteristic equation's roots The ODE y'' + by' + cy = 0 gives the characteristic equation r² + br + c = 0. The roots of this quadratic are r, not b and c. Substituting b and c directly as the roots is a common and costly error.

§ 0810-Question Quiz

Work through every question. Each tests a different aspect of the three-case method.

Score: 0 / 0
Question 1

What is the characteristic equation of y'' − 7y' + 12y = 0?

Question 2

The characteristic equation r² − 7r + 12 = 0 factors as (r − 3)(r − 4) = 0. What is the general solution of y'' − 7y' + 12y = 0?

Question 3

For y'' − 4y' + 4y = 0, the characteristic equation (r − 2)² = 0 gives a double root r = 2. What is the general solution?

Question 4

For y'' + 9y = 0, which values of α and β define the general solution y = eαx(C₁cos βx + C₂sin βx)?

Question 5 — Fill In

The discriminant of ar² + br + c = 0 is b² − 4ac. For y'' + 6y' + 9y = 0, the discriminant equals .

Question 6

Solve the IVP y'' + 9y = 0, y(0) = 4, y'(0) = 6. What are C₁ and C₂?

Question 7

The general solution of y'' − 4y = 0 is:

Question 8

A damped oscillator satisfies y'' + 2y' + 10y = 0. In the general solution y = eαx(C₁cos βx + C₂sin βx), what is β?

Question 9

Which of the following is the correct statement of the Wronskian test for linear independence of two solutions y₁ and y₂?

Question 10 — Fill In

For y'' − 8y' + 16y = 0, the characteristic equation is (r − 4)² = 0, giving a double root r = 4. The particular solution satisfying y(0) = 1 and y'(0) = 6 is y = (1 + x)e4x. Enter the coefficient of x.

out of 10


Cookie Settings