AnyLearn
All lessons
Mathintermediate

The Phase Plane: Linear Systems, Eigenvalues, and Limit Cycles

Two variables make oscillation possible. Classify every fixed point of a linear system from its eigenvalues or from trace and determinant, linearize nonlinear systems with the Jacobian, analyse the Lotka-Volterra predator-prey model and its conserved quantity, and see why limit cycles are the robust oscillators and why the plane cannot be chaotic.

Updated · AI-authored, review-gated · how lessons are made

Progress1 / 10

Two dimensions buy oscillation

A planar system x˙=f(x,y)\dot{x} = f(x, y), y˙=g(x,y)\dot{y} = g(x, y) attaches a velocity arrow to every point of the plane. Solutions follow the arrows, and the picture of all of them together is the phase portrait. Uniqueness still holds, so trajectories never cross, but now they can circle back: a second dimension gives room to turn around without stopping, which a line never had. That is where oscillators live, from a pendulum's angle and angular velocity to a predator and its prey.

A planar portrait is assembled from a short list of parts:

  • Fixed points, where ff and gg both vanish.
  • Closed orbits, which are periodic solutions.
  • Separatrices, special trajectories that divide the plane into basins of attraction.
  • Limit cycles, isolated closed orbits that attract or repel their neighbours.

The strategy is to master linear systems completely, then use them as a local lens on nonlinear ones.

Sign in free to save your progress and earn certificates.

Full lesson text

All 10 steps on one page, for reading, reference, and search.

Show

1. Two dimensions buy oscillation

A planar system x˙=f(x,y)\dot{x} = f(x, y), y˙=g(x,y)\dot{y} = g(x, y) attaches a velocity arrow to every point of the plane. Solutions follow the arrows, and the picture of all of them together is the phase portrait. Uniqueness still holds, so trajectories never cross, but now they can circle back: a second dimension gives room to turn around without stopping, which a line never had. That is where oscillators live, from a pendulum's angle and angular velocity to a predator and its prey.

A planar portrait is assembled from a short list of parts:

  • Fixed points, where ff and gg both vanish.
  • Closed orbits, which are periodic solutions.
  • Separatrices, special trajectories that divide the plane into basins of attraction.
  • Limit cycles, isolated closed orbits that attract or repel their neighbours.

The strategy is to master linear systems completely, then use them as a local lens on nonlinear ones.

2. Linear systems are solved by eigenvectors

For x˙=Ax\dot{\mathbf{x}} = A\mathbf{x} with a 2-by-2 matrix AA, look for straight-line solutions x(t)=eλtv\mathbf{x}(t) = e^{\lambda t}\mathbf{v}. Substituting gives Av=λvA\mathbf{v} = \lambda\mathbf{v}, the eigenvalue problem. With two distinct eigenvalues, every solution is a mix of the two straight-line ones:

x(t)=c1eλ1tv1+c2eλ2tv2\mathbf{x}(t) = c_1 e^{\lambda_1 t}\mathbf{v}_1 + c_2 e^{\lambda_2 t}\mathbf{v}_2

Worked example: A=(1141)A = \begin{pmatrix} 1 & 1 \\ 4 & 1 \end{pmatrix} has eigenvalues 33 and −1-1, with eigenvectors (1,2)(1, 2) and (1,−2)(1, -2). Along (1,2)(1, 2) solutions grow like e3te^{3t}; along (1,−2)(1, -2) they shrink like e−te^{-t}. Every other trajectory comes in along the shrinking direction and leaves along the growing one. That is a saddle.

The eigenvectors are the skeleton of the portrait. Complex eigenvalues α±iω\alpha \pm i\omega turn the straight lines into rotation at angular frequency ω\omega, while the factor eαte^{\alpha t} makes the rotation grow or shrink.

3. Six kinds of fixed point

EigenvaluesFixed pointWhat trajectories do
Real, both negativestable nodeapproach without circling
Real, both positiveunstable nodeleave without circling
Real, opposite signssaddleapproach along one line, leave along another
Complex, negative real partstable spiralspiral inward
Complex, positive real partunstable spiralspiral outward
Purely imaginarycentercircle on closed ellipses forever

Key idea: the real parts decide stability. All negative means every perturbation decays; any positive means some perturbation grows. The imaginary parts only add rotation. It is the same criterion a control engineer uses when placing a closed-loop system's poles in the left half of the complex plane.

There are borderline cases this table skips, repeated eigenvalues (degenerate nodes and stars) and a zero eigenvalue (a whole line of fixed points). They sit on the boundaries between the rows and break under the smallest perturbation of AA.

4. Trace and determinant: classification without eigenvectors

The eigenvalues of a 2-by-2 matrix solve λ2−τλ+Δ=0\lambda^2 - \tau\lambda + \Delta = 0, where τ\tau is the trace and Δ\Delta the determinant:

λ1,2=τ±τ2−4Δ2\lambda_{1,2} = \frac{\tau \pm \sqrt{\tau^2 - 4\Delta}}{2}

So Δ<0\Delta < 0 means a saddle. With Δ>0\Delta > 0, the sign of τ2−4Δ\tau^2 - 4\Delta separates nodes (positive) from spirals (negative), and the sign of τ\tau decides stability, with τ=0\tau = 0 giving a center.

Predict first

A damped spring obeys x¨+x˙+4x=0\ddot{x} + \dot{x} + 4x = 0. As a system, A=(01−4−1)A = \begin{pmatrix} 0 & 1 \\ -4 & -1 \end{pmatrix}. Is the rest state a node or a spiral, stable or unstable?

5. The trace-determinant decision

Two numbers from the matrix classify every hyperbolic fixed point in the plane. For a nonlinear system, apply it to the Jacobian at each fixed point.

flowchart TD
  A["Compute trace tau and determinant Delta"] --> B["Is Delta negative?"]
  B --> C["Yes: saddle, always unstable"]
  B --> D["No: compare tau squared with 4 Delta"]
  D --> E["Larger: node"]
  D --> F["Smaller: spiral, or center if tau = 0"]
  E --> G["Sign of tau: negative is stable, positive unstable"]
  F --> G

6. Nonlinear systems: linearize at each fixed point

Near a fixed point (x∗,y∗)(x^*, y^*), a nonlinear system behaves like its linearization, with the Jacobian matrix playing the role of AA:

J=(∂f/∂x∂f/∂y∂g/∂x∂g/∂y)∣(x∗, y∗)J = \begin{pmatrix} \partial f/\partial x & \partial f/\partial y \\ \partial g/\partial x & \partial g/\partial y \end{pmatrix}\Bigg|_{(x^*,\, y^*)}

The Hartman-Grobman theorem makes this precise. If no eigenvalue of JJ has zero real part, a hyperbolic fixed point, the nonlinear flow nearby is a continuous deformation of the linear one. Saddles, nodes and spirals survive the nonlinear terms.

Gotcha: centers do not. Purely imaginary eigenvalues are the borderline case, and tiny nonlinear terms can turn a linear center into a slow spiral in either direction. When linearization predicts a center, you need an extra argument, such as a conserved quantity or a symmetry, before believing in closed orbits.

To glue the local pictures together, draw the nullclines: the curves where x˙=0\dot{x} = 0 (arrows vertical) and where y˙=0\dot{y} = 0 (arrows horizontal). Fixed points are where they cross.

7. Predator and prey: the Lotka-Volterra model

Alfred Lotka (1925) and Vito Volterra (1926) wrote the same model independently. Prey xx grow exponentially on their own, predators yy starve exponentially on their own, and encounters convert prey into predators:

x˙=αx−βxy,y˙=δxy−γy\dot{x} = \alpha x - \beta xy, \qquad \dot{y} = \delta xy - \gamma y

The coexistence fixed point is (γ/δ, α/β)(\gamma/\delta,\ \alpha/\beta). Its Jacobian has trace 00 and determinant αγ\alpha\gamma, so the eigenvalues are ±iαγ\pm i\sqrt{\alpha\gamma}: a linear center, exactly the case the Hartman-Grobman gotcha warns about. Here the doubt is settled by a conserved quantity,

V(x,y)=δx−γln⁡x+βy−αln⁡yV(x, y) = \delta x - \gamma \ln x + \beta y - \alpha \ln y

whose time derivative is identically zero along trajectories. Orbits are therefore closed level curves of VV, and the nonlinear system really does cycle: prey peak, predators peak afterwards, prey crash under the predation, predators starve, and the loop repeats.

8. Checking the cycle numerically

A conserved quantity is also a free test of your solver: if VV drifts, the numbers are lying.

import numpy as np
from scipy.integrate import solve_ivp

a, b, g, d = 1.0, 0.1, 1.5, 0.075     # alpha, beta, gamma, delta

def lv(t, z):
    x, y = z
    return [a*x - b*x*y, d*x*y - g*y]

def V(x, y):
    return d*x - g*np.log(x) + b*y - a*np.log(y)

for rtol in (1e-3, 1e-10):
    sol = solve_ivp(lv, (0, 50), [10, 5], rtol=rtol, atol=rtol*1e-2)
    v = V(*sol.y)
    print(rtol, f"{v.max() - v.min():.1e}")

The coexistence point is (20,10)(20, 10). Starting from (10,5)(10, 5), run as written this prints a drift of 2.4e-02 at the loose tolerance and 3.7e-10 at the tight one. At tight tolerance the prey swing between about 7.9 and 40.6 and the predators between 3.1 and 23.3, with a period of about 5.48, longer than the small-oscillation value 2π/αγ≈5.132\pi/\sqrt{\alpha\gamma} \approx 5.13, because large orbits travel slowly through the low-population corner.

Gotcha: at loose tolerance the computed orbits do not close; they slowly migrate between level curves. An artefact like that is easy to mistake for real dynamics, such as a spiral.

9. What the model leaves out

The Hudson's Bay Company fur records analysed by Charles Elton and Mary Nicholson (Journal of Animal Ecology, 1942) show Canadian lynx numbers cycling with a period of roughly ten years, alongside cycles in snowshoe hare. It is the textbook image of predator-prey oscillation, but ecologists have since argued that the hare cycle also involves food supply and other predators, so a two-species model is a caricature. Its mathematical structure is fragile too:

Lotka-Volterra featureWhy it is fragileA common fix and its effect
Amplitude set by the starting pointany shock moves the system to a different orbitnone within the model
Neutral centerstructurally unstable, as the Hartman-Grobman gotcha warnsadd prey crowding: the center becomes a stable spiral
Predators eat without limitunrealistic at high prey densitysaturating predation (Holling type II) can produce a limit cycle

The robust version of an oscillation is not a family of neutral orbits but one attracting cycle.

10. Limit cycles, and why the plane cannot be chaotic

A limit cycle is an isolated closed orbit: nearby trajectories spiral onto it if it is stable, or away if it is unstable. Unlike a center, its amplitude is set by the system, not by where you start. The Van der Pol oscillator,

x¨−μ(1−x2)x˙+x=0\ddot{x} - \mu(1 - x^2)\dot{x} + x = 0

pumps energy in at small amplitude, where the damping term is negative, and drains it at large amplitude. With μ=1\mu = 1, a run started at x=0.1x = 0.1 and one started at x=4x = 4 both settle to an amplitude of about 2.01, computed with SciPy's solve_ivp. Heartbeats, neural rhythms and the central pattern generators that drive walking robots all rely on this robustness (see this catalogue's lesson on coupled oscillators).

Key idea: the Poincare-Bendixson theorem says that in the plane, a trajectory confined to a bounded region containing no fixed points must approach a closed orbit. So the long-run menu in two dimensions is short: fixed points, closed orbits, and trajectories connecting them. Chaos needs a third dimension.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. A linear system has eigenvalues -2 and 3. What kind of fixed point is the origin?
    • Stable node
    • Unstable spiral
    • Center
    • Saddle
  2. A 2-by-2 linear system has trace -1 and determinant 4. What is the origin?
    • Saddle
    • Stable spiral
    • Unstable node
    • Center
  3. Linearizing a nonlinear system at a fixed point gives purely imaginary eigenvalues. What can you conclude?
    • The nonlinear system has closed orbits around the point
    • The point is a saddle
    • Nothing definite yet; nonlinear terms can turn it into a weak spiral either way
    • The point is unstable
  4. What distinguishes a limit cycle from the closed orbits of the Lotka-Volterra model?
    • A limit cycle is isolated and attracts or repels its neighbours, so its amplitude does not depend on the starting point
    • A limit cycle always has a longer period
    • A limit cycle can only occur in linear systems
    • A limit cycle passes through a fixed point
  5. Why can't a smooth autonomous system in the plane be chaotic?
    • Because planar systems are always linear
    • By Poincare-Bendixson, bounded trajectories with no fixed points in their region must approach a closed orbit
    • Because planar trajectories always escape to infinity
    • Because the Jacobian of a planar system is always symmetric

Related lessons

Math
intermediate

Chaos: The Lorenz System, Sensitive Dependence, and Strange Attractors

Three variables are enough for deterministic equations to become unpredictable. Work through the Lorenz system's fixed points and loss of stability, the shrinking volume behind its strange attractor, Lyapunov exponents and the predictability horizon, a measurement you can run yourself, and the period-doubling route to chaos in the logistic map.

10 steps·~15 min
Math
intermediate

Flows on a Line: Fixed Points, Stability, and Bifurcations

Read a one-dimensional differential equation without solving it. Find fixed points, judge their stability from a slope, see why a line cannot oscillate, and classify the bifurcations that make a system tip. A harvested fishery shows a collapse threshold, hysteresis, and the slow recovery that warns before the jump.

10 steps·~15 min
Math
intermediate

What a Differential Equation Says: Rates, Solutions, and Slope Fields

A differential equation is a local rule for change, not a formula for the answer. Learn to read and classify one, solve the exponential and logistic cases, know when a unique solution exists, turn any order into a first-order system, and step forward numerically with Euler and Runge-Kutta.

10 steps·~15 min
Robotics
advanced

The Mathematics of Coupled Oscillators

How a handful of phase oscillators produce coordinated gaits: limit cycles and why they resist disturbance, phase coupling that locks oscillators into fixed relationships, and the travelling waves that swim a robot.

8 steps·~12 min