Math

Lotka–Volterra Model

The Lotka–Volterra equations model predator–prey dynamics. More prey helps predators grow; more predators reduce prey; the cycle repeats.

7 minLevel 3/3The interactive stage stays ad-free.
Day0.0Prey10.0Predator5.0Peak prey15.3

Prey grow on their own but are eaten by predators. Predators decline without prey but grow by eating. The delayed feedback creates cycles: predator peaks follow prey peaks, then prey crash and predators follow. Changing α or γ changes the cycle’s shape and period.

What you are seeing

1

Prey grow exponentially when alone, but are reduced by encounters with predators.

2

Predators decline without prey, but grow by consuming prey.

3

The coupled equations produce oscillations. The phase portrait shows closed loops around a fixed point.

Why it matters

Lotka–Volterra is a foundational model in ecology and dynamical systems, and a clean example of coupled nonlinear ODEs.

Complexity & details

Each RK4 step costs O(1). Simulating T time units with step h costs O(T/h).

Frequently asked questions

Why do the populations oscillate?+

Each population feeds back on the other with a delay. Predators peak after prey, then prey crash, then predators crash, allowing prey to recover.

Are the cycles stable?+

In the classic model, trajectories are closed loops; the amplitude depends on the initial condition. Adding friction or saturation can change this.