James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Calculus › Phase portraits

Coupled systems & phase portraits

Two quantities that drive each other’s rates of change, such as two competing species or the charge and current in a circuit, form a coupled system. The eigenvalues of its matrix decide everything: whether paths fly away, settle down, spiral or circle round for ever.

AHL 5.17HL onlyPaper 1Paper 2Paper 3GDC allowed≈ 55 min to work through
Before you start: eigenvalues and eigenvectors (Eigenvalues & eigenvectors) and complex numbers (Complex numbers).

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Write the system x˙=ax+by, y˙=cx+dy in matrix form and find its eigenvalues and eigenvectorsAHL 5.17
  • Find the exact solution when the eigenvalues are real and distinctAHL 5.17
  • Classify the equilibrium at the origin: real, complex or imaginary eigenvaluesAHL 5.17
  • Identify saddle points, stable and unstable equilibriaAHL 5.17
  • Sketch trajectories on a phase portrait, including their directionAHL 5.17

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Write the system as 𝐱˙=M𝐱. Along an eigenvector, M just multiplies by λ, so the solution there is eλt times the eigenvector: it grows if λ>0 and shrinks if λ<0. Every other path is a mixture of the two eigenvector motions.

2.1 The exact solution for real eigenvalues

Solution of a coupled linear system In formula booklet
(x˙y˙)=(abcd)(xy)⇒(xy)=Aeλ1t𝐩1+Beλ2t𝐩2

λ1,λ2 are the (real, distinct) eigenvalues with eigenvectors 𝐩1,𝐩2. Find A and B from the initial values.

Worked example 1Paper 1
Solve x˙=2x+y, y˙=x+2y with x(0)=3, y(0)=1.
M=(2112): (2−λ)2−1=0⇒λ=3, 1
λ=3: (11); λ=1: (1−1)
A+B=3, A−B=1⇒A=2, B=1
x=2e3t+et, y=2e3t−et

2.2 Classifying the equilibrium

EigenvaluesPaths near the originEquilibrium
real, both positiveall move awayunstable
real, both negativeall move towards the originstable
real, opposite signsin along one eigenvector, out along the othersaddle point (unstable)
complex, positive real partspiral outwardsunstable
complex, negative real partspiral inwardsstable
purely imaginaryclosed loops (circles or ellipses)neither: paths cycle for ever
Worked example 2Paper 1
Classify the equilibrium of x˙=x+2y, y˙=3x+2y, and give the directions of the straight-line paths.
λ2−3λ−4=0⇒λ=4, −1
λ=4: (23); λ=−1: (1−1)
Opposite signs: a saddle point. Paths come in along y=−x and go out along y=32x.
Worked example 3Paper 1
Describe the paths of x˙=−x−2y, y˙=2x−y.
λ=−1±2i: complex with negative real part
Paths spiral in towards the origin (stable).
At (1,0): y˙=2>0, so the paths go anticlockwise.
Check one point to find the direction of rotation.
Worked example 4Paper 1
Describe the paths of x˙=y, y˙=−4x.
λ2+4=0⇒λ=±2i: purely imaginary
Closed ellipses round the origin.
At (1,0): y˙=−4<0, so clockwise.
Worked example 5 (faded)Paper 1
A system has eigenvalues −2 and −5. Classify the origin.
Both negative, so all paths move towards the origin: a stable equilibrium  ← you work this out

2.3 Sketching a phase portrait

Draw the eigenvector lines first (for real eigenvalues), with arrows outwards for positive λ and inwards for negative. Other paths curve between them: as t→∞ they line up with the eigenvector of the larger eigenvalue, and as t→−∞ with the smaller. The gradient of a path at any point is dydx=y˙x˙, which helps you check a sketch.

On your TI-Nspire Calculator tricks →

On the TI-Nspire, store the matrix and use eigVl(m) and eigVc(m) (menu → Matrix & Vector). Complex eigenvalues need the calculator set to rectangular complex format: doc → Settings → Real or Complex: Rectangular. To see a phase portrait, use a Graphs page with menu → Graph Entry → Diff Eq, enter both equations and plot the direction field with an initial condition.

3Explore it

Choose a system (Out: both eigenvalues positive; In: both negative; Saddle; Spiral; Centre) and a starting point. The grey lines, with a dot at the arrow end, show the direction of motion; the red path is the trajectory from the starting point (forwards in time). The readout gives the eigenvalues and the type of equilibrium.

4Common mistakes & exam tips

Common mistakes

  • Saying a saddle point is stable because some paths approach it. Almost all paths eventually leave.
  • Mixing up which eigenvector goes with which eigenvalue in the general solution.
  • Forgetting to find the direction of rotation for spirals and loops.
  • Attempting an exact solution for complex eigenvalues: only the real distinct case is required.
  • Drawing paths that cross each other.

Exam tips

  • Start every question by writing the matrix and finding the eigenvalues on the GDC.
  • Name the case precisely: "complex eigenvalues with negative real part, so the paths spiral into the origin".
  • Test the point (1,0) to find the direction of rotation.
  • In context, a stable equilibrium means the populations settle down; a saddle means the outcome depends on the start.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Write x˙=3x−y, y˙=2x in matrix form and find the eigenvalues.
(3−120); λ2−3λ+2=0⇒1, 2
FluencyP2
Classify the origin when the eigenvalues are 2±3i.
Unstable: paths spiral outwards.
FluencyP3
Classify the origin when the eigenvalues are −1 and 4.
A saddle point.
FluencyP4
For x˙=y, y˙=−9x, describe the paths.
λ=±3i: closed ellipses, clockwise.
Problem solvingP5
For x˙=−3x+y, y˙=x−3y, with x(0)=4, y(0)=0, find x and y.
λ=−2:(11), λ=−4:(1−1); x=2e−2t+2e−4t, y=2e−2t−2e−4t
Problem solvingP6
For the solution in WE1, explain why yx→1 as t→∞.
The e3t terms dominate, so x≈y≈2e3t: the path lines up with (11).

6Exam-style questions

Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

Consider the system x˙=x+4y, y˙=x+y.

  • (a)Find the eigenvalues and corresponding eigenvectors of the matrix of the system.[3]
  • (b)Classify the equilibrium point at the origin.[1]
  • (c)Write down the general solution of the system.[2]
(a)
(1−λ)2−4=0(M1)
λ=3: (21)A1
λ=−1: (2−1)A1
(b)
saddle point (eigenvalues of opposite sign)A1
(c)
(xy)=Ae3t(21)+Be−t(2−1)A1A1
Question 2Paper 1[5 marks]

Consider the system x˙=−2x−5y, y˙=x.

  • (a)Find the eigenvalues of the matrix of the system.[2]
  • (b)Describe the paths of the system near the origin.[2]
  • (c)Determine whether the paths move clockwise or anticlockwise.[1]
(a)
λ2+2λ+5=0(M1)
−1±2iA1
(b)
complex with negative real partR1
paths spiral in towards the originA1
(c)
at (1,0), y˙=1>0: anticlockwiseA1
Question 3Paper 2[9 marks]

Two connected tanks contain a chemical. The amounts above their equilibrium levels, x and y grams, satisfy x˙=−3x+y, y˙=x−3y. Initially x=4 and y=0.

  • (a)Find the eigenvalues and eigenvectors of the matrix of the system.[3]
  • (b)Find x and y in terms of t.[3]
  • (c)Find the maximum value of y, and the time at which it occurs.[2]
  • (d)Describe the long-term behaviour of the system.[1]
(a)
λ=−2: (11)A1A1
λ=−4: (1−1)A1
(b)
A+B=4, A−B=0(M1)
x=2e−2t+2e−4tA1
y=2e−2t−2e−4tA1
(c)
t=ln22=0.347A1
y=0.5 gA1
(d)
both amounts tend to 0: the tanks return to equilibrium (stable)R1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2024 · TZ1 · Paper 1Q15A system given its eigenvalues and eigenvectors★★☆
May 2025 · TZ3 · Paper 1Q11A phase portrait and the trajectory through a point★★☆
Nov 2025 · Paper 1Q14A coupled system with given initial values★★☆
May 2024 · TZ2 · Paper 3Q2Phase portraits for a non-linear predator–prey model★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake