Skip to content
AI360XpertBeta

Differential Equations Systems

Equations that say how things change become flows: follow the arrows and you get trajectories, equilibria, and the long-run fate of the system.

A decaying flow from 3 toward 0 shows trajectories following vector-field arrows into a stable equilibrium, reaching 0.41 at time 1 and 0.055 at time 2
A decaying flow from 3 toward 0 shows trajectories following vector-field arrows into a stable equilibrium, reaching 0.41 at time 1 and 0.055 at time 2

Why Does This Exist?

Machine learning trains by flows, samples by flows, and models time with flows. Gradient descent is a discretised flow down the loss. Diffusion models reverse a stochastic flow to generate images. Neural ODEs integrate a learned flow to handle irregular time series. Each case asks the same dynamical questions: where does motion stop, which stops attract, how fast, and what does discretisation break.

Differential equations write the local rule; dynamical systems study the global fate: equilibria, stability, cycles, and bifurcations. This page maps that territory. The single-variable rule family gets its own page in ODEs; how to step these rules on a computer is in numerical ODE solvers; whether equilibria attract or repel is in stability analysis.

The one idea you need first

x˙=f(x)\dot{x} = f(x) assigns every state an arrow f(x)f(x), where x˙\dot{x} means the rate of change of xx with time and f(x)f(x) is the rule giving that rate at state xx. A trajectory x(t)x(t) follows the arrows: it moves where the field points, fast where arrows are long. Fixed points sit where f=0f = 0; everything else is transit.

Think of It Like This

A landscape of streams after rain

Rain on hills runs downhill everywhere at once: each puddle's path follows the local slope, rivulets merge in valleys, and lakes sit where no slope remains. The slope rule is the differential equation; the full pattern of streams and lakes is the dynamical system.

A lake that pulls nearby water in is a stable equilibrium; a ridge crest shedding water both ways is unstable; a mountain pass is a saddle. Changing the landscape slowly can create or destroy lakes (bifurcation), and stepping downhill in big jumps can overshoot the lake entirely (what bad solvers do).

Where the analogy stops: real state spaces have many dimensions with cycles and chaos that no hillside shows, and stochastic systems add diffusion to the drift.

How It Actually Works

Rules. ODEs evolve finite states (dd variables, dd arrows). PDEs evolve fields (temperature at every point). Stochastic differential equations add noise to the drift. Delay equations and discrete maps change the clock itself.

Fates. Fixed points (f=0f = 0), limit cycles (isolated closed orbits), attractors (sets that pull neighbours in), basins (which starts drain where), bifurcations (qualitative change as a parameter moves). Chaos is bounded aperiodic motion with sensitive dependence: same rules, unpredictable addresses.

Analyses. Linearise at equilibria and read Jacobian eigenvalues (stability); draw portraits and nullclines (geometry); integrate numerically with step control (simulation); study conservation and Lyapunov functions (certificates that a fate really holds).

Worked example

Decay x˙=−2x\dot{x} = -2x from x(0)=3x(0) = 3. Separate and integrate: x(t)=3e−2tx(t) = 3e^{-2t}. At t=1t = 1:

x(1)=3e−2≈3×0.1353≈0.406x(1) = 3e^{-2} \approx 3 \times 0.1353 \approx 0.406

At t=2t = 2: x(2)=3e−4≈3×0.0183≈0.055x(2) = 3e^{-4} \approx 3 \times 0.0183 \approx 0.055.

The fixed point is 00 (where −2x=0-2x = 0), and linearisation gives −2<0-2 < 0, so it is stable: every start drains to it, fast early (arrow −6-6 at x=3x = 3) and slow near (arrow −0.8-0.8 at x=0.4x = 0.4). Each unit of time removes nine-tenths of the remaining distance — the signature of linear stability.

Code

Euler stepping on the worked example, against the analytic answer. Ten steps of 0.10.1 multiply by 0.80.8 each time, so x=3×0.810≈0.322x = 3 \times 0.8^{10} \approx 0.322 against the true 0.4060.406: even a stable equation with a reasonable step carries visible error, which is why step control matters.

import math
analytic = 3 * math.exp(-2 * 1)  # decay solution at t = 1print(round(analytic, 3))          # -> 0.406
x, dt = 3.0, 0.1for _ in range(10):    x += dt * (-2 * x)             # Euler step on dx/dt = -2xprint(round(x, 3))                 # -> 0.322  undershoots the true 0.406

Watch Out For

Assuming solutions exist, stay unique, and follow the picture

With rough ff (square roots, absolute values, switches), trajectories can branch, merge, or refuse to start: uniqueness needs Lipschitz continuity, and existence needs tamer growth than textbooks admit. Switching controllers in ML live exactly in this rough regime.

Symptom: solvers disagree qualitatively (one sticks at zero, another leaves), or adaptive steppers shrink to zero near a kink. Fix: check Lipschitz continuity at equilibria and switches, smooth or regularise the kink, and distrust any portrait drawn through a non-Lipschitz point.

Confusing the flow with its discretisation

The ODE can be stable while Euler with a big step oscillates or explodes: stability regions belong to the method, not the equation. Stiff systems (fast and slow modes together) punish explicit steppers hardest.

Symptom: shrinking the step flips the answer from blow-up to calm, or implicit methods succeed where explicit ones die at any step. Fix: match the solver to stiffness (implicit or exponential integrators), respect step bounds from the fastest mode, and test refinement before believing any simulated fate.

The Quick Version

  • Differential equations write local arrows; dynamical systems study where following them leads.
  • Fates include fixed points, cycles, attractors, basins, bifurcations, and chaos.
  • Decay from 3 under x˙=−2x\dot{x} = -2x reaches 0.41 at t=1t = 1 and 0.055 at t=2t = 2, toward the stable point 0.
  • Euler with step 0.1 reaches only 0.322 at t=1t = 1: discretisation error is real even when stable.
  • Existence and uniqueness need Lipschitz rules; switches break naive pictures.
  • Discretisation has its own stability: match the solver to stiffness and refine.