Dynamics

A gingerbread man made of two straight pieces

The map that sends (x, y) to (1 − y + |x|, x) is linear on each side of one line, preserves area, and on one side is nothing but a turn of sixty degrees in disguise. Round its fixed point a whole hexagon of points comes back after exactly six steps. Outside the hexagon a single orbit wanders for ever through a region shaped like a gingerbread man, pulling nearby points apart at about seven per cent a step, while islands of periodic points with straight edges float in it untouched.

Worth reading first: A chaotic map that always comes back · An orbit stuck to an island.

Chaos in a map of the plane is usually associated with curvature: the quadratic term of the Hénon map, the sine in the standard map, a fold that bends one region over another. The map studied here has no curvature at all. It is

(x,y)  ↦  (1−y+∣x∣,  x),(x, y) \;\mapsto\; (1 - y + |x|,\; x),

which is linear on the right of the line x=0x = 0 and linear on the left, with a crease along the line where the absolute value changes its mind. Robert Devaney introduced it in 1984 as a model of the zones of instability that appear in smooth area-preserving maps, and its pictures earned it the name the gingerbread man.

Both pieces preserve area — each has determinant 1 — and the map can be run backwards exactly, so nothing is ever lost or compressed; this is the conservative kind of dynamics that a chaotic map which always comes back belongs to, not the dissipative kind with attractors. And the right-hand piece is a turn of sixty degrees in a slanted frame, so near its fixed point nothing is chaotic at all: a whole hexagon of points returns after exactly six steps. The essay follows the map from that hexagon outwards, into a region where one orbit seems to wander everywhere and nearby points separate, and through the islands that float in it.

One orbit, a million steps

One orbit of the gingerbread man. 1000000 steps from (−0.1, 0): 11759 cells of 0.06; within [−3, 8]
Fig. 1 A million steps of the map from the single point (−0.1, 0), every cell of a 0.06 grid it visits marked. The orbit never leaves the square from −3 to 8 and never enters the hexagon round the fixed point (1, 1).

Start at (−0.1,0)(-0.1, 0) and apply the map a million times. The figure marks every cell of a fine grid that the orbit visits — 11,759 of them. The orbit never leaves the square from −3-3 to 88; its extreme coordinates are −2.994-2.994 and 7.9937.993. Within that square it fills a figure with a head, two arms and two legs, and it avoids a set of holes: a large hexagon near the middle, around the fixed point (1,1)(1, 1), and smaller polygons in the limbs.

Nothing about the formula suggests either the shape or the holes. The map has one fixed point, at (1,1)(1, 1), found by solving x=1−x+∣x∣x = 1 - x + |x| with y=xy = x; there are no parameters; and each piece is linear. The complication comes entirely from switching between two linear maps depending on which side of the line x=0x = 0 a point is on — the same mechanism that makes a billiard ball outside a polygonal table trace intricate patterns from reflections that are each perfectly simple.

The picture is of one orbit, and a single orbit filling a region is the signature of the kind of behaviour the rest of the essay measures: points that come close to everywhere in the region, in an order that looks random, and that are very sensitive to where they started.

A hexagon of period six

The hexagon where every point has period six. hexagon vertices 0,1 0,0 1,0 2,1 2,2 1,2; 4 orbits of period 6
Fig. 2 The hexagon round (1, 1) whose points never cross x = 0. There the map turns by exactly 60° in a slanted frame, so six steps bring every point back; the coloured hexagons are the orbits of four points.

On the right of the line x=0x = 0 the map is (x,y)↦(x−y+1,x)(x, y) \mapsto (x - y + 1, x), an affine map whose linear part has rows (1,−1)(1, -1) and (1,0)(1, 0). That matrix has trace 1 and determinant 1, so its eigenvalues are e±iπ/3e^{\pm i\pi/3}: it is a rotation by 60°60°, seen in coordinates that stretch the circle into an ellipse. Six applications of it give the identity — the figure checks the matrix product exactly — and so six applications of the affine map, about its fixed point (1,1)(1, 1), give the identity as well. Every point whose six images all stay on the right of x=0x = 0 comes back to itself after exactly six steps.

Those points fill a hexagon, with corners (0,1)(0, 1), (0,0)(0, 0), (1,0)(1, 0), (2,1)(2, 1), (2,2)(2, 2) and (1,2)(1, 2) — the orbit of the point (0,1)(0, 1), where the line x=0x = 0 first touches the turning ellipses. Inside it, every orbit visits six points of a smaller hexagon of the same shape, and the figure draws four of them. There is nothing approximately periodic here, and no slow drift: periodicity is exact, the same period for every point, and the hexagon’s boundary is a sharp line.

This is the first point of contrast with smooth maps. Near a fixed point of a smooth area-preserving map that turns by an irrational angle, orbits go round on closed curves without ever returning exactly, as in the orbits stuck to an island of the standard map; those curves survive or break according to delicate arithmetic of the rotation number. Here the angle is 60°60°, a rational fraction of a turn, and the map is exactly linear, so every orbit near the fixed point closes. The island is not held together by a theorem about invariant curves; it is held together by the identity M6=IM^6 = I.

Running the map backwards

The map can be undone exactly. Given the image point, the old xx is the new yy, and the old yy is one minus the new xx plus the absolute value of the new yy, so the inverse is

(x,y)  ↦  (y,  1−x+∣y∣).(x, y) \;\mapsto\; (y,\; 1 - x + |y|).

That inverse is the original map with the roles of the two coordinates exchanged. Write SS for the reflection (x,y)↦(y,x)(x, y) \mapsto (y, x) in the diagonal; then applying SS, the map, and SS again gives the inverse map. A map with this property is called reversible: reflecting a picture of its orbits in the diagonal turns every orbit into the same orbit run backwards. Every figure of the gingerbread man is therefore symmetric about the line y=xy = x — the hexagon’s corners come in mirror pairs, (0,1)(0, 1) with (1,0)(1, 0) and (2,1)(2, 1) with (1,2)(1, 2), with (0,0)(0, 0) and (2,2)(2, 2) on the diagonal itself, and the islands and the sea are mirror images of themselves across it.

Reversibility is the discrete version of a property many physical systems have, the invariance of their equations under reversing time and reflecting momenta, and it is one reason area-preserving maps model mechanics well. It has a computational use too. Periodic orbits of reversible maps tend to meet the line of symmetry, and searching along the diagonal finds them: the hexagon’s orbit of (0,0)(0, 0) starts on it. It also means the sea cannot favour a direction of time. An orbit that drifts outwards in some long stretch has a mirror orbit that drifts inwards, and statements about how the sea is explored over long times hold equally for the map and its inverse.

None of this is visible in the formula at first sight, which treats xx and yy quite differently — one is under an absolute value and the other is not. The symmetry appears only when the map is composed with its own reflection, and it is a reminder that the shape of a dynamical system’s pictures can be dictated by an identity among its iterates rather than by anything visible in a single step.

Islands with straight edges

Islands of periodic points in the sea. grid 0.07: period 6 602, other periods 8799, no return 17168
Fig. 3 Every point of a 0.07 grid over the square, iterated up to 600 steps and coloured by whether it comes back: the hexagon of period 6, islands of other periods, and points that do not return — the sea.

The hexagon is not the only island. The figure iterates every point of a grid over the whole square up to 600 steps and colours it by whether it returns to its starting point. Besides the hexagon of period 6 there are islands of many other periods — the commonest in the grid are periods 30, 114, 84 and 129 — and every one of them is a polygon with straight edges. On the left of x=0x = 0 the map’s linear part has rows (−1,−1)(-1, -1) and (1,0)(1, 0), trace −1-1 and determinant 1, a turn of 120°120° that repeats after three steps; a long orbit that visits both sides applies a product of the two matrices, and whenever that product has finite order and the orbit’s neighbours visit the sides in the same pattern, a whole polygon of neighbours returns with it.

What is left is black in the figure: points that do not return within 600 steps. Inside the gingerbread man that is the chaotic sea; outside it, the plane is tiled by islands too, of periods so long that some of their points do not close within the 600 steps allowed. No point escapes. Forty test orbits started across the square stay inside a bounded region for three thousand steps each, and the outer parts of the plane are filled with islands that keep every orbit there on a bounded path, so the gingerbread man is a bounded sea surrounded by an archipelago.

The islands have a structural consequence for the sea’s shape. A chaotic orbit can never enter an island, since island points map to island points, so the sea’s boundary is made of island edges, and the gingerbread man’s outline is straight segments at every scale where the grid can see it. Wherever the grid can resolve it, the man’s outline is a run of straight segments, cut out of the plane by the islands around and inside it.

Two points a ten-billionth apart

Two nearby points, in the sea and in the islands. eps 1e-10, 400 steps: max log10 sep sea 0.46, hexagon -9.85, island -9.65
Fig. 4 Two starting points 10−1010^{-10} apart, followed together. In the sea the distance grows until after a few hundred steps the orbits are unrelated; in the hexagon and in a period-30 island it never grows.

The sea and the islands differ most sharply in what they do to nearby points. The figure starts two points a ten-billionth apart and follows both, plotting the distance between them on a logarithmic scale. In the sea, starting near (−0.1,0)(-0.1, 0), the distance grows — unevenly, with plateaus where both points are on the same side of the crease and bursts where one crosses and the other does not — until after a few hundred steps it reaches the size of the whole region and the two orbits are unrelated. In the hexagon the distance never changes in size, since a rotation stretches nothing; it turns with the points and comes back after six steps. In an island of period 30, starting at (−2,−0.8)(-2, -0.8), the distance grows by a bounded factor and returns.

This is sensitive dependence in its plainest form, and it shows where the sensitivity comes from in a map with no curvature. Each linear piece, applied alone, never separates points exponentially: one is a rotation of order 6 and the other of order 3. Separation happens only when the two points of a pair fall on opposite sides of x=0x = 0 and are sent by different pieces, or when one orbit’s sequence of sides drifts away from the other’s. The crease, not the pieces, is where the chaos lives.

That makes the gingerbread man an instance of a general mechanism. In smooth chaotic maps the stretching is spread across the whole map; in piecewise maps it is concentrated on the lines where the pieces meet, and an orbit becomes chaotic by returning to those lines in an irregular pattern. A map that replaces a parabola with a corner — the Lozi map, a piecewise-linear cousin of the Hénon map — makes the same point for dissipative dynamics.

The rate of separation

How fast the sea separates its orbits. (-0.1,0): 0.0988,0.0820,0.0728,0.0737,0.0784,0.0758,0.0723; (-0.3,0.2): 0.0927,0.0955,0.0723,0.0804,0.0672,0.0720,0.0717; (0.2,2.5): 0.0464,0.0766,0.0840,0.0753,0.0768,0.0729,0.0735
Fig. 5 The Lyapunov exponent measured over longer and longer stretches, for three starting points in the sea: the estimates settle near 0.07 a step. In the hexagon the same calculation gives nought.

The average rate at which an infinitesimal separation grows along an orbit is the Lyapunov exponent. It is computed by carrying a tangent vector along the orbit, multiplying it by the matrix of whichever piece applies at each step, and averaging the logarithm of its growth. The figure computes it from three starting points in the sea over stretches from a thousand steps to a million. The estimates wander at first — 0.10, 0.09, 0.05 after a thousand steps — and close in on one another as the stretches lengthen, ending at 0.0723, 0.0717 and 0.0735. Separations grow on average by a factor of about 1.07 a step, ten-fold in about 32 steps.

In the hexagon the same calculation gives a number indistinguishable from nought, as it must: every step there is the same rotation. The contrast is the measured version of the separation figure. And a further computation, not drawn, finds that the exponent is not the same everywhere outside the islands. An orbit started at (0,−0.5)(0, -0.5) is chaotic too, with exponent 0.09170.0917, but it is confined for a million steps to just 90 small cells of the grid — a thin zone of instability trapped between islands, separate from the main sea. Devaney’s title, zones of instability, is plural for this reason.

That the three sea estimates agree only to about a hundredth after a million steps is itself informative. The convergence is slow because the sea contains sticky regions near the island edges, where an orbit can linger for long stretches while its tangent vector barely grows. The same stickiness slows the approach to a stable estimate in smooth maps with mixed phase space; in the gingerbread man the islands are polygons, but they are just as sticky.

Six, then everything else

The periods met along a ray out of the hexagon. ray y=1: period 6 to d=1; then 57 other periods from 16 to 1383; 152 sea points
Fig. 6 The period of the point (1 + d, 1) for d from 0.01 to 3.5, tested up to 2,000 steps: period 6 up to the hexagon’s edge at d = 1, then islands of dozens of periods and points of the sea.

The last figure walks out of the hexagon along the line y=1y = 1, testing the period of every point at spacing 0.01. Up to d=1d = 1, the hexagon’s edge at (2,1)(2, 1), every point has period 6. Beyond it the picture changes at once: points of the sea that never return, scattered between islands with periods from the teens into the hundreds. There is no transitional band in which the period grows gradually from 6; the boundary is a line, and on the far side of it the arithmetic of mixing two rotations takes over immediately.

In smooth maps, by contrast, the region around a stable fixed point is usually layered — closed curves near the centre, then a fringe of island chains of increasing period, then thin chaotic layers, then the sea, with the layers becoming finer near the boundary of the regular region. The gingerbread man has the islands and the sea but not the layered fringe around its central island, because its central island is bounded by the first crossing of a line rather than by the breakdown of an invariant curve. That is what Devaney’s model simplifies: it keeps the coexistence of islands and chaos that makes area-preserving dynamics hard and discards the smooth structure that makes it hard to compute.

What the grids cannot decide

Every picture here is a finite computation. The sea figure is one orbit of a million steps; that the orbit would eventually come arbitrarily close to every point of the black region, rather than to a slightly smaller set, is not shown, and not known. The island figure tests returns up to 600 steps, so a point with period 700 is drawn as sea; the black region overstates the sea by every island whose period exceeds the limit, and those islands exist in great numbers near the sea’s edge. The ray figure tests up to 2,000 steps and the same caveat applies.

The separation and the exponent are computed in floating-point arithmetic. For a chaotic orbit the computed orbit departs from the true one after a few hundred steps, as the separation figure itself shows; what the exponent measures is the growth along the computed orbit, which by the shadowing results for hyperbolic systems is close to some true orbit’s — but the gingerbread man is not uniformly hyperbolic, since it has islands, and those results do not apply to it as stated. The agreement of three seeds to a hundredth is evidence that the exponent is a property of the sea, not a proof.

And the period-6 hexagon is the only claim drawn that is exact in every respect. It rests on M6=IM^6 = I, which is checked in integer arithmetic, and on the hexagon’s corners, which are an orbit of a point with whole-number coordinates. Everything else is measurement.

Still open: is the sea one sea?

The central questions about the gingerbread man are about its sea, and they are open. Is the map ergodic on the main chaotic region — does almost every orbit that starts there come arbitrarily close to every point of it, spending time in each part in proportion to its area? Is the Lyapunov exponent the same for almost every starting point in the sea, and positive? Does the sea have positive area, as the pictures strongly suggest, or could it be a set of area zero threaded between islands that are dense? Numerical evidence answers yes, yes and yes, and as far as is known none of it is proved; these are the same questions that are open for the standard map and the Hénon map, posed here for a map simple enough that a proof might be within reach, and still not found.

The islands raise their own questions. Which periods occur, how their sizes are distributed, and whether the islands together with the sea fill the plane up to a set of area zero are all computed case by case. Related piecewise maps — outer billiards on polygons, interval exchanges, rotations on a lattice with rounding — have yielded answers to some of these questions through renormalisation, where a small part of the picture turns out to be a scaled copy of the whole. Whether the gingerbread man has any such self-similarity is not known. And, as for every area-preserving map, orbits must keep returning close to where they started; how soon, in the sea, has no formula.

Chaos from a crease

The gingerbread-man map (x,y)↦(1−y+∣x∣,x)(x, y) \mapsto (1 - y + |x|, x) is linear on each side of x=0x = 0 and preserves area; on the right its linear part is a turn of 60°60° in a slanted frame, so every point of the hexagon with corners (0,1)(0, 1), (0,0)(0, 0), (1,0)(1, 0), (2,1)(2, 1), (2,2)(2, 2), (1,2)(1, 2) has period exactly 6. Outside it, one orbit of a million steps fills a bounded region shaped like a gingerbread man, staying between −3-3 and 88, while polygonal islands of periodic points — periods 30, 84, 114 and many others — float in it and around it. Two points 10−1010^{-10} apart separate to full size in a few hundred steps in the sea and never in an island, the separation rate settling near 0.07 a step from three seeds; and along a ray the period is 6 up to the hexagon’s edge and then jumps to dozens of other values at once. The chaos lives on the crease where the two rotations meet, and whether the sea is a single ergodic region of positive area is as open here as it is for maps with curvature.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

ChaosLyapunov exponentPeriodic orbitPiecewise-linearRotationSensitive dependence