HomeArticlesLogistic Map

The Logistic Map: How One Equation Produces Chaos

A single population-growth equation with one knob, r, that runs from stable equilibrium through period-doubling to full chaos — and back to order in narrow periodic windows.

mysimulator teamUpdated June 2026≈ 7 min read▶ Open the simulation

One line, infinite behaviour

The logistic map is the simplest possible model of a population that grows and is limited by its own crowding. It has one variable x, scaled to sit between 0 and 1 (a fraction of some carrying capacity), and one knob r, the growth rate:

x(n+1) = r . x(n) . (1 - x(n))          0 <= x <= 1,  0 <= r <= 4

The r . x term is ordinary exponential growth; the (1 - x) term is a brake that gets stronger as x approaches 1 — plenty of food and space when x is small, starvation and competition when x is near the carrying capacity. That single multiplicative brake is enough to produce every qualitative behaviour a dynamical system can have: fixed points, periodic cycles, and full-blown chaos, depending only on the value of r.

live demo · iterate x(n+1) = r x(n)(1 - x(n)) and watch the bifurcation diagram● LIVE

The road to chaos: period-doubling

Iterate the map for a fixed r, throw away the first few hundred steps as transient, and plot every x value that follows — that is one vertical slice of the bifurcation diagram. For 0 < r < 1 the population dies out to x = 0. For 1 < r < 3 it settles to a single stable value, x* = 1 - 1/r. At r = 3 that fixed point loses stability and the orbit starts alternating between two values — a period-2 cycle. Push r further and each cycle itself becomes unstable and splits again: period 2 to 4 at r ≈ 3.449, 4 to 8 at r ≈ 3.544, and so on, with the intervals between successive splits shrinking by a constant factor.

That factor, δ ≈ 4.6692016, is the Feigenbaum constant. Mitchell Feigenbaum discovered in the 1970s that it is universal — the same number governs the period-doubling route to chaos in almost any smooth one-hump map, and in real physical systems (dripping taps, convecting fluids, some electronic circuits) that have nothing to do with population biology. It was one of the first hard pieces of evidence that chaos has its own quantitative laws, not just qualitative ones.

Chaos, windows, and the cobweb

The cascade accumulates at r∞ ≈ 3.56995, beyond which the orbit is aperiodic for most values of r — this is the chaotic region, and it fills most of the interval up to r = 4. It is not chaos everywhere, though: the diagram has clear white gaps, periodic windows, where a stable cycle re-emerges from the chaos, most visibly a period-3 window opening near r ≈ 3.8284. By a theorem popularised as 'period three implies chaos', the existence of any period-3 orbit guarantees that cycles of every other period exist somewhere in the same map.

The easiest way to watch a single trajectory rather than the statistical diagram is the cobweb plot: draw y = r x (1-x) and the diagonal y = x, start at some x0 on the diagonal, step up to the curve, across to the diagonal, up to the curve again. In the stable region the cobweb spirals tightly into the fixed point; in the chaotic region it never settles, tracing a different tangled path from almost every starting value.

Measuring the chaos: the Lyapunov exponent

Chaos means sensitive dependence on initial conditions — two starting points a tiny distance apart drift apart exponentially fast. The rate of that drift is the Lyapunov exponent λ, computed by averaging the log of the local stretching factor |f'(x)| = |r(1 - 2x)| along the orbit:

lambda(r) = lim (1/N) . sum_{n=0}^{N-1} ln | r (1 - 2 x(n)) |

λ < 0 means nearby trajectories converge — a stable fixed point or cycle, read directly from the pre block above as text, not rendered math. λ = 0 marks a bifurcation. λ > 0 means they diverge exponentially — chaos — and 1/λ sets the Lyapunov time, the number of iterations before a rounding-error-sized uncertainty swamps the whole prediction. Plotting λ(r) alongside the bifurcation diagram makes the periodic windows obvious: λ dips back below zero exactly where a periodic orbit briefly wins back the interval.

Frequently asked questions

Why is 4 the maximum value of r?

For r above 4 the parabola r x (1-x) rises above 1 somewhere in [0,1], so an iterate can leave the unit interval and the sequence diverges instead of staying bounded. Keeping r in [0,4] keeps the whole orbit inside [0,1], which is what makes the map a clean population-fraction model.

Is the logistic map actually random?

No — it is fully deterministic. The same x0 and r always produce exactly the same sequence. What looks like randomness is sensitive dependence on initial conditions: two starting values that differ by less than any measurement precision produce completely different trajectories after enough steps, making long-run prediction practically impossible even though the rule itself has no randomness in it.

What do the periodic windows inside the chaotic region mean?

They show that chaos is not a single featureless state. As r increases past a window's left edge, a stable periodic cycle (period 3 is the largest and most visible) suddenly reappears out of the chaotic band, persists for a small range of r, and then itself period-doubles back into chaos — a miniature copy of the whole bifurcation cascade nested inside the larger one.

Try it live

Everything above runs in your browser — open Logistic Map and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Logistic Map simulation

What did you find?

Add reproduction steps (optional)