When two quantities change together, like two competing populations, you can follow them as a single moving point (x,y). A phase portrait is a picture of the paths (trajectories) that point can take. For linear systems dtdx=ax+by, dtdy=cx+dy, the eigenvalues and eigenvectors of the matrix (acbd) 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.
The origin (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, x and y 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
If M has distinct real eigenvalues λ1 and λ2 with eigenvectors p1 and p2, then the general solution is
(xy)=Aeλ1tp1+Beλ2tp2
where the constants A and B come from the initial conditions. (Check: each term satisfies dtdx=Mx because Mp1=λ1p1.) 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 p1, you stay on it, moving away if λ1>0 and toward the origin if λ1<0. As t→∞ the term with the larger eigenvalue dominates, which tells you the long-term direction.
Real eigenvalues: draw the eigenvector lines through the origin, with arrows (in for negative λ, out for positive λ). 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.
Complex or imaginary eigenvalues: find the direction of rotation by checking one point. At (1,0) the velocity is (ac), so if c>0 the point is moving up: anticlockwise. If c<0: clockwise.
Check a few velocity vectors(dtdx,dtdy) at points like (1,0), (0,1) and (1,1). Trajectories are vertical where dtdx=0 and horizontal where dtdy=0.
Add arrows to every trajectory to show the direction of time.
The equation dt2d2x+adtdx+bx=0 becomes a linear system by letting y=dtdx (as on the Euler’s method for systems page):
dtdx=y,dtdy=−bx−ay,M=(0−b1−a)
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 dtdx=x+y, dtdy=4x+y, with x(0)=2 and y(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=(1411). The characteristic equation is
λ2−2λ+(1−4)=λ2−2λ−3=(λ−3)(λ+1)=0
so λ=3 or λ=−1.
λ=3: (−241−2)(pq)=0 gives q=2p, so p1=(12).
λ=−1: (2412)(pq)=0 gives q=−2p, so p2=(1−2).
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)
At t=0: A+B=2 and 2A−2B=0, so A=B=1:
x=e3t+e−t,y=2e3t−2e−t
As t→∞, e−t→0 and e3t grows, so x and y both increase without bound with xy→2: the trajectory moves away from the origin, approaching the direction of the line y=2x.
Consider dtdx=−3x+y, dtdy=x−3y, with x(0)=3 and y(0)=1. Find the exact solution and describe the phase portrait.
Solution.M=(−311−3), with characteristic equation λ2+6λ+8=(λ+2)(λ+4)=0, so λ=−2 or λ=−4.
λ=−2: (−111−1) gives q=p, so p1=(11).
λ=−4: (1111) gives q=−p, so p2=(1−1).
General solution: (xy)=Ae−2t(11)+Be−4t(1−1). At t=0: A+B=3 and A−B=1, so A=2, B=1:
x=2e−2t+e−4t,y=2e−2t−e−4t
Both eigenvalues are negative, so the origin is a stable node: every trajectory approaches (0,0). The e−4t term dies away faster, so near the origin trajectories come in along the line y=x (the eigenvector of λ=−2, the eigenvalue closer to zero).
Left: the saddle point of Example 1, with eigenvector lines y=2x (out, λ=3) and y=−2x (in, λ=−1). Right: the stable node of Example 2.
Two species live on an island. Their populations differ from their stable values by x and y (in hundreds), where
dtdx=−x−2y,dtdy=2x−y
Classify the equilibrium, sketch a typical trajectory starting from (3,0), and describe what happens to the populations.
Solution.M=(−12−2−1), with characteristic equation λ2+2λ+5=0:
λ=2−2±4−20=−1±2i
The eigenvalues are complex with negative real part, so the origin is a stable spiral. Direction: at (3,0) the velocity is (−36), so the point is moving up and to the left: the spiral turns anticlockwise.
Starting from (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.
(a) Write this as a system with y=dtdx, and classify the equilibrium.
(b) Show that every trajectory lies on an ellipse 4x2+y2=k, and describe the trajectory through (1,0).
Solution.
(a) dtdx=y, dtdy=−4x, so M=(0−410). The characteristic equation is λ2+4=0, so λ=±2i: purely imaginary. The origin is a centre. At (1,0) the velocity is (0−4) (moving down), so trajectories go clockwise.
(b) Differentiate 4x2+y2 with respect to t:
dtd(4x2+y2)=8xdtdx+2ydtdy=8xy+2y(−4x)=0
So 4x2+y2 stays constant along every trajectory. Through (1,0), k=4: the ellipse 4x2+y2=4, which crosses the axes at x=±1 and y=±2. The spring oscillates between displacements −1 and 1 forever, with maximum speed 2 as it passes x=0.
Left: the stable spiral of Example 3 (λ=−1±2i), turning anticlockwise into the origin. Right: the centre of Example 4 (λ=±2i), with clockwise ellipses 4x2+y2=k.
Classifying from the matrix entries instead of the eigenvalues. Negative numbers in the matrix don’t make a system stable. For example, (−123−1) has negative diagonal entries, but its eigenvalues are −1±6, about 1.45 and −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λ1tp1+Beλ2tp2. Check by confirming Mp1=λ1p1.
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), where it is (ac).
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 M and classify the equilibrium of dtdx=Mx.
(a) M=(2005)
(b) M=(1221)
(c) M=(01−90)
Solution
(a) The matrix is diagonal, so λ=2,5: both positive, an unstable node.
(b) λ2−2λ+(1−4)=λ2−2λ−3=0, so λ=3,−1: opposite signs, a saddle point.
(c) λ2−0λ+(0+9)=λ2+9=0, so λ=±3i: imaginary, a centre.
2. (Warm-up) For dtdx=2x+y, dtdy=x+2y, find the eigenvalues and eigenvectors, write down the general solution, and classify the equilibrium.
Solution
λ2−4λ+3=(λ−1)(λ−3)=0, so λ=1 or 3.
λ=3: (−111−1) gives p=(11).
λ=1: (1111) gives p=(1−1).
(xy)=Ae3t(11)+Bet(1−1)
Both eigenvalues are positive: an unstable node. All trajectories move away from the origin.
3. (Warm-up) For dtdx=x−2y, dtdy=3x−4y:
(a) Find the velocity vector at (1,0) and at (0,1).
(b) Find the eigenvalues and classify the equilibrium.
Solution
(a) At (1,0): (13). At (0,1): (−2−4).
(b) λ2−(1−4)λ+(−4+6)=λ2+3λ+2=(λ+1)(λ+2)=0, so λ=−1,−2: both negative, a stable node.
4. (Core) Solve dtdx=4x−2y, dtdy=x+y, with x(0)=3 and y(0)=2. Describe the long-term behaviour of the trajectory.
Solution
λ2−5λ+(4+2)=(λ−2)(λ−3)=0.
λ=2: (21−2−1) gives p1=(11).
λ=3: (11−2−2) gives p2=(21).
At t=0: A(11)+B(21)=(32), so A+2B=3 and A+B=2, giving B=1, A=1:
x=e2t+2e3t,y=e2t+e3t
Both eigenvalues are positive (unstable node), so the trajectory moves away from the origin. The e3t terms dominate, so xy→21: far from the origin the path runs parallel to the direction (21).
5. (Core) Consider dtdx=2x+3y, dtdy=2x+y.
(a) Show that the eigenvalues are 4 and −1, find corresponding eigenvectors, and classify the equilibrium.
(b) Find the solution with x(0)=1, y(0)=−1, and describe it.
(c) Find the solution with x(0)=4, y(0)=1, and describe its long-term behaviour.
Solution
(a) λ2−3λ+(2−6)=λ2−3λ−4=(λ−4)(λ+1)=0. For λ=4: (−223−3) gives p1=(32). For λ=−1: (3232) gives p2=(1−1). Opposite signs: a saddle point.
(b) (1,−1) is on the eigenvector line for λ=−1, so A=0, B=1: x=e−t, y=−e−t. The point moves along the line y=−x straight into the origin.
(c) 3A+B=4 and 2A−B=1. Adding: 5A=5, so A=1, B=1:
x=3e4t+e−t,y=2e4t−e−t
The e4t terms dominate, so the trajectory moves away from the origin with xy→32, approaching the direction (32).
6. (Core) For dtdx=x−5y, dtdy=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, so
λ=2−2±4−8=−1±i
Complex with negative real part: a stable spiral. At (1,0) the velocity is (11), moving up, so trajectories turn anticlockwise as they spiral into the origin.
7. (Core) Each equation describes the displacement x of a mass on a spring. Write each as a system with y=dtdx, classify the equilibrium, and describe the motion.
(a) dt2d2x+3dtdx+2x=0
(b) dt2d2x+2dtdx+5x=0
Solution
(a) dtdx=y, dtdy=−2x−3y, so M=(0−21−3) and λ2+3λ+2=0, giving λ=−1,−2. A stable node: the mass returns to rest at x=0 without oscillating.
(b) dtdx=y, dtdy=−5x−2y, so λ2+2λ+5=0, giving λ=−1±2i. A stable spiral: the mass oscillates back and forth with decreasing amplitude and settles at x=0. (At (1,0) the velocity is (0−5), so the spiral is clockwise.)
8. (Challenge) Consider dtdx=x+ky, dtdy=2x−y, where k is a constant and k=−21.
(a) Show that the eigenvalues satisfy λ2=1+2k.
(b) Find the values of k for which the origin is a saddle point, and those for which it is a centre.
Solution
(a) λ2−(1−1)λ+(−1−2k)=0, so λ2=1+2k.
(b) If k>−21, then 1+2k>0 and λ=±1+2k: real with opposite signs, a saddle point.
If k<−21, then 1+2k<0 and λ=±i−(1+2k): purely imaginary, a centre.
(At k=−21 both eigenvalues are 0, which is why that value is excluded.)
9. (Challenge) The deviations x and y (in hundreds) of a prey and a predator population from their equilibrium values are modelled by
dtdx=0.2x−0.5y,dtdy=0.5x+0.2y
(a) Explain the signs of the coefficients −0.5 and 0.5 in context.
(b) Find the eigenvalues and classify the equilibrium.
(c) Describe the long-term behaviour of the populations, starting from (1,0), and comment on whether the model is realistic in the long run.
Solution
(a) More predators than usual (y>0) makes the prey decrease, hence −0.5y in dtdx. More prey than usual (x>0) gives predators more food, so they increase, hence +0.5x in dtdy.
(b) λ2−0.4λ+(0.04+0.25)=λ2−0.4λ+0.29=0, so
λ=20.4±0.16−1.16=0.2±0.5i
Complex with positive real part: an unstable spiral. At (1,0) the velocity is (0.20.5), 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.