TExcelTAD
Home › Differential Equations › Limit Cycles

Limit Cycles

A center has a whole family of closed orbits, and a small perturbation moves you to a neighbouring one. A limit cycle is different: an isolated closed orbit that nearby trajectories spiral toward (or away from). Heartbeats, a violin string under a bow, oscillating chemical reactions and electronic oscillators all settle onto a limit cycle with a definite amplitude, whatever their starting state. Only nonlinear systems can do this.

The van der Pol oscillator

x′′−μ(1−x2)x′+x=0,μ>0.x'' - \mu(1 - x^2)x' + x = 0, \qquad \mu > 0.

The damping coefficient −μ(1−x2)-\mu(1 - x^2) is negative for small ∣x∣\lvert x\rvert (energy is pumped in) and positive for large ∣x∣\lvert x\rvert (energy is removed). Small oscillations grow, large ones shrink, and the system settles on a cycle in between. The origin is an unstable spiral (its Jacobian [01−1μ]\begin{bmatrix} 0 & 1 \\ -1 & \mu \end{bmatrix} has trace μ>0\mu > 0).

python · try it yourself
import numpy as np
from scipy.integrate import solve_ivp

mu = 1.0
vdp = lambda t, z: [z[1], mu * (1 - z[0]**2) * z[1] - z[0]]
for start in ([0.1, 0.0], [4.0, 0.0]):
    sol = solve_ivp(vdp, (0, 60), start, dense_output=True, rtol=1e-10, atol=1e-12)
    late = sol.sol(np.linspace(40, 60, 20001))[0]
    print(f"start {start}: late-time amplitude max|x| = {np.max(np.abs(late)):.4f}")
start [0.1, 0.0]: late-time amplitude max|x| = 2.0086
start [4.0, 0.0]: late-time amplitude max|x| = 2.0086

Both the tiny and the large initial oscillation end with the same amplitude, about 2: that is the limit cycle.

Measuring the period

python · try it yourself
import numpy as np
from scipy.integrate import solve_ivp

def period(mu):
    up = lambda t, z: z[0]
    up.direction = 1
    sol = solve_ivp(lambda t, z: [z[1], mu * (1 - z[0]**2) * z[1] - z[0]], (0, 200), [2.0, 0.0],
                    events=up, rtol=1e-10, atol=1e-12)
    crossings = sol.t_events[0]
    return crossings[-1] - crossings[-2]

for mu in (0.1, 1.0, 5.0):
    print(f"mu = {mu}: period {period(mu):.4f}")
mu = 0.1: period 6.2871
mu = 1.0: period 6.6633
mu = 5.0: period 11.6122

For small μ\mu the cycle is nearly a circle of radius 2 with period close to 2π2\pi. For large μ\mu the motion becomes a relaxation oscillation: slow creeping followed by fast jumps, with a period that eventually grows in proportion to μ\mu (the leading term of its asymptotic formula is (3−2ln⁡2)μ(3 - 2\ln 2)\mu, which still underestimates the period badly at μ=5\mu = 5).

Existence: the Poincaré-Bendixson theorem

In the plane, if a trajectory stays forever in a closed bounded region that contains no critical points, it approaches a closed orbit. To prove a limit cycle exists, find a "trapping region" (an annulus whose boundary the flow crosses inward) with no equilibrium inside. In two dimensions this theorem rules out anything more complicated than equilibria and cycles. That is why chaos needs at least three dimensions (Chaos and the Lorenz System).

A system with an explicit limit cycle

In polar coordinates, r′=r(1−r2)r' = r(1 - r^2), θ′=1\theta' = 1 decouples: r=1r = 1 is a stable equilibrium of the radial equation, so the unit circle is a stable limit cycle. In Cartesian coordinates this is

x′=x−y−x(x2+y2),y′=x+y−y(x2+y2).x' = x - y - x(x^2 + y^2), \qquad y' = x + y - y(x^2 + y^2).
python · try it yourself
import numpy as np
from scipy.integrate import solve_ivp

f = lambda t, z: [z[0] - z[1] - z[0] * (z[0]**2 + z[1]**2), z[0] + z[1] - z[1] * (z[0]**2 + z[1]**2)]
for start in ([0.05, 0.0], [2.0, 2.0]):
    end = solve_ivp(f, (0, 20), start, rtol=1e-10, atol=1e-12).y[:, -1]
    print(f"start {start}: radius at t = 20 is {np.hypot(*end):.6f}")
start [0.05, 0.0]: radius at t = 20 is 1.000000
start [2.0, 2.0]: radius at t = 20 is 1.000000

This is the normal form of a Hopf bifurcation: as a parameter passes a critical value, a spiral sink loses stability and a small limit cycle is born.

In software

  • Electronic oscillators (the clock in every computer), heart pacemaker models and the central pattern generators that drive walking robots are built around limit cycles.
  • Game AI and procedural animation sometimes use coupled limit-cycle oscillators for natural rhythmic motion (gaits, breathing, flocking pulses), because they recover automatically from perturbations.

Exercises

Exercise 1: Radial equation

For r′=r(4−r2)r' = r(4 - r^2), θ′=1\theta' = 1, find the limit cycle and its stability.

Answer

r=2r = 2, stable.

Solution

r′=0r' = 0 at r=2r = 2 (besides r=0r = 0). For r<2r < 2, r′>0r' > 0; for r>2r > 2, r′<0r' < 0: trajectories approach the circle of radius 2.

Exercise 2: Unstable cycle

What changes for r′=−r(1−r2)r' = -r(1 - r^2)?

Answer

The unit circle becomes an unstable limit cycle; the origin becomes a stable spiral.

Solution

The sign of r′r' flips on both sides of r=1r = 1, so trajectories move away from it: inside they spiral into the origin, outside they go to infinity.

Exercise 3: Amplitude for small μ\mu (code)

Check that the van der Pol limit cycle has amplitude close to 2 for μ=0.05\mu = 0.05 and μ=0.5\mu = 0.5.

Answer

Both amplitudes are about 2.00.

Solution
python · try it yourself
import numpy as np
from scipy.integrate import solve_ivp
for mu in (0.05, 0.5):
    s = solve_ivp(lambda t, z: [z[1], mu * (1 - z[0]**2) * z[1] - z[0]], (0, 400), [0.5, 0.0],
                  dense_output=True, rtol=1e-10, atol=1e-12)
    print(mu, round(np.max(np.abs(s.sol(np.linspace(350, 400, 20001))[0])), 4))
0.05 2.0
0.5 2.0025

Averaging theory predicts amplitude exactly 2 in the limit μ→0\mu \to 0.

Test yourself

A limit cycle is…

  1. any closed orbit
  2. an isolated closed orbit that nearby trajectories approach or leave
  3. a critical point
  4. a straight line

In the van der Pol oscillator, small oscillations…

  1. decay to 0
  2. grow, because the damping is negative near x=0x = 0
  3. stay the same size
  4. become chaotic

Why can't a smooth 2D autonomous system be chaotic?

  1. The Poincaré-Bendixson theorem limits bounded long-term behaviour to equilibria and cycles
  2. 2D systems are always linear
  3. Chaos needs time dependence
  4. It can be