Models of interacting populations: prey-predator¶
The Lotka-Volterra model¶
In this model we consider two populations: the population of prey and the population of predators. Prey and predators can be reproduced by the birth process. Population of prey is described by the function \(N=N(t)\) and population of predators - by \(P=P(t)\). As in the Malthus model the rate of change of populations is the birth and death process:
where the parameter \(a\) characterizes the birth of prey, \(b\) corresponds to the death process of prey, \(c\) describes the birth process of predators and finally \(e\) corresponds to the death process of predators.
We assume that the death rate \(b\) of prey depends upon the population of predators: If there is a greater number of predators \(P\) then \(b\) should be greater. In the simplest modeling we assume that it is a linear function, i.e.,
where \(b_0\gt 0\) is a new parameter related to the death rate of prey. Next, we assume that \(C\) depends on the population \(N\) of prey: If there is a greater number of prey then the birth rate of predators is greater, i.e.,
where \(c_0 \gt 0\) characterizes the birth rate of predators. Under these assumptions, the model reads
All parameters in this model are positive. This model was introduced by V. Volterra in 1926 to describe population of fish. In 1920 A. J. Lotka considered a similar equation to describe kinetics of some chemical reactions. Therefore this model is called the Lotka-Volterra one. There are 4 parameters. Haw many relevant parameters are in this model? To answer this questions we have tp transform the set of two equations to the dimensionles form. We introduce the following new resclaed variables for populations: b
and dimensionless time (similarly as in the Verhulst model):
In the new variables the Lotka-Volterra set of equations is transformed to the form
We note that only 1 relevant parameter occurs, i.e., \(\alpha = e/a \gt 0\). It is the ratio of the death rate of predators \(e\) to the birth rate of prey \(a\). The scaling procedure allowed to eliminate irrelevant parameters of the model. There is only one relevant parameter \(\alpha\). In consequence, solutions of the Lotka-Volterra system depens on this parameter and initial conditions \([x(0), y(0)]\).
Stationary states of the system¶
Stationary states of the system are determined by a set of 2 algebraic equations:
Hence we obtain two pairs of states:
Stability of the stationary states¶
In the first step we have to calculate the Jacobi matrix:
Next, we calculate it for the stationary points:
We have to calculate the eigenvalues of the Jacobi matrix \(|J-\lambda I|=0\):
C1. For \((0, 0)\) we get:
\(\lambda_{01} = 1,\quad \lambda_{02} =- \alpha\).
This state is unstable because one of the eigenvalues is positive \(\lambda_{01} \gt 0\). An arbitrary small perturbation causes the escape from this state.
C2. For \((1, 1)\) we get:
\(\lambda_{11} = i \sqrt{\alpha}, \quad \lambda_{12} = -i\sqrt{\alpha}\).
Two eigenvalues are imaginary. Therefore this state is stable but not asymptotically stable. An arbitrary small perturbation causes the creation of a new time-dependent asymptotic state which is in the vicinity of \((1, 1)\) but does not tends to \((1, 1)\).
Phase curves¶
We will obtain the phase trajectories or phase curves, i.e. the curves on the plane \((x, y)\). The phase curves are given by the parametric relation \((x(t), y(t))\). To get its form, we devide the second equation by the first equation in the set of two Lotka-Volterra equations. As a result, one has:
It is a differential equation of the first order. It can be solved by the method of variables separation:
The integration of both sides of this equation yields:
where \(H_0\) is the integration constant. Its value is determined by initial conditions \((x(0), y(0)\). The minimal value is for the initial conditions \((x(0)=1, y(0)=1)\)> we insert these value to the above equation and get \(H_0 = 1+\alpha\). The explicit dependence of the integration constant on initial condition reads:
In a figure we present few phase curves for selected \(H_0\) corresponding to different initial conditions shown as red dot. . Because the relation between \(y\) and \(x\) is an implicit equation its graphical realization can be obtained by using of SAGE in the following way:
Experiment with Sage!
Investigate how parameters: initial condition \(x_0,y_0\) and \(\alpha\) change phase curves of the Lotka-Volterra system.
First, we note that the phase curves are closed. It means that the solutions are periodic (oscillatory) functions of time. Secondly, the increase of \(H_0\) causes the increase of amplitude of oscillations. Below we demonstrate it solving numerically the set of Lotka-Volterra equations.
Time evolution in Lotka-Volterra systems¶
The time dependence of \(x(t)\) and \(y(t)\) can easily be obtained using the SAGE:
Let us note that maxima of \(y(t)\) (population of predators) are delayed to maxima of \(x(t)\) (population of prey). It seems to be obvious: if predators have much food their birth rate grows but in turn it leads to the decrease of the prey number. In consequence the access to food is limited for predators. It causes the lower birth rate for predators and larger growth rate for prey. In turn, food resorces for predators are greater and their growth rate increases. The cycle starts to repeat.
What is the relation between \(H_0\) and the period of oscillations? Below we show the influence of initial conditions (i.e. \(H_0\)) on the oscillations period. We can plot several timeseries with Sage and draw some conclusions.
Experiment with Sage!
Investigate how the initial condition (i.e. integration constant) change phase the frequency of oscillations.
However, it is better to determine the period numerically from the solution and
We conclude that if the phase curve is boarder i.e. \(H_0\) increases, then amplitude and the oscillations period is growssmaller as well.
More realistic: the May model¶
In the Lotka-Volterra model there is one stable (but not asymptotically) stationary state. When at the intial time \((x(0)=1, y(0)=1)\) then at any time \(x(t)=1\) and \(y(t)=1\) is a solution of the Lotka-Volterra equations. The small perturbations destroy this state and small oscillations appear. Frequently another behavior is observed: If the system is perturbed from sthe stationary state it returns to the previous state. Then we say that the system is structurally stable. This feature is absent in the Lotka-Volterra system. We remind that this system is a modification of the 2-dimenional Malthus model:
in which the birth and death processes are modeled in the simplest way. From our experience with other models presented hitherto we can modify the above model in the following way:
In the equation for \(N\) we add the part from the Verhulst model and add saturation effects from predations like in the Ludwig model with the Hill function:
In the equation for \(P\) we include the Verhulst term:
Therefore in the second equation we obtain
We assume that \(s=c_0-e \gt 0\). The re-scaled parameter \(K_1 = K_0 (1-e/c_0).\)
The parameter \(K_1\) modeling the carrying capacity for predators is proportional to a number of prey \(K_1=h_0 N\) (\(h_0 \gt 0\) is a proportional constant). Finally we get
where the new parameter \(h=1/h_0\).
Taking into account the above considerations we arrive at the following set of equations ( (R. May, Models for two interacting populations, in Theoretical Ecology. Principles and Applications, 2nd edition (ed. R. May), 1981, 78-104).
There are 6 parameters: \(r, K, b_0, D, s, h\). All parameters are positive. How many relevant parameters are in this model? Again, to answer this question we have to transform the set of equations to the dimensionless form. How to do this? We have experience with previous models and therefore we define new variables:
We insert \(N=K x\) to the expression for \(P\). We see that the second variable can be scaled as:
Then we obtain:
where we have defined the following dimensionless parameters:
This scaling procedure leads to a set of two differential equations with only three parameters. The dimensionless time is scaled to the reproducing rate \(r\) of prey. The parameter \(\beta\) is the relation of the reproducing rate of predators \(s\) to the reproducing rate of prey \(r\). If \(\beta \lt 1\) then the reproducting tempo of predators is smaller than prey and therefore the prey population can survive. On the other hand, f \(\beta \gt 1\) then the reproducting tempo of predators is greater than for prey and therefore the prey population can become extinct (can fail to survive). But because the set of two equations is nonlinear, such simplified considerations cannot be fully true. We have to use precise mathematical methods to check this.
Stationary states¶
Stationary states are determined by a set of two algebraic equations:
One stationary state can easily be found:
In theis state there are no predators and the state of prey is the same as in the Verhulst system. We should check whether this stse is stable.
From the second equation we find that \(y=x\) solves this equation. We put it in the first equation and then the other stationary states are determined by the equations:
From the second equation we obtain the condition:
It is a trinomial square and we take into account only non-negative solutions of this equation, \(x \ge 0\). Discriminant is always positive, namely,
So, the second stationary state is
Let us note that this state does not depend on the parameter \(\beta\), i.e. on the birth rate of prey and predators.
Stability of stationary states¶
In the first step, we calculate the Jacobi matrix:
B. In the second step, we determine the eigenvalues of the Jacobi matrix \(|J -\lambda I|=0\):
For the stationary state \((1, 0)\) one gets:
and the eigenvalues are: \(\lambda_{1} = -1, \quad \lambda_{2} = \beta > 0\). So, this state is not stable because one eigenvalue is positive, \(\lambda_{2} \gt 0\). A small perturbation will displace the system from this state.
For the second stationary state the problem of stability is more complicated because the Jacobi matrix takes the form
We used the equation for the stationary state to transform the term \(J_{11}\) to the form as in this matrix. One can try to determine the eigenvalues of this matrix. But it is not good way. What we want to know is the sign of a real part (positive or negative) of both eigenvalues \((\lambda_1, \lambda_2)\). Because this matrix is \(2 \times 2\), we get a trinomial square for \(\lambda\). The conditions for its negative part reads:
Exercise
Show that for arbitrary (positive) values of parameters \(\alpha, \beta, d\), the second condition \(\mbox{det} \,J \gt 0\) is always fulfiled.
The first condition for the stability of the state \((x_2, y_2)\) takes the form:
Because \(x_2\) depends on 2 parameters \(\alpha\) and \(d\), the right-hand side defines the surface in the 3-dimensional space. This surface is a boundary between two qualitatively different behaviours of the system:
below the surface the system has a limit cycle
above the urface the system has a fixpoint (see figure)
Time evolution of the system¶
We can analyze the system for particular choice of parameters. There are two important examples:
Solutions which tend to the limit cycle:
If once chooses the parameters \(\alpha = 1,\; \beta =t 0.1,\; d = 0.1 0\) then the system has a unstable fix point inside the first quadrant, at \(x_0=y_0=\newcommand{\Bold}[1]{\mathbf{#1}}\frac{1}{20} \, \sqrt{41} - \frac{1}{20}\). Both eigenvalues of Jacobian in this posit have positive real parts, thus the point is unstable. On the other hand the inspection of the vector field indicates that the flow in the phase space is transporting into the \((0,1)\times(0,1)\) region. It suggests that the system can have at least limit cycle.
Alternatively, one can figure out the stablity of the fix point from the sign of trace and determinant of the Jacobian in that point.
Experiment with Sage!
Check the sign of trace and determinant of the Jacobian of the fix point for parameters \(\alpha = 1,\; \beta =t 0.1,\; d= 0.1\). Calculate eigenvalues and compare if the same conclusions on the stablility of the fix point can be drawn. Use:
J.trace()
J.det()
J.eigenvalues()
Experiment with Sage!
Draw time solution to the system for parameters point \(\alpha = 1,\; \beta =0.1,\; d= 0.1\).
Solutions which tend to the stable spiral
If once chooses the parameters \(\alpha = 1,\; \beta =t 0.1,\; d = 1.\) then the system has a unstable fix point inside the first quadrant, at \(x_0=y_0=\newcommand{\Bold}[1]{\mathbf{#1}}\frac{1}{20} \, \sqrt{41} - \frac{1}{20}\). Both eigenvalues of Jacobian in this posit have positive real parts, thus the point is unstable. On the other hand the inspection of the vector field indicates that the flow in the phase space is transporting into the \((0,1)\times(0,1)\) region. It suggests that the system can have at least limit cycle.
Experiment with Sage!
Draw time solution to the system for parameters point \(\alpha = 1,\; \beta =0.1,\; d= 1\).