How to calculate
Use the differential equations dx/dt = x(α − βy) and dy/dt = y(δx − γ). Integrate with adaptive fourth-order Runge Kutta steps and sample the solution at equal time intervals.
Worked example
Use Initial prey population 40 · Initial predator population 10 · Prey growth coefficient α (per time) 0.5 · Predation coefficient β (per predator per time) 0.05 · Predator mortality coefficient γ (per time) 0.4 · Predator growth coefficient δ (per prey per time) 0.01 · Simulation duration 20 · Output intervals (whole number) 40 · Chart Predators against prey (phase plot). The result is Prey 40 · predators 10.
Input and result notes
Use one time unit for all coefficients and duration. Populations follow a continuous model. The basic equations assume constant rates and omit carrying capacity, seasonality and migration. Extreme rates or long horizons can exceed the numerical solver’s supported range.
Jeffrey Chasnov’s mathematical biology chapter on predator prey equations