Skip to content
Family Table Math
Auto

Phase Portraits

When two quantities change together, like two competing populations, you can follow them as a single moving point (x,y)(x, y). A phase portrait is a picture of the paths (trajectories) that point can take. For linear systems dxdt=ax+by\dfrac{dx}{dt} = ax + by, dydt=cx+dy\dfrac{dy}{dt} = cx + dy, the eigenvalues and eigenvectors of the matrix (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix} tell you everything: whether paths head into the origin or away from it, whether they spiral, and which way they leave. This page covers the IB Mathematics AI HL scope: exact solutions for real eigenvalues, and qualitative sketches for every case.

Write the system as

ddt(xy)=(abcd)(xy),ordx⃗dt=Mx⃗\frac{d}{dt}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix}, \qquad \text{or} \qquad \dfrac{d\vec{x}}{dt} = M\vec{x}

The origin (0,0)(0, 0) is an equilibrium point: there both rates are zero, so a point that starts there stays there. In the IB course the eigenvalues are always distinct and non-zero, so the origin is the only equilibrium. In a population model, xx and yy often measure how far each population is from its stable population values, so the origin represents the equilibrium state.

The eigenvalues are the roots of the characteristic equation

λ2−(a+d)λ+(ad−bc)=0\lambda^2 - (a + d)\lambda + (ad - bc) = 0

Exact solution for distinct real eigenvalues

Section titled “Exact solution for distinct real eigenvalues”

If MM has distinct real eigenvalues λ1\lambda_1 and λ2\lambda_2 with eigenvectors p⃗1\vec{p}_1 and p⃗2\vec{p}_2, then the general solution is

(xy)=Aeλ1tp⃗1+Beλ2tp⃗2\begin{pmatrix} x \\ y \end{pmatrix} = A e^{\lambda_1 t}\vec{p}_1 + B e^{\lambda_2 t}\vec{p}_2

where the constants AA and BB come from the initial conditions. (Check: each term satisfies dx⃗dt=Mx⃗\dfrac{d\vec{x}}{dt} = M\vec{x} because Mp⃗1=λ1p⃗1M\vec{p}_1 = \lambda_1\vec{p}_1.) The IB guide only requires exact solutions in this case.

Each eigenvector gives a straight-line trajectory through the origin: if you start on the line through p⃗1\vec{p}_1, you stay on it, moving away if λ1>0\lambda_1 \gt 0 and toward the origin if λ1<0\lambda_1 \lt 0. As t→∞t \to \infty the term with the larger eigenvalue dominates, which tells you the long-term direction.

EigenvaluesNameWhat trajectories do
Both real and positiveUnstable nodeAll move away from the origin
Both real and negativeStable nodeAll move toward the origin
Real, opposite signsSaddle pointCome in along the negative eigenvalue’s eigenvector, leave along the positive one’s; all others eventually move away
Complex, p±qip \pm qiSpiralSpiral out if p>0p \gt 0 (unstable), in if p<0p \lt 0 (stable)
Imaginary, ±qi\pm qiCentreClosed circles or ellipses around the origin: periodic motion

“Stable” means trajectories that start near the origin approach it as t→∞t \to \infty.

  1. Find the eigenvalues and classify the origin.
  2. Real eigenvalues: draw the eigenvector lines through the origin, with arrows (in for negative λ\lambda, out for positive λ\lambda). Other trajectories curve between them. For a node they leave (or arrive at) the origin tangent to the eigenvector of the eigenvalue closer to zero, and far from the origin run parallel to the other one.
  3. Complex or imaginary eigenvalues: find the direction of rotation by checking one point. At (1,0)(1, 0) the velocity is (ac)\begin{pmatrix} a \\ c \end{pmatrix}, so if c>0c \gt 0 the point is moving up: anticlockwise. If c<0c \lt 0: clockwise.
  4. Check a few velocity vectors (dxdt,dydt)\left(\dfrac{dx}{dt}, \dfrac{dy}{dt}\right) at points like (1,0)(1, 0), (0,1)(0, 1) and (1,1)(1, 1). Trajectories are vertical where dxdt=0\dfrac{dx}{dt} = 0 and horizontal where dydt=0\dfrac{dy}{dt} = 0.
  5. Add arrows to every trajectory to show the direction of time.

The equation d2xdt2+adxdt+bx=0\dfrac{d^2x}{dt^2} + a\dfrac{dx}{dt} + bx = 0 becomes a linear system by letting y=dxdty = \dfrac{dx}{dt} (as on the Euler’s method for systems page):

dxdt=y,dydt=−bx−ay,M=(01−b−a)\frac{dx}{dt} = y, \qquad \frac{dy}{dt} = -bx - ay, \qquad M = \begin{pmatrix} 0 & 1 \\ -b & -a \end{pmatrix}

So you can describe the motion of a spring with its phase portrait: a centre means it oscillates forever, a stable spiral means the oscillations die down, and a stable node means it returns to rest without oscillating.

Consider dxdt=x+y\dfrac{dx}{dt} = x + y, dydt=4x+y\dfrac{dy}{dt} = 4x + y, with x(0)=2x(0) = 2 and y(0)=0y(0) = 0.

(a) Find the eigenvalues and eigenvectors, and classify the equilibrium.

(b) Find the exact solution, and describe the long-term behaviour.

Solution.

(a) M=(1141)M = \begin{pmatrix} 1 & 1 \\ 4 & 1 \end{pmatrix}. The characteristic equation is

λ2−2λ+(1−4)=λ2−2λ−3=(λ−3)(λ+1)=0\lambda^2 - 2\lambda + (1 - 4) = \lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1) = 0

so λ=3\lambda = 3 or λ=−1\lambda = -1.

  • λ=3\lambda = 3: (−214−2)(pq)=0⃗\begin{pmatrix} -2 & 1 \\ 4 & -2 \end{pmatrix}\begin{pmatrix} p \\ q \end{pmatrix} = \vec{0} gives q=2pq = 2p, so p⃗1=(12)\vec{p}_1 = \begin{pmatrix} 1 \\ 2 \end{pmatrix}.
  • λ=−1\lambda = -1: (2142)(pq)=0⃗\begin{pmatrix} 2 & 1 \\ 4 & 2 \end{pmatrix}\begin{pmatrix} p \\ q \end{pmatrix} = \vec{0} gives q=−2pq = -2p, so p⃗2=(1−2)\vec{p}_2 = \begin{pmatrix} 1 \\ -2 \end{pmatrix}.

The eigenvalues are real with opposite signs, so the origin is a saddle point.

(b) The general solution is

(xy)=Ae3t(12)+Be−t(1−2)\begin{pmatrix} x \\ y \end{pmatrix} = Ae^{3t}\begin{pmatrix} 1 \\ 2 \end{pmatrix} + Be^{-t}\begin{pmatrix} 1 \\ -2 \end{pmatrix}

At t=0t = 0: A+B=2A + B = 2 and 2A−2B=02A - 2B = 0, so A=B=1A = B = 1:

x=e3t+e−t,y=2e3t−2e−tx = e^{3t} + e^{-t}, \qquad y = 2e^{3t} - 2e^{-t}

As t→∞t \to \infty, e−t→0e^{-t} \to 0 and e3te^{3t} grows, so xx and yy both increase without bound with yx→2\dfrac{y}{x} \to 2: the trajectory moves away from the origin, approaching the direction of the line y=2xy = 2x.

Consider dxdt=−3x+y\dfrac{dx}{dt} = -3x + y, dydt=x−3y\dfrac{dy}{dt} = x - 3y, with x(0)=3x(0) = 3 and y(0)=1y(0) = 1. Find the exact solution and describe the phase portrait.

Solution. M=(−311−3)M = \begin{pmatrix} -3 & 1 \\ 1 & -3 \end{pmatrix}, with characteristic equation λ2+6λ+8=(λ+2)(λ+4)=0\lambda^2 + 6\lambda + 8 = (\lambda + 2)(\lambda + 4) = 0, so λ=−2\lambda = -2 or λ=−4\lambda = -4.

  • λ=−2\lambda = -2: (−111−1)\begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix} gives q=pq = p, so p⃗1=(11)\vec{p}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}.
  • λ=−4\lambda = -4: (1111)\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix} gives q=−pq = -p, so p⃗2=(1−1)\vec{p}_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix}.

General solution: (xy)=Ae−2t(11)+Be−4t(1−1)\begin{pmatrix} x \\ y \end{pmatrix} = Ae^{-2t}\begin{pmatrix} 1 \\ 1 \end{pmatrix} + Be^{-4t}\begin{pmatrix} 1 \\ -1 \end{pmatrix}. At t=0t = 0: A+B=3A + B = 3 and A−B=1A - B = 1, so A=2A = 2, B=1B = 1:

x=2e−2t+e−4t,y=2e−2t−e−4tx = 2e^{-2t} + e^{-4t}, \qquad y = 2e^{-2t} - e^{-4t}

Both eigenvalues are negative, so the origin is a stable node: every trajectory approaches (0,0)(0, 0). The e−4te^{-4t} term dies away faster, so near the origin trajectories come in along the line y=xy = x (the eigenvector of λ=−2\lambda = -2, the eigenvalue closer to zero).

Two phase portraits. Left, a saddle point for dx/dt = x + y, dy/dt = 4x + y: trajectories come in along the line y = -2x and leave along the line y = 2x, curving like hyperbolas, so every trajectory not on y = -2x moves away from the origin. Right, a stable node for dx/dt = -3x + y, dy/dt = x - 3y: every trajectory moves into the origin, and near the origin they come in along the line y = x. Saddle point: λ = 3, −1 −2 −1 1 2 −2 −1 1 2 y = 2x (λ = 3) y = −2x (λ = −1) Stable node: λ = −2, −4 −2 −1 1 2 −2 −1 1 2 y = x y = −x
Left: the saddle point of Example 1, with eigenvector lines y=2xy = 2x (out, λ=3\lambda = 3) and y=−2xy = -2x (in, λ=−1\lambda = -1). Right: the stable node of Example 2.

Two species live on an island. Their populations differ from their stable values by xx and yy (in hundreds), where

dxdt=−x−2y,dydt=2x−y\frac{dx}{dt} = -x - 2y, \qquad \frac{dy}{dt} = 2x - y

Classify the equilibrium, sketch a typical trajectory starting from (3,0)(3, 0), and describe what happens to the populations.

Solution. M=(−1−22−1)M = \begin{pmatrix} -1 & -2 \\ 2 & -1 \end{pmatrix}, with characteristic equation λ2+2λ+5=0\lambda^2 + 2\lambda + 5 = 0:

λ=−2±4−202=−1±2i\lambda = \frac{-2 \pm \sqrt{4 - 20}}{2} = -1 \pm 2i

The eigenvalues are complex with negative real part, so the origin is a stable spiral. Direction: at (3,0)(3, 0) the velocity is (−36)\begin{pmatrix} -3 \\ 6 \end{pmatrix}, so the point is moving up and to the left: the spiral turns anticlockwise.

Starting from (3,0)(3, 0), the trajectory winds anticlockwise around the origin, getting closer each turn. So the populations oscillate above and below their stable values, with smaller and smaller swings, and settle at the equilibrium in the long run.

An undamped spring satisfies d2xdt2+4x=0\dfrac{d^2x}{dt^2} + 4x = 0.

(a) Write this as a system with y=dxdty = \dfrac{dx}{dt}, and classify the equilibrium.

(b) Show that every trajectory lies on an ellipse 4x2+y2=k4x^2 + y^2 = k, and describe the trajectory through (1,0)(1, 0).

Solution.

(a) dxdt=y\dfrac{dx}{dt} = y, dydt=−4x\dfrac{dy}{dt} = -4x, so M=(01−40)M = \begin{pmatrix} 0 & 1 \\ -4 & 0 \end{pmatrix}. The characteristic equation is λ2+4=0\lambda^2 + 4 = 0, so λ=±2i\lambda = \pm 2i: purely imaginary. The origin is a centre. At (1,0)(1, 0) the velocity is (0−4)\begin{pmatrix} 0 \\ -4 \end{pmatrix} (moving down), so trajectories go clockwise.

(b) Differentiate 4x2+y24x^2 + y^2 with respect to tt:

ddt(4x2+y2)=8xdxdt+2ydydt=8xy+2y(−4x)=0\frac{d}{dt}\left(4x^2 + y^2\right) = 8x\frac{dx}{dt} + 2y\frac{dy}{dt} = 8xy + 2y(-4x) = 0

So 4x2+y24x^2 + y^2 stays constant along every trajectory. Through (1,0)(1, 0), k=4k = 4: the ellipse 4x2+y2=44x^2 + y^2 = 4, which crosses the axes at x=±1x = \pm 1 and y=±2y = \pm 2. The spring oscillates between displacements −1-1 and 11 forever, with maximum speed 22 as it passes x=0x = 0.

Two phase portraits. Left, a stable spiral for dx/dt = -x - 2y, dy/dt = 2x - y: trajectories wind anticlockwise around the origin and spiral into it. Right, a centre for dx/dt = y, dy/dt = -4x: trajectories are closed ellipses 4x^2 + y^2 = constant, traced clockwise, never reaching or leaving the origin; the ellipse through (1, 0) reaches y = 2 and y = -2. Stable spiral: λ = −1 ± 2i −2 −1 1 2 −2 −1 1 2 Centre: λ = ±2i −2 −1 1 2 −2 −1 1 2 (1, 0)
Left: the stable spiral of Example 3 (λ=−1±2i\lambda = -1 \pm 2i), turning anticlockwise into the origin. Right: the centre of Example 4 (λ=±2i\lambda = \pm 2i), with clockwise ellipses 4x2+y2=k4x^2 + y^2 = k.

Classifying from the matrix entries instead of the eigenvalues. Negative numbers in the matrix don’t make a system stable. For example, (−132−1)\begin{pmatrix} -1 & 3 \\ 2 & -1 \end{pmatrix} has negative diagonal entries, but its eigenvalues are −1±6-1 \pm \sqrt{6}, about 1.451.45 and −3.45-3.45, so the origin is a saddle. Always find the eigenvalues.

Mixing up the eigenvectors when writing the solution. Each eigenvector must be paired with its own eigenvalue: Aeλ1tp⃗1+Beλ2tp⃗2Ae^{\lambda_1 t}\vec{p}_1 + Be^{\lambda_2 t}\vec{p}_2. Check by confirming Mp⃗1=λ1p⃗1M\vec{p}_1 = \lambda_1\vec{p}_1.

Calling a saddle point stable. A saddle has one direction in, but every trajectory not exactly on that line eventually moves away. In real situations it’s unstable.

Guessing the direction of a spiral or centre. Complex eigenvalues don’t tell you clockwise or anticlockwise. Check the velocity at one point, such as (1,0)(1, 0), where it is (ac)\begin{pmatrix} a \\ c \end{pmatrix}.

Drawing trajectories that cross. Trajectories of these systems never cross (except at the equilibrium, which they only approach). If your sketch has two paths crossing, one of them is wrong.

Forgetting arrows, or confusing a spiral with a centre. Without arrows a phase portrait doesn’t say whether paths go in or out. A real part of zero gives closed loops; any non-zero real part turns them into spirals.

1. (Warm-up) Find the eigenvalues of each matrix MM and classify the equilibrium of dx⃗dt=Mx⃗\dfrac{d\vec{x}}{dt} = M\vec{x}.

  • (a) M=(2005)M = \begin{pmatrix} 2 & 0 \\ 0 & 5 \end{pmatrix}
  • (b) M=(1221)M = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}
  • (c) M=(0−910)M = \begin{pmatrix} 0 & -9 \\ 1 & 0 \end{pmatrix}
Solution

(a) The matrix is diagonal, so λ=2,5\lambda = 2, 5: both positive, an unstable node.

(b) λ2−2λ+(1−4)=λ2−2λ−3=0\lambda^2 - 2\lambda + (1 - 4) = \lambda^2 - 2\lambda - 3 = 0, so λ=3,−1\lambda = 3, -1: opposite signs, a saddle point.

(c) λ2−0λ+(0+9)=λ2+9=0\lambda^2 - 0\lambda + (0 + 9) = \lambda^2 + 9 = 0, so λ=±3i\lambda = \pm 3i: imaginary, a centre.

2. (Warm-up) For dxdt=2x+y\dfrac{dx}{dt} = 2x + y, dydt=x+2y\dfrac{dy}{dt} = x + 2y, find the eigenvalues and eigenvectors, write down the general solution, and classify the equilibrium.

Solution

λ2−4λ+3=(λ−1)(λ−3)=0\lambda^2 - 4\lambda + 3 = (\lambda - 1)(\lambda - 3) = 0, so λ=1\lambda = 1 or 33.

  • λ=3\lambda = 3: (−111−1)\begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix} gives p⃗=(11)\vec{p} = \begin{pmatrix} 1 \\ 1 \end{pmatrix}.
  • λ=1\lambda = 1: (1111)\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix} gives p⃗=(1−1)\vec{p} = \begin{pmatrix} 1 \\ -1 \end{pmatrix}.
(xy)=Ae3t(11)+Bet(1−1)\begin{pmatrix} x \\ y \end{pmatrix} = Ae^{3t}\begin{pmatrix} 1 \\ 1 \end{pmatrix} + Be^{t}\begin{pmatrix} 1 \\ -1 \end{pmatrix}

Both eigenvalues are positive: an unstable node. All trajectories move away from the origin.

3. (Warm-up) For dxdt=x−2y\dfrac{dx}{dt} = x - 2y, dydt=3x−4y\dfrac{dy}{dt} = 3x - 4y:

  • (a) Find the velocity vector at (1,0)(1, 0) and at (0,1)(0, 1).
  • (b) Find the eigenvalues and classify the equilibrium.
Solution

(a) At (1,0)(1, 0): (13)\begin{pmatrix} 1 \\ 3 \end{pmatrix}. At (0,1)(0, 1): (−2−4)\begin{pmatrix} -2 \\ -4 \end{pmatrix}.

(b) λ2−(1−4)λ+(−4+6)=λ2+3λ+2=(λ+1)(λ+2)=0\lambda^2 - (1 - 4)\lambda + (-4 + 6) = \lambda^2 + 3\lambda + 2 = (\lambda + 1)(\lambda + 2) = 0, so λ=−1,−2\lambda = -1, -2: both negative, a stable node.

4. (Core) Solve dxdt=4x−2y\dfrac{dx}{dt} = 4x - 2y, dydt=x+y\dfrac{dy}{dt} = x + y, with x(0)=3x(0) = 3 and y(0)=2y(0) = 2. Describe the long-term behaviour of the trajectory.

Solution

λ2−5λ+(4+2)=(λ−2)(λ−3)=0\lambda^2 - 5\lambda + (4 + 2) = (\lambda - 2)(\lambda - 3) = 0.

  • λ=2\lambda = 2: (2−21−1)\begin{pmatrix} 2 & -2 \\ 1 & -1 \end{pmatrix} gives p⃗1=(11)\vec{p}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}.
  • λ=3\lambda = 3: (1−21−2)\begin{pmatrix} 1 & -2 \\ 1 & -2 \end{pmatrix} gives p⃗2=(21)\vec{p}_2 = \begin{pmatrix} 2 \\ 1 \end{pmatrix}.

At t=0t = 0: A(11)+B(21)=(32)A\begin{pmatrix} 1 \\ 1 \end{pmatrix} + B\begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 3 \\ 2 \end{pmatrix}, so A+2B=3A + 2B = 3 and A+B=2A + B = 2, giving B=1B = 1, A=1A = 1:

x=e2t+2e3t,y=e2t+e3tx = e^{2t} + 2e^{3t}, \qquad y = e^{2t} + e^{3t}

Both eigenvalues are positive (unstable node), so the trajectory moves away from the origin. The e3te^{3t} terms dominate, so yx→12\dfrac{y}{x} \to \dfrac{1}{2}: far from the origin the path runs parallel to the direction (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}.

5. (Core) Consider dxdt=2x+3y\dfrac{dx}{dt} = 2x + 3y, dydt=2x+y\dfrac{dy}{dt} = 2x + y.

  • (a) Show that the eigenvalues are 44 and −1-1, find corresponding eigenvectors, and classify the equilibrium.
  • (b) Find the solution with x(0)=1x(0) = 1, y(0)=−1y(0) = -1, and describe it.
  • (c) Find the solution with x(0)=4x(0) = 4, y(0)=1y(0) = 1, and describe its long-term behaviour.
Solution

(a) λ2−3λ+(2−6)=λ2−3λ−4=(λ−4)(λ+1)=0\lambda^2 - 3\lambda + (2 - 6) = \lambda^2 - 3\lambda - 4 = (\lambda - 4)(\lambda + 1) = 0. For λ=4\lambda = 4: (−232−3)\begin{pmatrix} -2 & 3 \\ 2 & -3 \end{pmatrix} gives p⃗1=(32)\vec{p}_1 = \begin{pmatrix} 3 \\ 2 \end{pmatrix}. For λ=−1\lambda = -1: (3322)\begin{pmatrix} 3 & 3 \\ 2 & 2 \end{pmatrix} gives p⃗2=(1−1)\vec{p}_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix}. Opposite signs: a saddle point.

(b) (1,−1)(1, -1) is on the eigenvector line for λ=−1\lambda = -1, so A=0A = 0, B=1B = 1: x=e−tx = e^{-t}, y=−e−ty = -e^{-t}. The point moves along the line y=−xy = -x straight into the origin.

(c) 3A+B=43A + B = 4 and 2A−B=12A - B = 1. Adding: 5A=55A = 5, so A=1A = 1, B=1B = 1:

x=3e4t+e−t,y=2e4t−e−tx = 3e^{4t} + e^{-t}, \qquad y = 2e^{4t} - e^{-t}

The e4te^{4t} terms dominate, so the trajectory moves away from the origin with yx→23\dfrac{y}{x} \to \dfrac{2}{3}, approaching the direction (32)\begin{pmatrix} 3 \\ 2 \end{pmatrix}.

6. (Core) For dxdt=x−5y\dfrac{dx}{dt} = x - 5y, dydt=x−3y\dfrac{dy}{dt} = x - 3y, find the eigenvalues, classify the equilibrium, and state the direction in which trajectories turn.

Solution

λ2−(1−3)λ+(−3+5)=λ2+2λ+2=0\lambda^2 - (1 - 3)\lambda + (-3 + 5) = \lambda^2 + 2\lambda + 2 = 0, so

λ=−2±4−82=−1±i\lambda = \frac{-2 \pm \sqrt{4 - 8}}{2} = -1 \pm i

Complex with negative real part: a stable spiral. At (1,0)(1, 0) the velocity is (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}, moving up, so trajectories turn anticlockwise as they spiral into the origin.

7. (Core) Each equation describes the displacement xx of a mass on a spring. Write each as a system with y=dxdty = \dfrac{dx}{dt}, classify the equilibrium, and describe the motion.

  • (a) d2xdt2+3dxdt+2x=0\dfrac{d^2x}{dt^2} + 3\dfrac{dx}{dt} + 2x = 0
  • (b) d2xdt2+2dxdt+5x=0\dfrac{d^2x}{dt^2} + 2\dfrac{dx}{dt} + 5x = 0
Solution

(a) dxdt=y\dfrac{dx}{dt} = y, dydt=−2x−3y\dfrac{dy}{dt} = -2x - 3y, so M=(01−2−3)M = \begin{pmatrix} 0 & 1 \\ -2 & -3 \end{pmatrix} and λ2+3λ+2=0\lambda^2 + 3\lambda + 2 = 0, giving λ=−1,−2\lambda = -1, -2. A stable node: the mass returns to rest at x=0x = 0 without oscillating.

(b) dxdt=y\dfrac{dx}{dt} = y, dydt=−5x−2y\dfrac{dy}{dt} = -5x - 2y, so λ2+2λ+5=0\lambda^2 + 2\lambda + 5 = 0, giving λ=−1±2i\lambda = -1 \pm 2i. A stable spiral: the mass oscillates back and forth with decreasing amplitude and settles at x=0x = 0. (At (1,0)(1, 0) the velocity is (0−5)\begin{pmatrix} 0 \\ -5 \end{pmatrix}, so the spiral is clockwise.)

8. (Challenge) Consider dxdt=x+ky\dfrac{dx}{dt} = x + ky, dydt=2x−y\dfrac{dy}{dt} = 2x - y, where kk is a constant and k≠−12k \ne -\dfrac{1}{2}.

  • (a) Show that the eigenvalues satisfy λ2=1+2k\lambda^2 = 1 + 2k.
  • (b) Find the values of kk for which the origin is a saddle point, and those for which it is a centre.
Solution

(a) λ2−(1−1)λ+(−1−2k)=0\lambda^2 - (1 - 1)\lambda + (-1 - 2k) = 0, so λ2=1+2k\lambda^2 = 1 + 2k.

(b) If k>−12k \gt -\dfrac{1}{2}, then 1+2k>01 + 2k \gt 0 and λ=±1+2k\lambda = \pm\sqrt{1 + 2k}: real with opposite signs, a saddle point.

If k<−12k \lt -\dfrac{1}{2}, then 1+2k<01 + 2k \lt 0 and λ=±i−(1+2k)\lambda = \pm i\sqrt{-(1 + 2k)}: purely imaginary, a centre.

(At k=−12k = -\dfrac{1}{2} both eigenvalues are 00, which is why that value is excluded.)

9. (Challenge) The deviations xx and yy (in hundreds) of a prey and a predator population from their equilibrium values are modelled by

dxdt=0.2x−0.5y,dydt=0.5x+0.2y\frac{dx}{dt} = 0.2x - 0.5y, \qquad \frac{dy}{dt} = 0.5x + 0.2y
  • (a) Explain the signs of the coefficients −0.5-0.5 and 0.50.5 in context.
  • (b) Find the eigenvalues and classify the equilibrium.
  • (c) Describe the long-term behaviour of the populations, starting from (1,0)(1, 0), and comment on whether the model is realistic in the long run.
Solution

(a) More predators than usual (y>0y \gt 0) makes the prey decrease, hence −0.5y-0.5y in dxdt\dfrac{dx}{dt}. More prey than usual (x>0x \gt 0) gives predators more food, so they increase, hence +0.5x+0.5x in dydt\dfrac{dy}{dt}.

(b) λ2−0.4λ+(0.04+0.25)=λ2−0.4λ+0.29=0\lambda^2 - 0.4\lambda + (0.04 + 0.25) = \lambda^2 - 0.4\lambda + 0.29 = 0, so

λ=0.4±0.16−1.162=0.2±0.5i\lambda = \frac{0.4 \pm \sqrt{0.16 - 1.16}}{2} = 0.2 \pm 0.5i

Complex with positive real part: an unstable spiral. At (1,0)(1, 0) the velocity is (0.20.5)\begin{pmatrix} 0.2 \\ 0.5 \end{pmatrix}, so it turns anticlockwise.

(c) The trajectory spirals anticlockwise away from the origin. The populations oscillate around their equilibrium values with ever-growing swings: prey rise, then predators rise, then prey fall, then predators fall, each cycle larger than the last. This can’t continue forever, since eventually a deviation would make a population negative, so the linear model only describes the behaviour near the equilibrium for a limited time.