Differential Equations · Undergraduate
Second-Order Linear Equations with Constant Coefficients
Quick answer
The equation ay″ + by′ + cy = 0 is solved by guessing y = e^(rx), which turns it into the characteristic equation ar² + br + c = 0. Two distinct real roots give y = c₁e^(r₁x) + c₂e^(r₂x). A repeated root r gives y = (c₁ + c₂x)e^(rx). Complex roots α ± βi give y = e^(αx)(c₁cos βx + c₂sin βx), an oscillation. Two initial conditions, y(0) and y′(0), fix the two constants.
What you'll learn
- Form the characteristic equation of a constant-coefficient equation
- Write the general solution in each of the three root cases
- Solve initial value problems with y(0) and y′(0)
- Explain why linear combinations of solutions are solutions
Guess an exponential
A second-order linear equation with constant coefficients is
Derivatives of are multiples of , so try . Then and , and the equation becomes . Since is never zero,
This is the characteristic equation. Its roots decide everything.
| Roots | General solution |
|---|---|
| real, | |
| repeated, | |
| complex, |
Why two solutions combine
The equation is linear and homogeneous: if and solve it, so does , because derivatives respect sums and constant multiples and the right side is . So the solutions form a two-dimensional space, like the span of two vectors in linear algebra, and two independent solutions are enough to describe all of them.
That is why a repeated root needs extra work: alone gives only one direction. Checking shows is a second solution. And complex roots give complex exponentials , whose combinations, by Euler’s formula, are the real functions and , the same rotation-and-scaling story as complex eigenvalues.
Worked examples
- y = e^(−x)(cos 2x + sin 2x)
- envelope ±√2 e^(−x)
Common mistakes
Practice problems
-
Find the general solution of .
Answer
Full solution
gives .
-
Find the general solution of .
Answer
Full solution
.
-
Find the general solution of .
Answer
Full solution
gives a repeated root .
-
Solve with , .
Answer
Full solution
, so . , and .
-
Find the general solution of .
Answer
Full solution
.
-
Solve with , .
Answer
Full solution
Repeated root : . , and gives .
-
For which values of does have oscillating solutions?
Answer
Full solution
The roots are complex when .
-
A student writes for and cannot match , . Why?
Answer
Both terms are the same function; the second solution must be .
Full solution
With only , forces , not . Using gives the extra freedom.
Frequently asked questions
What is the characteristic equation?
For ay″ + by′ + cy = 0, it is ar² + br + c = 0. It comes from substituting y = e^(rx), since each derivative brings down a factor of r.
What is the solution when the roots are real and different?
y = c₁e^(r₁x) + c₂e^(r₂x).
What is the solution for a repeated root?
y = (c₁ + c₂x)e^(rx). The extra factor x supplies the second independent solution.
What is the solution for complex roots α ± βi?
y = e^(αx)(c₁cos βx + c₂sin βx): an oscillation with frequency β whose size grows or decays like e^(αx).
Why are two initial conditions needed?
A second-order equation has a two-constant family of solutions, so it takes two facts, usually y(0) and y′(0), to single one out.