Critical Points and Linearization
Most real systems are nonlinear: a pendulum at large angles, predators and prey, chemical reactions, epidemics. Their solutions rarely have formulas. But near an equilibrium, a smooth nonlinear system looks like a linear one, and the linear phase portraits tell us what happens there.
Critical points
For an autonomous system
a critical point (equilibrium) is a point where . A nonlinear system can have several.
Example. , (two species competing for food). Setting both to zero: , , and the coexistence point where and , i.e. .
import sympy as sp
x, y = sp.symbols("x y")
f = x * (3 - x - 2 * y)
g = y * (2 - x - y)
print(sp.solve([f, g], [x, y], dict=True))[{x: 0, y: 0}, {x: 0, y: 2}, {x: 1, y: 1}, {x: 3, y: 0}]
The Jacobian
Near a critical point , Taylor expansion gives and similarly for . So the deviation approximately satisfies with the Jacobian matrix
This is the linearization. The eigenvalues of classify the critical point as in the linear case.
import sympy as sp
x, y = sp.symbols("x y")
F = sp.Matrix([x * (3 - x - 2 * y), y * (2 - x - y)])
J = F.jacobian([x, y])
print("J =", J.tolist())
for pt in sp.solve(list(F), [x, y], dict=True):
Jp = J.subs(pt)
ev = list(Jp.eigenvals().keys())
print(f"at ({pt[x]}, {pt[y]}): eigenvalues {ev}")J = [[-2*x - 2*y + 3, -2*x], [-y, -x - 2*y + 2]]
at (0, 0): eigenvalues [3, 2]
at (0, 2): eigenvalues [-1, -2]
at (1, 1): eigenvalues [-sqrt(2) - 1, -1 + sqrt(2)]
at (3, 0): eigenvalues [-1, -3]
Reading the eigenvalues: is a source (both positive), and are sinks (both negative), and is a saddle (opposite signs). So coexistence is unstable: depending on the start, one species wins. Which one is decided by the saddle's stable curve, which separates the two basins of attraction.
Checking with a simulation
import numpy as np
from scipy.integrate import solve_ivp
rhs = lambda t, z: [z[0] * (3 - z[0] - 2 * z[1]), z[1] * (2 - z[0] - z[1])]
for start in ([1.2, 0.8], [0.8, 1.2], [0.5, 0.1], [0.1, 0.5]):
end = solve_ivp(rhs, (0, 60), start, rtol=1e-9, atol=1e-12).y[:, -1]
print(f"start {start} -> end {np.round(end, 4)}")start [1.2, 0.8] -> end [3. 0.]
start [0.8, 1.2] -> end [0. 2.]
start [0.5, 0.1] -> end [3. 0.]
start [0.1, 0.5] -> end [0. 2.]
When linearization is trustworthy
The Hartman-Grobman theorem: if no eigenvalue of has zero real part (the point is hyperbolic), the nonlinear phase portrait near the point looks like the linear one: sinks stay sinks, saddles stay saddles, spirals stay spirals. The borderline cases are not decided by linearization: a linear center can become a nonlinear spiral sink, a spiral source, or remain a center (Conservative Systems and the Pendulum).
In software
- Control engineers linearize a nonlinear plant (a drone, a balancing robot) around the operating point and design the controller for ; this is what "small-signal analysis" means in electronics.
- Automatic differentiation computes Jacobians exactly; JAX's
jax.jacfwdand PyTorch'storch.autograd.functional.jacobianare routinely used for stability analysis of learned dynamics.
Exercises
Exercise 1: Find critical points
Find the critical points of , .
Answer
, , .
Solution
and .
Exercise 2: Classify
Classify the critical points of Exercise 1 by linearization.
Answer
is a saddle; are linear centers (not decided by linearization alone).
Solution
. At the origin, eigenvalues : saddle. At , has : a linear center. The system is conservative (it is ), so these are in fact true centers.
Exercise 3: Jacobian with SymPy (code)
Classify the critical point of , .
Answer
Eigenvalues : a linear center.
Solution
import sympy as sp
x, y = sp.symbols("x y")
J = sp.Matrix([x - x * y, -y + x * y]).jacobian([x, y]).subs({x: 1, y: 1})
print(J.tolist(), J.eigenvals())[[0, -1], [1, 0]] {-I: 1, I: 1}
This is the Lotka-Volterra predator-prey model, where the center survives the nonlinearity (Predator-Prey and Competition Models).
Test yourself
The linearization of at a critical point uses…
- the Hessian
- the Jacobian matrix of at that point
- the determinant of
- the trace of
Linearization reliably predicts the local picture when…
- the point is hyperbolic (no eigenvalue with zero real part)
- the eigenvalues are imaginary
- the Jacobian is zero
- always
A critical point whose Jacobian has eigenvalues and is…
- a sink
- a source
- a saddle
- a center