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
The damping coefficient is negative for small (energy is pumped in) and positive for large (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 has trace ).
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
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 the cycle is nearly a circle of radius 2 with period close to . For large the motion becomes a relaxation oscillation: slow creeping followed by fast jumps, with a period that eventually grows in proportion to (the leading term of its asymptotic formula is , which still underestimates the period badly at ).
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, , decouples: is a stable equilibrium of the radial equation, so the unit circle is a stable limit cycle. In Cartesian coordinates this is
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 , , find the limit cycle and its stability.
Answer
, stable.
Solution
at (besides ). For , ; for , : trajectories approach the circle of radius 2.
Exercise 2: Unstable cycle
What changes for ?
Answer
The unit circle becomes an unstable limit cycle; the origin becomes a stable spiral.
Solution
The sign of flips on both sides of , so trajectories move away from it: inside they spiral into the origin, outside they go to infinity.
Exercise 3: Amplitude for small (code)
Check that the van der Pol limit cycle has amplitude close to 2 for and .
Answer
Both amplitudes are about 2.00.
Solution
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 .
Test yourself
A limit cycle is…
- any closed orbit
- an isolated closed orbit that nearby trajectories approach or leave
- a critical point
- a straight line
In the van der Pol oscillator, small oscillations…
- decay to 0
- grow, because the damping is negative near
- stay the same size
- become chaotic
Why can't a smooth 2D autonomous system be chaotic?
- The Poincaré-Bendixson theorem limits bounded long-term behaviour to equilibria and cycles
- 2D systems are always linear
- Chaos needs time dependence
- It can be