TExcelTAD
Home › Differential Equations › Critical Points and Linearization

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

x′=f(x,y),y′=g(x,y),x' = f(x, y), \qquad y' = g(x, y),

a critical point (equilibrium) is a point where f=g=0f = g = 0. A nonlinear system can have several.

Example. x′=x(3−x−2y)x' = x(3 - x - 2y), y′=y(2−x−y)y' = y(2 - x - y) (two species competing for food). Setting both to zero: (0,0)(0, 0), (0,2)(0, 2), (3,0)(3, 0) and the coexistence point where x+2y=3x + 2y = 3 and x+y=2x + y = 2, i.e. (1,1)(1, 1).

python · try it yourself
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 (x0,y0)(x_0, y_0), Taylor expansion gives f≈fx(x−x0)+fy(y−y0)f \approx f_x(x - x_0) + f_y(y - y_0) and similarly for gg. So the deviation u=(x−x0,y−y0)\mathbf{u} = (x - x_0, y - y_0) approximately satisfies u′=Ju\mathbf{u}' = J\mathbf{u} with the Jacobian matrix

J=[fxfygxgy]∣(x0,y0).J = \begin{bmatrix} f_x & f_y \\ g_x & g_y \end{bmatrix}\Bigg|_{(x_0, y_0)}.

This is the linearization. The eigenvalues of JJ classify the critical point as in the linear case.

python · try it yourself
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: (0,0)(0, 0) is a source (both positive), (3,0)(3, 0) and (0,2)(0, 2) are sinks (both negative), and (1,1)(1, 1) 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

python · try it yourself
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 JJ 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 JJ; this is what "small-signal analysis" means in electronics.
  • Automatic differentiation computes Jacobians exactly; JAX's jax.jacfwd and PyTorch's torch.autograd.functional.jacobian are routinely used for stability analysis of learned dynamics.

Exercises

Exercise 1: Find critical points

Find the critical points of x′=yx' = y, y′=x−x3y' = x - x^3.

Answer

(0,0)(0, 0), (1,0)(1, 0), (−1,0)(-1, 0).

Solution

y=0y = 0 and x(1−x2)=0x(1 - x^2) = 0.

Exercise 2: Classify

Classify the critical points of Exercise 1 by linearization.

Answer

(0,0)(0, 0) is a saddle; (±1,0)(\pm 1, 0) are linear centers (not decided by linearization alone).

Solution

J=[011−3x20]J = \begin{bmatrix} 0 & 1 \\ 1 - 3x^2 & 0 \end{bmatrix}. At the origin, eigenvalues ±1\pm 1: saddle. At (±1,0)(\pm 1, 0), [01−20]\begin{bmatrix} 0 & 1 \\ -2 & 0 \end{bmatrix} has ±i2\pm i\sqrt{2}: a linear center. The system is conservative (it is x′′=x−x3x'' = x - x^3), so these are in fact true centers.

Exercise 3: Jacobian with SymPy (code)

Classify the critical point (1,1)(1, 1) of x′=x−xyx' = x - xy, y′=−y+xyy' = -y + xy.

Answer

Eigenvalues ±i\pm i: a linear center.

Solution
python · try it yourself
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 x′=F(x)\mathbf{x}' = \mathbf{F}(\mathbf{x}) at a critical point uses…

  1. the Hessian
  2. the Jacobian matrix of F\mathbf{F} at that point
  3. the determinant of F\mathbf{F}
  4. the trace of x\mathbf{x}

Linearization reliably predicts the local picture when…

  1. the point is hyperbolic (no eigenvalue with zero real part)
  2. the eigenvalues are imaginary
  3. the Jacobian is zero
  4. always

A critical point whose Jacobian has eigenvalues 22 and −1-1 is…

  1. a sink
  2. a source
  3. a saddle
  4. a center