← All animations

🦊 Predator & Prey

Foxes eat rabbits. More rabbits feed more foxes; more foxes leave fewer rabbits; fewer rabbits starve the foxes — and then the rabbits bounce back. Left alone, the two populations don't settle down: they chase each other around an endless boom-and-bust cycle, forever out of step. The Lotka–Volterra equations capture this with just four numbers. Scroll through to watch the cycle, see it close into a loop, and meet its individual-level twin.

1. The boom-bust cycle — two populations over time

Each instant the equations say how fast each population changes: dR/dt = αR − βRF  ·  dF/dt = δRF − γF Rabbits (R) breed on their own at rate α but are eaten on meetings (rate β); foxes (F) die off at rate γ but gain new cubs from each meal (efficiency δ). The result is a sustained wave — and the fox peak always arrives after the rabbit peak.

Rabbits (prey) Foxes (predators) peaks (predator lags prey)
period ≈ —

2. The phase-space view — a loop that goes round and round

Now plot foxes against rabbits instead of against time. The cycle is no longer a wave — it's a closed loop traced over and over (a limit cycle). Start from a different mix and you get a nested loop sitting inside or outside the others — the system never spirals in or out, it just circles. Click anywhere in the plot to launch a new orbit from that starting point.

click to seed a new starting point orbits: 0

The smooth curves are an average. Underneath, the same cycle emerges from individuals: here every dot is one animal — rabbits wander and breed, foxes hunt any rabbit they bump into (gaining energy to reproduce) and starve when they don't. No equation is imposed; the boom-bust rhythm appears on its own from these local rules.

🐰 0 · 🦊 0

This isn't only theory. The Hudson's Bay Company logged snowshoe-hare and Canada-lynx pelts for nearly a century — and the records show exactly this lagged, cyclic dance (~10-year period), one of ecology's most famous datasets:

Snowshoe hare (prey) Canada lynx (predator) Real ecosystems add carrying capacity, noise & chaos — the clean closed loop is an idealisation.

3. What's going on — in words

Two coupled population equations

The model tracks two numbers, prey R and predators F, that depend on each other: dR/dt = αR − βRF and dF/dt = δRF − γF. The αR term is unchecked prey breeding; the βRF and δRF terms are meetings — encounters scale with the product R·F, so they couple the two equations together. That coupling is what makes the dynamics interesting rather than a pair of simple exponentials.

Why the predator peak lags the prey peak

Foxes can only grow after there are plenty of rabbits to eat, so the fox population keeps rising while rabbits are already falling — and only turns over once the rabbits have crashed. By the time foxes peak, their food is gone, so they crash too; the rabbits, now un-hunted, recover, and the whole thing repeats. The predator curve is the prey curve shifted later in time — roughly a quarter cycle behind.

It cycles forever (in the math)

The pure Lotka–Volterra system conserves a quantity, so a starting mix returns to itself exactly: in phase space the trajectory is a closed orbit, not a spiral. Amplitude is set by where you start; the period and shape are set by α, β, γ, δ. Bigger birth or predation rates make the cycle faster and wilder.

What the model leaves out

Real prey can't breed without limit — add a carrying capacity and the perfect loop spirals into a steady state. Add a third species, seasonality, time delays or random shocks and you can get damping, drift, or full-blown chaos. Lotka–Volterra is the simplest skeleton of predator–prey dynamics — beautiful, instructive, and deliberately idealised.