Phase Portraits
When two quantities change together, like two competing populations, you can follow them as a single moving point . A phase portrait is a picture of the paths (trajectories) that point can take. For linear systems , , the eigenvalues and eigenvectors of the matrix 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.
Key ideas
Section titled “Key ideas”The system in matrix form
Section titled “The system in matrix form”Write the system as
The origin 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, and 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
Exact solution for distinct real eigenvalues
Section titled “Exact solution for distinct real eigenvalues”If has distinct real eigenvalues and with eigenvectors and , then the general solution is
where the constants and come from the initial conditions. (Check: each term satisfies because .) 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 , you stay on it, moving away if and toward the origin if . As the term with the larger eigenvalue dominates, which tells you the long-term direction.
The five cases
Section titled “The five cases”| Eigenvalues | Name | What trajectories do |
|---|---|---|
| Both real and positive | Unstable node | All move away from the origin |
| Both real and negative | Stable node | All move toward the origin |
| Real, opposite signs | Saddle point | Come in along the negative eigenvalue’s eigenvector, leave along the positive one’s; all others eventually move away |
| Complex, | Spiral | Spiral out if (unstable), in if (stable) |
| Imaginary, | Centre | Closed circles or ellipses around the origin: periodic motion |
“Stable” means trajectories that start near the origin approach it as .
Sketching a phase portrait
Section titled “Sketching a phase portrait”- Find the eigenvalues and classify the origin.
- 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 the velocity is , so if the point is moving up: anticlockwise. If : clockwise.
- Check a few velocity vectors at points like , and . Trajectories are vertical where and horizontal where .
- Add arrows to every trajectory to show the direction of time.
Second-order equations
Section titled “Second-order equations”The equation becomes a linear system by letting (as on the Euler’s method for systems page):
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.
Worked examples
Section titled “Worked examples”Example 1: A saddle point
Section titled “Example 1: A saddle point”Consider , , with and .
(a) Find the eigenvalues and eigenvectors, and classify the equilibrium.
(b) Find the exact solution, and describe the long-term behaviour.
Solution.
(a) . The characteristic equation is
so or .
- : gives , so .
- : gives , so .
The eigenvalues are real with opposite signs, so the origin is a saddle point.
(b) The general solution is
At : and , so :
As , and grows, so and both increase without bound with : the trajectory moves away from the origin, approaching the direction of the line .
Example 2: A stable node
Section titled “Example 2: A stable node”Consider , , with and . Find the exact solution and describe the phase portrait.
Solution. , with characteristic equation , so or .
- : gives , so .
- : gives , so .
General solution: . At : and , so , :
Both eigenvalues are negative, so the origin is a stable node: every trajectory approaches . The term dies away faster, so near the origin trajectories come in along the line (the eigenvector of , the eigenvalue closer to zero).
Example 3: A spiral in a population model
Section titled “Example 3: A spiral in a population model”Two species live on an island. Their populations differ from their stable values by and (in hundreds), where
Classify the equilibrium, sketch a typical trajectory starting from , and describe what happens to the populations.
Solution. , with characteristic equation :
The eigenvalues are complex with negative real part, so the origin is a stable spiral. Direction: at the velocity is , so the point is moving up and to the left: the spiral turns anticlockwise.
Starting from , 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.
Example 4: A centre from a spring
Section titled “Example 4: A centre from a spring”An undamped spring satisfies .
(a) Write this as a system with , and classify the equilibrium.
(b) Show that every trajectory lies on an ellipse , and describe the trajectory through .
Solution.
(a) , , so . The characteristic equation is , so : purely imaginary. The origin is a centre. At the velocity is (moving down), so trajectories go clockwise.
(b) Differentiate with respect to :
So stays constant along every trajectory. Through , : the ellipse , which crosses the axes at and . The spring oscillates between displacements and forever, with maximum speed as it passes .
Common mistakes
Section titled “Common mistakes”Classifying from the matrix entries instead of the eigenvalues. Negative numbers in the matrix don’t make a system stable. For example, has negative diagonal entries, but its eigenvalues are , about and , 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: . Check by confirming .
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 , where it is .
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.
Practice
Section titled “Practice”1. (Warm-up) Find the eigenvalues of each matrix and classify the equilibrium of .
- (a)
- (b)
- (c)
Solution
(a) The matrix is diagonal, so : both positive, an unstable node.
(b) , so : opposite signs, a saddle point.
(c) , so : imaginary, a centre.
2. (Warm-up) For , , find the eigenvalues and eigenvectors, write down the general solution, and classify the equilibrium.
Solution
, so or .
- : gives .
- : gives .
Both eigenvalues are positive: an unstable node. All trajectories move away from the origin.
3. (Warm-up) For , :
- (a) Find the velocity vector at and at .
- (b) Find the eigenvalues and classify the equilibrium.
Solution
(a) At : . At : .
(b) , so : both negative, a stable node.
4. (Core) Solve , , with and . Describe the long-term behaviour of the trajectory.
Solution
.
- : gives .
- : gives .
At : , so and , giving , :
Both eigenvalues are positive (unstable node), so the trajectory moves away from the origin. The terms dominate, so : far from the origin the path runs parallel to the direction .
5. (Core) Consider , .
- (a) Show that the eigenvalues are and , find corresponding eigenvectors, and classify the equilibrium.
- (b) Find the solution with , , and describe it.
- (c) Find the solution with , , and describe its long-term behaviour.
Solution
(a) . For : gives . For : gives . Opposite signs: a saddle point.
(b) is on the eigenvector line for , so , : , . The point moves along the line straight into the origin.
(c) and . Adding: , so , :
The terms dominate, so the trajectory moves away from the origin with , approaching the direction .
6. (Core) For , , find the eigenvalues, classify the equilibrium, and state the direction in which trajectories turn.
Solution
, so
Complex with negative real part: a stable spiral. At the velocity is , moving up, so trajectories turn anticlockwise as they spiral into the origin.
7. (Core) Each equation describes the displacement of a mass on a spring. Write each as a system with , classify the equilibrium, and describe the motion.
- (a)
- (b)
Solution
(a) , , so and , giving . A stable node: the mass returns to rest at without oscillating.
(b) , , so , giving . A stable spiral: the mass oscillates back and forth with decreasing amplitude and settles at . (At the velocity is , so the spiral is clockwise.)
8. (Challenge) Consider , , where is a constant and .
- (a) Show that the eigenvalues satisfy .
- (b) Find the values of for which the origin is a saddle point, and those for which it is a centre.
Solution
(a) , so .
(b) If , then and : real with opposite signs, a saddle point.
If , then and : purely imaginary, a centre.
(At both eigenvalues are , which is why that value is excluded.)
9. (Challenge) The deviations and (in hundreds) of a prey and a predator population from their equilibrium values are modelled by
- (a) Explain the signs of the coefficients and in context.
- (b) Find the eigenvalues and classify the equilibrium.
- (c) Describe the long-term behaviour of the populations, starting from , and comment on whether the model is realistic in the long run.
Solution
(a) More predators than usual () makes the prey decrease, hence in . More prey than usual () gives predators more food, so they increase, hence in .
(b) , so
Complex with positive real part: an unstable spiral. At the velocity is , 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.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
You may use your GDC to find eigenvalues and eigenvectors, but write down the matrix and characteristic equation each time. Give decimal answers to 3 significant figures.
Foundations
Section titled “Foundations”H1. (Foundations) Find the eigenvalues of each matrix and classify the equilibrium at the origin of .
- (a)
- (b)
- (c)
- (d)
H2. (Foundations) Consider , .
- (a) Find the velocity vector at , at and at .
- (b) Find the equation of the line on which trajectories are vertical, and the line on which they are horizontal.
- (c) Find the eigenvalues, classify the equilibrium, and state whether trajectories turn clockwise or anticlockwise.
H3. (Core) Consider , , with and .
- (a) Find the eigenvalues and corresponding eigenvectors, and classify the equilibrium.
- (b) Find the exact solution.
- (c) Find the exact time when the trajectory crosses the -axis, and the point where it crosses.
- (d) Describe how the trajectory approaches the origin.
H4. (Core) Consider , .
- (a) Show that the eigenvalues are and , find corresponding eigenvectors, and classify the equilibrium.
- (b) Find the solution with and , and describe its long-term behaviour.
- (c) Describe all the starting points whose trajectories approach the origin as .
H5. (Core) (IB style) Two stormwater ponds in a park in Guelph are joined by a pipe. In a hypothetical model, and are how far the water levels in the upper and lower ponds are above their normal levels, in centimetres, hours after a storm, where
Just after the storm, and .
- (a) Explain, in context, why the coefficient of in is positive.
- (b) Find the eigenvalues and eigenvectors, and classify the equilibrium.
- (c) Find and in terms of .
- (d) Use your GDC to find the maximum height of the lower pond above its normal level, and when it occurs.
- (e) Describe what happens to both water levels in the long run.
H6. (Core) The displacement (in centimetres) of a mass on a spring satisfies .
- (a) Write the equation as a system with , find the eigenvalues, and classify the equilibrium.
- (b) Find in terms of when and at . Explain why the mass never passes through .
- (c) A weaker damper changes the equation to . Classify the new equilibrium, state the direction of rotation in the phase portrait, and describe the motion of the mass.
Challenge
Section titled “Challenge”H7. (Challenge) Consider , , where is a constant.
- (a) Show that the characteristic equation is .
- (b) Find the value of for which the origin is a centre, and state the direction of rotation.
- (c) Find all values of for which the origin is a saddle point.
- (d) Find all values of for which the origin is a stable spiral, and all values for which it is a stable node.
H8. (Challenge) Sam is asked to solve , , starting from . Here is Sam’s work.
The eigenvalues are and , with eigenvectors and . So the general solution is . The diagonal entries of the matrix are negative and one eigenvalue is negative, so the origin is a stable saddle point and the trajectory from moves into the origin.
- (a) Check which eigenvector belongs to which eigenvalue.
- (b) Identify every error in Sam’s work and write the correct general solution.
- (c) Find the correct solution from and describe its trajectory.
H9. (Challenge) A linear system has two straight-line trajectories: points on the line move away from the origin with eigenvalue , and points on the line move toward it with eigenvalue .
- (a) Use to find , and check your answer.
- (b) Find the solution starting at , and describe its long-term behaviour.
- (c) Explain, without solving, why the trajectory starting at can never cross the line .
H10. (Challenge) Consider , .
- (a) Find the eigenvalues and eigenvectors, and describe the phase portrait in words (you may also sketch it).
- (b) Show that for a starting point , the coefficient of the growing term in the general solution is . Hence state the condition on for to increase without bound, and the condition for the trajectory to approach the origin.
- (c) A trajectory starts at . Find the exact time when it crosses the -axis, and describe its long-term behaviour.