Predator–prey dynamics
About this app
Adjust Lotka–Volterra parameters and compare time series with phase space. Follow predator peaks lagging behind prey peaks in the model’s cycles.
The Lotka–Volterra model
The Lotka–Volterra model describes how a prey population and a predator population affect each other. For prey B, dB/dt = αB − βBR; for predators R, dR/dt = δBR − γR. Here α is the prey birth rate, β the predation rate, δ how efficiently predators turn prey into offspring, and γ the predator death rate. As a result both populations oscillate: plenty of prey lets predators increase, prey numbers fall, predators starve and prey recovers. The predator peak follows the prey peak with a delay.
What the app shows
One chart shows the numbers of prey (hares) and predators (foxes) over time, a second the phase portrait with prey on the horizontal and predators on the vertical axis. There the state moves along a closed loop around the equilibrium, marked with a cross. The app measures the phase lag between the peaks.
Things to try
Change the four parameters and watch how the period, the size of the swings and the position of the equilibrium shift. The presets standard, gentle and violent show typical cases. In the phase portrait, notice that the loop stays closed: in the ideal model neither species dies out and the oscillation does not fade.
Frequently asked questions
- Why does the predator peak lag behind the prey peak?
- Predators only multiply once there is enough prey, and that takes time. By the time predator numbers peak, the prey is already declining because so many are being eaten. This creates a phase shift: the two curves are never at their peak at the same time.
- Do predators wipe out their prey in the Lotka–Volterra model?
- No. In the ideal model both populations keep cycling on a closed loop around the equilibrium, and neither dies out. When prey numbers fall sharply, many predators starve too and predation pressure eases. Real populations are also shaped by other factors such as food, disease and chance.
- Where is the equilibrium in the Lotka–Volterra model?
- The equilibrium lies at B* = γ/δ prey and R* = α/β predators. There both rates of change are zero. The equilibrium prey number therefore depends only on predator parameters and vice versa, which often surprises people.
- What can I adjust in the Predator–Prey Dynamics app?
- You set prey birth rate, predation rate, predator efficiency, predator death rate and speed, or choose a preset. The time plot and phase portrait update live, and the app shows the phase lag between the peaks. Play, pause and reset control the simulation.
Subject: Biology (Gymnasium)
More from Biology (Gymnasium)
- Antigen & antibody
- Speciation through isolation
- Biological membranes
- Blood circulation and the cardiac cycle
- Genetic code wheel
- The inner clock: light, melatonin and the clock change
- The cell (3D)
- DNA double helix (3D)
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps