The equation and the magic guess
You have a second-order ODE that looks like this:
Think of this as a rule about some unknown curve \(y(x)\): its acceleration \((y'')\), velocity \((y')\), and position \((y)\) must always mix together to give zero. Like a spring: the further it stretches, the harder it pulls back.
So we guess \(y = e^{rx}\) for some unknown \(r\). Then:
Plug into the ODE:
Factor out \(e^{rx}\) — it's always positive, so it's never zero, we can divide it away:
A differential equation has become an algebra problem. That's the whole trick. Now we just solve for \(r\) using the quadratic formula:
The term \(\Delta = b^2 - 4ac\) under the square root is called the discriminant. It's the fork in the road — everything depends on its sign.
The Wronskian \(W = y_1 y_2' - y_2 y_1'\) is how we check that two solutions are genuinely different — not the same solution wearing a disguise. If \(W \neq 0\), we're good.
Distinct real roots
The discriminant is positive, so the square root gives a real number. You get two different real values \(r_1\) and \(r_2\).
Each root gives a valid solution on its own:
Because the ODE is linear (no \(y^2\), no products), any mixture of valid solutions is also valid. The general solution is:
Wronskian check
Are these two solutions genuinely different, or are they secretly the same thing?
Since \(r_1 \neq r_2\), the factor \((r_2 - r_1) \neq 0\), and exponentials are never zero. So \(W \neq 0\). They're independent. ✓
\(y'' - 5y' + 6y = 0\)
Complex roots
When \(\Delta < 0\), the square root gives an imaginary number. The roots come out as a conjugate pair:
This gives two complex solutions \(e^{(\alpha+\beta i)x}\) and \(e^{(\alpha-\beta i)x}\). They're valid, but complex-valued. We want real solutions.
Euler's formula is the translation dictionary between complex exponentials and trig:
Complex exponentials and sines/cosines are the same thing — just written differently.
Expand the complex solutions using Euler's formula:
Both are real, both are valid solutions. Wronskian (after product rule expansion):
Since \(\beta \neq 0\) (the roots are genuinely complex), \(W \neq 0\). They're independent. The general solution:
\(y'' + 4y = 0\)
Repeated root
When \(\Delta = 0\), the quadratic gives only one root: \(r = -b/(2a)\). We have \(y_1 = e^{rx}\). But we need a second, independent solution.
Reduction of order — where \(xe^{rx}\) comes from
Instead of guessing a fixed form, we ask: what if the amplitude in front of \(e^{rx}\) is allowed to slowly drift? In other words, assume:
where \(v(x)\) is some unknown function. Differentiate (product rule):
Plug into the ODE and factor out \(e^{rx}\):
Group the terms by what's multiplying \(v''\), \(v'\), and \(v\):
Both the \(v'\) and \(v\) terms vanish. We're left with the simplest possible ODE:
Integrate twice:
The simplest non-trivial choice is \(v = x\), giving \(y_2 = xe^{rx}\). Wronskian:
Independent. The general solution:
Geometrically: \(e^{rx}\) and \(xe^{rx}\) are genuinely different shapes. One is a pure exponential; the other is an exponential that also climbs linearly. No constant multiple can turn one into the other.
\(y'' - 4y' + 4y = 0\)
Summary
Every case flows from the same single idea: guess \(y = e^{rx}\), turn the ODE into the quadratic \(ar^2+br+c=0\), and read off the behavior from \(\Delta\).
| Δ | roots | general solution | physical behavior |
|---|---|---|---|
| > 0 | two real \(r_1 \neq r_2\) | \(C_1 e^{r_1 x} + C_2 e^{r_2 x}\) | grow and/or decay |
| < 0 | \(\alpha \pm \beta i\) | \(e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x)\) | oscillation ± envelope |
| = 0 | one repeated \(r\) | \((C_1 + C_2 x)e^{rx}\) | knife-edge: exponential × linear ramp |