Skip to content

Systems of ODEs & Stability

From one equation to many — eigenvalues decide where the system goes, and linearization says when the nonlinear world agrees

1. Why systems?

One equation tracks one unknown. Real systems have several that influence each other: two populations, the voltages in two loops, the positions of coupled masses. The state is a vector x(t), and the law of motion is x′ = f(x). Even a single higher-order equation is secretly a system — name each derivative as a new variable:

Second-order equation as a first-order system

The big idea of this chapter is the phase plane: instead of plotting x against t, plot the state (x, v) itself. Time disappears, each solution becomes a curve, and — because the ODE has a unique solution through every point — curves never cross. The ODE chapter showed the four standard pictures; here we derive them.

2. Linear systems: x′ = Ax

For a single equation x′ = ax the solution is eat. Try the same idea for a vector: x = eλtv. Substituting gives λv = Av — the eigenvalue problem from the Linear Algebra chapter. Eigenvectors are exactly the directions along which the system moves in a straight line, and the eigenvalue is the growth rate along it. Since the equation is linear, solutions superpose:

General solution (distinct real eigenvalues)

The other two cases follow the same recipe. A complex pair λ = α ± iβ gives eαt(cos βt, sin βt)-type solutions: a rotation at frequency β with amplitude growing or decaying at rate α — a spiral. A repeated eigenvalue with only one eigenvector adds a term t·eλt.

Worked example 1: solve x′ = Ax, A = [[1, 2], [3, 2]], x(0) = (1, 0)

det(A − λI) = (1 − λ)(2 − λ) − 6 = λ² − 3λ − 4 = (λ − 4)(λ + 1), so λ = 4 and λ = −1. Solving (A − λI)v = 0: λ = 4 gives v₁ = (2, 3); λ = −1 gives v₂ = (1, −1). Match the initial condition:

One growing and one decaying exponential: a saddle. Only initial states exactly on the line through (1, −1) decay to the origin; everything else is flung out along (2, 3).

Worked example 2: the damped oscillator is a spiral

x″ + 2x′ + 2x = 0 becomes the system with A = [[0, 1], [−2, −2]]. Its characteristic equation λ² + 2λ + 2 = 0 gives λ = −1 ± i, so x(t) = e−t(c₁ cos t + c₂ sin t): oscillation at frequency 1 with amplitude decaying like e−t — a stable spiral, the underdamped spring-mass-damper of the ODE chapter seen in the phase plane.

3. The trace–determinant map

For a 2 × 2 matrix the eigenvalues solve λ² − τλ + Δ = 0, where τ = tr A and Δ = det A. So two numbers classify every linear planar system:

Eigenvalues from trace and determinant
Try it

Classify x′ = Ax for without finding eigenvectors.

4. The matrix exponential

There is a way to write every solution at once. Define eAt by the same power series as the scalar exponential; then x(t) = eAtx(0). If A = PΛP⁻¹ is diagonalizable (see the Linear Algebra chapter), the series collapses to a formula you can compute:

Matrix exponential

Worked example 3: three exponentials worth knowing

A rotation generator: the series for eAt reproduces the Taylor series of cos and sin.

So x′ = Ax is a pure rotation at angular speed 1 — and the matrix exponential of an infinitesimal rotation is a finite rotation. A repeated eigenvalue with one eigenvector, A = 2I + N with N = [[0, 1], [0, 0]] and N² = 0:

The t·e2t term is the “resonance” of a repeated root. And the last identity above says that the Laplace transform of eAt is (sI − A)⁻¹: the system’s poles are the eigenvalues of A.

5. Nonlinear systems: equilibria & linearization

Most real systems are nonlinear and cannot be solved in closed form. We can still understand them near an equilibrium x* where f(x*) = 0. There, a smooth f looks linear: with u = x − x*, the dynamics are u′ ≈ Ju, where J is the Jacobian matrix of partial derivatives at x*. The eigenvalues of J classify the equilibrium exactly as before:

Linearization

(This is the multivariable chain rule from the Multivariable Calculus chapter, used as a tangent-plane approximation of the vector field.) The Hartman–Grobman theorem says the linear picture is faithful as long as no eigenvalue sits on the imaginary axis. Here is the classic example, the Lotka–Volterra predator–prey model:

Predator–prey (Lotka–Volterra)

Worked example 4: linearize predator–prey (α = γ = 1, β = δ = ½)

The Jacobian is J = [[α − βy, −βx], [δy, δx − γ]]. At the origin J = diag(1, −1): eigenvalues +1 and −1, a saddle (prey grow, predators die out). At the coexistence point (2, 2):

Eigenvalues ±i are the borderline case: linearization predicts a centre but cannot say whether the nonlinear terms would turn it into a slow spiral. Here a conserved quantity V = δx − γ ln x + βy − α ln y settles it — orbits are level curves of V, so they truly close. Their period grows with size (6.31, 6.38, 6.48 for the three orbits shown).

The pendulum shows both what linearization gives and what it cannot. With v = θ′ the system is θ′ = v, v′ = −sin θ, with conserved energy H = v²/2 − cos θ:

Worked example 5: equilibria of the pendulum

Equilibria need v = 0 and sin θ = 0: θ = 0 (hanging) and θ = π (upright). The Jacobian is [[0, 1], [−cos θ, 0]]:

Hanging is stable (small swings stay small), upright is unstable (a push in the wrong direction grows like et). Add friction, θ″ = −sin θ − cθ′: at the bottom τ = −c < 0 and Δ = 1, a stable spiral for 0 < c < 2, so every swing eventually dies out.

6. Practice & where it shows up

Try it: from a third-order equation to a system

Write y‴ + 3y″ + 2y′ + 5y = 0 as a first-order system x′ = Ax. What is A, and what is its characteristic polynomial?

Try it: can linearization decide?

At an equilibrium the Jacobian has eigenvalues −2 and −0.1. At another it has eigenvalues ±3i. For which one can you trust the linear prediction of the nonlinear behaviour?

Control & state-space models

Modern control writes a plant as ẋ = Ax + Bu. Open-loop stability is “all eigenvalues of A in the left half-plane”; feedback moves the eigenvalues where you want them.

Coupled oscillators & normal modes

Masses on springs, coupled LC circuits, a building’s floors: the eigenvectors are the normal modes, the eigenvalues give their frequencies and damping.

Ecology & epidemiology

Predator–prey, competition and SIR epidemic models are nonlinear systems. Equilibria and their linearizations predict outbreaks, extinctions and cycles.

Chemistry & neuroscience

Reaction networks and neuron models such as FitzHugh–Nagumo are analysed by equilibria, Jacobians, and limit cycles in a phase plane.

7. Resources

This chapter follows Unit IV of MIT 18.03 (first-order systems: eigenvalues, the matrix exponential, nonlinear systems) and the corresponding part of Stanford’s CME 102. Strogatz’s Nonlinear Dynamics and Chaos is the standard next step for phase-plane analysis.

Site soundtrack