5.2 First-order linear ODEs
We begin with the simplest non-trivial differential equation in physics. It has one derivative, one unknown function, and one parameter — and yet it is the model for an astonishing range of phenomena. By the end of this lesson you’ll know how to solve it, why the solution is an exponential, and how the single trick that handles it actually generalises to every linear ODE we’ll meet in this chapter.
The general form
A first-order linear ODE with constant coefficients looks like
where is a constant and is a given forcing function — some external signal or driving that pumps into the system. If we call the equation homogeneous, and that is where we begin. Setting and gives
In words: the rate of change of is proportional to itself, with a negative sign. If is positive, it shrinks; if negative, it grows back toward zero. Either way, the larger is, the faster it heads home.
Slide and watch the steepness change. The solution — which we’ll derive in a moment, but might as well show now — is
with the initial value. The constant
is the time constant: the time it takes the curve to fall by a factor of . The dashed lines in the plot mark and .
Where this equation shows up
Exponential decay is everywhere because it describes the most generic possible loss process — a rate proportional to what is left. A short, incomplete tour:
- RC circuit discharge. A capacitor of capacitance discharging through a resistor of resistance has voltage satisfying . The time constant is .
- Newton’s law of cooling. A hot body in a cool room loses heat at a rate proportional to the temperature difference: . The substitution converts this to — exactly our equation.
- Radioactive decay. A sample of unstable atoms decays at rate : . The half-life is a rescaled time constant.
- First-order chemical reactions. The concentration of a reactant in a unimolecular reaction obeys .
- Drug clearance. Plasma concentration of a drug eliminated by first-order kinetics follows ; the half-life is the pharmacologist’s analogue of the time constant.
- Membrane voltage at rest. A passive neuronal membrane disturbed from rest relaxes back according to , with the membrane time constant.
Each of those systems has a different physical meaning for — a leak rate, a cooling rate, a half-life — but the mathematics is identical. Recognising “this is exponential decay” instantly tells you the time constant, the asymptotic value, and the qualitative behaviour. That recognition pays off again and again across the rest of the bookshelf.
The trick that solves every linear ODE
How did we know to try as the solution? We didn’t, exactly — we guessed. Substitute the ansatz for some unknown number into the equation:
For this to hold at all , the exponential factors on both sides cancel, leaving
So works. By linearity, any constant multiple of it works too — and is the unique solution that matches the initial condition .
That guess-an-exponential move is the characteristic-equation method, and it works for every linear ODE with constant coefficients. The recipe is the same four steps every time:
- Write the ODE.
- Substitute .
- The exponentials cancel and you are left with an algebraic equation in — the characteristic equation.
- Solve for . Each root gives one solution , and the general solution is the linear combination.
That is it. We’ve just demoted “solving an ODE” to “solving a polynomial,” which is to say to high-school algebra.
If you’ve never seen the recipe spelled out at full granularity, the collapsible block below walks it through on a concrete numerical example, one elementary step at a time, with the why attached to every move.
▶ Worked example: every step, no shortcuts
The problem. Solve
Find the function that satisfies the equation for all and also matches the initial value .
Step 1 — Write down the ansatz. “Ansatz” is German for educated guess. Based on the recipe, we propose that the answer has the form
where is an unknown constant we are about to solve for. The whole point of the trick is to defer committing to a specific value of and see what the equation forces it to be.
Step 2 — Differentiate the ansatz. The chain rule gives
The factor of comes down out of the exponent because has derivative with respect to . This is the reason exponentials are the magic ansatz for linear constant-coefficient ODEs: differentiating an exponential gives you back the same exponential, multiplied by a constant. The structure of the equation is preserved under differentiation.
Step 3 — Substitute into the ODE. Plug both and into the equation :
Step 4 — Factor out the exponential. Both terms on the left share the factor . Pull it out:
Step 5 — Cancel the exponential. For the product on the left to be zero, either or . But is never zero — the exponential function is strictly positive for any real exponent, and even for complex exponents it has magnitude . So that factor cannot be what is making the product vanish. The only way the equation can hold is
This is the characteristic equation for our ODE. Notice what just happened: we went from an equation about a function (the ODE) to an equation about a single number (). The function-level structure has been absorbed into the algebra.
Step 6 — Solve for . Trivially:
Step 7 — Write the candidate solution. Plug back into the ansatz:
This is one function that satisfies the ODE. Check by direct substitution: , and . ✓
Step 8 — Promote to the general solution using linearity. The ODE is linear, so for any constant the function also satisfies it. Verify: and . ✓ This is the general solution — a one-parameter family of curves, with free:
It’s a one-parameter family because the ODE is first-order and “free constants order” (from 5.1). For a second-order ODE we’d get a two-parameter family.
Step 9 — Apply the initial condition. We were given . Evaluate the general solution at :
So .
Step 10 — Write the final answer.
Step 11 — Sanity-check the answer. Three quick checks:
- Initial condition. . ✓
- ODE itself. , and . ✓
- Qualitative shape. The coefficient in is positive, so and the system should decay with time constant . At the answer should be . Check: . ✓
That is the entire recipe. Eleven steps and we never had to know a single thing about ODEs beyond the shape of the ansatz. The recipe scales without modification to second- and higher-order linear ODEs — only steps 5–6 get more interesting, because the characteristic equation becomes a quadratic or higher-degree polynomial with more (and possibly complex) roots to combine. We’ll see that play out in 5.3.
The carousel below walks the same recipe across seven increasingly rich examples — including the second-order cases we’ll work through properly in 5.3.
One real negative root → pure exponential decay.
Click through. Watch how the qualitative shape of the answer falls directly out of where the root lives in the complex plane. (For higher-degree characteristic polynomials, finding becomes a numerical root-finding problem — see Foundations 10.6.)
- One negative real → exponential decay (this lesson).
- One positive real → exponential growth (unstable; e.g. unbounded chain reactions).
- Pure-imaginary → pure sinusoidal oscillation (SHM, the first stage of 5.3).
- Complex → sinusoid inside a decaying envelope (damped oscillation).
- Two distinct real negative roots → sum of two decay rates (overdamped).
- Two distinct real roots of opposite signs → one grows, one decays (saddle; unstable except for a special initial line).
- A repeated real root → the second solution gains a factor of : . This is critical damping.
The last case is the one worth flagging here, because it looks like an exception to the recipe. When the characteristic polynomial has a double root, the recipe yields only one exponential — but a second-order ODE must have a two-parameter family of solutions. The missing piece turns out to be , which you can verify by substitution. The “critically damped” regime of the damped oscillator is precisely this case, and we’ll meet it concretely in 5.3.
The central fact about linear constant-coefficient ODEs is in that bullet list: the character of the solution is encoded entirely in the position of the roots in the complex plane. The next lesson takes us from one root (first-order) to two roots (second-order), where the action gets interesting.