Ordinary Differential Equations
One clock, finitely many variables, and a rule for velocities: ODEs turn "how fast is each thing changing right now" into full trajectories.
Why Does This Exist?
Motion, growth, cooling, charging, and gradient flows all say how fast: velocity as a function of position and time. An ODE is that statement plus a starting point, and its solution is the whole future. Closed forms exist for a precious few (linear, separable, exact); everything else needs qualitative analysis or numerics. Neural ODEs, diffusion samplers, and continuous optimizers all integrate ODEs at scale, so the vocabulary of order, linearity, initial values, and steady states pays off far beyond the classroom. Integration technique is in definite and indefinite integrals; stepping rules get their own solver page.
The one idea you need first
with asks for the curve through whose slope at each instant equals . Order is the highest derivative present; linear means is affine in ; autonomous means no explicit .
Think of It Like This
A speedometer wired to the odometer
A car's speedometer is rigged to show speed based on the odometer reading and the clock: at mile and time , drive at miles per hour. Start at mile 0 at noon and just obey: the odometer traces one curve, fully determined by the wiring and the start.
Linear wiring (speed proportional to distance remaining) glides into the destination. A steady state is the mile where the dial reads zero: arrive and stop. Stiff wiring (violent corrections plus gentle drift) makes obeying with glances every minute overshoot wildly, which is why solvers care about stiffness.
Where the analogy stops: real ODEs couple many variables with their own wirings, and existence needs the wiring to not jump discontinuously.
How It Actually Works
First-order linear. falls to integrating factors: multiply by and the left becomes a total derivative. Constant-coefficient solves to for : exponential approach to when .
Separable and exact. splits as and integrates each side. Exact equations hide a potential whose level sets are solutions.
Systems and higher order. exponentiates the matrix; th-order linear ODEs become first-order systems in variables. Nonlinear systems linearize at equilibria for local stability.
Worked example
with . Steady state where : . With , :
At : , so . Velocity starts at (full throttle from 0), falls to by , and vanishes at 4: the curve climbs fast then flattens, the universal shape of stable linear approach.
Watch Out For
Expecting closed forms where none exist
Most nonlinear ODEs (pendulum at large angles, three-body, Lorenz) have no elementary solution: the integral that "solves" them is not expressible, and series or special functions only rename the difficulty. Time spent hunting a formula is time not spent on portraits or numerics.
Symptom: pages of substitutions circling back to the start equation. Fix: linearize for local behaviour, draw the phase line or portrait for global shape, and integrate numerically for numbers. Reserve analytic effort for linear, separable, and exact cases.
Ignoring stiffness when stepping
Decaying modes with rates and force explicit steppers down to the fast scale even after the fast transient dies: steps of to track a curve that barely moves. Any bigger step oscillates or explodes while the true solution sits calm.
Symptom: Euler or RK4 needs absurdly many steps on a smooth-looking problem, or blows up at innocent step sizes. Fix: detect stiffness (separated Jacobian eigenvalues with large negative real parts) and switch to implicit or exponential methods, as the solver page details.
The Quick Version
- ODEs solve velocity rules from starting values into trajectories.
- Linear constant-coefficient equations approach exponentially when .
- The worked equation climbs from 0 to 2.53 by toward steady state 4.
- Most nonlinear ODEs need geometry or numerics, not formulas.
- Stiff systems demand implicit steppers; explicit ones crawl or blow up.