Skip to main content
This material has been adapted from material by Fergus Cooper and others from the "Essential Mathematics" module at the Doctoral Training Centre, University of Oxford.

This material has been adapted from material by Fergus Cooper and others from the "Essential Mathematics" module at the Doctoral Training Centre, University of Oxford.

Creative Commons License
This course material was developed as part of UNIVERSE-HPC, which is funded through the SPF ExCALIBUR programme under grant number EP/W035731/1

This course material was developed as part of UNIVERSE-HPC, which is funded through the SPF ExCALIBUR programme under grant number EP/W035731/1

Creative Commons License

Systems of differential equations 3


YouTube lecture recording from October 2020

A recording of this lecture from October 2020; the material has changed a little since.
Youtube lecture thumbnail

Why stability?

In lecture 11 we decided whether a steady state s∗s^* of ds/dt=f(s)ds/dt = f(s) is stable from the slope f′(s∗)f'(s^*). In lecture 14 we saw that the solution of a linear system is a sum of eigenvectors, each growing or shrinking at a rate set by its eigenvalue. In lecture 15 we found the fixed points of a nonlinear system from its nullclines.
In this lecture we put these together. Close to a fixed point, a nonlinear system behaves like a linear one, so eigenvalues tell us whether each fixed point is stable, and so where the system ends up.

The example from lecture 15

We will come back to the system
x˙=x(1−x)−xy,y˙=y(2−y)−3xy,\begin{aligned} \dot{x} &= x(1-x) -xy,\\ \dot{y} &= y(2-y) - 3xy, \end{aligned}
where y(2−y)y(2-y) is the same as lecture 15's 2y(1−y/2)2y(1-y/2). Its nullclines cross at four fixed points: (0,0)(0, 0), (1,0)(1, 0), (0,2)(0, 2) and (1/2,1/2)(1/2, 1/2).
The phase plane of the system, with its four fixed points
Which of them do solutions settle at, and why?

Linear systems

The decoupled ODE system
x˙=λ1x,y˙=λ2y,\begin{aligned} \dot{x} &= \lambda_1 x,\\ \dot{y} &= \lambda_2 y, \end{aligned}
has a fixed point or steady state where x˙=y˙=0\dot{x}=\dot{y}=0, at the origin.
Solutions look like x=Aeλ1tx=Ae^{\lambda_1 t} and y=Beλ2ty=Be^{\lambda_2 t}, and thus grow exponentially or shrink exponentially depending on the signs of λ1\lambda_1 and λ2\lambda_2. If λ1<0\lambda_1 < 0 and λ2<0\lambda_2 < 0, then all the flow is towards the fixed point. If λ1\lambda_1 or λ2\lambda_2 is positive, then some flow will be driven away (towards infinity).
Adding in a constant (inhomogeneous) component shifts the fixed point away from the origin. For example, the system
x˙=λ1x+10,y˙=λ2y+10\begin{aligned} \dot{x} &= \lambda_1 x + 10,\\ \dot{y} &= \lambda_2 y + 10 \end{aligned}
has x˙=y˙=0\dot{x} = \dot{y} = 0 at x=−10/λ1x = -10/\lambda_1, y=−10/λ2y = -10/\lambda_2. Its solutions behave in the same way as before, but around this point instead of the origin.
Coupling the system has the effect of altering the principal directions over which the exponential terms apply (changing the basis). This means that the homogeneous linear system
x˙=ax+by,y˙=cx+dy,\begin{aligned} \dot{x} &= a x + b y,\\ \dot{y} &= c x + d y, \end{aligned}
has a fixed point at the origin. As in lecture 14, its solution is
x=c1v1eλ1t+c2v2eλ2t,\mathbf{x} = c_1\mathbf{v}_1 e^{\lambda_1 t} + c_2\mathbf{v}_2 e^{\lambda_2 t},
where λ1\lambda_1, λ2\lambda_2 and v1\mathbf{v}_1, v2\mathbf{v}_2 are the eigenvalues and eigenvectors of the matrix
A=(abcd).A = \left(\begin{matrix} a & b \\ c & d \end{matrix}\right).
So the long-term growth or shrinkage of solutions over time is determined by the eigenvalues, along the eigenvectors. For example, with lecture 14's matrix A=(1120)A = \left(\begin{matrix} 1 & 1 \\ 2 & 0 \end{matrix}\right), the eigenvalues are −1-1 and 22: solutions come in along the first eigenvector (dashed blue) and go out along the second (dashed orange), which makes the origin a saddle:
The phase portrait of the linear system with A = (1 1; 2 0): a saddle, with its two eigenvector directions
When the eigenvalues are complex, the solutions turn around the fixed point instead: they spiral in if the real part is negative, and out if it is positive.
More generally, the inhomogeneous linear system
x˙=ax+by+p,y˙=cx+dy+q,\begin{aligned} \dot{x} &= a x + b y + p,\\ \dot{y} &= c x + d y + q, \end{aligned}
can be written
(x˙y˙)=(abcd)(xy)+(pq).\left(\begin{array}{c} \dot{x} \\ \dot{y} \end{array}\right) = \left(\begin{array}{cc} a & b \\ c & d \end{array}\right) \left(\begin{array}{c} x \\ y \end{array}\right) + \left(\begin{array}{c} p \\ q \end{array}\right).
It has a fixed point at
(xy)=−(abcd)−1(pq).\left(\begin{array}{c} x \\ y \end{array}\right) = -\left(\begin{array}{cc} a & b \\ c & d \end{array}\right)^{-1} \left(\begin{array}{c} p \\ q \end{array}\right).
The long-term growth or shrinkage of solutions over time is again determined by the eigenvalues of the matrix.

Nonlinear systems: linearisation

A more general two-dimensional nonlinear system is
x˙=f(x,y),y˙=g(x,y),\begin{aligned} \dot{x} &= f(x,y),\\ \dot{y} &= g(x,y), \end{aligned}
where ff and gg can be any functions whatever.
We can write a polynomial (Taylor) expansion for the system when it is close to a fixed point (x∗,y∗)(x^*, y^*), with the partial derivatives evaluated at (x∗,y∗)(x^*, y^*):
x˙=f(x∗,y∗)+∂f∂x(x−x∗)+∂f∂y(y−y∗)+…,y˙=g(x∗,y∗)+∂g∂x(x−x∗)+∂g∂y(y−y∗)+…\begin{aligned} \dot{x} &= f(x^*,y^*) + \frac{\partial f}{\partial x}(x-x^*) + \frac{\partial f}{\partial y}(y-y^*) + \ldots,\\ \dot{y} &= g(x^*,y^*) + \frac{\partial g}{\partial x}(x-x^*) + \frac{\partial g}{\partial y}(y-y^*) + \ldots \end{aligned}
At a fixed point f(x∗,y∗)=g(x∗,y∗)=0f(x^*,y^*)=g(x^*,y^*)=0, so the first terms drop out. The terms we have left out (the "…\ldots") involve (x−x∗)2(x-x^*)^2, (x−x∗)(y−y∗)(x-x^*)(y-y^*) and so on, which are much smaller still when we are close to the fixed point. So, close to the fixed point:
(x˙y˙)≈(∂f∂x∂f∂y∂g∂x∂g∂y)(x−x∗y−y∗).\def\arraystretch{1.8}\left(\begin{array}{c} \dot{x} \\ \dot{y} \end{array}\right) \approx \left(\begin{array}{cc} \frac{\partial f}{\partial x} & \frac{\partial f}{\partial y} \\ \frac{\partial g}{\partial x} & \frac{\partial g}{\partial y} \end{array}\right) \left(\begin{array}{c} x-x^* \\ y-y^* \end{array}\right).
This means that (really close to the fixed point) we can approximate with a linear system. The eigenvalues λ1\lambda_1, λ2\lambda_2 of the Jacobian matrix
J=(∂f∂x∂f∂y∂g∂x∂g∂y)\def\arraystretch{1.8}J = \left(\begin{array}{cc} \frac{\partial f}{\partial x} & \frac{\partial f}{\partial y} \\ \frac{\partial g}{\partial x} & \frac{\partial g}{\partial y} \end{array}\right)
will determine if a small perturbation away from (x∗,y∗)(x^*, y^*) will decay or grow. JJ plays the part that the slope f′(s∗)f'(s^*) played in lecture 11: there, a steady state was stable if f′(s∗)<0f'(s^*) < 0.

Steady state classification

A fixed point is stable if every eigenvalue of JJ has a negative real part, and unstable if any has a positive real part. More precisely, its type depends on the eigenvalues as follows:
  • λ1<λ2<0\lambda_1<\lambda_2<0: stable node
  • λ1=λ2<0\lambda_1=\lambda_2<0: stable star if JJ is a multiple of II (every direction is an eigenvector), otherwise a stable degenerate node (only one eigenvector direction)
  • λ1>λ2>0\lambda_1>\lambda_2>0: unstable node
  • λ1=λ2>0\lambda_1=\lambda_2>0: unstable star or unstable degenerate node, in the same way
  • λ1<0<λ2\lambda_1<0<\lambda_2: saddle (or hyperbolic) point, unstable
  • Complex λ\lambda: spiral (with the real part determining stability)
  • Imaginary λ\lambda: centre (solutions cycle round the fixed point)
If an eigenvalue has a real part of exactly zero (a centre, for example), the linear approximation cannot decide the stability of a nonlinear system: the terms we left out decide it.

Eigenvalues of JJ

∣J−λI∣=∣∂f∂x−λ∂f∂y∂g∂x∂g∂y−λ∣=(∂f∂x−λ)(∂g∂y−λ)−∂f∂y∂g∂x\def\arraystretch{1.8}|J-\lambda I| = \left| \begin{array}{cc} \frac{\partial f}{\partial x}-\lambda & \frac{\partial f}{\partial y} \\ \frac{\partial g}{\partial x} & \frac{\partial g}{\partial y}-\lambda \end{array}\right| = \left(\frac{\partial f}{\partial x}-\lambda\right)\left(\frac{\partial g}{\partial y}-\lambda\right)-\frac{\partial f}{\partial y}\frac{\partial g}{\partial x}
So eigenvalues λ\lambda satisfy
λ2−λ(∂f∂x+∂g∂y)+∂f∂x∂g∂y−∂f∂y∂g∂x=0,\lambda^2 - \lambda\left(\frac{\partial f}{\partial x} + \frac{\partial g}{\partial y}\right) + \frac{\partial f}{\partial x}\frac{\partial g}{\partial y} - \frac{\partial f}{\partial y}\frac{\partial g}{\partial x} = 0,
or
λ2−τλ+Δ=0,whereτ=tr(J)andΔ=det⁡(J)\lambda^2 - \tau\lambda + \Delta = 0, \quad \text{where} \quad \tau=\text{tr}(J) \quad \text{and} \quad \Delta = \det(J)
(this τ\tau is the trace, not the time scale from lecture 15). Solving the quadratic,
λ=τ±τ2−4Δ2.\lambda = \frac{\tau \pm \sqrt{\tau^2 - 4\Delta}}{2}.
So, from the trace and determinant alone:
  • Δ<0\Delta < 0: the square root is larger than ∣τ∣|\tau|, so the eigenvalues have opposite signs, and the fixed point is a saddle
  • Δ>0\Delta > 0 and τ<0\tau < 0: stable
  • Δ>0\Delta > 0 and τ>0\tau > 0: unstable
  • τ2<4Δ\tau^2 < 4\Delta: the eigenvalues are complex, and the fixed point is a spiral
The diagram below shows each type in the (Δ,τ)(\Delta, \tau) plane, with a small phase portrait of an example in each region. Stars and degenerate nodes lie on the parabola τ2=4Δ\tau^2 = 4\Delta, and centres on the positive Δ\Delta axis:
The types of fixed point in the plane of the determinant and trace of J: saddles for negative determinant, nodes outside the parabola tau squared = 4 delta, spirals inside it, and centres on the positive determinant axis

Example: stability of the fixed points

For our example,
x˙=x(1−x)−xy=f(x,y),y˙=y(2−y)−3xy=g(x,y).\begin{aligned} \dot{x} &= x(1-x) -xy &&= f(x, y),\\ \dot{y} &= y(2-y) - 3xy &&= g(x, y). \end{aligned}
Differentiating each with respect to xx and yy,
J=(∂f∂x∂f∂y∂g∂x∂g∂y)=(1−2x−y−x−3y2−3x−2y).\def\arraystretch{1.8}J = \left(\begin{matrix} \frac{\partial f}{\partial x} & \frac{\partial f}{\partial y} \\ \frac{\partial g}{\partial x} & \frac{\partial g}{\partial y} \end{matrix}\right) = \left(\begin{matrix} 1-2x-y & -x \\ -3y & 2-3x-2y \end{matrix}\right).
Now we evaluate JJ at each fixed point in turn.
At (0,0)(0,0):
J(0,0)=(1002),τ=3,Δ=2  ⟹  λ1=1,λ2=2.J_{(0,0)} = \left(\begin{matrix} 1 & 0 \\ 0 & 2 \end{matrix}\right), \qquad \tau = 3, \quad \Delta = 2 \quad\implies\quad \lambda_1 = 1, \quad \lambda_2 = 2.
Both eigenvalues are positive, so this is an unstable node.
At (1/2,1/2)(1/2,1/2):
J(1/2,1/2)=(−12−12−32−12),τ=−1,Δ=−12.\def\arraystretch{1.8}J_{(1/2,1/2)} = \left(\begin{matrix} -\frac{1}{2} & -\frac{1}{2} \\ -\frac{3}{2} & -\frac{1}{2} \end{matrix}\right), \qquad \tau = -1, \quad \Delta = -\frac{1}{2}.
Δ<0\Delta < 0, so this is a saddle. Solving λ2+λ−1/2=0\lambda^2 + \lambda - 1/2 = 0,
λ±=−12±32,\lambda_\pm = -\frac{1}{2} \pm \frac{\sqrt{3}}{2},
one positive and one negative.
At (1,0)(1,0):
J(1,0)=(−1−10−1),τ=−2,Δ=1  ⟹  λ1=λ2=−1.J_{(1,0)} = \left(\begin{matrix} -1 & -1 \\ 0 & -1 \end{matrix}\right), \qquad \tau = -2, \quad \Delta = 1 \quad\implies\quad \lambda_1 = \lambda_2 = -1.
This is stable. JJ is not a multiple of II (it has only one eigenvector direction, (1,0)T(1, 0)^T), so it is a stable degenerate node.
At (0,2)(0,2):
J(0,2)=(−10−6−2),τ=−3,Δ=2  ⟹  λ1=−1,λ2=−2.J_{(0,2)} = \left(\begin{matrix} -1 & 0 \\ -6 & -2 \end{matrix}\right), \qquad \tau = -3, \quad \Delta = 2 \quad\implies\quad \lambda_1 = -1, \quad \lambda_2 = -2.
Both eigenvalues are negative, so this is a stable node.
If we now look again at the phase plane, after having calculated the stability of the fixed points, we can see that the arrows move towards the stable fixed points, and away from the unstable ones. Below, the stable fixed points are filled and the unstable ones are open:
The phase plane with the stable fixed points filled, the unstable ones open, and the separatrix through the saddle dashed
The dashed line is the separatrix: the solutions that come into the saddle along its stable eigenvector, (1,3)T(1, \sqrt{3})^T (for λ−=−1/2−3/2\lambda_- = -1/2 - \sqrt{3}/2). Solutions that start on one side of it go to (1,0)(1, 0), and on the other side to (0,2)(0, 2). So, almost every solution with xx and yy both positive ends up at one of the two stable fixed points: which one depends on which side of the separatrix it starts.

Summary

  1. Linear systems: the eigenvalues of AA decide whether solutions grow or shrink, along its eigenvectors.
  2. Nonlinear systems: close to a fixed point, the system behaves like a linear one with matrix JJ, the Jacobian, evaluated at the fixed point.
  3. A fixed point is stable if every eigenvalue of JJ has a negative real part, and the trace and determinant of JJ give its type quickly.
  4. The stable fixed points, and the separatrices between them, tell us where a system ends up.

Introductory problems

Tip

For more practice, an AI tool can write new problems like the ones below. Ask it for problems of the same type and difficulty, or for problems set in your own field. For example, you could ask it to "write five epidemiology problems on classifying steady states, at the level of these ones". Work them on paper first, then ask the tool to check your answers and to explain any step you are unsure of.

Introductory problems 1

Each matrix below is the Jacobian at a fixed point. Find its trace, determinant and eigenvalues, and classify the fixed point.
(a) (−300−1);(b) (3113);(c) (1221);(d) (−1−22−1);(e) (01−40)\begin{gathered} \text{(a)}\ \left(\begin{array}{cc} -3 & 0 \\ 0 & -1 \end{array}\right); \qquad \text{(b)}\ \left(\begin{array}{cc} 3 & 1 \\ 1 & 3 \end{array}\right); \qquad \text{(c)}\ \left(\begin{array}{cc} 1 & 2 \\ 2 & 1 \end{array}\right); \\ \text{(d)}\ \left(\begin{array}{cc} -1 & -2 \\ 2 & -1 \end{array}\right); \qquad \text{(e)}\ \left(\begin{array}{cc} 0 & 1 \\ -4 & 0 \end{array}\right) \end{gathered}

Introductory problems 2

The system
x˙=x−xy,y˙=x2−y\dot{x} = x - xy, \qquad \dot{y} = x^2 - y
has fixed points at (0,0)(0, 0), (1,1)(1, 1) and (−1,1)(-1, 1). Find the Jacobian, evaluate it at each fixed point, and classify each one.

Main problems

Note

These questions are extensions of questions on the previous page.

Main problems 1

Classify the fixed points and discuss stability of the following linear systems:
  1. x˙=x+3y,y˙=−6x+5y;\dot{x} = x+3y, \qquad \dot{y}=-6x+5y;
  2. x˙=x+3y+4,y˙=−6x+5y−1;\dot{x} = x+3y+4, \qquad \dot{y}=-6x+5y-1;
  3. x˙=x+3y+1,y˙=−6x+5y.\dot{x} = x+3y+1, \qquad \dot{y}=-6x+5y.

Main problems 2

Classify the fixed points and discuss stability of the following nonlinear systems:
  1. x˙=−4y+2xy−8y˙=4y2−x2;\dot{x} = -4y+2xy-8 \qquad \dot{y}=4y^2-x^2;
  2. x˙=y−x2+2,y˙=2(x2−y2).\dot{x} = y-x^2+2, \qquad \dot{y}=2(x^2-y^2).

Main problems 3

The population of a host, H(t)H(t), and a parasite, P(t)P(t), are described approximately by the equations
dHdT=(a−bP)H,dPdT=(c−kPH)P,H>0,\frac{dH}{dT}=(a-bP)H,\qquad \frac{dP}{dT}=\left(c-\frac{kP}{H}\right)P, \qquad H>0,
where a,b,c,ka,b,c,k are positive constants. Previously, by a change of scales, these equations were put in the simpler form
y˙=(1−x)y,x˙=αx(1−xy),\dot{y} = (1-x)y, \qquad \dot{x}=\alpha x\left(1-\frac{x}{y}\right),
where α=c/a\alpha=c/a.
Find and classify the fixed points of these simplified equations. Sketch the phase flow diagram including these fixed points and the information from the previous sketch. That is, include the flow across:
  1. y=xy=x;
  2. x=0x=0;
  3. y=0y=0;
  4. x=1x=1;
  5. y=βxy=\beta x, for β\beta greater than and less than 1.

Main problems 4

In the previous parts of this question a model of fish and anglers was developed and simplified. This question analyses the simplified model.
The simplified version of the model is
x˙=rx(1−x)−xy,y˙=βx−y\dot{x} = rx(1 - x) - xy,\qquad \dot{y} = \beta x - y
where xx and yy represent fish and angler populations, respectively. The x˙\dot{x} notation represents the derivative with respect to non-dimensional time.
  1. Calculate the steady states of the system.
  2. Determine the stability of the fixed points in the case β=r=4\beta = r = 4.
  3. Draw the phase plane, including the nullclines and phase trajectories. You can sketch it by hand, or plot it in Python by adapting the phase plane code from the previous lecture.

Extension problems

Extension problems 1

A population FF of foxes feeds on a population HH of hares. A model for the changes in the population is given by
dHdT=aH−bHF(H>0),dFdT=cHF−dF(F>0).\begin{aligned} \frac{dH}{dT} &= aH-bHF &&(H>0),\\ \frac{dF}{dT} &= cHF-dF &&(F>0). \end{aligned}
  1. Define the four parameters a,b,c,da,b,c,d.
  2. Find the fixed point of the system and describe the motion in its neighbourhood.
  3. What does this mean in terms of the population of hares and foxes?