Math Insight

Applet: Lotka-Volterra model, with functions of time and population display

Illustration of the solution to the predator-prey system \begin{align*} \diff{r}{t} &= \alpha r - \beta r p\\ \diff{p}{t} &= - \gamma p + \delta r p\\ r(t_0) &= r_0\\ p(t_0) &= p_0 \end{align*} for the population sizes $r(t)$ of prey and $p(t)$ of predators at time $t$. The left panel shows plots of the solutions $r(t)$ (blue curve) and $p(t)$ (red curve) as functions of time. The initial conditions $r_0$ and $p_0$ can be changed by dragging the blue and red points on the line $t=t_0$ or by typing values in the corresponding boxes. Green points on the blue and red curves illustrate particular values of $r(t)$ and $p(t)$ for the value of $t$ shown on the green slider. You can change $t$ by dragging the green point on the slider, the green points on the blue and red curves, or by clicking the play button (triangle) in the lower left corner of one of the panels, which starts an animation where $t$ increases steadily. The values of $r(t)$ and $p(t)$ for the value of $t$ on the green slider are displayed at the top and are illustrated by the number (capped at 10,000) of blue points (prey individuals) and red diamonds (predator individuals) shown in the right panel. The Greek letters $\alpha$, $\beta$, $\gamma$, and $\delta$ are parameters that can be changed by typing values in the boxes. The maximum values of $r$ and $p$ that are shown in the plots as well as the range of times $t_0 \le t < t_f$ can be changed by typing values in their corresponding boxes.

Applet file: lotka_volterra_versus_time_population_display.ggb

Applet links

List of all applets

General information about Geogebra Web applets

This applet was created using Geogebra. In most Geogebra applets, you can move objects by dragging them with the mouse. In some, you can enter values with the keyboard. To reset the applet to its original view, click the icon in the upper right hand corner.

You can download the applet onto your own computer so you can use it outside this web page or even modify it to improve it. You simply need to download the above applet file and download the Geogebra program onto your own computer.