A Lotka-Volterra calculator studies a simple predator-prey model. Enter the four rates and the starting numbers of prey and predators, and it gives the equilibrium point, the period of the oscillations and the conserved quantity. It can also simulate the populations forward to a time you choose.
How to use the Lotka-Volterra calculator
- Enter the four rates: α, β, γ and δ.
- Enter the starting prey and predators.
- Optionally enter a time to simulate.
- Press Calculate.
The equations
The Lotka–Volterra model describes prey with density x and predators with density y by the pair dx/dt = αx − βxy and dy/dt = −γy + δxy [1]. The symbols are all positive: α is the maximum per-capita growth rate of the prey, β the effect of the predators on the death rate of the prey, γ the per-capita death rate of the predators and δ the effect of the prey on the growth of the predators [1]. Prey grow on their own and are eaten, while predators die unless they eat.
Equilibrium
The system has two equilibria. The origin, where both populations are zero, is a saddle. The other is (x*, y*) = (γ/δ, α/β) [1]. The page notes that the prey equilibrium depends only on the predator parameters and the predator equilibrium only on the prey parameters [1]. In the calculator's example, with α = 1.1, β = 0.4, γ = 0.4 and δ = 0.1, the equilibrium is 4 prey and 2.75 predators.
Oscillations
Around the equilibrium the populations cycle. The orbits are closed and elliptic, so the populations are periodic [1]. For small oscillations, the Jacobian at the equilibrium has eigenvalues ±i√(αγ), so the angular frequency is √(αγ) and the period is T = 2π ÷ √(αγ) [1]. For the example this is 2π ÷ √0.44, about 9.47 time units. Larger oscillations have a longer period, and the calculator's simulation shows it.
The conserved quantity
The model has a conserved quantity, V = δx − γ ln x + βy − α ln y, which stays constant along every orbit [1]. The calculator shows V at your starting point and, when you simulate, at the end, so that you can check that the numerical solution has not drifted. For the example, starting with 10 prey and 10 predators gives V = 1.546, which agrees with our own calculation with the formula.
The simulation
The calculator integrates the equations with the fourth-order Runge–Kutta method, using steps of 0.001 time units or smaller. That keeps V constant to many digits over a few cycles. The page's own example starts with 10 rabbits and 10 foxes per square kilometre, with rate values that appear in its figure as 1.1, 0.4, 0.4 and 0.1 [1]. The mapping of those numbers to α, β, γ and δ is our own reading of the caption, so check the page if it matters.
How the cycle works
When prey are plentiful, predators eat well and increase. More predators eat more prey, so the prey decline. With less food the predators decline, and the prey recover, and the cycle repeats. The prey peak comes before the predator peak. The calculator lets you change one rate and see how the equilibrium and period move: raising the predator death rate raises the prey equilibrium.
Limits of the model
The model is a simplification. It has no limit on prey growth, no delay and no randomness, and the orbits are neutrally stable, so a small push moves the system to a different cycle. Real populations are bounded by resources and are influenced by other species. Use the model to learn the ideas and not to forecast a real population.
Trying the model
Start with the equilibrium values and the populations do not change. Move the start a little away, for example to 5 predators and 4 prey in the example, and the populations begin to cycle. Make the starting point further away and the cycle becomes larger and more distorted, with the populations swinging to very low values. Each orbit has its own value of the conserved quantity, shown by the calculator.
Changing one rate at a time
Raise the predation rate β and the predator equilibrium α ÷ β falls, so there are fewer predators at the balance point. Raise the predator death rate γ and the prey equilibrium γ ÷ δ rises, because the predators eat less when they die faster. Raise the prey growth rate α and the predator equilibrium rises. These effects follow from the equilibrium formula, and the page notes that each equilibrium depends on only two of the parameters [1].
Reading the period
The period of small cycles depends on the product of the prey growth rate and the predator death rate, 2π ÷ √(αγ). Fast growth and fast death give short cycles. Slow rates give long ones. Because the formula is for small oscillations, the real period of a large cycle is longer, and the simulation lets you measure it by looking at when the prey return to their starting number.
Common mistakes
- Starting at the equilibrium and expecting motion. The populations stay put there.
- Using different time units for the rates. All four rates must share one time unit.
- Treating the period as exact for large cycles. The formula is for small oscillations.
- Forecasting real populations. The model is idealised.
What next
Use this often? Add Lotka-Volter to your Home screen.
Frequently asked questions
What is a Lotka-Volterra calculator?
A tool for the predator-prey model that finds the equilibrium and period and simulates the populations.
What are the Lotka-Volterra equations?
dx/dt = αx − βxy for the prey and dy/dt = −γy + δxy for the predators.
Where is the equilibrium?
At (γ/δ, α/β): the prey equilibrium depends on the predator parameters and the predator equilibrium on the prey parameters.
What is the period of the oscillations?
About 2π ÷ √(αγ) for small oscillations.
Do the populations settle down?
No. The orbits are closed, so the populations cycle indefinitely in this simple model.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.