Second-Order ODE with Real Distinct Roots
Problem
Solve y'' - y = 0. Find characteristic roots r = plus or minus 1 and write the general solution y = C1 e^x + C2 e^(-x). Show both exponential modes and their hyperbolic-function recombination.
Explanation
Setup
The ODE is the simplest "two real roots, opposite signs" example. It also happens to be the defining equation of the hyperbolic functions and , so there's more structure here than meets the eye.
Step-by-step solution
Step 1 — Characteristic equation.
Discriminant , two real distinct roots.
Step 2 — General solution.
Verification
So . ✓
The two exponential modes
Any solution decomposes uniquely into two modes:
- : the growing mode. drives exponential growth.
- : the decaying mode. drives exponential decay.
Every non-trivial solution eventually blows up (because the growing mode dominates) unless , in which case the solution decays to . Setting requires precisely the right initial conditions — it's the stable manifold of the saddle at the origin. This is the defining feature of a "saddle" fixed point: one direction attracts, the other repels.
Recombination into hyperbolic functions
and are one basis for the 2-d solution space. So are their sum and difference (halved):
So we can equivalently write with a linear rebasing of (, ).
When to prefer which basis?
- Exponentials are natural for IVPs with boundary at (growing / decaying behaviour explicit).
- Hyperbolics are natural for symmetric BVPs, e.g. (even solution → pick ).
Our ODE's solution space is one two-dimensional vector space; and are just two different bases.
Initial value problem
, .
Using the hyperbolic basis:
Using the exponential basis (equivalent):
Geometric picture — catenary and saddle
Catenary (hanging chain) is shaped like — solutions of with appropriate scaling. The mathematics of hanging cables, power lines, and arches all live in this one ODE.
In the phase plane the ODE becomes the 2D linear system Eigenvalues are — one positive, one negative — the classic saddle. Most initial conditions eventually go to ; only the 1-d stable manifold (the direction of mode) gets pulled in to .
Contrast with (the harmonic oscillator)
A sign flip gives , characteristic equation , roots . Pure imaginary roots ⇒ solutions are (bounded oscillation, see #184). Same machinery, but the sign of the discriminant flips us from exponentials-that-blow-up to pure oscillations.
Common mistakes
- Writing with a minus sign glued to . The constants are arbitrary — you don't need a sign in front, just absorb it into .
- Thinking exponentials and hyperbolics are different solutions. They span the same space; it's just a change of basis.
- Missing the stable/unstable split. For any saddle-type ODE there's a 1-d stable manifold of initial data that decays — worth finding explicitly.
Try it in the visualization
Slide independently and watch the two exponential modes add up. Toggle the basis to to see the same solution written differently — especially useful for symmetric initial data.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.