Lotka–Volterra Model
The Lotka–Volterra equations model predator–prey dynamics. More prey helps predators grow; more predators reduce prey; the cycle repeats.
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
Prey grow exponentially when alone, but are reduced by encounters with predators.
Predators decline without prey, but grow by consuming prey.
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.