MethodMath
DT
May 16, 2026

How to solve a second-order linear homogeneous ODE with constant coefficients?

I'm learning to solve ODEs of the form:

ad2ydx2+bdydx+cy=0a \frac{d^2y}{dx^2} + b \frac{dy}{dx} + c y = 0

I know the characteristic equation is ar2+br+c=0ar^2 + br + c = 0. But what determines which form the solution takes?

  1. If r1r2r_1 \neq r_2 (real distinct roots): y=C1er1x+C2er2xy = C_1 e^{r_1 x} + C_2 e^{r_2 x}
  2. If r1=r2r_1 = r_2 (repeated root): y=(C1+C2x)erxy = (C_1 + C_2 x) e^{r x}
  3. If roots are complex: y=eαx(C1cosβx+C2sinβx)y = e^{\alpha x}(C_1 \cos \beta x + C_2 \sin \beta x)

Why does the repeated root case have the extra xx factor? And what's a physical example of each case (e.g., damped harmonic oscillator)?

2 answers523 views
Loading comments...

2 Answers

KO
Kevin O'BrienMay 16, 2026 Accepted
The characteristic equation $ar^2 + br + c = 0$ comes from assuming $y = e^{rx}$. **Why the repeated root case has an extra $x$ factor:** When the characteristic equation has a repeated root $r$, we have one solution $y_1 = e^{rx}$. To find the second linearly independent solution, use reduction of order: Let $y_2 = v(x) y_1$. Substituting into the ODE eventually gives $v'' = 0$, so $v = C_1 + C_2 x$. This gives $y_2 = x e^{rx}$. Intuitively, the solutions are "merging" at the repeated root, and the $x$ factor represents the limit of two distinct exponential solutions as they approach each other. **Physical examples (damped harmonic oscillator):** $$m \frac{d^2x}{dt^2} + c \frac{dx}{dt} + kx = 0$$ - **Overdamped** (distinct real roots): $c^2 > 4mk$, system returns to equilibrium slowly without oscillating - **Critically damped** (repeated root): $c^2 = 4mk$, fastest return to equilibrium without oscillation (ideal for shock absorbers) - **Underdamped** (complex roots): $c^2 < 4mk$, system oscillates with decreasing amplitude The complex case gives $x(t) = e^{-\alpha t}(C_1 \cos \beta t + C_2 \sin \beta t)$, where $\alpha = c/(2m)$ is the damping coefficient and $\beta = \sqrt{4mk - c^2}/(2m)$ is the damped frequency.
Loading comments...
DP
Dr. Priya SharmaMay 16, 2026
For engineering applications, the second-order ODE with constant coefficients is everywhere: **Mass-spring-damper system:** $$m\ddot{x} + c\dot{x} + kx = 0$$ **RLC circuit:** $$L\frac{d^2i}{dt^2} + R\frac{di}{dt} + \frac{i}{C} = 0$$ These are exactly analogous — the math is identical, just the physical interpretation changes. The characteristic equation tells you everything about the system's natural response. **Practical tip:** In engineering, we usually write the ODE in standard form: $$\ddot{x} + 2\zeta\omega_n\dot{x} + \omega_n^2 x = 0$$ where $\omega_n = \sqrt{k/m}$ is the natural frequency and $\zeta = c/(2\sqrt{km})$ is the damping ratio. This makes the solution type immediately clear from $\zeta$: - $\zeta > 1$: overdamped - $\zeta = 1$: critically damped - $\zeta < 1$: underdamped
Loading comments...
Login or Register to post an answer