BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Nonlinear systems and first-order equations: Volterra's predator–prey model

Eliminating t from an autonomous system dx/dt = f, dy/dt = g gives the first-order equation dy/dx = g/f. Velocity fields become direction fields and trajectories become integral curves: information about speed and direction is lost, but the equation may be solvable. For sharks x and food fish y, x′ = −ax + bxy, y′ = cy − dxy, the critical points are (0, 0), a saddle, and (c/d, a/b). With all constants 1 the linearization there is a centre, a borderline case that cannot decide between centre and spirals. Volterra's way out: dy/dx separates, giving xe^(−x)·ye^(−y) = C, the contour curves of a function with a single peak at (1, 1). So the trajectories are closed, populations cycle clockwise, and (1, 1) is a true centre. Fishing at rate k moves the equilibrium to ((c − k)/d, (a + k)/b): fewer sharks, more food fish: Volterra's principle, which the lecture also sees at work when ponds were sprayed with DDT.

You need this first

Full reading path (45 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
  31. Particular solutions via Fourier series, and how we hear (18.03)
  32. Introduction to the Laplace transform (18.03)
  33. Laplace transforms of derivatives and solving initial value problems (18.03)
  34. The convolution formula (18.03)
  35. The unit step and discontinuous inputs (18.03)
  36. Impulse inputs, the delta function and the weight function (18.03)
  37. Introduction to first-order systems (18.03)
  38. Linear systems with constant coefficients: eigenvalues and eigenvectors (18.03)
  39. Repeated and complex eigenvalues (18.03)
  40. Sketching the solutions of 2 × 2 linear systems (18.03)
  41. Fundamental matrices and inhomogeneous systems (18.03)
  42. The matrix exponential (18.03)
  43. Decoupling linear systems (18.03)
  44. Nonlinear autonomous systems and the pendulum (18.03)
  45. Limit cycles (18.03)
On this page · 6 sections
  1. From a system to a first-order equation
  2. Sharks and food fish
  3. Trouble: a borderline case
  4. Volterra's way out
  5. Fishing: Volterra's principle
  6. Summary

The last lecture of the series works out one nonlinear example that shows three things worth knowing about nonlinear systems (transcript, p. 1). It brings together limit cycles and nonlinear systems with the first day of the course.

From a system to a first-order equation#

For an autonomous system the right-hand sides contain no tt, and the tt on the left is only in the denominators; so divide one equation by the other (transcript, p. 1):

Eliminating t
dxdt=f(x,y),dydt=g(x,y)⟹dydx=g(x,y)f(x,y)\frac{dx}{dt} = f(x, y), \quad \frac{dy}{dt} = g(x, y) \qquad\Longrightarrow\qquad \frac{dy}{dx} = \frac{g(x, y)}{f(x, y)}
In words

d x over d t equals f(x, y), d y over d t equals g(x, y) which gives d y over d x equals g(x, y) over f(x, y)

That is the equation of the first day of the term (p. 1). Information is lost: without tt, there is no speed and no direction of travel. Each arrow of the velocity field is snipped to a standard length, pointy end and all, and becomes a line element of a direction field; each trajectory becomes an integral curve, the graph of an explicit or implicit solution, which only has the right slope (p. 1). The gain: the first-order equation may be solvable, where the system almost certainly is not (p. 1).

Example (p. 2). x′=yx' = y, y′=−xy' = -x gives dydx=−xy\frac{dy}{dx} = -\frac{x}{y}, separable: y dy=−x dxy\,dy = -x\,dx, so x2+y2=Cx^2 + y^2 = C, the circles already known; eliminating tt from the solutions x=c1cos⁡tx = c_1\cos t, y=−c1sin⁡ty = -c_1\sin t gives the same (p. 2). In the lecture's words, borrowing T. S. Eliot, in my end is my beginning (p. 2).

Sharks and food fish#

Predators xx ("sharx") eat prey yy ("yumfish"); aa, bb, cc, dd are positive constants (transcript, p. 2):

Volterra's predator–prey system
x′=−ax+bxy,y′=cy−dxyx' = -ax + bxy, \qquad y' = cy - dxy
In words

x prime equals minus a x plus b x y, y prime equals c y minus d x y

The sharks die out without food fish; the food fish grow exponentially without sharks. Unlike the robin–earthworm homework model, the predators have nothing else to eat and the prey's growth is not logistic (p. 2).

Critical points (p. 2). x(−a+by)=0x(-a + by) = 0 and y(c−dx)=0y(c - dx) = 0 give (0,0)(0, 0) and (cd,ab)\left(\frac{c}{d}, \frac{a}{b}\right). At the origin the linearization is (−a00c)\begin{pmatrix} -a & 0 \\ 0 & c \end{pmatrix}; for a diagonal matrix, read the eigenvalues off the diagonal: −a-a and cc, opposite signs, a saddle (pp. 2–3). Along the shark axis the sharks die out; along the food-fish axis the fish grow (p. 3).

The interesting point. To save writing, set a=b=c=d=1a = b = c = d = 1: x′=−x+xyx' = -x + xy, y′=y−xyy' = y - xy (p. 3). The Jacobian at (1,1)(1, 1) is (p. 3)

Linearization at (1, 1)
J=(−1+yx−y1−x),J(1,1)=(01−10)J = \begin{pmatrix} -1 + y & x \\ -y & 1 - x \end{pmatrix}, \qquad J(1, 1) = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}
In words

J equals minus 1 plus y x; minus y 1 minus x, J(1, 1) equals 0 1; minus 1 0

the matrix of the concentric circles: a centre (p. 3).

Trouble: a borderline case#

In the trace–determinant picture the centres lie on a single line, the boundary between spiral sinks and spiral sources (transcript, p. 3). Wiggle the coefficients a little and the type changes. Since the linearization only approximates the nonlinear system, it cannot decide: the true critical point could be a centre, a spiral sink or a spiral source, though not a saddle or a node, which are too far away (p. 3).

Volterra's way out#

Volterra, who introduced and studied these equations, eliminated tt (transcript, p. 3). (Lotka had published the same equations a few years earlier; they are usually called the Lotka–Volterra equations.)

The first-order equation
dydx=y(1−x)x(y−1),y−1y dy=1−xx dx\frac{dy}{dx} = \frac{y(1 - x)}{x(y - 1)}, \qquad \frac{y - 1}{y}\,dy = \frac{1 - x}{x}\,dx
In words

d y over d x equals y the quantity 1 minus x, over the quantity x the quantity y minus 1, the quantity y minus 1, all over y, times d y equals the quantity 1 minus x, all over x, times d x

No partial fractions are needed: divide first (p. 4). Integrating, y−ln⁡y=ln⁡x−x+c1y - \ln y = \ln x - x + c_1, and exponentiating (p. 4):

Integral curves
x e−x⋅y e−y=Cx\,e^{-x}\cdot y\,e^{-y} = C
In words

x e to the power minus x times y e to the power minus y equals capital C

These are the contour curves of h(x,y)=xe−x ye−yh(x, y) = xe^{-x}\,ye^{-y} (p. 4). The one-variable function ue−uue^{-u} starts at 0, rises like uu, has a single maximum 1e\frac1e at u=1u = 1, and tends to 0 by L'Hôpital's rule (p. 4). So hh is a single mountain with its peak at the critical point (1,1)(1, 1) and value 0 on the axes; its contour curves are closed curves around the peak. They cannot be spirals: a horizontal line meets each contour at most twice, as it meets the graph of ue−uue^{-u} (p. 4).

The factor ue−uu e^{-u} of Volterra's conserved quantity, computed from the formula: a single maximum 1/e1/e at u=1u = 1, so h(x,y)=xe−x⋅ye−yh(x, y) = x e^{-x} \cdot y e^{-y} is a single peak at (1, 1) whose contour curves are closed.

So (1,1)(1, 1) is a genuine centre and the populations cycle (p. 4). The direction is clockwise: sharks die out on their axis and fish grow on theirs, and neighbouring curves must agree (p. 4). Many sharks eat the fish down; the sharks then starve; with few sharks left the fish multiply; the sharks find them again and multiply; and the cycle repeats (p. 4).

Fishing: Volterra's principle#

Now fish with nets at a constant rate kk, removing the same fraction of sharks and food fish (transcript, pp. 4–5):

With fishing
x′=−(a+k) x+bxy,y′=(c−k) y−dxyx' = -(a + k)\,x + bxy, \qquad y' = (c - k)\,y - dxy
In words

x prime equals minus the quantity a plus k, x plus b x y, y prime equals the quantity c minus k, y minus d x y

Only the coefficients change, so the new critical point is (p. 5)

New equilibrium
(c−kd,  a+kb)\left(\frac{c - k}{d},\; \frac{a + k}{b}\right)
In words

( the quantity c minus k, all over d, the quantity a plus k, all over b )

(The transcript first writes dd for the second denominator, then bb.) The critical point gives the average populations over a cycle (as long as k<ck < c, so that it stays in the first quadrant). Fishing lowers the sharks and raises the food fish: not intuitive, but observed, in a slightly different context, and the reason Volterra took up the problem. This is Volterra's principle (p. 5). A modern application, as the lecture tells it (p. 5): in the 1950s, stagnant ponds were sprayed with DDT to kill mosquito larvae. It also killed the fish, which prey on the larvae, and like harvesting both, it moved the equilibrium towards more mosquitoes and fewer fish, as was indeed observed. The same happened with birds and insects when trees were sprayed (p. 5).

Worked example

A different predator and prey

For x′=−2x+xyx' = -2x + xy, y′=3y−xyy' = 3y - xy: (a) find the critical points and linearize at the interior one; (b) find the conserved quantity; (c) find the equilibrium with fishing rate k=1k = 1.

(a) Critical points

x(−2+y)=0x(-2 + y) = 0 and y(3−x)=0y(3 - x) = 0 give (0,0)(0, 0) and (3,2)(3, 2). The Jacobian (−2+yx−y3−x)\begin{pmatrix} -2 + y & x \\ -y & 3 - x \end{pmatrix} at (3,2)(3, 2) is (03−20)\begin{pmatrix} 0 & 3 \\ -2 & 0 \end{pmatrix}: λ2+6=0\lambda^2 + 6 = 0, λ=±i6\lambda = \pm i\sqrt6, a centre for the linearization, undecided for the system.

(b) Eliminate t

dydx=y(3−x)x(y−2)\frac{dy}{dx} = \frac{y(3 - x)}{x(y - 2)}, so y−2ydy=3−xxdx\frac{y - 2}{y}dy = \frac{3 - x}{x}dx and y−2ln⁡y=3ln⁡x−x+cy - 2\ln y = 3\ln x - x + c. Exponentiating: x3e−x⋅y2e−y=Cx^3e^{-x}\cdot y^2e^{-y} = C, with a single peak at (3,2)(3, 2), since u3e−uu^3e^{-u} peaks at 3 and u2e−uu^2e^{-u} at 2. So the orbits are closed: a true centre.

(c) Fishing

With a=2a = 2, b=1b = 1, c=3c = 3, d=1d = 1, k=1k = 1: the equilibrium moves from (3,2)(3, 2) to (3−11,2+11)=(2,3)\left(\frac{3 - 1}{1}, \frac{2 + 1}{1}\right) = (2, 3): fewer predators, more prey.

Summary#

  • Eliminating tt turns x′=fx' = f, y′=gy' = g into dy/dx=g/fdy/dx = g/f: direction field and integral curves, without speed, but possibly solvable.
  • Volterra's model: saddle at the origin, linearization a centre at (c/d,a/b)(c/d, a/b), a borderline case.
  • Eliminating tt gives the closed contour curves of xe−x ye−yxe^{-x}\,ye^{-y} (with a=b=c=d=1a = b = c = d = 1): the populations cycle clockwise.
  • Fishing at rate kk moves the equilibrium to ((c−k)/d,(a+k)/b)((c - k)/d, (a + k)/b): Volterra's principle.

Symbols on this page

Show the 26 symbols used here
λ\lambda lambda.
An eigenvalue of the linearization. Say it: “lambda”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The death rate of sharks without food. Say it: “a”.
cc c.
The growth rate of food fish without sharks. Say it: “c”.
kk k.
The fishing rate: the fraction of each population removed per unit time. Say it: “k”.
xx x.
The predator (shark) population. Say it: “x”.
yy y.
The prey (food fish) population. Say it: “y”.
tt t.
Time. Say it: “t”.
dd d.
The rate at which food fish are eaten per shark (coefficient of −xy); also the d of dx, dy, dt. Say it: “d”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
ee e.
Euler's number, 2.718… Say it: “e”.
ff f.
The right-hand side of the x equation. Say it: “f”.
gg g.
The right-hand side of the y equation. Say it: “g”.
CC C.
The constant labelling an integral curve. Say it: “capital C”.
bb b.
The benefit to sharks from eating (coefficient of xy). Say it: “b”.
hh h.
The conserved function x e^(−x) · y e^(−y). Say it: “h”.
y′y' y prime.
The rate of change of the food-fish population. Say it: “y prime”.
uu u.
A single variable, for the graph of u e^(−u). Say it: “u”.
x′x' x prime.
The rate of change of the shark population. Say it: “x prime”.
JJ J.
The Jacobian matrix. Say it: “J”.
c1c_{1} c one.
A constant of integration. Say it: “c one”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 39 words used here

New here

centre.
An equilibrium point surrounded by closed orbits, so nearby solutions circle it forever without approaching or leaving.
Volterra's principle.
The surprising prediction that harvesting predators and prey at the same rate raises the average number of prey and lowers that of predators.

Also used

nonlinear.
Not linear: containing squares, products or other functions of the unknowns, so effects do not simply add. Explained in Resistive forces: drag and terminal velocity.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
limit cycle.
An isolated closed orbit that nearby solutions spiral towards from both sides; 18.03 does not use the name for a repelling one. Explained in Limit cycles.
autonomous.
Of a differential equation: one in which time does not appear on its own, so the rule for change is the same at every time. Explained in Autonomous equations, critical points and stability.
velocity field.
The arrows that a system of differential equations attaches to each point of the plane: the velocity a solution must have there. Explained in Introduction to first-order systems.
line element.
A short line segment, drawn at a point, with the slope that a differential equation gives there. Explained in Direction fields, isoclines and integral curves.
direction field.
A picture of a differential equation: at many points, a short line with the slope the equation gives there. Explained in Direction fields, isoclines and integral curves.
trajectory.
The path a moving body follows, or more generally the curve traced out by a changing state as time goes on. Explained in Projectile motion.
integral curve.
A curve that at every point runs along the direction the differential equation gives there: the graph of a solution. Explained in Direction fields, isoclines and integral curves.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
separable.
Of a first-order differential equation: one that can be rearranged with each variable on its own side and then integrated.
critical point.
A constant solution of an equation such as dy/dt = f(y): a value where the rate of change is zero, also called an equilibrium. Explained in Autonomous equations, critical points and stability.
linearization.
Replacing equations by their straight-line approximation near a point, keeping only terms of first order in the small changes. Explained in Bifurcations in one dimension: saddle-node, transcritical and pitchfork.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
saddle point.
An equilibrium point of a pair of differential equations where paths come in along one direction and leave along another. Explained in Sketching the solutions of 2 × 2 linear systems.
Jacobian.
The matrix of all first partial derivatives of several functions of several variables, which gives their best linear approximation near a point. Explained in Nonlinear autonomous systems and the pendulum.
trace.
The sum of the numbers on the main diagonal of a square matrix; it equals the sum of the eigenvalues. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
spiral sink.
An equilibrium that nearby solutions approach by spiralling inwards, as for a damped oscillation. Explained in Sketching the solutions of 2 × 2 linear systems.
spiral source.
An equilibrium that nearby solutions leave by spiralling outwards, as for an oscillation that keeps growing.
node.
An equilibrium point of a pair of differential equations where all nearby paths flow in, or all flow out, without circling round. Explained in Sketching the solutions of 2 × 2 linear systems.
partial fractions.
Splitting a fraction of polynomials into a sum of simpler fractions, each easy to integrate. Explained in Partial fractions.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
L'Hôpital's rule.
A rule for limits of the form 0/0 or ∞/∞: the limit of f/g equals the limit of f′/g′, if that exists. Explained in Indeterminate forms and L'Hôpital's rule.
closed curve.
A curve that ends where it started, like a circle, so it has no loose ends. Explained in Forces on currents and the Biot–Savart law.
equilibrium.
A constant solution of a system of differential equations: a point in the phase plane where nothing changes, also called a critical point.
conserved.
Keeping the same total value as time passes, as energy and momentum do when nothing outside changes them. Explained in Conservation of energy.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
explicit.
Of a function or equation: solved for the unknown, written as a formula y = f(x) that gives y directly.
implicit.
Of a function: given by an equation linking x and y, such as x² + y² = 1, not by a formula y = f(x).
dies out.
Decreases gradually towards zero and then no longer matters.
model.
A simplified description of a real system, usually in equations, that keeps what matters and leaves out the rest.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
intuitive.
Easy to understand or believe at once, without detailed reasoning.
borderline.
On the boundary between two kinds of behaviour, belonging clearly to neither.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Check your understanding

  1. What does eliminating tt from x′=f(x,y)x' = f(x, y), y′=g(x,y)y' = g(x, y) give?
  2. Why can linearization not decide the type of the critical point (1,1)(1, 1) of x′=−x+xyx' = -x + xy, y′=y−xyy' = y - xy?
  3. Fishing both species at rate kk moves the equilibrium to…
0 of 3 answered

Flashcards

1 / 3