- Practice
- About 17 min
- 5 practice questions
Second-order equations with constant coefficients: the auxiliary equation
Solve y″ + ay′ + by = 0 by the auxiliary equation m² + am + b = 0 in the three cases (distinct real roots, repeated root, complex roots), fit initial conditions, and write the equation from given roots.
If something looks wrong, please tell us.
Equations of the form y″ + ay′ + by = 0, with constants a and b, describe springs, circuits and many other systems. They are solved by a clean idea: try y = e^{mx}. This turns the differential equation into an ordinary quadratic equation for m, called the auxiliary equation. The three possible kinds of roots of that quadratic give three forms of solution.
The auxiliary equation
Substituting y = e^{mx}, with y′ = me^{mx} and y″ = m²e^{mx}, into y″ + ay′ + by = 0 gives (m² + am + b)e^{mx} = 0. Since e^{mx} is never zero, m must satisfy m² + am + b = 0.
| Roots of m² + am + b = 0 | General solution |
|---|---|
| two distinct real roots m₁, m₂ | y = C₁e^{m₁x} + C₂e^{m₂x} |
| one repeated real root m | y = (C₁ + C₂x)e^{mx} |
| complex roots α ± iβ | y = e^{αx}(C₁ cos βx + C₂ sin βx) |
Second-order, constant coefficients: solve m² + am + b = 0. Real distinct: two exponentials. Repeated: (C₁ + C₂x)e^{mx}. Complex α ± iβ: e^{αx}(C₁ cos βx + C₂ sin βx). Two constants, so two conditions are needed for a particular solution.
Worked example 1: distinct roots
Solve y″ − 5y′ + 6y = 0 with y(0) = 1 and y′(0) = 0. The auxiliary equation m² − 5m + 6 = 0 has roots 2 and 3. So y = C₁e^{2x} + C₂e^{3x}. Then y(0) = C₁ + C₂ = 1 and y′(0) = 2C₁ + 3C₂ = 0. From the first, C₁ = 1 − C₂; the second gives 2 − 2C₂ + 3C₂ = 0, so C₂ = −2 and C₁ = 3. The solution is y = 3e^{2x} − 2e^{3x}. Check: y(0) = 3 − 2 = 1 and y′(0) = 6 − 6 = 0.
Worked example 2: a repeated root
Solve y″ + 6y′ + 9y = 0 with y(0) = 2 and y′(0) = −1. The auxiliary equation m² + 6m + 9 = (m + 3)² = 0 has the repeated root −3. So y = (C₁ + C₂x)e^{−3x}. Then y(0) = C₁ = 2. Differentiating, y′ = [C₂ − 3(C₁ + C₂x)]e^{−3x}, so y′(0) = C₂ − 3C₁ = −1, giving C₂ = 5. The solution is y = (2 + 5x)e^{−3x}.
Worked example 3: complex roots
Solve y″ + 4y′ + 13y = 0 with y(0) = 1 and y′(0) = 1. The auxiliary equation m² + 4m + 13 = 0 has discriminant 16 − 52 = −36, so m = (−4 ± 6i)/2 = −2 ± 3i. So y = e^{−2x}(C₁ cos 3x + C₂ sin 3x). Then C₁ = y(0) = 1. Differentiating, y′(0) = −2C₁ + 3C₂ = 1, so C₂ = 1. The solution is y = e^{−2x}(cos 3x + sin 3x), a decaying oscillation.
Worked example 4: pure oscillation, and forming an equation
Solve y″ + 9y = 0 with y(0) = 2, y′(0) = 6. The roots are ±3i (α = 0, β = 3), so y = C₁ cos 3x + C₂ sin 3x. Then C₁ = 2 and 3C₂ = 6, so C₂ = 2 and y = 2 cos 3x + 2 sin 3x, which equals 2√2 cos(3x − π/4). Conversely, to write the equation with auxiliary roots 1 and −4, expand (m − 1)(m + 4) = m² + 3m − 4, so the equation is y″ + 3y′ − 4y = 0.
Traps
- Keep the signs: the roots of m² + 6m + 9 = 0 are −3, so the exponent is e^{−3x}.
- A repeated root needs the extra factor x. e^{mx} alone is only one of the two independent solutions.
- For complex roots the exponential factor e^{αx} stays; the trigonometric part uses β only.
- When fitting y′(0), use the product rule on (C₁ + C₂x)e^{mx}.
Key takeaways: form m² + am + b = 0 and classify the roots by the discriminant a² − 4b: positive for distinct real roots, zero for a repeated root, negative for complex roots. Write the matching solution, then use y(0) and y′(0) to find C₁ and C₂.
Check your understanding
-
1. The general solution of y″ − 5y′ + 6y = 0 is:
- y = C₁e^{2x} + C₂e^{3x}
- y = C₁e^{−2x} + C₂e^{−3x}
- y = C₁eˣ + C₂e^{6x}
- y = (C₁ + C₂x)e^{2x}
Show answer
Answer: A. The auxiliary equation m² − 5m + 6 = (m − 2)(m − 3) = 0 has roots 2 and 3. The roots are positive because the middle coefficient is −5.
-
2. The general solution of y″ + 6y′ + 9y = 0 is:
- y = (C₁ + C₂x)e^{3x}
- y = (C₁ + C₂x)e^{−3x}
- y = C₁e^{−3x} + C₂e^{3x}
- y = C₁e^{−3x} + C₂e^{−9x}
Show answer
Answer: B. m² + 6m + 9 = (m + 3)² has the repeated root −3, so the solution is (C₁ + C₂x)e^{−3x}.
-
3. The auxiliary equation of y″ + 4y′ + 13y = 0 has roots:
- 2 ± 3i
- −2 ± 9i
- −2 ± 3i
- −4 ± 3i
Show answer
Answer: C. m = [−4 ± √(16 − 52)]/2 = (−4 ± 6i)/2 = −2 ± 3i.
-
4. The solution of y″ + 9y = 0 with y(0) = 2 and y′(0) = 6 is:
- y = 2 cos 3x + 6 sin 3x
- y = 6 cos 3x + 2 sin 3x
- y = 2e^{3x} + 2e^{−3x}
- y = 2 cos 3x + 2 sin 3x
Show answer
Answer: D. The general solution is C₁ cos 3x + C₂ sin 3x. y(0) = C₁ = 2, and y′(0) = 3C₂ = 6 gives C₂ = 2.
-
5. A second-order equation whose auxiliary equation has roots 1 and −4 is:
- y″ − 3y′ − 4y = 0
- y″ + 3y′ − 4y = 0
- y″ + 3y′ + 4y = 0
- y″ − 5y′ + 4y = 0
Show answer
Answer: B. (m − 1)(m + 4) = m² + 3m − 4, so the equation is y″ + 3y′ − 4y = 0. The sum of the roots is −3, so the coefficient of y′ is +3.
Sign in to keep track of the lessons you finish.