Find a course

Module 6: Systems and Phase PortraitsLesson 12 of 1216 min

Phase Portraits and Nonlinear Systems

Classify equilibria from trace and determinant, sketch phase portraits, and analyze nonlinear models such as predator-prey and the pendulum by linearization.

Step 1 of 11Learn

A map of all solutions

For a two-dimensional system, plot solutions not against time but in the phase plane, with x on one axis and y on the other. Each solution traces a curve, a trajectory, and the collection of trajectories is a phase portrait. It shows the fate of every starting point at once.

For a linear system x′ = Ax, the equilibrium at the origin falls into a few types, all determined by the eigenvalues, or equivalently by the trace T and determinant D:

ConditionEigenvaluesType
D < 0real, opposite signssaddle (unstable)
D > 0, T2 > 4D, T < 0real, both negativestable node
D > 0, T2 > 4D, T > 0real, both positiveunstable node
D > 0, T2 < 4D, T < 0complex, negative real partstable spiral
D > 0, T2 < 4D, T > 0complex, positive real partunstable spiral
D > 0, T = 0purely imaginarycenter (closed orbits)

Examples.

  • A = [[−1, 2], [−2, −1]]: T = −2, D = 5, T2 − 4D = −16. Stable spiral: eigenvalues −1 ± 2i. Trajectories wind inward.
  • A = [[0, 1], [−4, 0]]: T = 0, D = 4. Center: eigenvalues ±2i. Trajectories are closed ellipses, like an undamped spring.
  • A = [[−3, 1], [1, −3]]: T = −6, D = 8, T2 − 4D = 4. Stable node: eigenvalues −2 and −4.

A damped spring, written as a system, is a stable spiral if underdamped and a stable node if overdamped. The phase portrait and the time plots tell the same story in different pictures.

Step 2 of 11Practice · Sort into groups

Classify the equilibrium at the origin for each matrix A.

Tap an item, then tap its group (or drag it there).

Step 3 of 11Diagram

Classifying an equilibrium by its eigenvalues

For x′ = Ax with 2×2 A, the eigenvalues decide the picture in the phase plane. Tap a type.

Classifying an equilibrium by its eigenvaluesHierarchy diagram: Eigenvalues of A, Real, Complex α ± βi, Both negative: stable node, Both positive: unstable node, Opposite signs: saddle, α < 0: stable spiral, α > 0: unstable spiral, α = 0: center.Eigenvalues of ARealBoth negative: stable nodeBoth positive: unstable nodeOpposite signs: saddleComplex α ± βiα < 0: stable spiralα > 0: unstable spiralα = 0: center

Tap a shape with to see more.

Eigenvalues of A
Real
Complex α ± βi
Both negative: stable node

All trajectories head straight into the origin.

Both positive: unstable node

All trajectories leave the origin.

Opposite signs: saddle

In along one eigenvector, out along the other; unstable. Determinant < 0.

α < 0: stable spiral

Trajectories spiral inward.

α > 0: unstable spiral

Trajectories spiral outward.

α = 0: center

Closed orbits around the origin, like an undamped spring.

Step 4 of 11Learn

Nonlinear systems and linearization

Real models are usually nonlinear: x′ = f(x, y), y′ = g(x, y). They can have several equilibria, and formulas for solutions rarely exist. The strategy is to study each equilibrium locally.

  1. Find equilibria by solving f = 0 and g = 0 together.
  2. Linearize. Near an equilibrium (x*, y*), the system behaves like the linear system with the Jacobian matrix

J = [[∂f/∂x, ∂f/∂y], [∂g/∂x, ∂g/∂y]], evaluated at (x*, y*).

  1. Classify the equilibrium using J's trace and determinant.

The Hartman-Grobman theorem guarantees that saddles, nodes and spirals of the linearization match the true behavior near the equilibrium. The exception is borderline cases: when the linearization is a center (or has a zero eigenvalue), the nonlinear terms decide, and the true behavior may be a center, a slow spiral in or a slow spiral out.

Example: the pendulum. θ″ + (g/L)·sin θ = 0. As a system: x = θ, y = θ′, so x′ = y and y′ = −(g/L) sin x.

  • Equilibria: y = 0 and sin x = 0, so x = 0 (hanging down) or x = π (balanced upright).
  • Jacobian: [[0, 1], [−(g/L) cos x, 0]].
  • At x = 0: D = g/L > 0, T = 0, a center. The pendulum swings back and forth; energy conservation confirms true closed orbits. For small swings the period is 2π√(L/g), about 2.0 s for a 1 m pendulum.
  • At x = π: D = −g/L < 0, a saddle. Balanced upright, the slightest nudge sends it falling.

Step 5 of 11Practice · Work it out

What is the small-angle period, in seconds, of a pendulum 2.0 m long? Use g = 9.81 m/s2 and round to two decimals.

Step 6 of 11Learn

Predator and prey

In the 1920s Alfred Lotka and Vito Volterra independently proposed a model of interacting species. Let x be the prey (rabbits) and y the predators (foxes):

x′ = a·x − b·x·y y′ = −c·y + d·x·y

Without foxes, rabbits grow exponentially (rate a). Without rabbits, foxes die off (rate c). Encounters, proportional to xy, remove rabbits (rate b) and feed foxes (rate d).

Equilibria. Setting both rates to zero: (0, 0), and the coexistence point (c/d, a/b).

Linearize. The Jacobian is [[a − by, −bx], [dy, −c + dx]].

  • At (0, 0): J = [[a, 0], [0, −c]], eigenvalues a > 0 and −c < 0. A saddle: extinction of both is unstable.
  • At (c/d, a/b): J = [[0, −bc/d], [ad/b, 0]], with T = 0 and D = ac > 0. A center in the linearization, with eigenvalues ±i√(ac).

The center is a borderline case, but this model has a conserved quantity, so the trajectories truly are closed loops. Populations cycle forever: rabbits boom, foxes follow, rabbits crash, foxes crash, and around again. The fox peak lags behind the rabbit peak.

Example. With a = 0.5, b = 0.02, c = 0.4, d = 0.01, the coexistence point is (40, 25), and small cycles have period about 2π/√(0.2) ≈ 14 time units.

Real ecosystems are messier: adding prey self-limitation (a logistic term) turns the center into a stable spiral, and populations settle down.

Step 7 of 11Practice · Chart

Predator and prey cycles over time

A numerical solution of x′ = x − 0.1xy, y′ = −0.5y + 0.02xy starting from 40 prey and 10 predators. Predators peak after prey, and both cycles repeat.

Tap the time at which predators reach their first peak.

Tap the point that answers the question, then press Check.

Predator and prey cycles over timeLine chart with 12 categories: 0: Prey x 40, Predators y 10; 1: Prey x 34, Predators y 13; 2: Prey x 24, Predators y 14; 3: Prey x 17, Predators y 12.6; 4: Prey x 14, Predators y 10.4; 5: Prey x 15, Predators y 8.4; 6: Prey x 19, Predators y 7.2; 7: Prey x 26, Predators y 6.8; 8: Prey x 35, Predators y 7.6; 9: Prey x 40, Predators y 9.9; 10: Prey x 35, Predators y 12.9; 11: Prey x 24, Predators y 14.01020304001234567891011t
Illustrative parameters; computed with a Runge-Kutta solver.
Predator and prey cycles over time
tPrey xPredators y
04010
13413
22414
31712.6
41410.4
5158.4
6197.2
7266.8
8357.6
9409.9
103512.9
112414

Step 8 of 11Explore

Small predator-prey cycles

Near the coexistence point, the linearized prey population oscillates as x(t) ≈ x* + A·cos(√(ac)·t), with x* = c/d. Change the rates and see how the cycle period and the equilibrium shift.

050100150 01020304050
Prey equilibrium c/d
40
Period of small cycles 2π/√(ac)
14.05 time units

Step 9 of 11Note

Step 10 of 11Practice · What would you do?

What would you do?

A biologist linearizes a nonlinear two-species model at its coexistence equilibrium and gets the Jacobian J = [[0, −2], [3, 0]]. She concludes: "The populations will cycle forever around the equilibrium." Is that conclusion justified?

Step 11 of 11Practice · Choose one

For the Lotka-Volterra model x′ = 0.6x − 0.03xy, y′ = −0.5y + 0.01xy, where is the coexistence equilibrium?