5.1 What is an ODE?
Before any trick or formula, let’s put a clear picture in your head.
An ordinary differential equation (ODE) is an equation that relates an unknown function to its derivatives. The classic example is the equation of motion for a mass on a spring,
which says: the acceleration of is proportional to the current displacement, with a minus sign. The unknown is not a number — it is a curve. Solving the ODE means finding which curves satisfy the equation.
ODEs are the language we reach for whenever a quantity changes in time, and the rate of change depends on the current state. Concretely:
- A capacitor discharging through a resistor — the current depends on the voltage across the capacitor.
- A radioactive sample decaying — the number of decays per second is proportional to how many atoms are left.
- A mass on a spring, a pendulum, a tuning fork — acceleration is proportional to position.
- A drug clearing from the bloodstream — concentration falls at a rate set by current concentration.
- A neuron’s membrane potential, a population of cells, the displacement of a basilar-membrane segment.
All of those obey the same family of ODEs we are about to learn. The point of this chapter is that once you can solve a small handful of them — exponential decay, simple harmonic motion, damped oscillation, forced oscillation — you can read off the behaviour of nearly any linear physical system on the bookshelf.
An ODE is a slope field
Here is the picture worth keeping in mind, before any solving happens. A first-order ODE in the form
is just a slope field. At every point in the plane, the right-hand side gives you a number — the slope of at that point. The equation, viewed this way, is a map: here is how steeply would be changing if it passed through this point.
Solutions are curves that thread through the field tangentially — wherever they go, they follow the local slope.
Slopes are proportional to x with a minus sign. All trajectories curve toward x = 0 — the single stable equilibrium.
Click anywhere in the plot to launch a trajectory from that initial condition.
Pick a field. Click anywhere in the plot to drop an initial condition and watch the solution thread out from it. (The trajectories are computed numerically by RK4 — Foundations 10.2 covers the algorithm.) The three presets are:
- Linear decay — slopes are proportional to with a minus sign. Trajectories curve toward zero from above and from below.
- Logistic — a nonlinear case. Two equilibria: (unstable) and (stable). Trajectories above climb up to ; those below run away.
- Time-varying — slopes depend on both and . There is no single equilibrium; trajectories settle onto a periodic attractor that tracks the forcing.
Two things to take away. First, the equation and the picture are the same thing. Knowing everywhere is knowing what every solution must locally do. We do not need a formula to draw the field. Second, the picture is general — it works for nonlinear ODEs (the logistic preset) and time-varying ones (the forced preset), not only for the constant-coefficient linear ones we are about to focus on. The rest of the chapter gives us explicit formulas for the threading curves, but the picture itself exists first, no algebra required.
Order: what the number means
When we say a “first-order” or “second-order” ODE, we are counting derivatives. The order of an ODE is the highest derivative that appears in it. First-order equations contain but no higher derivatives; second-order equations also contain ; -th order goes up to .
Order is the single most important descriptor of an ODE because it controls three connected things — the physics, the mathematics, and the bookkeeping of initial data.
Physics. A first-order system has no inertia. Its full state is captured by one number (its current value), and how fast that number changes depends only on its current value. A capacitor discharging, a radioactive sample, a drug clearing — these all fit. A first-order system cannot oscillate. Once it reaches equilibrium it stops; there is no “momentum” to overshoot with.
A second-order system has inertia — two pieces of state (position and velocity), and momentum carries it through equilibrium. Anything that can oscillate is at least second-order: a mass on a spring, a pendulum, an LC circuit, every acoustic resonance, the cochlear filter at each place on the basilar membrane.
Mathematics. For a linear ODE with constant coefficients, the order is the degree of the characteristic polynomial — the key idea we’ll meet in 5.2 — First-order linear ODEs. An -th order linear ODE produces an -th-degree polynomial in , hence roots, hence linearly-independent solutions, hence free constants in the general solution.
Bookkeeping. To pin down a unique solution out of that family you need pieces of initial data — one per free constant.
| Order | What’s in the equation | Free constants | Initial data needed | Typical examples |
|---|---|---|---|---|
| 1st | only | 1 | RC discharge, simple decay or growth | |
| 2nd | also | 2 | and | mass-spring, LC circuit, pendulum, every acoustic mode |
| -th | up to | values at | rarely needed; same machinery |
We focus on first- and second-order because that is where every interesting acoustic and biological system on the bookshelf lives. The next lesson — 5.2 — First-order linear ODEs — begins with the simplest non-trivial case.