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.
Welcome back!
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:
| Condition | Eigenvalues | Type |
|---|---|---|
| D < 0 | real, opposite signs | saddle (unstable) |
| D > 0, T2 > 4D, T < 0 | real, both negative | stable node |
| D > 0, T2 > 4D, T > 0 | real, both positive | unstable node |
| D > 0, T2 < 4D, T < 0 | complex, negative real part | stable spiral |
| D > 0, T2 < 4D, T > 0 | complex, positive real part | unstable spiral |
| D > 0, T = 0 | purely imaginary | center (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.
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.
- Find equilibria by solving f = 0 and g = 0 together.
- 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*).
- 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.
| t | Prey x | Predators y |
|---|---|---|
| 0 | 40 | 10 |
| 1 | 34 | 13 |
| 2 | 24 | 14 |
| 3 | 17 | 12.6 |
| 4 | 14 | 10.4 |
| 5 | 15 | 8.4 |
| 6 | 19 | 7.2 |
| 7 | 26 | 6.8 |
| 8 | 35 | 7.6 |
| 9 | 40 | 9.9 |
| 10 | 35 | 12.9 |
| 11 | 24 | 14 |
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.
- 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?
Lesson complete!