Autonomous Equations
An equation is autonomous if the right-hand side does not depend on the independent variable:
The law does not change over time: a population grows by the same rule today as tomorrow. For such equations you can understand every solution without solving anything, just by looking at the sign of .
Equilibria and the phase line
A critical point (equilibrium) is a value with . The constant is then a solution. Between critical points has a fixed sign, so solutions move monotonically: up where , down where . They can never cross an equilibrium (see Existence and Uniqueness), so they approach one or run off to infinity.
The phase line records this: mark the equilibria on a vertical line and draw arrows between them.
An equilibrium is
- stable (an attractor, a sink) if nearby solutions move toward it from both sides,
- unstable (a repeller, a source) if they move away on both sides,
- semistable if they approach from one side and leave on the other.
If , the equilibrium is stable; if , it is unstable; if the test is inconclusive.
Example: the logistic equation with harvesting
models a population scaled so the carrying capacity is 1, with a constant harvest . For , .
import numpy as np
h = 0.16
f = lambda x: x * (1 - x) - h
fp = lambda x: 1 - 2 * x
roots = np.sort(np.roots([-1, 1, -h]))
for r in roots:
kind = "stable" if fp(r) < 0 else "unstable"
print(f"equilibrium x* = {r:.2f}, f'(x*) = {fp(r):+.2f} -> {kind}")
for x0 in (0.1, 0.5, 1.2):
print(f"x = {x0}: f = {f(x0):+.3f} ->", "increasing" if f(x0) > 0 else "decreasing")equilibrium x* = 0.20, f'(x*) = +0.60 -> unstable
equilibrium x* = 0.80, f'(x*) = -0.60 -> stable
x = 0.1: f = -0.070 -> decreasing
x = 0.5: f = +0.090 -> increasing
x = 1.2: f = -0.400 -> decreasing
The phase line reads: below 0.2 the population collapses; between 0.2 and 0.8 it grows to 0.8; above 0.8 it shrinks to 0.8. So 0.8 is stable and 0.2 is a threshold.
x
^ v (decreasing)
0.8 o stable
| ^ (increasing)
0.2 o unstable
| v (decreasing: extinction)Watching it happen
import numpy as np
from scipy.integrate import solve_ivp
f = lambda t, x: x * (1 - x) - 0.16
for x0 in (0.15, 0.25, 0.5, 1.2):
sol = solve_ivp(f, (0, 40), [x0], rtol=1e-9, atol=1e-12, events=lambda t, x: x[0])
if sol.t_events[0].size:
print(f"x(0) = {x0}: extinct at t = {sol.t_events[0][0]:.2f}")
else:
print(f"x(0) = {x0}: x(40) = {sol.y[0][-1]:.4f}")x(0) = 0.15: extinct at t = 1.96
x(0) = 0.25: x(40) = 0.8000
x(0) = 0.5: x(40) = 0.8000
x(0) = 1.2: x(40) = 0.8000
The events argument stops the solver when reaches 0, which is how simulations detect "the population died out" or "the ball hit the ground".
Bifurcation: when the harvest gets too large
As grows, the two equilibria move together, merge at and disappear. For we have everywhere and every population dies out, no matter how large. A qualitative change like this as a parameter crosses a value is a bifurcation; this one is a saddle-node bifurcation, and it is why overfishing can cause sudden collapse rather than a slow decline.
In software
- Thermostats, cruise control and learning-rate schedules are designed so that the target value is a stable equilibrium of the closed-loop dynamics.
- Gradient descent in one dimension, , is autonomous: minima of the loss are stable equilibria and maxima are unstable ones.
Exercises
Exercise 1: Classify equilibria
Find and classify the equilibria of .
Answer
is stable, is unstable.
Solution
at , and : (stable), (unstable).
Exercise 2: A semistable point
Classify the equilibrium of .
Answer
is semistable.
Solution
everywhere, so solutions increase on both sides: below 1 they approach 1, above 1 they move away. , so the derivative test alone could not decide.
Exercise 3: Critical harvest (code)
For , find the harvest at which the two equilibria merge.
Answer
.
Solution
has a double root when the discriminant , i.e. , at .
import sympy as sp
x, h = sp.symbols("x h")
f = 2 * x * (1 - x / 5) - h
print(sp.solve([f, f.diff(x)], [x, h]))[(5/2, 5/2)]
Test yourself
An equilibrium of with is…
- unstable
- stable
- semistable
- not an equilibrium
Can a solution of (with smooth) cross an equilibrium value?
- Yes, always
- No: uniqueness forbids two solutions through the same point
- Only if is linear
- Only for
In the harvesting model , what happens for ?
- Two stable equilibria appear
- There are no equilibria and the population always dies out
- The population grows without bound
- Nothing changes