TExcelTAD
Home › Differential Equations › Autonomous Equations

Autonomous Equations

An equation is autonomous if the right-hand side does not depend on the independent variable:

dxdt=f(x).\frac{dx}{dt} = f(x).

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 ff.

Equilibria and the phase line

A critical point (equilibrium) is a value x∗x^* with f(x∗)=0f(x^*) = 0. The constant x(t)=x∗x(t) = x^* is then a solution. Between critical points ff has a fixed sign, so solutions move monotonically: up where f>0f > 0, down where f<0f < 0. 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 f′(x∗)<0f'(x^*) < 0, the equilibrium is stable; if f′(x∗)>0f'(x^*) > 0, it is unstable; if f′(x∗)=0f'(x^*) = 0 the test is inconclusive.

Example: the logistic equation with harvesting

x′=x(1−x)−hx' = x(1 - x) - h models a population scaled so the carrying capacity is 1, with a constant harvest hh. For h=0.16h = 0.16, f(x)=−x2+x−0.16=−(x−0.2)(x−0.8)f(x) = -x^2 + x - 0.16 = -(x - 0.2)(x - 0.8).

python · try it yourself
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.

text
  x
  ^   v   (decreasing)
 0.8  o   stable
  |   ^   (increasing)
 0.2  o   unstable
  |   v   (decreasing: extinction)

Watching it happen

python · try it yourself
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 xx 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 hh grows, the two equilibria 1±1−4h2\frac{1 \pm \sqrt{1 - 4h}}{2} move together, merge at h=14h = \frac{1}{4} and disappear. For h>14h > \frac{1}{4} we have f(x)<0f(x) < 0 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, x′=−L′(x)x' = -L'(x), 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 x′=x2−4x' = x^2 - 4.

Answer

x=−2x = -2 is stable, x=2x = 2 is unstable.

Solution

f(x)=x2−4=0f(x) = x^2 - 4 = 0 at ±2\pm 2, and f′(x)=2xf'(x) = 2x: f′(−2)=−4<0f'(-2) = -4 < 0 (stable), f′(2)=4>0f'(2) = 4 > 0 (unstable).

Exercise 2: A semistable point

Classify the equilibrium of x′=(x−1)2x' = (x - 1)^2.

Answer

x=1x = 1 is semistable.

Solution

f≥0f \ge 0 everywhere, so solutions increase on both sides: below 1 they approach 1, above 1 they move away. f′(1)=0f'(1) = 0, so the derivative test alone could not decide.

Exercise 3: Critical harvest (code)

For x′=2x(1−x/5)−hx' = 2x(1 - x/5) - h, find the harvest hh at which the two equilibria merge.

Answer

h=2.5h = 2.5.

Solution

2x−0.4x2−h=02x - 0.4x^2 - h = 0 has a double root when the discriminant 4−1.6h=04 - 1.6h = 0, i.e. h=2.5h = 2.5, at x=2.5x = 2.5.

python · try it yourself
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 x∗x^* of x′=f(x)x' = f(x) with f′(x∗)<0f'(x^*) < 0 is…

  1. unstable
  2. stable
  3. semistable
  4. not an equilibrium

Can a solution of x′=f(x)x' = f(x) (with ff smooth) cross an equilibrium value?

  1. Yes, always
  2. No: uniqueness forbids two solutions through the same point
  3. Only if ff is linear
  4. Only for t<0t < 0

In the harvesting model x′=x(1−x)−hx' = x(1 - x) - h, what happens for h>1/4h > 1/4?

  1. Two stable equilibria appear
  2. There are no equilibria and the population always dies out
  3. The population grows without bound
  4. Nothing changes