Differential Equations 6.4: Limit Cycles and Chaos

Differential Equations

Units and Topics

Unit 6. Nonlinear Systems

6.4 Limit Cycles and Chaos

Around a center, each start has its own closed trajectory. Some nonlinear systems have one closed trajectory that all nearby trajectories approach. It is called a limit cycle, and it describes an oscillation that keeps its amplitude without an outside force. This topic covers limit cycles in the plane and the chaotic trajectories of a system with three functions.

You need Topics 6.1 and 6.2 for this topic. The topic uses the stability of Topic 2.5.

1. A Limit Cycle

The system below has the origin as its only equilibrium point.

x′ = −y + x(1 − x² − y²) y′ = x + y(1 − x² − y²)

Follow the distance r from the origin, as in Part 5 of Topic 6.1.

rr′ = xx′ + yy′the derivative of r² = x² + y², divided by 2rr′ = x(−y + x(1 − r²)) + y(x + y(1 − r²))substitute the two equationsrr′ = r²(1 − r²)the terms −xy and xy cancel, and x² + y² is r²r′ = r(1 − r²)divide by r

The distance r follows a first order equation of its own. It is autonomous, so Topic 2.5 applies. For r between 0 and 1, r′ is positive, and r grows. For r greater than 1, r′ is negative, and r decreases. The value r = 1 is a stable equilibrium solution of the equation for r.

The same substitution shows that the angle grows at the constant rate 1. A point with r = 1 moves around the unit circle with the period 2π. All other trajectories, except the origin, spiral toward this circle, from the inside or from the outside.

Limit cycle. A limit cycle is a closed trajectory that nearby trajectories approach or leave. It is stable when the nearby trajectories approach it as t grows.

A limit cycle is different from the closed trajectories around a center. Around a center, the amplitude of the oscillation depends on the start. For a stable limit cycle, the amplitude is a property of the system: each start leads to the same oscillation. A linear system cannot have a limit cycle, because each multiple of a solution of a linear system is a solution.

2. The Oscillator of Van der Pol

The equation below has a friction term with a coefficient that depends on the position. The constant μ is positive.

x″ − μ(1 − x²)x′ + x = 0

When x is between −1 and 1, the coefficient of x′ is negative. This is negative friction, which adds energy. When x is outside this interval, the coefficient is positive, and the friction removes energy. With y = x′, the system is the one below.

x′ = y y′ = −x + μ(1 − x²)y

The origin is the only equilibrium point. The Jacobian matrix at the origin is 01−1μ, with the trace μ and the determinant 1. The trace is positive, so the origin is unstable. For μ less than 2 the discriminant μ² − 4 is negative, and the origin is an unstable spiral.

The energy of the oscillator without friction is E = (1/2)x² + (1/2)y². Its rate of change shows what the friction term does.

dE/dt = xx′ + yy′the chain ruledE/dt = xy + y(−x + μ(1 − x²)y)substitute the two equationsdE/dt = μ(1 − x²)y²the terms xy and −xy cancel

Near the origin, the energy grows, so trajectories move away from the origin. Far from the origin, the trajectory spends most of its time where x² is greater than 1, and the energy decreases. Between them is a closed trajectory on which the energy gained and the energy lost in one turn are equal. This trajectory is a stable limit cycle. Its amplitude in x is close to 2 for each value of μ.

The equation was written in the 1920s for an electric circuit with a vacuum tube. Similar models describe the beat of a heart and the sound of a violin string under a bow: each is an oscillation that keeps its own amplitude.

Try it: the limit cycle of the oscillator of Van der Pol

The system is x′ = y, y′ = −x + μ(1 − x²)y. The slider sets μ. Drag the blue point to choose the start of the blue trajectory. The purple curve is the limit cycle.

3. What a Trajectory in the Plane Can Do

Two trajectories of an autonomous system cannot cross, because the system gives only one direction at each point. In the plane, this limits the possible motions. A trajectory that stays in a bounded region of the plane, for all later times, does one of three things.

  • It approaches an equilibrium point.
  • It approaches a closed trajectory, or it is a closed trajectory.
  • It approaches a chain of curves that connect equilibrium points, such as the separatrices of the pendulum.

This result is the theorem of Poincaré and Bendixson. A system of two autonomous equations has no more complicated motion than these. A system of three equations can have more.

4. Three Functions: The System of Lorenz

In 1963, the meteorologist Edward Lorenz studied a simple model of the motion of air that is heated from below. The model has three functions.

x′ = 10(y − x) y′ = x(28 − z) − y z′ = xy − 8/3z

The equilibrium points are found as before.

y = xfrom the first equation, 10(y − x) = 0x(28 − z) − x = 0the second equation with y = xx(27 − z) = 0factor, so x = 0 or z = 27x² − 8/3(27) = 0the third equation with y = x and z = 27x² = 72multiplyx = ±√72about ±8.49

The system has three equilibrium points: the origin, and the two points with x = y = ±√72 and z = 27. For these numbers, all three points are unstable. The trajectories stay in a bounded region, but they approach no equilibrium point and no closed trajectory. A trajectory turns around one of the two points for a while, then moves to the other one, and the number of turns on each side follows no pattern.

Two trajectories that start very close to each other separate quickly. The table shows the distance between the trajectory that starts at (1, 1, 1) and the trajectory that starts at (1.000001, 1, 1).

TimeDistance between the two trajectories
00.000001
100.000002
200.001
250.3
3034

Chaos. A trajectory is chaotic when it stays in a bounded region, does not approach an equilibrium point or a closed trajectory, and separates quickly from the trajectories that start close to it.

The system has no randomness. The start determines the whole trajectory. But a start is never known exactly, and the small error grows until the prediction has no value. Lorenz concluded that the weather cannot be predicted for more than a limited time, and this conclusion still holds.

Common Mistakes

  • Calling the closed trajectories around a center limit cycles. A limit cycle is a single closed trajectory that the nearby trajectories approach or leave.
  • Expecting the amplitude of a limit cycle to depend on the start. Each nearby start leads to the same oscillation.
  • Looking for a limit cycle in a linear system. A linear system has none.
  • Looking for chaos in an autonomous system of two equations. Trajectories in the plane cannot cross, and chaos needs at least three functions.
  • Describing chaos as random. The equations determine the trajectory. The prediction fails because a small error in the start grows quickly.

Summary

ItemResult
Limit cycleA closed trajectory that nearby trajectories approach or leave
Example in polar formr′ = r(1 − r²), with the stable limit cycle r = 1
Oscillator of Van der Polx″ − μ(1 − x²)x′ + x = 0
Its energydE/dt = μ(1 − x²)y²
Its limit cycleStable, with an amplitude close to 2
Bounded trajectories in the planeApproach an equilibrium point, a closed trajectory, or a chain of connecting curves
System of LorenzThree functions, with chaotic trajectories

Practice

Work each problem on paper first. Then open the answer to check your work.

1. A system has r′ = r(4 − r²) and a constant rate of change 1 for the angle. Find the limit cycle and determine its stability.

r(4 − r²) = 0the equilibrium solutions of the equation for rr = 2the positive solutionr′ = 3at r = 1, so r grows inside the circler′ = −15at r = 3, so r decreases outside the circle

The circle r = 2 is a stable limit cycle.

2. A system has r′ = r(r² − 1) and a constant rate of change 1 for the angle. Is the circle r = 1 a stable limit cycle?

At r = 0.5, r′ is 0.5(0.25 − 1), which is negative. At r = 2, r′ is 2(4 − 1), which is positive.

Trajectories inside the circle move toward the origin, and trajectories outside move away. The circle r = 1 is an unstable limit cycle.

3. Determine the kind of the origin for the oscillator of Van der Pol with μ = 1.

J = 01−11the Jacobian matrix at the originT = 1the traceD = 1the determinantT² − 4D = −3the discriminant is negative

The origin is an unstable spiral.

4. Determine the kind of the origin for the oscillator of Van der Pol with μ = 3.

J = 01−13the Jacobian matrix at the originT = 3the traceD = 1the determinantT² − 4D = 5the discriminant is positive

The eigenvalues are real and positive. The origin is an unstable node.

5. For the oscillator of Van der Pol with μ = 1, find dE/dt at the point (0.5, 2) and at the point (2, 1).

dE/dt = (1 − 0.25)(2)²at the point (0.5, 2)dE/dt = 3the energy growsdE/dt = (1 − 4)(1)²at the point (2, 1)dE/dt = −3the energy decreases

6. In the system of Lorenz, replace the number 28 by 10. Find the equilibrium points other than the origin.

y = xfrom the first equationx(9 − z) = 0the second equation, x(10 − z) − x = 0z = 9for an x that is not 0x² = 24the third equation, x² − (8/3)(9) = 0x = ±√24about ±4.90

The points have x = y = ±√24 and z = 9.

Python Practice

Step 1. The distance from the origin

The code below solves the equation r′ = r(1 − r²) of Part 1 with the method of Euler until t = 10, from one start inside the unit circle and from one start outside.

Python

Both values are 1: both trajectories approach the limit cycle. Now solve the equation r′ = r(4 − r²) of Practice 1. Both values should be 2.

Python

Step 2. The amplitude of the limit cycle

The code below follows the oscillator of Van der Pol with μ = 1 from a start close to the origin until t = 80. During the last 20 units of time it stores the largest value of the absolute value of x. The function np.maximum returns the larger of two numbers.

Python

The amplitude is 2.009. The factor n // 6000 is 0 for the first 6000 steps and 1 after that, so only the last part is used. Now set μ to 2. The amplitude should be 2.020: it stays close to 2.

Python

Step 3. The equilibrium points of the system of Lorenz

The function F below returns the three rates of change of the system of Lorenz. The code calculates them at the origin.

Python

All three rates are 0. Now check the equilibrium point of Part 4 with positive x: the first two entries are the square root of 72, and the third entry is 27. All three rates should be 0, apart from a small rounding error.

Python

Step 4. Two starts that are very close

The code below follows two trajectories of the system of Lorenz. Their starts differ by 0.000001 in the first entry. It prints the distance between the two trajectories at t = 30.

Python

The distance is about 34, as large as the region in which the trajectories move. The two trajectories have nothing in common anymore. Now print the distance at t = 10, with 1000 steps. It should be about 0.000002: at that time the two trajectories are still close.

Python

Step 5. A smaller number in the system of Lorenz

The code below follows the system of Lorenz until t = 40. The number 28 of the second equation is stored in rho.

Python

With 28, the trajectory is chaotic, and the point at t = 40 is not close to an equilibrium point. Now set rho to 10, as in Practice 6. The trajectory should approach the equilibrium point with 4.899, 4.899, and 9. For this smaller number, the two equilibrium points are stable, and there is no chaos.

Python

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. A system has r′ = r(9 − r²) for the distance r from the origin, and the angle grows at the constant rate 1. Find the radius of the limit cycle.

2. What is the difference between a stable limit cycle and the closed trajectories around a center?

3. Which kind of point is the origin for the oscillator of Van der Pol, x′ = y, y′ = −x + μ(1 − x²)y, with μ = 1?

4. Why can an autonomous system of two equations not have chaotic trajectories?

5. In the system of Lorenz, x′ = 10(y − x), y′ = x(28 − z) − y, z′ = xy − (8/3)z, find the value of z at the equilibrium points other than the origin.

Next: Topic 7.1, The Error of the Method of Euler