Chaos in maps: the logistic map, period doubling and Lyapunov exponents
Two-variable flows cannot be chaotic, but maps can: the Poincaré map of the driven pendulum is a two-variable map, and even one variable suffices. The logistic map x_(n+1) = r x_n(1 − x_n) stays in [0, 1] for 0 < r ≤ 4. Its fixed points are x* = 0 and x* = 1 − 1/r; a fixed point of a map is stable when |f′(x*)| < 1, so x* = 0 is stable for r < 1 and 1 − 1/r for 1 < r < 3. At r = 3 the fixed point gives way to a stable 2-cycle, a pair of fixed points of f(f(x)), which itself turns unstable at r = 1 + √6 when |f′(p)f′(q)| exceeds 1. Period doublings 2 → 4 → 8 → … come ever faster, their spacings shrinking by the universal Feigenbaum ratio 4.669…, and accumulate at r ≈ 3.5699, beyond which the map is mostly chaotic, with periodic windows such as the 3-cycle near 3.83. Chaos is confirmed by a positive Lyapunov exponent λ = lim (1/n) Σ ln|f′(x_j)|. Bounded orbits can separate exponentially because the map stretches and folds the interval, like kneading dough.
Section 7.4 showed that two continuous variables cannot produce chaos, and that three can. Before tackling three-variable flows, Stewart looks for chaos in a simpler setting: maps, where time advances in discrete steps. (Citations give the printed page numbers 182 to 188 of the Chapter 7 notes. On this page n counts iterations, r is the parameter of the map, and p, q are the two points of a 2-cycle.)
Flows with two variables are understood through their fixed points and limit cycles, and they include every one-dimensional particle with its two phase-space variables; none of them is chaotic (p. 182). Chaos was found in Section 7.1, however, in the Poincaré section of the driven pendulum. Sampling at φ=2πN, the state at one drive period determines the next one, so the section defines a map of two discrete variables (p. 182):
The pendulum's Poincaré map
θN+1=f1(θN,ωN),ωN+1=f2(θN,ωN)
In words
theta sub N plus 1 equals f 1 ( theta sub N, omega sub N ), omega sub N plus 1 equals f 2 ( theta sub N, omega sub N )
The functions f1 and f2 exist because the three-variable flow has unique solutions. One can go further: a one-dimensional mapxn+1=f(xn) with a nonlinearf is already enough for chaos (p. 182). The standard example is the logistic map (p. 182)
Logistic map
xn+1=f(xn)=rxn(1−xn)
In words
x sub n plus 1 equals f( x sub n ) equals r x sub n the quantity 1 minus x sub n
For 0<r≤4, an xn in [0,1] stays in [0,1], because the largest value of f is f(21)=r/4 (p. 182). Its graph in the xn–xn+1 plane is a parabola whose height grows with r.
Loading graph…
The logistic map, computed from f(x)=rx(1−x), with the diagonal xn+1=xn; move the slider. Fixed points are where the parabola meets the diagonal: always at 0, and at 1−1/r once r>1. The peak f(21)=r/4 reaches 1 at r=4.
x sub n plus 1 equals x star plus eta sub n plus 1 equals f of the quantity x star plus eta sub n, equals f( x star ) plus d f over d x evaluated at x star eta sub n plus O( eta sub n squared )
Each step multiplies the deviation by the same factor. If ∣f′(x∗)∣<1 the deviation shrinks to zero and the fixed point is stable; if ∣f′(x∗)∣>1 it grows and the fixed point is unstable; if ∣f′(x∗)∣=1 the fixed point is marginal and the linear analysis does not decide (p. 183). (The notes write these steps with the index N.) Unlike in a one-dimensional flow, where a deviation keeps its sign, the multiplier of a one-dimensional map can be negative, and then the deviation changes sign at every step.
The origin is stable for r<1; the other fixed point is stable for 1<r<3 and unstable otherwise (p. 184). Hence, for almost every starting point in (0,1) (p. 184; the qualifier is ours),
Long-term behaviour for r<3
n→∞limxn=⎩⎨⎧0,1−r1,r<11<r<3
In words
the limit as n goes to infinity of x sub n equals 0, when r less than 1; or 1 minus 1 over r, when 1 less than r less than 3
x∗=1−1/2.5=0.6, with multiplier f′(x∗)=2−2.5=−0.5: stable.
The iterates
x1=2.5×0.3×0.7=0.525, then x2=0.6234, x3=0.5869, x4=0.6061, x5=0.5968. The deviations from 0.6 are −0.075, +0.023, −0.013, +0.006, −0.003: they alternate in sign and, once small, roughly halve each step, as the multiplier −0.5 predicts.
a fourth-order polynomial in xn. Besides the origin, for r just above 3 its graph crosses the diagonal three times: at the old fixed point1−1/r, now unstable, and at two new stable points p and q (p. 184). Since f(f(p))=p but f(p)=p, the map sends p to q and q back to p: the long-term state is a 2-cycle, oscillating between them (pp. 184–185). The period has doubled, and the notes call this a pitchfork bifurcation of the map at r=3 (p. 185): it is one for f∘f, whose two new fixed points branch off the old one, while for f itself it is usually called a flip or period-doubling bifurcation. Solving f(f(x))=x (our step) gives
The 2-cycle of the logistic map
p,q=2rr+1±(r−3)(r+1)
In words
p, q equals the quantity r plus 1 plus or minus the square root of the quantity r minus 3, the quantity r plus 1, all over the quantity 2 r
The twice-iterated logistic map f(f(x)), computed by substituting f into itself, with the diagonal. For r<3 it crosses the diagonal only at 0 and 1−1/r. Above r=3 two more crossings appear, the 2-cycle: at r=3.2 they are p=0.7995 and q=0.5130, on either side of the now unstable 1−1/r=0.6875.
When the 2-cycle fails (p. 185). By the chain rule, at x∗=p or q,
Multiplier of the 2-cycle
dxdf(f(x))x=x∗=dpdf(p)dqdf(q)
In words
d over d x f(f(x)) evaluated at x equals x star equals d f(p) over d p, times d f(q) over d q
the same for both points, so p and q lose stability together, when ∣f′(p)f′(q)∣>1. The 2-cycle then splits into a 4-cycle (p. 185). For the logistic map the product works out to 4+2r−r2 (our step), which falls from +1 at r=3 to −1 at r=1+6≈3.449, the second bifurcation quoted in the notes (p. 186).
The doublings continue, 2→4→8→16→32→…, coming ever closer together, until r=3.5699456…; beyond that the map is chaotic (p. 185). In the bifurcation diagram (the long-term values of x plotted against r, the notes' Fig. 7.64) the branches split again and again and then dissolve into a band of points, broken by narrow periodic windows (p. 186). (The caption of Fig. 7.64 puts one window "near r=0.384", a slip for 3.84.) This is the period-doubling route to chaos, one of the common ways chaos sets in; the driven pendulum of Section 7.1 follows it too (p. 186).
Loading graph…
The start of the logistic map's bifurcation diagram, computed exactly: x∗=0 (stable for r<1), x∗=1−1/r (stable for 1<r<3) and the 2-cycle p,q=[r+1±(r−3)(r+1)]/2r (stable for 3<r<1+6=3.449). Beyond that come the 4-cycle and higher, which have no simple formula; they accumulate at r≈3.5699, where chaos begins.
lambda equals the limit as n goes to infinity of 1 over n, times log the absolute value of delta sub n over delta nought equals the limit as n goes to infinity of 1 over n, times log the absolute value of the quantity f to the power n of the quantity x nought plus delta nought, minus f to the power n ( x nought ), all over delta nought
where fn means f applied n times (not a power). For small δ0 the ratio is the derivative of fn, and the chain rule turns it into a product along the orbit (p. 186):
lambda is about the limit as n goes to infinity of 1 over n, times log the absolute value of d over d x nought f to the power n ( x nought ) equals the limit as n goes to infinity of 1 over n, times log the absolute value of the product over j equals 0 of to the power n minus 1, end of power, d f( x sub j ) over d x sub j
lambda equals the limit as n goes to infinity of 1 over n, times the sum over j equals 0 of to the power n minus 1, end of power, log the absolute value of d f( x sub j ) over d x sub j
the average of the logarithmic stretching along the orbit, easy to accumulate on a computer. For the logistic map, λ<0 in the period-doubling region and λ>0 in the chaotic regions, which contain periodic windows with chaos on both sides; the largest is a 3-cycle near r≈3.83 (p. 187). On a periodic orbit the sum repeats, so λ can be written down: ln∣2−r∣ on the fixed point and 21ln∣4+2r−r2∣ on the 2-cycle (our step). It touches zero at each bifurcation, where a multiplier reaches ±1.
Loading graph…
The Lyapunov exponent of the logistic map on its stable periodic orbits, computed from the multipliers: ln∣2−r∣ on the fixed point (diving to −∞ at r=2, where f′(x∗)=0) and 21ln∣4+2r−r2∣ on the 2-cycle (−∞ at r=1+5=3.236). It is negative and rises to 0 at each bifurcation, r=3 and r=3.449. In the chaotic regime it is positive; the dot marks r=4, where it is exactly ln2=0.693 (a known result, not in the notes).
(r−3)(r+1)=0.84=0.9165, so p=(4.2+0.9165)/6.4=0.7995 and q=(4.2−0.9165)/6.4=0.5130. Check: 3.2×0.7995×0.2005=0.5130.
Stability and λ
f′(p)=3.2(1−1.599)=−1.917 and f′(q)=3.2(1−1.026)=−0.0835; the product is 0.160=4+6.4−10.24. Since ∣0.160∣<1 the cycle is stable, and λ=21ln0.160=−0.916: nearby orbits converge onto it, by a factor 0.4 per step on average.
delta F equals the limit as alpha goes to infinity of the quantity r sub alpha minus r sub alpha minus 1, all over the quantity r sub alpha plus 1 minus r sub alpha, is approximately 4.669201
For the logistic map the ratio is close to δF already for small α (p. 187): with r1=3, r2=1+6=3.4495 and r3=3.5441 (the standard numerically computed value, not in the notes), the first ratio is 0.4495/0.0946=4.75. Assuming every interval is 1/δF times the previous one (p. 187),
delta sub 1 equals r two minus r one equals the square root of 6 minus 2, delta sub n equals r sub n plus 1 minus r sub n equals delta sub n minus 1 over delta F equals and so on equals delta sub 1 over delta F to the power n minus 1, end of power
(here δn are intervals of r, not separations of orbits), the doublings accumulate at a geometric sum (p. 188):
Estimated onset of chaos
r∞=n→∞limrn=3+n=1∑∞δn≃3+1−1/δFδ1=3.572
In words
r sub infinity equals the limit as n goes to infinity of r sub n equals 3 plus the sum from n equals 1 to infinity of delta sub n is about 3 plus delta sub 1 over the quantity 1 minus 1 over delta F, equals 3.572
How can orbits separate exponentially and yet stay inside [0,1]? By stretching and folding, as when a drop of food colouring is kneaded into dough (p. 188). Take r≃4 (p. 188):
Stretching and folding at r=4
xn∈(0,21)is sent toxn+1∈(0,1),xn∈(21,1)is sent toxn+1∈(1,0)
In words
x sub n is in (0, one half ) is sent to x sub n plus 1 is in (0, 1), x sub n is in ( one half, 1 ) is sent to x sub n plus 1 is in (1, 0)
Each half is stretched to the full interval, the second in reverse: the interval is stretched to twice its length and folded back onto itself. Repeating this makes the structure ever more intricate, while nearby points are pulled apart on average (p. 188).
Two-variable flows are never chaotic, but maps can be: the driven pendulum's Poincaré section is a two-variable map, and the one-variable logistic mapxn+1=rxn(1−xn) already shows chaos.
The separation of two orbits after n iterations; in the Feigenbaum estimate, the interval r_(n+1) − r_n between period doublings. Say it: “delta sub n”.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
To settle towards a definite finite value: an integral, series or sequence converges when its partial results approach a limit. Explained in Improper integrals.
The start of something, especially a change of behaviour.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).