What is it?
An equation relating an unknown function to its derivatives, . Its solutions are trajectories: given where you start, the equation says where you go next — the mathematical model of anything that evolves in time.
Why does it exist?
Most laws of science are local in time: Newton's , radioactive decay, chemical kinetics, population growth. They do not give the state as a formula of but the rate at which it changes given the current state. ODEs are how those laws are written, and solving them is how predictions are made.
Intuition
Picture a slope field: at every point a tiny arrow with slope . A solution is a curve that is tangent to the arrows everywhere — like a leaf carried by a stream. Different starting points give different curves; the initial condition picks one.
Formal definition
An ODE of order : . Any order- ODE can be rewritten as a first-order system with (introduce ) — the form numerical solvers use.
Formulas
- Newton's law as a first-order system
Example
Cooling: . Solution . A CPU heat sink, a cup of coffee and an RC circuit obey the same equation.
Why does it matter?
Physics engines, circuit simulators (SPICE), epidemiological models, pharmacokinetics, orbital mechanics and control systems are ODE solvers wrapped in domain knowledge. In AI, neural ODEs make the network itself a differential equation, and diffusion models generate images by integrating one backwards in time.
Where it shows up in computing
A physics engine integrates , for every body, every frame.
Newton's second law is a second-order ODE.
Logistic growth, predator–prey and SIR epidemics are ODE models.
Plants and controllers are described by ODEs; control designs their closed-loop behaviour.
Where it shows up in AI
A neural ODE defines the hidden state by and calls an ODE solver as a layer.
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
What depends on it
Exercises
Rewrite as a first-order system.
Solution
With , : , .
A server room at 35 °C cools to 30 °C in 10 min with the AC at 20 °C. When does it reach 22 °C?
Solution
; . min.