Lecture note · Fig. 13 · chaos and order in one picture
A hundred pendulums on one sheet, and the eye behind them
Numa Koudsie · 11 November 2026 · the picture is 2swap's idea; the derivations and measurements here are our own (tools/fig13/chaos_map.py, hunt.py, this page's script)
01The picture
Hang a hundred identical wind chimes in a hall, in ten rows of ten. Give each one a different tap: harder to the right, harder on the lower piece towards the back. Then open a camera's shutter and let a small lamp on each chime's tip write on the film.
That photograph is Fig. 13. The chimes are double pendulums: a rod hanging from a pin, a second rod hanging from the end of the first. Where a chime hangs in the hall tells you how it was tapped. What its lamp writes tells you what it then did. Some lamps write a clean ring. Some write a rotating orbit with a fixed number of lobes, again and again. A few write a scribble that never repeats. Neighbours in the hall were tapped almost alike, so walking through the hall you see how the motion changes as the tap changes, and where a small change of the tap changes everything.
Behind the hundred lamps the page lays a second picture, made the same way with many more pendulums and a different question: not "what does it draw" but "would its twin draw the same". That second picture glows in the shape of an eye. Sections 4 to 8 say what it measures, why it has a pupil, an iris and two long streaks, and why the whole eye leans to one side.
02The machine and the strike
Two rods, two pins, gravity; no friction, no motor.
Rod \(i\) has mass \(m_i\), length \(l_i\), its centre of mass at \(a_i\) below its upper pin, and the moment of inertia \(I_i\) about that centre. For the page's default, two equal uniform rods, \(m = 1\ \mathrm{kg}\), \(l = 1\ \mathrm{m}\), \(a = l/2\), \(I = ml^2/12\), and \(g = 9.8\ \mathrm{m/s^2}\). The angles \(\theta_1, \theta_2\) are measured from straight down. With
\[ A = m_1a_1^2 + I_1 + m_2l_1^2,\quad B = m_2a_2^2 + I_2,\quad C = m_2l_1a_2,\quad U_1 = g(m_1a_1 + m_2l_1),\quad U_2 = g\,m_2a_2, \tag{1} \](for the equal rods \(A = \tfrac43\), \(B = \tfrac13\), \(C = \tfrac12\ \mathrm{kg\,m^2}\), \(U_1 = 14.7\), \(U_2 = 4.9\ \mathrm{J}\)) the kinetic and potential energies are
\[ T = \tfrac12A\dot\theta_1^2 + \tfrac12B\dot\theta_2^2 + C\cos(\theta_1-\theta_2)\,\dot\theta_1\dot\theta_2,\qquad V = -U_1\cos\theta_1 - U_2\cos\theta_2 . \tag{2} \]The momenta conjugate to the angles are \(p_1 = \partial T/\partial\dot\theta_1 = A\dot\theta_1 + C\cos(\theta_1-\theta_2)\dot\theta_2\) and \(p_2 = B\dot\theta_2 + C\cos(\theta_1-\theta_2)\dot\theta_1\). Solving for the angular speeds and writing \(H = T + V\) in terms of the momenta gives Hamilton's equations, the four first-order equations the page integrates:
\[ \dot\theta_1 = \frac{Bp_1 - C\cos\Delta\,p_2}{AB - C^2\cos^2\Delta},\quad \dot\theta_2 = \frac{Ap_2 - C\cos\Delta\,p_1}{AB - C^2\cos^2\Delta},\quad \dot p_1 = +C\dot\theta_1\dot\theta_2\sin\Delta - U_1\sin\theta_1,\quad \dot p_2 = -C\dot\theta_1\dot\theta_2\sin\Delta - U_2\sin\theta_2, \tag{3} \]with \(\Delta = \theta_2 - \theta_1\), the bend of the elbow: the angle by which the lower rod is turned from the line of the upper one.
What a strike is. A hammer blow lasts so short a time that the rods do not move during it; it only changes the momenta. A sideways blow of impulse \(\hat J\) (in N·s) on a point that moves by \(\delta x = r_1\,\delta\theta_1 + r_2\,\delta\theta_2\) adds \(\hat J r_1\) to \(p_1\) and \(\hat J r_2\) to \(p_2\). A blow on the upper rod at the distance \(r\) below the top pin gives \((p_1, p_2) = (\hat J r,\ 0)\). A blow on the lower rod at the distance \(r\) below the elbow gives \((\hat J l_1,\ \hat J r)\), because moving that point also swings the upper rod. Two blows reach any \((p_1, p_2)\). The unit is \(\mathrm{N\,s\cdot m = kg\,m^2/s}\). So \(p_1\) and \(p_2\) are not mysterious: they are how hard, and where, the hanging pendulum was hit.
The energy of a strike. At the strike both rods hang down, \(V = -(U_1+U_2) = -19.6\ \mathrm{J}\), and the strike supplies the kinetic energy
\[ K(p_1, p_2) = \frac{Bp_1^2 - 2Cp_1p_2 + Ap_2^2}{2(AB - C^2)} = \tfrac67p_1^2 - \tfrac{18}{7}p_1p_2 + \tfrac{24}{7}p_2^2\quad\text{(equal rods, J for } p \text{ in kg m}^2\text{/s)}. \tag{4} \]Strikes of equal energy lie on an ellipse in the \((p_1, p_2)\) plane. For the equal rods its long axis points 22.5° above the \(p_1\) axis and is 3.49 times its short axis (the eigenvalues of the quadratic form are 0.3246 and 3.961). Hold on to that ellipse: it is the outline of the eye. Section 7 explains why it leans.
03Why they sit on one sheet
Two different spaces are drawn on the same paper, at two different scales. Keeping them apart is the whole trick of reading the figure.
The sheet is momentum space. Across the whole figure, left to right is \(p_1\) from \(-35.6\) to \(+35.6\ \mathrm{kg\,m^2/s}\), and bottom to top is \(p_2\) from \(-20\) to \(+20\). A point of the sheet is a strike. Every pendulum starts from the same position, hanging straight down, so the strike is all that distinguishes one from another: the sheet lists every possible experiment of this kind. A full state of the pendulum needs four numbers \((\theta_1, \theta_2, p_1, p_2)\); the sheet is the two-dimensional slice \(\theta_1 = \theta_2 = 0\) of that four-dimensional space.
Each cell is a small window into real space. The sheet is cut into \(N \times N\) cells (10 × 10 by default). At the centre of each cell stands one pendulum, struck with the \((p_1, p_2)\) of that centre: \(p_1 = \pm3.56, \pm10.67, \pm17.78, \pm24.89, \pm32\) and \(p_2 = \pm2, \pm6, \pm10, \pm14, \pm18\). Inside the cell, the drawing is the path of the tip of its lower rod in ordinary space, in metres, with the pin at the cell's centre and down pointing down the page:
\[ x = l_1\sin\theta_1 + l_2\sin\theta_2,\qquad y = l_1\cos\theta_1 + l_2\cos\theta_2 . \tag{5} \]The tip can reach \(l_1 + l_2 = 2\ \mathrm{m}\) from the pin; that reach is drawn as 0.4 of the cell's shorter side. So one cell's height stands for 4 kg·m²/s of strike when you read the sheet, and (on a wide screen) for 5 m when you read the drawing inside it. On a phone the sheet is drawn square, the same strikes with larger drawings.
They do not touch. No pendulum feels its neighbour. A drawing never crosses into the next cell because the tip cannot leave its 2 m circle. If two drawings look alike, it is because two nearly equal strikes led to nearly equal motions, not because one influenced the other.
Why draw them together at all. A single pendulum answers "what happens after this strike". The question of the figure is the next one: "how does what happens depend on the strike". That is a question about a whole family, and a family is best seen laid out by its parameter, the way a weather map shows a small wind arrow at each town or the periodic table puts each element where its numbers put it. The eye reads three things at once from the layout. Where neighbours agree, the motion depends smoothly on the strike. Where a picture is mirrored through the centre of the sheet, a symmetry is at work: striking with \((-p_1, -p_2)\) gives the mirror-image motion, because equations (3) are unchanged when all four variables change sign. And where neighbours disagree wildly, the outcome is sensitive to the strike. The glow behind marks exactly those places.
Position on the sheet = the cause (the strike, in kg·m²/s). Drawing in the cell = the effect (the tip's path, in metres). The pendulums share a sheet as entries share a table, not as bodies share a room.
04What the glow measures
The glow is a second experiment with twins.
For each of \(1280 \times 720 = 921\,600\) strikes covering the sheet, take the pendulum and a twin that differs by one ten-thousandth of a radian in the upper rod's angle, \(\delta\theta_1 = 10^{-4}\), about 0.1 mm at the end of the rod. Run both for 6.67 s. After every step measure how far apart the twins are in their four numbers, never counting more than 1:
\[ d = \Big\langle \min\!\Big(1,\ \sqrt{\delta\theta_1^2 + \delta\theta_2^2 + \delta p_1^2 + \delta p_2^2}\,\Big)\Big\rangle_{6.67\ \mathrm{s}},\qquad v = \operatorname{clip}\!\Big(\frac{\ln(1000\,d)}{\ln 1000},\ 0,\ 1\Big). \tag{6} \]The brightness is \(v\): dark where the twins stay within a thousandth (\(d \le 10^{-3}\)), full where they end up as far apart as two unrelated pendulums (\(d \to 1\)). This is the measure of 2swap's program, computed here with a step four times finer (16 000 Runge–Kutta steps of 0.417 ms).
Two regular pendulums that start 0.1 mm apart drift apart slowly, in proportion to time, like two runners at slightly different speeds. Two chaotic ones part like compound interest: the gap multiplies by a fixed factor every fraction of a second, so a ten-thousandth becomes one within seconds. The map separates these two behaviours. We call a strike chaotic below when \(v > 0.5\), which is \(d > 0.032\): the twins have parted more than 300 times their starting distance on average. By this count 5.5 % of the sheet is chaotic.
The map exists for the default pendulum only (equal uniform rods, \(g = 9.8\), the range \(P = 20\)); move a slider under Pendulum and the page hides it, because it would no longer be true.
05The eye: pupil and iris
The eye is drawn by energy. Press Energy limits in the bar under the figure to see the curves of this section on the figure.
On this map chaos appears only where a rod can go over the top: as long as both rods only rock about the bottom, the motion stays close to two coupled swings, and the twins stay together. Going over the top costs energy, and the strike must pay it. From (2), with the pendulum hanging at \(V = -(U_1 + U_2)\):
\[ \text{lower rod up, upper rod down: } K \ge 2U_2 = 9.8\ \mathrm{J};\qquad \text{upper rod up, lower hanging from it: } K \ge 2U_1 = 29.4\ \mathrm{J};\qquad \text{both straight up: } K \ge 2(U_1+U_2) = 39.2\ \mathrm{J}. \tag{7} \](The first threshold is Heyl's energy argument for a flip; the other two follow the same way.) Each threshold is one of the ellipses of (4).
The pupil is the inside of the smallest ellipse, \(K < 9.8\ \mathrm{J}\): semi-axes 5.49 and 1.57 kg·m²/s, tilted by 22.5°. No strike in it can lift even the lower rod over the top. The pendulum rocks, the twins stay together, the map is dark. Measured on the map: of the 0.96 % of the sheet inside it, 0.0 % is chaotic.
The iris is the ring around it. Here a rod can go over, but the strike's energy is of the same size as what gravity gives and takes during the motion, so at every near-miss at the top gravity decides between falling back and going over, and a hair's difference decides differently. That is where twins part.
| Energy of the strike \(K\) | What it allows | Share of the sheet | Chaotic (\(v > 0.5\)) |
|---|---|---|---|
| below 9.8 J | no rod over the top (pupil) | 0.96 % | 0.0 % |
| 9.8 to 29.4 J | the lower rod can go over | 1.91 % | 42.4 % |
| 29.4 to 39.2 J | either rod can go over | 0.95 % | 63.8 % |
| 39.2 to 78.4 J | both can stand straight up | 3.82 % | 32.2 % |
| 78.4 to 196 J | 2 to 5 times the 39.2 J | 11.45 % | 8.6 % |
| above 196 J | gravity is a small correction | 80.91 % | 2.3 % |
The iris does not stop at the 39.2 J ellipse: chaos fades over the next factor of five in energy, as the table shows. The eye is long and tilted because the ellipses of (4) are: along the 22.5° direction a strike carries the least energy for its size, so a pendulum can be struck hardest there and still stay in the pupil. Why the ellipses lean at all is a property of the machine, not of the picture; section 7 traces it to the way the two rods are tied together. Far outside the iris the map should be dark everywhere, and it is, except along two thin lines; section 6 is about them.
Of the hundred cells, two lie in the pupil: the strikes \((3.556,\ 2)\) and \((-3.556,\ -2)\), each with \(K = \tfrac67(3.556)^2 - \tfrac{18}{7}(3.556)(2) + \tfrac{24}{7}(2)^2 = 6.26\ \mathrm{J}\). Pin one: its tip only rocks below the pin. Their mirror partners across the \(p_1\) axis, \((3.56,\ -2)\) and \((-3.56,\ 2)\), have the same size of strike but \(K = 42.8\ \mathrm{J}\): they lie just outside the 39.2 J ellipse, where a third of the strikes are still chaotic, and the map calls both chaotic.
The parts of the eye are set by the energy of the strike, (4), against the three costs (7) of sending a rod over the top. Below \(2U_2 = 9.8\ \mathrm{J}\) (the pupil) no strike is chaotic. Between 9.8 and 39.2 J (the iris) gravity decides every near miss at the top, and up to 64 % of the strikes are chaotic. Above about five times 39.2 J gravity is a small correction and only 2.3 % are.
06The two streaks
Far outside the eye a strike carries ten or a hundred times what gravity can give. Chaos should be gone. Yet two bright streaks run out to the edge of the sheet, like lashes.
To see what a hard strike does, we first take gravity away, and we do it in a way that can be built. Lay the pendulum flat on an air-hockey table, its pin turned into a vertical axle. Each rod still has its weight, pulling straight down into the table, and the cushion of air pushes straight back up; both forces are parallel to the axle, so neither can turn a rod about it. The rods, the pin, the elbow and the way the rods drag each other are all unchanged; only gravity's torque is gone. In the equations this is \(g = 0\), and on the page it is the Gravity slider at 0: the kinetic energy (2) is untouched and the potential energy is zero.
Something is now conserved that was not before. Add the last two of equations (3): the terms in \(C\) are equal and opposite and cancel, and what remains is \(\frac{d}{dt}(p_1 + p_2) = -U_1\sin\theta_1 - U_2\sin\theta_2\), the torque of gravity about the pin. On the table it is zero, so the total angular momentum \(L = p_1 + p_2\) never changes (Rafat, Wheatland and Bedding make the same point: without gravity "there is no torque on the pendulum"). With the energy \(K\) that makes two conserved quantities for two angles, and a pendulum with that many conserved quantities moves regularly for every strike. What remains to decide is what the elbow does. It behaves like a pendulum of its own: either the bend \(\Delta\) keeps turning, the arms folding through each other once per turn and the tip passing through the pin (a lobe), or \(\Delta\) swings back and forth and the tip stays out on a ring.
The table is a fair stand-in for the hanging pendulum in two places, and only there. The first is the strike itself: hanging straight down, \(\sin\theta_1 = \sin\theta_2 = 0\), so gravity has no torque at that moment, and during a blow lasting 1 ms the strike of Example 7.1 picks up less than \(4.3\times10^{-5}\ \mathrm{kg\,m^2/s}\) of angular momentum from gravity, against the \(7.06\ \mathrm{kg\,m^2/s}\) the hammer gives it. Section 7 relies on this. The second is the hard strike: gravity can give or take at most \(2(U_1 + U_2) = 39.2\ \mathrm{J}\), so a strike of several hundred joules is only bent by it. This section and section 8 rely on that. The table is no guide in the iris, where the strike and gravity are a match: there it would show no chaos at all.
To fold through, the stick must pass the folded position, where its moment of inertia about the pin is smallest, \(I_f = A + B - 2C\) (set \(\theta_2 = \theta_1 + \pi\) in (2); \(\tfrac23\ \mathrm{kg\,m^2}\) for the equal rods). Spinning there with the angular momentum \(L\) costs \(L^2 / 2I_f\), the way a skater who pulls her arms in spins faster and must supply energy to do so. The elbow folds through when the strike provides more:
\[ K(p_1, p_2) > \frac{(p_1+p_2)^2}{2(A + B - 2C)}\quad\Longleftrightarrow\quad 3p_1^2 - 114\,p_1p_2 + 75\,p_2^2 > 0\quad\text{(equal rods)}. \tag{8} \]Both sides are quadratic in the strike, so the border does not depend on how hard the strike is, only on its direction: it is two straight lines through the centre of the sheet,
\[ p_1 = (19 \mp 4\sqrt{21})\,p_2:\qquad p_1 = 0.6697\,p_2\ \ (56.2^\circ \text{ above the } p_1 \text{ axis}),\qquad p_1 = 37.33\,p_2\ \ (1.5^\circ). \tag{9} \]On these lines the elbow has exactly enough to reach the folded position and none to pass it: it creeps up to it and takes for ever, like a pendulum given exactly enough to stand on its head. Such a borderline motion is called a separatrix. Now switch gravity back on, however weak compared with the strike. Near the separatrix the elbow arrives at the folded position almost stopped, and there the small push of gravity is enough to decide whether it folds through or turns back, differently each time. Two twins disagree at the first such decision. This is the general rule for a regular system that is slightly disturbed: chaos appears first in a thin layer around its separatrices. The argument for (8) above is the skater's picture; section 8 derives it from the elbow's motion at every bend, and finds that on the natural axes of section 7 the two lines stand at exactly 60° from a pure spin.
Measured on the map, for the strikes above 196 J:
| Direction of the strike, angle from the nearer line of (9) | Share of the sheet | Chaotic |
|---|---|---|
| within 0.02 rad (1.1°) | 2.06 % | 65.9 % |
| 0.02 to 0.05 rad | 3.08 % | 13.6 % |
| 0.05 to 0.10 rad | 5.14 % | 2.2 % |
| more than 0.10 rad (5.7°) | 70.63 % | 0.0 % |
The streaks are the lines (9), and away from them the hard strikes are regular without exception. The lines also sort the cells: on the side where (8) holds the tip draws lobes through the pin (60 of the hundred cells), on the other side, on the table, rings that never reach the pin (38 cells); the remaining two are the pupil's. With gravity on, six of those 38 cells fold through all the same, because gravity changes the angular momentum on the way: the page shows 60 lobes, 32 rings and these six.
On the table (gravity off) \(L = p_1 + p_2\) is conserved and the elbow folds through when \(K > L^2/2I_f\), equation (8). The border is the pair of straight lines (9) through the centre of the sheet. With gravity back, the strikes near these lines are the ones gravity can tip either way: within 0.02 rad of them 66 % of the hard strikes are chaotic, beyond 0.1 rad none.
07Why the eye leans, and how to read it straight
Carry a child on your shoulders and let someone give the child a shove in the back. The child goes forward, but its legs, pressed against your chest, push you backwards. Two bodies joined at one point cannot be pushed one at a time. The two rods of the pendulum are joined at the elbow, and that joint is why the eye leans.
Everything in this section happens in the instant just after the strike, while the pendulum still hangs straight down. Section 6 showed that gravity has no part in that instant, so what we find holds on the air-hockey table and on the hook alike. At \(\theta_1 = \theta_2 = 0\) we have \(\cos\Delta = 1\), and the kinetic energy (2) becomes \(T = \tfrac12A\dot\theta_1^2 + C\dot\theta_1\dot\theta_2 + \tfrac12B\dot\theta_2^2 = \tfrac12\dot{\boldsymbol\theta}^{\top}M_0\,\dot{\boldsymbol\theta}\), with \(\dot{\boldsymbol\theta} = (\dot\theta_1, \dot\theta_2)\) and the mass matrix \(M_0 = \bigl(\begin{smallmatrix} A & C\\ C & B\end{smallmatrix}\bigr)\). The momenta are then \(\mathbf p = M_0\dot{\boldsymbol\theta}\), and the angular speeds just after a strike are \(\dot{\boldsymbol\theta} = M_0^{-1}\mathbf p\), which is the first two of equations (3) with \(\cos\Delta = 1\). Each entry of \(M_0\) is an inertia. \(A\) is the upper rod turning about the pin with the lower rod's whole mass carried at its end; \(B\) is the lower rod turning about the elbow; and \(C = m_2l_1a_2\) is what we will call the tie. It exists only because the lower rod hangs from the moving end of the upper one, and it is the only entry that mixes the two angles.
The tie. Give the lower rod alone a twist: two equal and opposite sideways blows on it, close together, which turn it without pushing it as a whole. Such a pair of blows (a couple) does work only when \(\theta_2\) changes, so by the rule of section 2 it adds to \(p_2\) and nothing to \(p_1\). Take the twist that gives \(\mathbf p = (0,\ 1)\ \mathrm{kg\,m^2/s}\). Then
\[ \dot{\boldsymbol\theta} = M_0^{-1}\begin{pmatrix}0\\1\end{pmatrix} = \frac{1}{AB - C^2}\begin{pmatrix} -C\\ A\end{pmatrix} = \begin{pmatrix} -18/7\\ 48/7\end{pmatrix} = \begin{pmatrix} -2.57\\ 6.86\end{pmatrix}\ \mathrm{rad/s}. \tag{10} \]The upper rod, which nothing touched, starts to turn backwards. With both rods hanging, the elbow moves sideways at \(l_1\dot\theta_1 = -2.57\ \mathrm{m/s}\) and the tip at \(l_1\dot\theta_1 + l_2\dot\theta_2 = +4.29\ \mathrm{m/s}\): the elbow goes back while the tip goes forward. The lower rod, turned about a point inside itself, swings its upper end backwards; that end is the elbow, and it drags the upper rod with it. The minus sign in (10) is the \(-C\): without the tie there would be no backward kick. The same happens the other way round. A twist of the upper rod alone, \(\mathbf p = (1,\ 0)\), gives \(\dot{\boldsymbol\theta} = (B,\ -C)/(AB - C^2) = (12/7,\ -18/7)\ \mathrm{rad/s}\), and now the lower rod turns backwards. To keep the upper rod still at the first instant, both rods must be pushed, in the proportion that makes the first entry of \(M_0^{-1}\mathbf p\) zero:
\[ B\,p_1 - C\,p_2 = 0\qquad\Longleftrightarrow\qquad p_1 = \frac CB\,p_2 = \frac32\,p_2 . \tag{11} \]The strike \((1.5,\ 1)\) leaves the upper rod still and sets the lower rod turning alone at \(\dot\theta_2 = (Ap_2 - Cp_1)/(AB - C^2) = 3\ \mathrm{rad/s}\). The ratio \(C/B = 3/2\) will come back below as the amount of a shear.
The lean, measured. Look again at the energy of a strike, (4). Without the tie, \(C = 0\), it would be \(K = p_1^2/2A + p_2^2/2B\), and the curves of equal energy would be ellipses with their axes along \(p_1\) and \(p_2\). The cross term \(-2C\,p_1p_2\) tilts them. To measure the tilt we write \(K = \mathbf p^{\top}G\,\mathbf p\) with the symmetric matrix \(G = \tfrac12M_0^{-1}\):
\[ G = \frac{1}{2(AB - C^2)}\begin{pmatrix} B & -C\\ -C & A\end{pmatrix} = \begin{pmatrix} \tfrac67 & -\tfrac97\\[2pt] -\tfrac97 & \tfrac{24}{7}\end{pmatrix}\ \frac{1}{\mathrm{kg\,m^2}},\qquad \lambda_\pm = \frac{15 \pm 9\sqrt2}{7} = 3.961,\ 0.3246 . \tag{12} \]The eigenvalues \(\lambda_\pm\) are the roots of \(\lambda^2 - (G_{11} + G_{22})\lambda + \det G = 0\), with \(G_{11} + G_{22} = 30/7\) and \(\det G = 9/7\). Along an eigenvector of \(G\) the ellipse \(\mathbf p^{\top}G\,\mathbf p = K\) reaches out to \(\sqrt{K/\lambda}\), so the long axis belongs to the smaller eigenvalue. (For the pupil's edge, \(K = 9.8\ \mathrm{J}\), this gives the semi-axes 5.49 and 1.57 quoted in section 5.) Turning the axes by an angle \(\beta\) removes the cross term when \(\tan2\beta = 2G_{12}/(G_{11} - G_{22})\):
\[ \tan 2\beta = \frac{-18/7}{-18/7} = 1\quad\Rightarrow\quad \beta = 22.5^\circ,\qquad \frac{\text{long axis}}{\text{short axis}} = \sqrt{\frac{\lambda_+}{\lambda_-}} = 3.49 . \tag{13} \](The equation \(\tan2\beta = 1\) also allows \(\beta = 112.5^\circ\), the short axis; putting the direction \(22.5^\circ\) into \(G\) gives \(\lambda_- = 0.3246\), so the long axis is the one at \(22.5^\circ\).) This is the lean of the eye: along \(22.5^\circ\) a strike carries the least energy for its size.
There is a sharper way to say the same thing. Energy gives every strike a length, \(|\mathbf p|^2 = K(\mathbf p)\), and so it also gives an angle between two strikes, through the product \(\langle\mathbf p, \mathbf q\rangle = \mathbf p^{\top}G\,\mathbf q\). Measured this way, the unit twist of the upper rod, \((1,\ 0)\), and the unit twist of the lower rod, \((0,\ 1)\), are not at right angles:
\[ \cos\alpha = \frac{G_{12}}{\sqrt{G_{11}\,G_{22}}} = \frac{-C}{\sqrt{AB}} = -\frac34\qquad\Rightarrow\qquad \alpha = 138.6^\circ . \tag{14} \]The paper draws the two momentum axes at \(90^\circ\); by energy they stand at \(138.6^\circ\), more than half opposed, because each twist drives the other rod backwards. That mismatch between the paper and the pendulum is the lean.
The eye leans because of the tie \(C\): a twist of one rod drives the other backwards, (10), so the energy of a strike (4) has the cross term \(-2C\,p_1p_2\). Its ellipses lean by \(22.5^\circ\) with axes in the ratio 3.49, (13), and measured by energy the \(p_1\) and \(p_2\) axes stand at \(138.6^\circ\), (14). With \(C = 0\) the ellipses would be upright.
The same pendulum, described by other angles. Two people dancing can be described by where each of them is, or by where the couple's middle is and how far apart the two are. Nothing about the dance changes; only the description does, and the second is often simpler. We now describe the pendulum in the same way, by how it turns as a whole and how its elbow bends, and choose the two angles so that their energies do not mix.★
Keep the bend \(\Delta = \theta_2 - \theta_1\) as one angle, and take as the other an angle \(\varphi\), a weighted mean of \(\theta_1\) and \(\theta_2\) whose weights are still to be fixed. Written the other way round, with a number \(a\) to be chosen,
\[ \theta_1 = \varphi + a\,\Delta,\quad \theta_2 = \varphi + (1 + a)\,\Delta;\qquad \dot{\boldsymbol\theta} = \mathbf e\,\dot\varphi + \mathbf w\,\dot\Delta,\quad \mathbf e = \begin{pmatrix}1\\1\end{pmatrix},\quad \mathbf w = \begin{pmatrix}a\\ 1 + a\end{pmatrix}. \tag{15} \]The pattern \(\mathbf e\) turns both rods at the same rate: the pendulum turns as one straight stick. The pattern \(\mathbf w\) bends the elbow. Putting \(\dot{\boldsymbol\theta} = \mathbf e\,\dot\varphi + \mathbf w\,\dot\Delta\) into \(T = \tfrac12\dot{\boldsymbol\theta}^{\top}M_0\,\dot{\boldsymbol\theta}\) and using \(\mathbf e^{\top}M_0\mathbf w = \mathbf w^{\top}M_0\mathbf e\) (\(M_0\) is symmetric),
\[ T = \tfrac12\,(\mathbf e^{\top}M_0\,\mathbf e)\,\dot\varphi^2 + (\mathbf e^{\top}M_0\,\mathbf w)\,\dot\varphi\,\dot\Delta + \tfrac12\,(\mathbf w^{\top}M_0\,\mathbf w)\,\dot\Delta^2 . \tag{16} \]We fix \(a\) by one demand: at the hanging position the energy of turning and the energy of bending should not mix, so the middle term must vanish. Since \(M_0\mathbf e = (A + C,\ B + C)\), this is \(\mathbf e^{\top}M_0\mathbf w = (A + C)\,a + (B + C)(1 + a) = 0\), so \(a = -(B + C)/I_s\) with \(I_s \equiv A + B + 2C\). Then \(\varphi = \theta_1 - a\Delta\) gives
\[ \varphi = \frac{(A + C)\,\theta_1 + (B + C)\,\theta_2}{I_s} = \frac{11\,\theta_1 + 5\,\theta_2}{16},\qquad \Delta = \theta_2 - \theta_1,\qquad \mathbf w = \frac{1}{I_s}\begin{pmatrix}-(B + C)\\ A + C\end{pmatrix} = \begin{pmatrix}-\tfrac{5}{16}\\[2pt] \tfrac{11}{16}\end{pmatrix}. \tag{17} \]\(\varphi\) is the direction of the pendulum as a whole, the upper rod counting \(11/16\) and the lower rod \(5/16\) because the upper rod carries more inertia about the pin. In the bending pattern the upper rod turns back by \(5/16\) while the lower rod turns forward by \(11/16\). The two numbers left in (16) are inertias:
\[ I_s = \mathbf e^{\top}M_0\,\mathbf e = A + B + 2C = \tfrac83\ \mathrm{kg\,m^2},\qquad \mu = \mathbf w^{\top}M_0\,\mathbf w = \frac{AB - C^2}{I_s} = \tfrac{7}{96}\ \mathrm{kg\,m^2},\qquad T = \tfrac12\,I_s\,\dot\varphi^2 + \tfrac12\,\mu\,\dot\Delta^2 . \tag{18} \]\(I_s\) is the moment of inertia of the straight stick about the pin; as a check, a uniform stick of mass \(2m\) and length \(2l\) turning about its end has \(\tfrac13(2m)(2l)^2 = \tfrac83\ \mathrm{kg\,m^2}\). For \(\mu\), multiply out \(\mathbf w^{\top}M_0\,\mathbf w = [A(B + C)^2 - 2C(B + C)(A + C) + B(A + C)^2]/I_s^2\); the bracket expands to \(AB(A + B + 2C) - C^2(A + B + 2C) = (AB - C^2)\,I_s\). \(\mu\), the inertia of bending, plays the part of the reduced mass of a two-body problem.
Each new angle has its own momentum, defined as in section 2: \(p_\varphi = \partial T/\partial\dot\varphi\) and \(p_\Delta = \partial T/\partial\dot\Delta\). Since by (15) \(\partial\dot\theta_i/\partial\dot\varphi\) are the entries of \(\mathbf e\) and \(\partial\dot\theta_i/\partial\dot\Delta\) those of \(\mathbf w\), the chain rule gives
\[ p_\varphi = \sum_i \frac{\partial T}{\partial\dot\theta_i}\,\frac{\partial\dot\theta_i}{\partial\dot\varphi} = p_1 + p_2 \equiv L,\qquad p_\Delta = \sum_i \frac{\partial T}{\partial\dot\theta_i}\,\frac{\partial\dot\theta_i}{\partial\dot\Delta} = \frac{-(B + C)\,p_1 + (A + C)\,p_2}{I_s} = \frac{11\,p_2 - 5\,p_1}{16} . \tag{19} \]The momentum of \(\varphi\) is the total angular momentum \(L\) about the pin, the quantity that the table conserves. In matrix form \((p_\varphi,\ p_\Delta)^{\top} = W^{\top}\mathbf p\), where \(W = (\mathbf e\ \ \mathbf w)\) is the matrix of the change of angles (15): momenta change with the transpose of the matrix that changes the angles. By (18) also \(p_\varphi = I_s\dot\varphi\) and \(p_\Delta = \mu\dot\Delta\), so \(T = p_\varphi^2/2I_s + p_\Delta^2/2\mu\). For the energy of a strike, \(K = T\) on the sheet, this is a sum of two squares, and we name their square roots:
\[ K = \frac{L^2}{2I_s} + \frac{p_\Delta^2}{2\mu} = X^2 + Y^2,\qquad X = \frac{p_1 + p_2}{\sqrt{2I_s}},\qquad Y = \frac{p_\Delta}{\sqrt{2\mu}} = \sqrt{\frac{\mu}{2}}\,\big(\dot\theta_2 - \dot\theta_1\big) . \tag{20} \]\(X^2\) is the spin energy, the energy of the pendulum turning as a straight stick with the angular momentum \(L\); \(Y^2\) is the fold energy, the energy of bending the elbow. \(X\) and \(Y\) are measured in \(\sqrt{\mathrm J}\). With the numbers of (18), the two are a linear map \(\mathcal T\) of the strike:
\[ \begin{pmatrix}X\\Y\end{pmatrix} = \mathcal T\begin{pmatrix}p_1\\p_2\end{pmatrix},\qquad \mathcal T = \begin{pmatrix} \tfrac{\sqrt3}{4} & \tfrac{\sqrt3}{4}\\[3pt] -\tfrac{5\sqrt{21}}{28} & \tfrac{11\sqrt{21}}{28}\end{pmatrix} = \begin{pmatrix} 0.4330 & 0.4330\\ -0.8183 & 1.8003\end{pmatrix}\ \frac{\sqrt{\mathrm J}}{\mathrm{kg\,m^2/s}} . \tag{21} \]Without the star: the straightening \(\mathcal T\) is the momentum map of the same pendulum described by two other angles, \(\varphi = (11\theta_1 + 5\theta_2)/16\), the direction of the pendulum as a whole, and \(\Delta = \theta_2 - \theta_1\), the bend of the elbow. Their momenta are \(L = p_1 + p_2\) and \(p_\Delta = (11p_2 - 5p_1)/16\), and each is divided by \(\sqrt{2\times\text{its inertia}}\), with the inertias \(I_s = 8/3\) and \(\mu = 7/96\ \mathrm{kg\,m^2}\). Then the energy of every strike is \(K = X^2 + Y^2\), equation (20), and the tilted ellipses of (4) become circles.
Why \(\mathcal T\) can be undone. A change of angles can always be undone; here \(\theta_1 = \varphi - \tfrac{5}{16}\Delta\) and \(\theta_2 = \varphi + \tfrac{11}{16}\Delta\), and \(\det W = 1\cdot(1 + a) - a\cdot1 = 1\). So the change of momenta \(W^{\top}\) can be undone too, and it keeps areas on the sheet. \(\mathcal T\) adds only the two scale factors \(1/\sqrt{2I_s}\) and \(1/\sqrt{2\mu}\):
\[ \det\mathcal T = \frac{1}{2\sqrt{I_s\,\mu}} = \frac{1}{2\sqrt{AB - C^2}} = \frac{3}{\sqrt7} = 1.134,\qquad \mathcal T^{-1} = \begin{pmatrix} \tfrac{11\sqrt3}{12} & -\tfrac{\sqrt{21}}{12}\\[3pt] \tfrac{5\sqrt3}{12} & \tfrac{\sqrt{21}}{12}\end{pmatrix} = \begin{pmatrix} 1.5877 & -0.3819\\ 0.7217 & 0.3819\end{pmatrix} . \tag{22} \]\(AB - C^2\) is \(\det M_0\), and it is positive for every real pendulum, because the kinetic energy \(\tfrac12\dot{\boldsymbol\theta}^{\top}M_0\,\dot{\boldsymbol\theta}\) of any motion is positive. So for any rods every strike has exactly one spin-and-fold name, and every name exactly one strike.
Why this \(\mathcal T\). Any matrix \(R\) with \(R^{\top}R = G\) turns the energy into a sum of two squares and the ellipses into circles, and if \(\mathcal T\) is one such matrix, \(Q\mathcal T\) is another for every rotation \(Q\), because \(Q^{\top}Q = 1\). The mathematics leaves one angle free; physics fixes it. The axis \(Y = 0\) holds the strikes with \(p_\Delta = 0\), which by (18) means \(\dot\Delta = 0\): they turn the pendulum without bending it at all, a pure spin. On the sheet they lie along \(M_0\mathbf e \propto (11,\ 5)\), \(24.4^\circ\) above the \(p_1\) axis. The axis \(X = 0\) holds the strikes with \(L = 0\), which give the pendulum no angular momentum about the pin, a pure fold; on the sheet they lie along \((-1,\ 1)\), at \(135^\circ\). On the paper these two directions are \(110.6^\circ\) apart; by energy they are at right angles, since \((11,\ 5)\,G\,(-1,\ 1)^{\top} = 0\). Any rotated \(Q\mathcal T\) would mix the two, and its axes would no longer be motions one can see. Among all the straightening maps, \(\mathcal T\) is the one whose axes are motions of the real pendulum.
Shear, stretch and turn. The same \(\mathcal T\) can be built from three simple moves, which is one way to animate it and no more. Complete the square in the numerator of (4), \(Bp_1^2 - 2Cp_1p_2 + Ap_2^2 = B\,(p_1 - \tfrac CB p_2)^2 + (A - \tfrac{C^2}{B})\,p_2^2\), and divide by \(2(AB - C^2)\):
\[ K = \frac{B}{2(AB - C^2)}\Big(p_1 - \frac CB\,p_2\Big)^2 + \frac{p_2^2}{2B} = \frac67\Big(p_1 - \frac32\,p_2\Big)^2 + \frac32\,p_2^2 . \tag{23} \]So a shear \(S\) followed by a stretch \(D\) already makes \(K\) a sum of squares. \(\mathcal T\) does the same, so \(Q = \mathcal T(DS)^{-1}\) keeps every sum of squares, and its determinant is \(+1\): it is a rotation. Altogether \(\mathcal T = Q\,D\,S\) with
\[ S = \begin{pmatrix} 1 & -\tfrac32\\ 0 & 1\end{pmatrix}\ \text{(shear)},\qquad D = \begin{pmatrix} \sqrt{6/7} & 0\\ 0 & \sqrt{3/2}\end{pmatrix}\ \text{(stretch)},\qquad Q = \begin{pmatrix} \tfrac{\sqrt{14}}{8} & \tfrac{5\sqrt2}{8}\\[3pt] -\tfrac{5\sqrt2}{8} & \tfrac{\sqrt{14}}{8}\end{pmatrix}\ \text{(turn by } -62.11^\circ) . \tag{24} \]The shear has a meaning of its own. Its amount is the ratio \(C/B = 3/2\) of (11), and with \(p_1 = A\dot\theta_1 + C\dot\theta_2\), \(p_2 = C\dot\theta_1 + B\dot\theta_2\) at the hanging position,
\[ p_1 - \frac CB\,p_2 = \big(A\dot\theta_1 + C\dot\theta_2\big) - \frac CB\big(C\dot\theta_1 + B\dot\theta_2\big) = \Big(A - \frac{C^2}{B}\Big)\,\dot\theta_1 = \frac{7}{12}\,\dot\theta_1 . \tag{25} \]After the shear, the horizontal axis measures the upper rod's own angular speed, with the drag of the lower rod taken out. The stretch then gives the two squares equal weight, so the ellipses become circles, and the turn puts the spin direction on the horizontal axis.
Take the strike \((p_1,\ p_2) = (3.03,\ 4.03)\ \mathrm{kg\,m^2/s}\). By (4), \(K = \tfrac67(3.03)^2 - \tfrac{18}{7}(3.03)(4.03) + \tfrac{24}{7}(4.03)^2 = 32.15\ \mathrm{J}\), between 29.4 and 39.2 J: it lies in the iris. Just after the strike \(\dot{\boldsymbol\theta} = M_0^{-1}\mathbf p = (-5.17,\ 19.84)\ \mathrm{rad/s}\): the tie at work again, the elbow moving back at 5.17 m/s while the tip moves forward at 14.67 m/s. Its new momenta, by (19), are \(L = 3.03 + 4.03 = 7.06\ \mathrm{kg\,m^2/s}\) and \(p_\Delta = (11\times4.03 - 5\times3.03)/16 = 1.824\ \mathrm{kg\,m^2/s}\). By (20) the spin energy is \(X^2 = L^2/2I_s = 7.06^2/(16/3) = 9.35\ \mathrm{J}\) and the fold energy is \(Y^2 = p_\Delta^2/2\mu = 1.824^2/(7/48) = 22.81\ \mathrm{J}\); together \(32.15\ \mathrm{J}\), as they must be. With (21) directly: \(X = 0.4330\times7.06 = 3.057\) and \(Y = -0.8183\times3.03 + 1.8003\times4.03 = 4.776\ \sqrt{\mathrm J}\). The same pendulum, struck the same way, is "3.03 and 4.03 of twist" in one description and "9.35 J of spin and 22.81 J of fold" in the other.
Straightening renames; it moves no rod. Every point of the straightened map is the same strike as before, on the same pendulum, followed by the same equations with the same gravity, and it keeps its colour; only its name changes. There is even a machine whose own controls give these names: a striking machine with two strikers.
The first striker is a hammer that gives a pure spin. A sideways blow of impulse \(\hat J\) on the lower rod, at the distance \(r\) below the elbow, gives \((p_1,\ p_2) = (\hat J\,l_1,\ \hat J\,r)\) (section 2). It is a pure spin when this points along \((A + C,\ B + C)\):
\[ \frac{r}{l_1} = \frac{B + C}{A + C}\quad\Rightarrow\quad r = \frac{5}{11}\,l = 0.455\ \mathrm{m}\ \ \Big(\text{that is } l_1 + r = \frac{16}{11}\,l = 1.45\ \mathrm{m} \text{ below the pin}\Big),\qquad X = \frac{4\sqrt3}{11}\,\hat J\,l = 0.630\,\hat J\,l,\quad Y = 0 . \tag{26} \]Struck there, the pendulum swings off as one straight stick, and the strength of the blow reads \(X\) directly. The second striker is a motor at the elbow. It twists the lower rod one way and the upper rod the other with equal and opposite couples, so an angular impulse \(\Lambda\) (in \(\mathrm{N\,m\,s}\)) gives \(\mathbf p = (-\Lambda,\ \Lambda)\). Then \(L = 0\), and by (19) \(p_\Delta = [(B + C) + (A + C)]\,\Lambda/I_s = \Lambda\):
\[ X = 0,\qquad Y = \frac{\Lambda}{\sqrt{2\mu}} = \frac{4\sqrt{21}}{7}\,\Lambda = 2.62\,\Lambda . \tag{27} \]This holds for every double pendulum, whatever its rods: the motor's two couples cancel about the pin, so it cannot change \(L\). The striking machine's two dials read \(X\) and \(Y\) up to fixed factors, and its map, drawn on its own dials, is upright with circles of equal energy. It is the same pendulum with different strikers.
The other way to get an upright map is to remove the tie, and that makes a different machine. Hang the lower rod from the elbow by its middle, like a propeller. Its centre is then at the elbow, \(a_2 = 0\), so by (1) \(C = 0\) and \(U_2 = 0\), and about its middle \(B = ml^2/12\). Its strike energy is
\[ K = \frac{p_1^2}{2A} + \frac{p_2^2}{2B}\qquad (C = 0), \tag{28} \]with upright ellipses and nothing to straighten. But with \(C = 0\) and \(U_2 = 0\), equations (3) fall apart into \(\dot p_2 = 0\), a lower rod that spins at the rate it was struck to for ever, and \(\dot\theta_1 = p_1/A\), \(\dot p_1 = -U_1\sin\theta_1\), a plain pendulum. Each is a motion of one angle with a conserved energy, and neither can be chaotic: its map is upright and dark everywhere. Our pendulum's map leans because its rods are tied, and the same tie is what allows it to be chaotic.
\(\mathcal T\) of (21) is the momentum map of the same pendulum described by \(\varphi = (11\theta_1 + 5\theta_2)/16\) and \(\Delta = \theta_2 - \theta_1\), each momentum divided by \(\sqrt{2\times\text{its inertia}}\); then \(K = X^2 + Y^2\), (20). It can be undone because a change of angles can be undone (\(\det\mathcal T = 3/\sqrt7\), (22)), and it is chosen because its axes are a pure spin and a pure fold. Shear, stretch and turn, (24), are one way to animate it; the shear \(3/2 = C/B\) is the tie measured.
08The streaks at 60° from pure spin★
A figure skater spinning with her arms out pulls them in and spins much faster. Her angular momentum stays the same; pulling in lowers her moment of inertia, so her spin energy goes up, and her arms must supply it. A pendulum folding its elbow does the same: folded, it is a shorter stick, and turning it with the same angular momentum costs more energy.
We are on the air-hockey table of section 6, where \(L = p_1 + p_2\) never changes. To follow the elbow at any bend, not only at the hanging position, we describe the pendulum by \(\theta_1\) and \(\Delta\), so that \(\theta_2 = \theta_1 + \Delta\) and \(\dot\theta_2 = \dot\theta_1 + \dot\Delta\). Putting this into (2), with \(\cos(\theta_1 - \theta_2) = \cos\Delta\), and collecting terms,
\[ T = \tfrac12\Big[I(\Delta)\,\dot\theta_1^2 + 2\,(B + C\cos\Delta)\,\dot\theta_1\dot\Delta + B\,\dot\Delta^2\Big],\qquad I(\Delta) = A + B + 2C\cos\Delta . \tag{29} \]\(I(\Delta)\) is the moment of inertia about the pin of the pendulum frozen with its elbow bent by \(\Delta\): set \(\dot\Delta = 0\) and (29) is \(\tfrac12 I\dot\theta_1^2\). It is largest straight, \(I(0) = I_s\), and smallest folded, \(I(\pi) = A + B - 2C = I_f\), the \(I_f\) of section 6. The momentum of \(\theta_1\) in this description is, by the chain rule exactly as in (19), \(p_1 + p_2 = L\):
\[ L = \frac{\partial T}{\partial\dot\theta_1} = I(\Delta)\,\dot\theta_1 + (B + C\cos\Delta)\,\dot\Delta . \tag{30} \]Now complete the square in \(\dot\theta_1\) in (29): \(I\dot\theta_1^2 + 2(B + C\cos\Delta)\dot\theta_1\dot\Delta = I\,[\dot\theta_1 + (B + C\cos\Delta)\dot\Delta/I]^2 - (B + C\cos\Delta)^2\dot\Delta^2/I\), and by (30) the square bracket is \(L/I\). With no potential energy on the table, the energy \(E\) is \(T\):
\[ E = \frac{L^2}{2I(\Delta)} + \tfrac12\,\mu(\Delta)\,\dot\Delta^2,\qquad \mu(\Delta) = B - \frac{(B + C\cos\Delta)^2}{I(\Delta)} = \frac{AB - C^2\cos^2\Delta}{I(\Delta)} . \tag{31} \]The last step uses \(B\,I - (B + Cc)^2 = AB + B^2 + 2BCc - B^2 - 2BCc - C^2c^2 = AB - C^2c^2\), with \(c = \cos\Delta\). At \(\Delta = 0\) this is (18) again: \(I = I_s\), \(\mu(0) = \mu\), and \(L^2/2I_s = X^2\). Since \(L\) is fixed, (31) is the energy of one angle, \(\Delta\), with a positive inertia \(\mu(\Delta)\) and a potential \(L^2/2I(\Delta)\). The elbow moves like a ball rolling in a valley whose floor has the height \(L^2/2I(\Delta)\): lowest when the pendulum is straight, highest when it is folded. Whatever energy is left above the floor moves the elbow (Figure 8.1).
The elbow folds right through when its energy is more than the top of the valley:
\[ E > \frac{L^2}{2I_f} = \frac{I_s}{I_f}\cdot\frac{L^2}{2I_s} = \frac{I_s}{I_f}\,X^2 . \tag{32} \]With \(E = K\) this is condition (8), now derived from the elbow's motion at every bend rather than from the skater's picture alone. For equal rods \(I_f = \tfrac23\ \mathrm{kg\,m^2}\). As a check: folded, the two rods lie along one line, the upper from the pin out to \(l\), the lower doubled back from \(l\) to the pin; each is a rod of length \(l\) turning about one end, so \(I_f = 2\cdot\tfrac13ml^2\). That is a quarter of the straight stick's \(\tfrac83\ \mathrm{kg\,m^2}\). A folded stick is four times easier to turn, so turning it with the same angular momentum costs four times the energy. With \(E = X^2 + Y^2\) from (20), and \(\psi\) the angle of the strike from the spin axis in the \((X, Y)\) plane (\(\tan\psi = |Y|/X\)), condition (32) becomes
\[ X^2 + Y^2 > 4X^2\quad\Longleftrightarrow\quad Y^2 > 3X^2\quad\Longleftrightarrow\quad \psi > 60^\circ;\qquad \text{for any rods: } \cos^2\psi < \frac{I_f}{I_s}. \tag{33} \]Without the star: on the table the elbow moves in a valley whose floor is \(L^2/2I(\Delta)\), and it folds through when the strike's energy exceeds the floor at the fold, \(L^2/2I_f\). A folded pair of equal rods has a quarter of the straight stick's inertia, so this happens when the fold energy is more than three times the spin energy: for strikes more than \(60^\circ\) from a pure spin. Strikes within \(60^\circ\) bend the elbow and swing it back; strikes beyond fold it through, the tip passing through the pin once per turn. The angle is exactly \(60^\circ\) because, for two equal uniform rods, \(I_s = 4I_f\); for other rods it is \(\arccos\sqrt{I_f/I_s}\). Carried back to the sheet by (22), the two rays at \(\pm60^\circ\) are the two lines (9): computed exactly, the line \(p_1 = 0.6697\,p_2\) lies at \(+60.000^\circ\) and the line \(p_1 = 37.33\,p_2\) at \(-60.000^\circ\).
A strike of 40 J at \(\psi = 55^\circ\) from pure spin has \(X = \sqrt{40}\cos55^\circ = 3.628\) and \(Y = \sqrt{40}\sin55^\circ = 5.181\ \sqrt{\mathrm J}\); by (22) it is the strike \((p_1,\ p_2) = (3.781,\ 4.596)\ \mathrm{kg\,m^2/s}\). Its energy in units of its spin energy is \(E/X^2 = 1/\cos^2 55^\circ = 3.04\), less than the 4 at the fold, so it cannot fold through. It turns back where the floor of the valley reaches its energy, \(I_s/I(\Delta) = 3.04\), that is \(I(\Delta) = I_s\cos^2 55^\circ = 0.877\ \mathrm{kg\,m^2}\); with \(I(\Delta) = \tfrac53 + \cos\Delta\) this gives \(\cos\Delta = -0.789\) and \(\Delta = \pm142.1^\circ\). The elbow swings between these bends, and the tip draws a ring. A strike of the same 40 J at \(\psi = 65^\circ\), the strike \((2.055,\ 4.118)\), has \(E/X^2 = 1/\cos^2 65^\circ = 5.60\), more than 4: its elbow passes over the fold every turn, and the tip draws lobes through the pin.
Now put the pendulum back on its hook. By the torque of section 6 gravity changes \(L\) a little during every turn, and so raises or lowers the top of the valley (32) a little. Far from \(60^\circ\) that changes nothing. On the lines themselves the elbow has just enough energy to creep up to the fold, the separatrix of section 6, and near them it arrives at the fold almost at rest, where gravity's small change decides whether it goes over or turns back. That decision is what makes the two lines bright on the map. The strike of Example 7.1, for instance, lies at \(\psi = 57.4^\circ\), just inside the line, but with only 32 J it sits in the iris, where gravity is a match for the strike and the table is no guide.
On the table the elbow moves in the valley \(L^2/2I(\Delta)\) of (31) and folds through when \(E > L^2/2I_f\), (32), which is (8). Because a folded pair of equal rods has a quarter of the straight stick's inertia, this is \(Y^2 > 3X^2\): the two streaks lie at exactly \(\pm60^\circ\) from a pure spin, (33), and at \(\arccos\sqrt{I_f/I_s}\) for other rods.
09Other proportions: two numbers, not five
Why only the mass ratio and the length ratio shape the map, and how the eye, its lean and its lines follow from them.
A model railway is built at 1:87 and still looks like a railway. A double pendulum scales the same way, only more strictly. Make both rods twice as long and every motion is the same motion, larger and slower. Make both twice as heavy and every motion is the same motion, struck twice as hard. Make gravity stronger and the same motion runs faster. What these three changes cannot alter is the pendulum's shape: how heavy and how long the lower rod is compared with the upper one. This section shows that those two ratios,
\[ \mu = \frac{m_2}{m_1},\qquad \lambda = \frac{l_2}{l_1}, \tag{34} \]are the only numbers the map depends on, once momentum, energy and time are measured in the pendulum's own units. In this section \(\mu\) is the mass ratio. The fold inertia, written \(\mu\) in sections 7 and 8, is written \(\mu_f\) here. Three more letters change meaning: \(\lambda\) is the length ratio, not the eigenvalues \(\lambda_\pm\) of section 6; \(\alpha\) is the angle of the eye's two lines, not the 138.6° of (14); and \(a\) is the weight of the upper angle in (39), not the \(a = -(B + C)/I_s\) of section 7. Two inertias are easy to confuse: \(\mu_f\) is the inertia of the bend, and \(I_f\) is the moment of inertia of the whole pendulum folded back on itself.
The machine. Two uniform rods hang from a pin, the upper of mass \(m_1\) and length \(l_1\), the lower of mass \(m_2\) and length \(l_2\) hung from the end of the upper. Their centres sit at \(\tfrac12 l_1\) along the upper rod and at \(l_1 + \tfrac12 l_2\) along the arm. Adding the motion of each centre and each rod's turning about its centre (\(\tfrac1{12}ml^2\)) gives the kinetic energy \(T = \tfrac12\,\dot{\boldsymbol\theta}^{\mathsf T}M\dot{\boldsymbol\theta}\) with
\[ M = \begin{pmatrix} \tfrac13 l_1^2(m_1 + 3m_2) & \tfrac12 l_1l_2m_2\cos(\theta_1 - \theta_2)\\ \tfrac12 l_1l_2m_2\cos(\theta_1 - \theta_2) & \tfrac13 l_2^2m_2 \end{pmatrix},\qquad V = -\tfrac g2\big[l_1(m_1 + 2m_2)\cos\theta_1 + l_2m_2\cos\theta_2\big]. \tag{35} \]For two rods of 1 kg and 1 m these are the \(A = \tfrac43\), \(B = \tfrac13\), \(C = \tfrac12\ \mathrm{kg\,m^2}\) and \(U_1 = 14.7\), \(U_2 = 4.9\ \mathrm J\) of section 2. The strike, as there, is two hammer blows lasting no time: the angles do not move during it, and just after it the momenta are \(\mathbf p = M(0)\,\dot{\boldsymbol\theta}\).
The pendulum's own units. Measure mass in \(m_1\), length in \(l_1\) and time in \(\sqrt{l_1/g}\), the time a stone takes to fall about half a rod's length. Then momentum is measured in \(m_1\sqrt{g\,l_1^3}\) and energy in \(m_1g\,l_1\), and every coefficient becomes a number that holds only \(\mu\) and \(\lambda\):
\[ A = \frac{1 + 3\mu}{3},\quad B = \frac{\mu\lambda^2}{3},\quad C = \frac{\mu\lambda}{2},\qquad U_1 = \frac{1 + 2\mu}{2},\quad U_2 = \frac{\mu\lambda}{2}. \tag{36} \]To see that nothing else survives, write momentum and time in these units, \(p = m_1\sqrt{g\,l_1^3}\,\tilde p\) and \(t = \sqrt{l_1/g}\,\tilde t\), and leave the angles alone. Then \(M = m_1l_1^2\tilde M\), and the energy \(H = \tfrac12\mathbf p^{\top}M^{-1}\mathbf p + V\) becomes \(m_1g\,l_1\tilde H\), where \(\tilde H\) holds only the numbers (36). Hamilton's equations \(\dot\theta = \partial H/\partial p\), \(\dot p = -\partial H/\partial\theta\) pick up the same factor \(\sqrt{g/l_1}\) on both sides and become
\[ \frac{d\theta}{d\tilde t} = \frac{\partial\tilde H}{\partial\tilde p},\qquad \frac{d\tilde p}{d\tilde t} = -\frac{\partial\tilde H}{\partial\theta}. \]The strike starts both pendulums hanging, with momenta \(\tilde{\mathbf p}\); the twin starts \(10^{-4}\) rad away in \(\theta_1\), an angle and so the same in any units. The gap \(d\) of (6) adds angle gaps to momentum gaps; measured with momenta in \(m_1\sqrt{g\,l_1^3}\) it is the same number for both. So two pendulums with the same \(\mu\) and \(\lambda\) have the same map once their axes, their watch and the momentum part of the gap are all read in their own units, and the left-hand maps on the page are computed exactly so, with \(m_1 = l_1 = g = 1\). That is the whole content of "two numbers, not five". The strike's energy, (4) in these units, is
\[ K = \frac{6\,\big(\lambda^2\mu\,p_1^2 - 3\lambda\mu\,p_1p_2 + (1 + 3\mu)\,p_2^2\big)}{\lambda^2\mu\,(4 + 3\mu)}, \tag{37} \]which for \(\mu = \lambda = 1\) is \(\tfrac67p_1^2 - \tfrac{18}7p_1p_2 + \tfrac{24}7p_2^2\), as before.
The three energies of the eye. The lower rod can go over the top once the strike carries its own rise, \(2U_2\); the upper rod once it carries \(2U_1\); both together once it carries \(2(U_1 + U_2)\). In the pendulum's units:
\[ 2U_2 = \mu\lambda,\qquad 2U_1 = 1 + 2\mu,\qquad 2(U_1 + U_2) = 1 + 2\mu + \mu\lambda\qquad (\text{times } m_1g\,l_1). \tag{38} \]For equal rods these are 1, 3 and 4, that is 9.8, 29.4 and 39.2 J. A short, light lower rod (\(\mu\lambda\) small) shrinks the pupil almost to nothing: such a rod goes over the top with a small strike.
Spin and fold for any rods. As in section 7, turn the pair of angles into the angle of the whole pendulum, \(\varphi\), and the bend of the elbow, \(\Delta = \theta_2 - \theta_1\). The right blend is the one that makes the hanging pendulum's mass matrix diagonal:
\[ \varphi = a\,\theta_1 + (1 - a)\,\theta_2,\qquad a = \frac{A + C}{A + B + 2C} = \frac{2 + 3(2 + \lambda)\mu}{2 + 2(3 + 3\lambda + \lambda^2)\mu}. \tag{39} \]For equal rods \(a = \tfrac{11}{16}\). The two inertias are \(I_s = A + B + 2C\), the pendulum held straight, and \(\mu_f = (AB - C^2)/I_s\) for the bend; the momenta are \(L = p_1 + p_2\) and \(p_\Delta = a\,p_2 - (1 - a)\,p_1\). With \(X = L/\sqrt{2I_s}\) and \(Y = p_\Delta/\sqrt{2\mu_f}\) the strike's energy is \(K = X^2 + Y^2\): on these axes every pendulum's eye is drawn with circles. The lean of the eye on the page's own axes comes from the shear of section 7, whose amount is
\[ \frac CB = \frac{3}{2\lambda}. \tag{40} \]The mass ratio has dropped out of the shear, but not out of the tilt the reader sees. On the page's axes the eye lies along the long axis of the energy ellipse (4): the direction of strike that costs least energy, which is the direction in which the pendulum carries most inertia. That axis stands at an angle \(\theta\) from the \(p_1\) axis with
\[ \tan 2\theta = \frac{2C}{A - B} = \frac{3\mu\lambda}{1 + 3\mu - \mu\lambda^2}, \]taking \(2\theta\) between 0° and 180°. Equal rods give \(\tan 2\theta = 1\), \(\theta = 22.5°\), the lean of section 7. A short lower rod (\(\lambda = 1/4\)) holds little of the inertia and the eye lies almost flat, at 3° to 7° over the range of \(\mu\); a long one (\(\lambda = 4\)) holds most of it, a push on the lower rod is the cheap direction, and the eye stands at 63° to 68°. The shear \(C/B\) is one factor of the split of section 7 and only that; the tilt also contains the stretch, which depends on \(\mu\).
As \(\lambda\) shrinks to zero the tie \(C = \mu\lambda/2\) shrinks with it, but the shear \(C/B = 3/(2\lambda)\) grows without bound: the tie never becomes small compared with the lower rod's own inertia \(B\). So no member of this family comes close to the machine with no tie at all, \(C = 0\), whose ellipses do not lean and whose map has no streaks. That machine is a different one, such as a lower rod hung at its middle.
The two lines for any rods. The argument of section 8 holds word for word. For very hard kicks, where the strike's energy is many times the \(1 + 2\mu + \mu\lambda\) that gravity can give or take, energy and \(L\) are nearly kept, and the least energy the pendulum needs to bend its elbow to \(\Delta\) at angular momentum \(L\) is \(L^2/2I(\Delta)\) with \(I(\Delta) = A + B + 2C\cos\Delta\). It folds through when \(K > L^2/2I_f\), \(I_f = A + B - 2C\), and the border on the spin and fold axes is the pair of lines at \(\pm\alpha\) from the spin axis, with
\[ \cos^2\alpha = \frac{I_f}{I_s} = \frac{1 + 3\mu + \mu\lambda^2 - 3\mu\lambda}{1 + 3\mu + \mu\lambda^2 + 3\mu\lambda}. \tag{41} \]The numerator, \(1 + \mu(\lambda^2 - 3\lambda + 3)\), is positive for every \(\mu\) and \(\lambda\), since \(\lambda^2 - 3\lambda + 3\) has no real root: a folded pendulum never loses all its inertia, and \(\alpha\) stays below \(90^\circ\). The table gives \(\alpha\) for five of the nine values of each ratio in the figure Change the pendulum, keep the question above; the figure also has the four values between them, each a factor \(\sqrt2\) from its neighbours.
| \(\mu\) \ \(\lambda\) | 1/4 | 1/2 | 1 | 2 | 4 |
|---|---|---|---|---|---|
| 1/4 | 26.0° | 35.8° | 47.6° | 57.2° | 55.9° |
| 1/2 | 30.5° | 41.8° | 54.7° | 63.4° | 58.5° |
| 1 | 33.9° | 46.2° | 60.0° | 67.8° | 60.0° |
| 2 | 36.1° | 49.1° | 63.4° | 70.5° | 60.8° |
| 4 | 37.4° | 50.8° | 65.5° | 72.1° | 61.2° |
Two pendulums of different shape, \((\mu, \lambda) = (1, 1)\) and \((1, 4)\), both have their lines at exactly \(60^\circ\): by (41) \(I_s = 4I_f\) for both.
Where the lines open widest. Write \(P = 1 + 3\mu + \mu\lambda^2\); then (41) reads \(\cos^2\alpha = (P - 3\mu\lambda)/(P + 3\mu\lambda)\), which is smallest, and \(\alpha\) largest, where \(\lambda/P\) is largest. Setting the derivative to zero gives \(P = 2\mu\lambda^2\), that is
\[ \lambda_{\max} = \sqrt{3 + 1/\mu}, \]2 for equal masses (hence the 67.8° in the middle row), 2.65 for a light lower rod (\(\mu = 1/4\)), 1.80 for a heavy one (\(\mu = 4\)). On either side the lines close up. A very short or a very long lower rod, and a very light one, all give \(3\mu\lambda \ll P\), so \(I_f \to I_s\) and \(\alpha \to 0\): folding then costs almost nothing beyond spinning, and the two lines fall onto the spin axis. The first two energies of (38) also trade places when the lower rod is long: \(\mu\lambda > 1 + 2\mu\) once \(\lambda > 2 + 1/\mu\), as at \(\mu = \lambda = 4\), where they are 16 and 9.
A worked example. Take a lower rod twice as heavy and half as long as the upper, \(\mu = 2\), \(\lambda = \tfrac12\). By (36), \(A = \tfrac73\), \(B = \tfrac16\), \(C = \tfrac12\). The energies (38) are \(\mu\lambda = 1\), \(1 + 2\mu = 5\) and 6. The inertias are \(I_s = \tfrac73 + \tfrac16 + 1 = \tfrac72\) and \(I_f = \tfrac73 + \tfrac16 - 1 = \tfrac32\), so by (41) \(\cos^2\alpha = \tfrac37\) and \(\alpha = 49.1^\circ\), the entry in the table. The weight of (39) is \(a = (A + C)/I_s = \tfrac{17}{21}\) and the bend's inertia \(\mu_f = (AB - C^2)/I_s = \tfrac{5}{126}\). On the page's axes the eye tilts by \(\theta\) with \(\tan 2\theta = 3/6.5\), \(\theta = 12.4^\circ\): a short lower rod, so a nearly flat eye. For a real pendulum of 1 kg and 1 m above, 2 kg and 0.5 m below, multiply energies by \(m_1gl_1 = 9.8\ \mathrm J\): 9.8, 49 and 58.8 J.
What the units do on the page. The right-hand figure of Change the pendulum, keep the question keeps the page's own axes, kg·m²/s, and its own watch, 6.67 s, and changes the mass, the length or gravity of two equal rods. The shape is then always \(\mu = \lambda = 1\), yet the map changes, for three reasons that belong to how we measure, not to the pendulum. A strike of fixed size in kg·m²/s is \(p/(m\sqrt{g\,l^3})\) in the pendulum's units, so heavier or longer rods, or stronger gravity, make the same point a gentler strike and the eye grows on the paper. A watch of 6.67 s is \(6.67\sqrt{g/l}\) in the pendulum's own time, so stronger gravity or shorter rods let the twins part for longer. Gravity therefore does two things at once: it enlarges the eye and lengthens the watch. And the gap between twins adds an angle to a momentum: change the unit of momentum and the same pair of motions gives another gap, so the brightness changes too.
In units of \(m_1\), \(l_1\) and \(\sqrt{l_1/g}\) a pair of uniform rods depends only on \(\mu = m_2/m_1\) and \(\lambda = l_2/l_1\), (36). The eye's energies are \(\mu\lambda\), \(1 + 2\mu\) and \(1 + 2\mu + \mu\lambda\), (38); its tilt on the page's axes is \(\theta\), \(\tan 2\theta = 3\mu\lambda/(1 + 3\mu - \mu\lambda^2)\), which depends on both, while the shear \(3/(2\lambda)\) of section 7's split is free of \(\mu\), (40); its lines stand at \(\pm\alpha\) with \(\cos^2\alpha = I_f/I_s\), (41). Every formula of this section is checked symbolically in tools/fig13/ratio_study_check.wl.
10Reading the cells
Four kinds of drawing, and where on the sheet each lives.
- Rings. Upper right and lower left of the steep streak, towards the corners where \(p_1\) and \(p_2\) have the same sign. The elbow does not fold through; the arm stays nearly straight and the whole pendulum whirls round the pin like a single long rod. The tip stays near the 2 m circle.
- Rosettes. Where (8) holds. Each turn of the elbow draws one lobe through the pin; the next lobe lies turned by a fixed angle \(\delta\). When \(\delta/2\pi\) is a fraction \(q/k\) the rotating orbit closes with \(k\) lobes. The hunt for periodic orbits finds these strikes.
- Butterflies. The column \(p_1 = 3.56\), upper half: pin the cell \((3.56,\ 10)\). Here each lobe lands almost on the last one, so the lobe direction drifts slowly, and gravity makes it swing about straight down like a pendulum; the lobes pile up at the two turning points, the wings. Tuned to \((3.557,\ 12.211)\) it closes after 24 lobes: the butterfly of the dashboard and of the catch.
- Tangles. The cells on the glow. Six of the hundred strikes are chaotic by the map, three mirror pairs: \((3.56,\ 6)\) and \((-3.56,\ -6)\), \((-3.56,\ 2)\) and \((3.56,\ -2)\), \((17.78,\ 2)\) and \((-17.78,\ -2)\). The last pair sits on the flat streak. Their drawings never settle into a figure; restart and they draw the same tangle again, because the page repeats the same arithmetic, but strike a hair differently (change \(N\) or \(P\) slightly) and the tangle is another one.
Every drawing has a twin on the opposite side of the centre, mirrored left to right: the symmetry \((\theta, p) \to (-\theta, -p)\) of section 3.
11How the page computes it
A hundred pendulums integrated live, and a photographic plate that forgets.
Integration. Each pendulum's four numbers are advanced by the classical fourth-order Runge–Kutta method with the step \(h = 1/4500\ \mathrm{s} = 0.222\ \mathrm{ms}\); the error of one step falls as \(h^5\). The step is fixed, so the hardest strikes, which move fastest, are the least accurate. Measured by running this page for 10 s of motion: the energy of the median pendulum has changed by \(2\times10^{-5}\ \mathrm{J}\); the worst is the corner strike \((-32,\ 18)\) with 0.14 J out of 3450 J, a relative error of \(4\times10^{-5}\). For a regular pendulum such an error only shifts the timing slightly. For a chaotic one any error grows like the twins' distance, so after a few seconds the drawn tangle is one possible tangle, not the one an exact computation would draw; what stays true is its kind.
The plate. The tip is recorded every fifth step, 900 points a second. Each short piece of path deposits light on the pixels it crosses, the same amount per unit length, so a place the tip visits ten times is ten times as exposed: the brightness counts passes, as on a long-exposure photograph. Every frame the whole plate fades by \(e^{-\Delta t/\tau}\); the trail memory \(\tau\) (1.5 s by default) is how long the plate remembers. The exposure \(D\) is turned into colour through \(\ln(1 + D/D_0)\), which keeps both faint single passes and bright crossings visible.
The map was computed once, offline (tools/fig13/chaos_map.py, 921 600 twin pairs, 16 000 steps each), and is shown as an image under the plate.
12Equation to screen
- A cell's place: the strike. The small numbers along the left edge are \(p_2\) of each row, those along the bottom \(p_1\) of each column, in kg·m²/s.
- A cell's drawing: equation (5), the tip in metres; the pin is the cell's centre; 2 m is 0.4 of the cell's shorter side. Rods, in the bar under the figure, draws the two rods themselves.
- The glow: \(v\) of (6) for the strike at that point of the sheet; wine to rose, transparent where \(v = 0\).
- Energy limits (the button; the eye is the shape these curves give the glow): the green ellipse is \(K = 2U_2\) (the pupil's edge), the yellow one \(K = 2(U_1 + U_2)\), both from (4) and (7) with the sliders' values; the dashed lines are (9), from (8) in its general form.
- The pinned pendulum: the page opens with the butterfly's strike pinned; tap a cell to pin another. A ring marks the pinned strike. Drag the ring and the pinned pendulum is struck afresh at the strike under your finger, about eleven times a second while you drag, anywhere on the sheet and not only at the centres of cells; a strike within 8 % of a cell of its centre takes that cell. The panel shows its strike, \(K\) from (4), the map's \(v\) at its strike, and which part of the eye it is in, rewritten at most four times a second. Let go of the pin lets it go. The small picture has three views.
- Tip path: that pendulum enlarged, with the last 3 s of its tip's path.
- Angles: \(\theta_2\) against \(\theta_1\), each taken between −180° and +180°, hanging straight down in the middle. The left edge is the same line as the right one and the bottom the same as the top, so the square is a torus cut open and laid flat. The path is kept from the moment of pinning. A rod that goes over the top leaves through one edge and comes back through the opposite one.
- Section: a Poincaré section. Each time the upper rod passes straight down, \(\theta_1 = 0\) (mod \(2\pi\)), one dot is placed at \((\theta_2, p_2)\). The energy is fixed, so the motion lives on a three-dimensional surface, and the section cuts that surface down to a plane. A regular motion winds round a torus, and its dots fall on the closed curve where the plane cuts that torus. A chaotic motion scatters its dots over an area. A closed orbit returns to the same few dots. A pass with the upper rod turning backwards is drawn at \((-\theta_2, -p_2)\): the mirror image of a motion is again a motion, so all dots belong to one section, the one with \(\dot\theta_1 > 0\). The moment of passing is found inside one integration step of 1/4500 s by a straight line.
- Zoom: the sheet is a window on the plane of strikes. Zoom + (or a second tap on the pinned cell) halves its width and height around the pinned strike, which stays pinned; with nothing pinned it narrows around the middle. The pendulums in the cells are computed afresh for the new strikes. The map behind is one stored picture, a value every 0.056 kg·m²/s; zoomed in further than that it shows its own grain and nothing new. With a mouse the sheet can be dragged: the window moves by the strikes the drag covers, and the cells start again. Whole goes back to the whole sheet and keeps the pin.
- Try this: a row of buttons under the figure, each setting the sheet up for one thing to see, with one sentence saying what to look at: the energy limits; ten times closer around a chaotic strike, with the section; a rotating periodic orbit of 8 lobes; the butterfly of 24 turns; gravity off; a lower rod three times as heavy; and the start values. Every parameter a button moves away from its start value is marked in the panel Parameters, which also has a button back to the start values.
- Atlas: the list holds the fourteen closed curves of the hunt for periodic orbits of Part III, ten rotating orbits and four butterflies, read from the same file as the hunt's garden. Choosing one sets the pendulum to equal rods under \(g = 9.8\) m/s², puts that strike on the centre of a cell, pins it, and shows 1 kg·m²/s of \(p_2\) either side of it. The neighbours then show how the curve opens when the strike is slightly off.
- Where drawing and model differ: the plate forgets (the model does not); the sheet stops while it is off the screen, and on a slow device it runs slower than real time rather than skipping steps, so \(t\) under the figure is the time of the model, not of the clock; the colour is a logarithm of the exposure; the map is 6.67 s of twins, so a strike whose twins part only later counts as regular.
13Limits and what comes next
The pendulum has no friction and the strike is instantaneous. The sheet shows one slice of the four-dimensional state space, the pendulums that start hanging still; a pendulum released from a raised position is not on it. The map's verdict depends on its 6.67 s and on the threshold \(v > 0.5\); it is a finite-time measure, not a Lyapunov exponent. The argument for the streaks is the standard picture of chaos near a separatrix, supported here by measurement, not proved for this system. The section of the pinned pendulum is one cut, at \(\theta_1 = 0\); a motion whose upper rod seldom passes straight down fills it slowly. Next: the same map for point masses and unequal rods, and the stable partners of the butterflies.
- The butterfly's strike is \(p_1 = 3.557\), \(p_2 = 12.211\) kg·m²/s. Put it into (4) and find its kinetic energy. How many times the eye's outer edge, 39.2 J, is it? Check your number against the panel: choose the butterfly of 24 turns in the atlas.
- Where does the pupil's edge, \(K = 9.8\) J, cross the two axes of the sheet? Set \(p_2 = 0\) in (4), then \(p_1 = 0\). Press Energy limits and compare. Why is the pupil wider than it is tall?
- The dashed lines are the strikes for which the fold-through condition (8) holds with an equals sign. Divide \(3p_1^2 - 114\,p_1p_2 + 75\,p_2^2 = 0\) by \(p_2^2\), solve the quadratic for \(p_1/p_2\), and recover the two slopes of (9).
- Go to a closed curve in the atlas and open Section. Count the separate dots after a minute. Then tap a neighbouring cell. Its dots do not repeat; they fill in a ring. Say in one sentence what the ring is a cut through.
- Twist the upper rod alone, \(\mathbf p = (1,\ 0)\ \mathrm{kg\,m^2/s}\). Following (10), find the angular speeds just after the strike and show that the tip starts backwards at 0.86 m/s.
- A blow on the upper rod at any distance \(r < l\) below the pin gives \((\hat J r,\ 0)\) (section 2). Use (21) to show that, whatever \(r\), this strike lies \(62.1^\circ\) from a pure spin, so that on the table it always folds the elbow through. With (24), explain why this angle is the angle of the turn \(Q\).
- Let the lower rod be three times as heavy, \(m_2 = 3\ \mathrm{kg}\), with \(m_1 = 1\ \mathrm{kg}\) and both rods 1 m long and uniform. Compute \(A\), \(B\), \(C\) from (1), then \(I_s\), \(I_f\), and from (33) the angle of the two streaks from a pure spin. Is it larger or smaller than \(60^\circ\), and why?
14Sources and thanks
- 2swap, “Double Pendulums are Chaoticn’t” (2025), 7:08 to 7:20, and his open-source renderer swaptube. The picture of spirographs across momentum space and the twin-distance map are his; this page reproduces them from the equations and adds the explanation of the map's parts.
- J. S. Heyl, “The Double Pendulum Fractal” (2008): the rod equations and the energy argument for which rod can flip, equation (7).
- M. Z. Rafat, M. S. Wheatland, T. R. Bedding, “Dynamics of a double pendulum with distributed mass” (2008), arXiv:0812.0393: the motion goes from regular at low energies to chaos at intermediate energies and back to regular at high energies; without gravity “there is no torque on the pendulum” and the total angular momentum is conserved (section III.B). Used in sections 6 and 8.
- Drew’s Campfire, “Pushing Simulations to the LIMIT to Turn Chaos into Order”, credited by 2swap as an inspiration.
- On this site: the hunt for periodic orbits (closed rotating orbits and butterflies by Newton's method), the butterfly dashboard, catching the butterfly (a motor sets a chaotic pendulum on the butterfly), and Fig. 2, the point-mass double pendulum.
Part II
One cell becomes the butterfly
One strike of the sheet draws a butterfly. This part looks at that one pendulum: the wall its tip moves in, the two waves that are its height and its sideways position, how turning the paper makes a wave into the butterfly, and what the machine does in numbers. The dashboard above (The butterfly) shows it; the film "built by hand" draws it with a ruler.
15The plane the motion lives in
Hold a torch level and let a bicycle wheel turn in front of a wall: the shadow of a spoke tip on the floor slides to and fro, its shadow on the side wall goes up and down. Neither shadow is a circle; both are waves. The circle is only seen from the front.
Put the front view in numbers. Call the sideways position \(x\) and the height \(h\), both in metres, and write the point as one complex number,
\[ z = x + i\,h . \tag{42} \]The plane of \(z\) is not an abstraction here: it is the wall the motion happens in. For a point on a wheel of radius \(r\) turning at angular speed \(\omega\),
\[ z(t) = r\,e^{i\omega t},\qquad x = r\cos\omega t,\qquad h = r\sin\omega t . \tag{43} \]For the double pendulum of two rods of length \(l\), each angle measured from straight down, the lower rod's tip sits at \(x = l(\sin\theta_1+\sin\theta_2)\), \(h = -l(\cos\theta_1+\cos\theta_2)\). Since \(-i\,e^{i\theta} = \sin\theta - i\cos\theta\),
\[ z(t) = -i\,l\left(e^{i\theta_1(t)} + e^{i\theta_2(t)}\right). \tag{44} \]The two rods are two rotating arrows added head to tail; the plane on the left of the figure is the real wall the pendulum swings in. Nothing about it is a momentum picture: the kick \((p_1,p_2)\) only chooses which motion happens (Fig. 13).
16The waves and the straight lines
The height \(h = \operatorname{Im} z\) is drawn against time to the right of the plane, at the same height scale, the newest instant at the left edge and earlier ones further right. The line joining the moving point to the head of that wave is horizontal at every instant, because both ends are at the same \(h\). The sideways position \(x = \operatorname{Re} z\) is drawn below the plane, time running downward, and joined by a vertical line, because both ends share \(x\). For the wheel these are the sine and the cosine of (43).
17Turning the paper
Give every instant a third coordinate, the time axis: \(\tau = k\,a\), where \(a\) is how long ago the instant was and \(k\) is a scale in pixels per second. The motion becomes a curve in space, \((x, h, \tau)\): a helix for the wheel. Each panel is a view of that one curve. Turn the view by \(\varphi\) about the vertical axis through the middle of the panel, \(\tau_c\):
\[ \text{screen } x = \tau_c + (\tau-\tau_c)\cos\varphi + x\sin\varphi,\qquad \text{screen } y = h . \tag{45} \]At \(\varphi = 0\) the panel shows \((\tau, h)\), the wave. At \(\varphi = 90^\circ\) the time axis points at the reader, every \(\tau\) lands on the same place, and the panel shows \((x, h)\): the circle, or the butterfly. In between, the wave is seen at a slant and looks like a spring. The height never changes under this turn, so the horizontal line stays horizontal throughout. The panel below turns the same way about a horizontal axis, keeping \(x\), so its line stays vertical.
The turn is a rotation, so it is undone by turning back: a circle seen edge-on along time is a wave, and a wave seen end-on along time is a circle. Which picture appears depends only on where one looks from.
18What the butterfly needs
The butterfly is the pendulum kicked with \(p = (3.557, 12.211)\) kg·m²/s from hanging still. Its state returns to the start after \(T = 2.659\) s (to about \(10^{-11}\), found by Newton's method on Hamilton's equations; see The Hunt for Periodic Orbits), so its path closes after 24 lobes. It is shown here at a quarter of real speed. In a frictionless model it repeats for ever; a real one loses energy to friction, and this orbit is weakly unstable (a small error grows by about 2 % per lap), so it drifts after a minute or two.
19The butterfly as a machine: its strike, its speeds, its forces
One cell of the sheet, moved by a few thousandths of its strike until the drawing closes. Here is what that pendulum does, in numbers one could measure on a bench.
The strike. The butterfly is the pendulum struck from hanging still with \(p^* = (3.557313,\ 12.211005)\ \mathrm{kg\,m^2/s}\). In the hammer picture of section 2 this is two blows: \(12.21\ \mathrm{N\,s}\) forwards on the free end of the lower rod, which gives \((12.21,\ 12.21)\), and \(8.65\ \mathrm{N\,s}\) backwards on the elbow, which gives \((-8.65,\ 0)\). One blow alone cannot do it: a blow on the lower rod at the distance \(r\) below the elbow gives \(p_2/p_1 = r/l\), and the butterfly needs \(p_2/p_1 = 3.43\), a point 3.43 m down a rod that is 1 m long.
The speeds follow from the momenta. With both rods hanging, \(\cos(\theta_1 - \theta_2) = 1\), and solving the two definitions of section 2 for the angular speeds gives
\[ \dot\theta_1 = \frac{Bp_1 - Cp_2}{AB - C^2} = -25.30\ \mathrm{rad/s},\qquad \dot\theta_2 = \frac{Ap_2 - Cp_1}{AB - C^2} = +74.59\ \mathrm{rad/s}. \tag{46} \]The upper rod starts backwards at 4.0 turns a second, the lower rod forwards at 11.9 turns a second. The strike supplies \(K = 410.38\ \mathrm{J}\) by (4), so the energy is \(E^* = K - 19.6 = 390.78\ \mathrm{J}\).
One lap. After \(T = 2.659405\ \mathrm{s}\) the pendulum is back in its starting state, the lower rod exactly 24 turns further on. In between, the two rods do very different things. The upper rod behaves like a slow pendulum: it swings out to \(\pm156.7^\circ\) and back, never over the top, its speed between \(-32.7\) and \(+33.1\ \mathrm{rad/s}\). The lower rod behaves like a spinner: it never stops and never reverses, turning at 44.7 to 74.6 rad/s, 9.0 turns a second on average. The tip moves at 38 to 52 m/s, the speed of a car on a motorway. The top pin has to hold all this: it pulls with about 0.9 kN on average and with up to 4.3 kN, 220 times the weight of the two rods (19.6 N).
Why the drawing is a butterfly. Each time the elbow is straight, the tip is at its full reach \(2l\), in the direction of the upper rod: that is the end of a lobe. The lower rod overtakes the upper one 24 times a lap, so there are 24 lobes, and each points where the upper rod pointed at that moment. The upper rod swings like a pendulum, slow at its turning points, so the lobes crowd together there: the outermost ones lie at \(\pm135.6^\circ\) from straight down. Those two crowds are the wings. If the upper rod went over the top, the lobes would go all the way round and the drawing would be a rotating orbit.
Why it is not chaos. The motion carries 390.8 J. Gravity can give or take at most 19.6 J of it, one part in twenty. So gravity cannot stop a rod or decide which way it goes; it only bends the slow swing of the upper rod. Followed for one lap, an error in the state grows by the factor 1.0198 (section 27): the exact closed drawing is slowly lost, but the butterfly shape is not.
Strike \((3.557,\ 12.211)\ \mathrm{kg\,m^2/s}\) from hanging still; energy 390.78 J; period 2.6594 s; 24 turns of the lower rod and 24 lobes a lap; upper rod within \(\pm156.7^\circ\); an error grows 2 % a lap.
Part III
The flower hunt: which strikes close
A double pendulum that hangs still and is kicked once draws a curve with the tip of its lower rod. For most kicks the curve never closes. We show that the tip draws one lobe each time the arms fold through, that without gravity a single number, the kick's direction, decides how far each new lobe turns, and that a rotating orbit closes when that turn is a rational part of a full circle. With gravity we find the closed rotating orbits exactly, as periodic orbits, by Newton's method, and we measure which of them survive a small push. A butterfly turns out to be a pendulum inside the pendulum: the direction of the lobes swings back and forth about straight down.
20Where a lobe comes from
Put your forearm in line with your upper arm and your hand is as far from your shoulder as it can be. Fold the elbow all the way and your hand comes back to the shoulder. A double pendulum does the same with its tip.
Each rod has length \(l\), the upper rod makes the angle \(\theta_1\) with the downward vertical and the lower rod the angle \(\theta_2\). The tip is the sum of two arrows of length \(l\). Written as a complex number, with the real axis pointing down and the imaginary axis pointing right,
\[ z_{\text{tip}} = l\,e^{i\theta_1} + l\,e^{i\theta_2} = 2l\cos\frac{\Delta}{2}\;e^{i\psi}, \qquad \Delta = \theta_1 - \theta_2,\quad \psi = \frac{\theta_1 + \theta_2}{2}. \tag{47} \]To see the second form, take \(e^{i\psi}\) out of both terms: what is left is \(l(e^{i\Delta/2} + e^{-i\Delta/2}) = 2l\cos(\Delta/2)\). So the tip lies at the distance \(2l\,|\cos(\Delta/2)|\) from the pivot. When the arms line up (\(\Delta = 0\) or a whole number of turns) the tip is on the rim, \(2l\) away. When they fold (\(\Delta = \pi\)) the tip is at the pivot.
If the angle between the arms keeps turning, the tip runs out to the rim, back through the pivot, out to the rim on the other side, and so on. One full turn of \(\Delta\) draws one lobe, a loop through the centre. The tip of that lobe lies in the direction of the lower rod at the moment the arms are lined up. Call \(\delta\) the angle the lower rod turns between two such moments. Then the next lobe tip is \(\delta\) further round, and the rotating orbit closes after \(k\) lobes exactly when
\[ \frac{\delta}{2\pi} = \frac{q}{k} \pmod 1, \qquad q, k \text{ whole numbers with no common factor}. \tag{48} \]Every pendulum on this page starts hanging straight down, \(\theta_1 = \theta_2 = 0\). The arms are lined up, so the start is itself a lobe tip: every rotating orbit here has a lobe pointing straight down. The arms fold through only for some kicks. For the others \(\Delta\) rocks back and forth without reaching \(\pi\), the tip never passes the pivot, and the pendulum draws rings instead of lobes.
21Without gravity, one number decides
A hard kick makes gravity a small correction. So first switch gravity off.
Without gravity the pendulum is a free, jointed stick spinning about the pivot. Nothing outside twists it, so its total angular momentum \(p_1 + p_2\) stays constant. It also has no length scale in time: if a motion \(\theta(t)\) is possible with the kick \(\mathbf p\), then \(\theta(\lambda t)\) is possible with the kick \(\lambda\mathbf p\), because every term of the kinetic energy scales with \(\lambda^2\). Kick twice as hard and the same curve is drawn twice as fast. So \(\delta\) depends only on the direction of the kick, the angle \(\alpha\) in \(\mathbf p = |\mathbf p|(\cos\alpha, \sin\alpha)\).
Whether the arms fold through follows from energy alone. At the start, for two equal uniform rods of mass \(m\), the energy is \(E = \tfrac{6}{7ml^2}(p_1^2 - 3p_1p_2 + 4p_2^2)\). To fold, the stick must spin with its arms folded, where its moment of inertia about the pivot is smallest, \(\tfrac23 ml^2\). Spinning with the angular momentum \(p_1+p_2\) then costs \(\tfrac{3(p_1+p_2)^2}{4ml^2}\), the way a skater pulling in her arms spins faster and must supply energy to do so. The arms fold through when the kick provides more than that:
\[ 3p_1^2 - 114\,p_1p_2 + 75\,p_2^2 > 0 . \tag{49} \]The edge of this region is two straight lines through the origin, \(p_1 = (19 \mp 4\sqrt{21})\,p_2\), which is \(p_1 = 0.6697\,p_2\) and \(p_1 = 37.33\,p_2\). They are the two arms of the X in Fig. 13's chaos map.
We integrate one turn of \(\Delta\) for 1800 kick directions, 0.1° apart, and read off \(\delta(\alpha)\). It is the curve in the bench's chart. Solving (48) on it gives 80 directions for rotating orbits of 2 to 12 lobes.
A rotating orbit's shape is fixed by the direction of the kick alone. Its size in time is set by the strength of the kick. Closed rotating orbits sit at the directions where \(\delta/2\pi\) is a fraction \(q/k\).
22With gravity: closed orbits
Gravity spoils both symmetries: the time scaling and the freedom to turn the rotating orbit. A closed rotating orbit must now be found as a whole orbit.
A rotating orbit of \(k\) lobes is closed if, after \(k\) turns of \(\Delta\), the pendulum is back where it started: hanging straight down, \(\theta_2\) a whole number of turns, with the same momenta. Energy is conserved, so once \(p_1\) matches, \(p_2\) matches too. That leaves two conditions for the two unknowns of the kick:
\[ F(p_1, p_2) = \Bigl( \theta_2(t_k) - 2\pi n,\;\; p_1(t_k) - p_1(0) \Bigr) = (0,\,0), \tag{50} \]where \(t_k\) is the moment of the \(k\)-th alignment. We solve (50) by Newton's method, starting from the gravity-free rotating orbit at a kick strength of 18 or 30 kg·m²/s, and integrate with an eighth-order Runge–Kutta method (DOP853) at a relative tolerance of \(10^{-11}\). Every orbit in the garden closes to better than \(10^{-9}\).
The kick \(\mathbf p = (-28.032,\ 0.476)\) kg·m²/s gives the energy \(E = 689.0\) J, 17.6 times the 39.2 J it takes to lift both rods straight up. The tip draws seven lobes and returns in \(T = 0.794\) s; after seven lobes the state differs from the start by \(1.8\times10^{-11}\).
A closed orbit is useful only if it survives a small push. Watch the moments when the arms line up: the state there is \((\theta_2, p_1)\), and one rotating orbit is a map of that plane onto itself. Its Jacobian \(J\) has determinant 1, because Hamiltonian motion keeps phase-space area. If \(|\operatorname{tr} J| < 2\), nearby kicks circle the orbit and draw nearly the same picture: the orbit is stable. If \(|\operatorname{tr} J| > 2\), nearby kicks run away from it and the picture smears within a few periods: unstable. Within 0.01 of 2 our finite differences cannot tell, and we say neutral. This is common at high energy, where gravity is weak and almost a whole family of kicks nearly closes. In the garden the 3-lobe rotating orbit at \(\mathbf p = (24.42,\ 0.00)\) has \(\operatorname{tr} J = 1.96\): stable. The 7-lobe rotating orbit at \((7.51,\ 12.34)\) has \(\operatorname{tr} J = -14.8\): it is there on purpose, so you can watch an unstable rotating orbit fall apart.
23The butterfly
A butterfly is a rotating orbit that cannot decide where to point.
Take the kick \(\mathbf p = (3.556,\ 10)\), a cell of the video's grid. Its lobe tips point, in order, 57°, 97°, 119°, 126°, 121°, 104°, 74°, 33°, −14°, … from straight down. Each lobe lands close to the previous one: the lower rod turns by almost a whole turn between lobes, so \(\delta/2\pi\) is close to 0, the one-lobe resonance. Without gravity the lobes would creep round the circle at a steady rate. Gravity pulls the lobe direction towards straight down, so it swings about the bottom like a pendulum, out to \(\pm126°\) and back. A pendulum is slowest at its turning points, so the lobes pile up there: two dense fans, left and right. Those are the wings.
Along the line \(p_1 = 3.556\) every kick from \(p_2 = 7.0\) to \(17.9\) is caught in this swing (89 of 161 kicks, 0.1 apart). The wings open between about \(\pm123°\) and \(\pm165°\), widest for the hardest kicks, and one swing takes between 10 and 45 lobes. When one swing takes a whole number \(N\) of lobes, the butterfly closes. It is then a periodic orbit with \(N\) turns of \(\Delta\), and (50) finds it.
\(\mathbf p = (3.557,\ 12.211)\) kg·m²/s, \(E = 390.8\) J. The lobe direction swings out to \(\pm135.6°\), the tip draws 24 lobes and returns in \(T = 2.659\) s; the state closes to \(9\times10^{-12}\). Its trace is 2.000: neutral.
The butterflies with 12, 14 and 16 lobes have traces of 2.39, 2.17 and 2.04: unstable. This is expected. Resonant closed orbits come in pairs, one stable and one unstable (the Poincaré–Birkhoff theorem), and Newton's method found the unstable member of each of these three pairs. Their stable partners are not yet computed.
24How we know
The model is the compound double pendulum of two equal uniform rods, \(m = 1\) kg, \(l = 1\) m, \(g = 9.8\) m/s². For two equal rods its equations reduce exactly to 2swap's and to Heyl's (checked with SymPy); the energy, the fold-through lines (49) and the small-swing frequencies were checked again with Wolfram. The search runs in tools/fig13/hunt.py, the stability in hunt_inspect.py, the butterflies in butterfly.py. The fold-through edges found by integration, 0.0262 and 0.9791 rad, agree with (49), 0.0268 and 0.9807 rad, to one scan step. The page itself integrates with its own fourth-order Runge–Kutta at \(h = 1/9000\) s on the bench and \(1/4500\) s in the garden. On the bench it measures \(\delta/2\pi\) for the 7-lobe rotating orbit at \((-30.04,\ 2.52)\) within \(4\times10^{-5}\) of \(4/7\) over 64 lobes: the browser confirms the closure the offline search found.
What is not shown yet: the stable partners of the three unstable butterflies, rotating orbits of 6 and of 9 to 12 lobes with gravity (Newton's method did not converge from our starting kicks), and the same hunt for point masses and unequal rods.
25Sources and thanks
- 2swap, “Double Pendulums are Chaoticn’t” (2025), and his open-source renderer swaptube. The picture of spirographs across momentum space is his idea; this page is our own derivation and computation.
- J. S. Heyl, “The Double Pendulum Fractal” (2008), the rod equations and the energy argument for flips, linked in 2swap’s video description.
- Drew’s Campfire, “Pushing Simulations to the LIMIT to Turn Chaos into Order”, credited by 2swap as an inspiration.
Part IV
Catching the butterfly with a motor
The butterfly is a periodic orbit of the double pendulum: struck from rest with \(p = (3.557, 12.211)\ \mathrm{kg\,m^2/s}\), it returns to its start after \(T = 2.659\ \mathrm{s}\) with the lower rod 24 turns further on. It is unstable, but barely: an error grows by a factor 1.0198 a lap. We show how a single motor at the top pin, acting as a torque \(\tau\) on the upper rod, can bring the pendulum from anywhere into this orbit. Two exact identities carry the method: the motor changes the energy at the rate \(\tau\,\dot\theta_1\) and the total angular momentum at the rate \(\tau\) minus gravity's torque. With them the motor pumps the energy to the butterfly's 390.8 J and sizes the slow swing; then it waits, motor off, for the free motion to pass close; then a feedback designed on the orbit itself, a periodic linear-quadratic regulator, catches and holds it; then it lets go. A miss drains the pendulum back into chaos for a fresh try. Measured on 300 random starts (three sets of 100): all caught and held, half of them within 18 s after the motor switches on, the slowest after 229 s.
26The picture
A child on a playground swing who wants to go higher does not fight the swing. She waits for the right moment in each swing and pushes a little, in step with the motion. And a juggler does not grab a falling club anywhere: he lets it come to his hand and then closes his fingers.
Catching the butterfly is both of these. The double pendulum is a slow pendulum (the upper rod, swinging out to ±157°) carrying a fast spinner (the lower rod, whirling round 24 times a lap). The motor at the top pin can only push on the upper rod. It pushes in step with the motion to give the pendulum the right energy and the right size of swing, as the child does. Then it lets the motion come close by itself, as the juggler does, and only then holds it with small, quick corrections. When the corrections have done their work, it lets go, and the pendulum keeps drawing the butterfly for minutes on its own, because the orbit is only barely unstable.
Two facts make this possible, and both are exact. Torque times angular speed is power: a push on a rod that is turning the same way adds energy, one against the motion takes it away. And a torque at the pin is the only thing besides gravity that changes the pendulum's total angular momentum. Everything below follows from these two facts and from looking at the butterfly as a closed loop in the four-dimensional space of the pendulum's states.
27The machine and its equations
Two equal uniform rods, a frictionless pin at the top and one between the rods, gravity, and a motor at the top pin.
Each rod has mass \(m = 1\ \mathrm{kg}\) and length \(l = 1\ \mathrm{m}\); \(g = 9.8\ \mathrm{m/s^2}\). The angles \(\theta_1, \theta_2\) are measured from straight down. A uniform rod about its centre has moment of inertia \(I = ml^2/12\), and its centre lies at \(a = l/2\) from its upper end. The kinetic energy is that of the upper rod turning about the pin plus that of the lower rod's centre moving and the lower rod turning about its centre; the potential energy is that of the two centres of mass:
\[ \mathcal L = \tfrac12 A\,\dot\theta_1^2 + \tfrac12 B\,\dot\theta_2^2 + C\cos(\theta_1-\theta_2)\,\dot\theta_1\dot\theta_2 + U_1\cos\theta_1 + U_2\cos\theta_2, \tag{51} \] \[ A = ma^2 + I + ml^2 = \tfrac43\ \mathrm{kg\,m^2},\quad B = ma^2 + I = \tfrac13\ \mathrm{kg\,m^2},\quad C = mla = \tfrac12\ \mathrm{kg\,m^2},\quad U_1 = g(ma+ml) = 14.7\ \mathrm{N\,m},\quad U_2 = gma = 4.9\ \mathrm{N\,m}. \tag{52} \]The conjugate momenta \(p_i = \partial\mathcal L/\partial\dot\theta_i\) are \(p_1 = A\dot\theta_1 + C\cos(\theta_1-\theta_2)\dot\theta_2\) and \(p_2 = B\dot\theta_2 + C\cos(\theta_1-\theta_2)\dot\theta_1\). Solving this linear pair for the angular speeds and forming \(H = \sum p_i\dot\theta_i - \mathcal L\) gives the Hamiltonian
\[ H = \frac{B\,p_1^2 - 2C\cos(\theta_1-\theta_2)\,p_1p_2 + A\,p_2^2}{2\,\big(AB - C^2\cos^2(\theta_1-\theta_2)\big)} - U_1\cos\theta_1 - U_2\cos\theta_2 . \tag{53} \]The motor exerts a torque \(\tau\) between the fixed support and the upper rod. Its virtual work is \(\tau\,\delta\theta_1\), so it enters as a generalised force on \(\theta_1\) only, and Hamilton's equations become
\[ \dot\theta_i = \frac{\partial H}{\partial p_i},\qquad \dot p_1 = -\frac{\partial H}{\partial\theta_1} + \tau,\qquad \dot p_2 = -\frac{\partial H}{\partial\theta_2}. \tag{54} \]One number sets the regime: the energy compared with what gravity can give or take. The potential energy ranges over \(\pm(U_1+U_2) = \pm 19.6\ \mathrm{J}\). The butterfly carries \(E^* = 390.78\ \mathrm{J}\), twenty times more. At such energies gravity steers the motion but does not dominate it; at energies of the order of \(U_1+U_2\) the double pendulum is chaotic almost everywhere. The motor's limit is \(|\tau| \le 60\ \mathrm{N\,m}\), about four times \(U_1\).
28The target: an unstable periodic orbit
The butterfly is not a place but a loop: a closed path in the space of states \(s = (\theta_1, \theta_2, p_1, p_2)\).
Struck from rest with \(p^* = (3.557313,\ 12.211005)\ \mathrm{kg\,m^2/s}\), that is with angular speeds \(\dot\theta_1 = -25.30\ \mathrm{rad/s}\), \(\dot\theta_2 = +74.59\ \mathrm{rad/s}\), the pendulum returns to exactly its starting state after
\[ s(T) = s(0) + (0,\ 2\pi\cdot 24,\ 0,\ 0),\qquad T = 2.659405\ \mathrm{s}. \tag{55} \]Equation (55) is a boundary condition in time; the strike was found by Newton's method on it (tools/fig13/butterfly.py), closing to about \(10^{-11}\). Call the orbit \(s^*(t)\).
Stability. Follow a nearby state \(s^*(0)+\delta s\) for one lap. To first order the error obeys the variational equation \(\dot{\delta s} = J(s^*(t))\,\delta s\), with \(J = \partial f/\partial s\) the Jacobian of the right-hand side of (54); integrated over a lap it gives the monodromy matrix \(\Phi(T)\), \(\delta s(T) = \Phi(T)\,\delta s(0)\). Its eigenvalues, the Floquet multipliers, computed from the exact Jacobian (SymPy) and DOP853 at relative tolerance \(10^{-12}\), are
\[ \mu = 1.01977,\quad 0.98062,\quad 1 \pm 0.0017i,\qquad \det\Phi(T) = 1 \pm 2\times10^{-12}. \tag{56} \]The pair near 1 belongs to every periodic orbit of a conservative system: a shift along the orbit stays a shift, and a change of energy changes the period (it would be a Jordan block at exactly 1; the 0.0017 is the numerical splitting of that block). The determinant 1 is Liouville's theorem: the flow keeps phase-space volume. The other pair, \(\mu\) and \(1/\mu\), says the butterfly is a saddle: one direction grows by 1.98 % a lap, one shrinks by the same factor. An error of \(10^{-6}\) needs \(\ln(10^5)/\ln 1.0198 \approx 590\) laps, 26 minutes, to reach 0.1. Measured on the full equations, on 40 pendulums the motor had caught and released (section 36): they stayed within 0.1 of the orbit for 403 s in the median (about 150 laps), the shortest for 41 s, the longest for more than 800 s. That is shorter than the 2 % a lap suggests, because the loop stretches a small error unevenly: within the first few laps it can grow twenty times before the slow growth takes over. One run followed for 1500 laps (66 minutes) kept its wings between 135.55° and 135.83°, never over the top: the exact drawing is lost within minutes, the butterfly shape is not.
A saddle is never reached by the free motion from outside: the states that flow into it form a thin surface (its stable manifold), and a chaotic or a regular motion crosses near it only now and then. Without friction, nothing can make the free pendulum settle on the butterfly; with friction, it would lose the 390.8 J. Something has to put energy in, choose the swing, and correct the last error: the motor.
29The motor's two levers
One torque, two exact effects.
Energy. Along a solution of (54),
\[ \frac{dH}{dt} = \sum_i\Big(\frac{\partial H}{\partial\theta_i}\dot\theta_i + \frac{\partial H}{\partial p_i}\dot p_i\Big) = \sum_i\Big(\frac{\partial H}{\partial\theta_i}\frac{\partial H}{\partial p_i} - \frac{\partial H}{\partial p_i}\frac{\partial H}{\partial\theta_i}\Big) + \frac{\partial H}{\partial p_1}\,\tau = \tau\,\dot\theta_1 . \tag{57} \]The brackets cancel term by term; what is left is the power of the motor, torque times the angular speed of the rod it drives.
Angular momentum. Let \(P = p_1 + p_2\). The kinetic part of (53) depends on the angles only through \(\theta_1-\theta_2\), so its derivatives with respect to \(\theta_1\) and \(\theta_2\) are equal and opposite and drop out of \(\dot p_1 + \dot p_2\):
\[ \frac{dP}{dt} = \tau - U_1\sin\theta_1 - U_2\sin\theta_2 . \tag{58} \]This is the torque balance about the pin for the whole pendulum: the motor's torque and gravity's torque, nothing else. Without gravity \(P\) would be conserved (Noether's theorem for rotations about the pin).
What \(P\) measures. On the butterfly the lower rod spins fast, and the sum \(P\) swings slowly with the upper rod, between 1.23 and 15.77 kg·m²/s each lap. Averaged over a whirl of the lower rod, the term \(U_2\sin\theta_2\) nearly cancels and (58) reads \(\dot P \approx \tau - U_1\sin\theta_1\): \(P\) is the momentum of the slow pendulum. Its largest value over a swing, \(P_{\text{reach}} = \max|P|\), measures how big the swing is; on the butterfly \(P^*_{\text{reach}} = 15.77\ \mathrm{kg\,m^2/s}\).
30Pump and steer
First give the pendulum the butterfly's energy and the butterfly's swing.
The law the motor follows in this phase is
\[ \tau = \Big(k_E\,(E^*-E) + k_I\,\tfrac{1}{20}\!\int\!(E^*-E)\,dt\Big)\,\dot\theta_1 \;+\; \Big(k_A\,(P^*_{\text{reach}}-P_{\text{reach}}) + k_I\!\int\!(P^*_{\text{reach}}-P_{\text{reach}})\,dt\Big)\,P, \tag{59} \]clipped to \(|\tau| \le 60\ \mathrm{N\,m}\), with \(k_E = 0.01\), \(k_A = 0.05\), \(k_I = 0.005\) (SI units), \(P_{\text{reach}}\) taken over the last 3 s.
The energy term is energy shaping, the method Åström and Furuta used to swing a pendulum up. Alone, it gives by (57) \(\dot E = k_E(E^*-E)\dot\theta_1^2\). With \(V = \tfrac12(E-E^*)^2\),
\[ \dot V = (E-E^*)\,\dot E = -k_E\,(E-E^*)^2\,\dot\theta_1^2 \le 0, \tag{60} \]so the energy error never grows and shrinks whenever the upper rod moves: a Lyapunov function. The push is in step with the rod's own motion, like the child on the swing.
The swing term pushes along \(P\) when the swing is too small and against it when too big; by (58) it feeds or brakes the slow pendulum. The integrals are memories against a steady error, as in the PID control of Fig. 9: a proportional push alone needs a leftover error to keep pushing. The two terms interact (energy given to the swing is energy taken from the spin, at fixed total), so (59) has no simple Lyapunov proof; it is tuned and measured (section 36).
When \(|E-E^*| < 5\ \mathrm{J}\) and \(|P_{\text{reach}} - P^*_{\text{reach}}| < 3\ \mathrm{kg\,m^2/s}\), and at least 3 s after the motor started, the pendulum is moving like a butterfly of nearly the right size; its phase, where it is along the loop compared with the spin, is still wrong.
31Wait, and the mirror butterfly
The motor switches off and watches.
This is the idea of Ott, Grebogi and Yorke: a motion that wanders near an unstable orbit comes close to it from time to time by itself; one waits for that moment and then uses small corrections only. Here the distance from the orbit is
\[ d(s) = \min_{k,\ \sigma=\pm1}\ \Big(\sum_{i=1}^{4} Q_i\,\big[s_i - \sigma\,s^*_i(t_k)\big]^2\Big)^{1/2},\qquad Q = (1,\ 1,\ 0.05,\ 0.05), \tag{61} \]with the angles compared modulo \(2\pi\), over the 2400 stored points \(s^*(t_k)\) of the lap: the distance to the nearest point of the loop, whatever the timing. Angles count in radians and momenta in kg·m²/s, with the weight 0.05 because a momentum error of 1 kg·m²/s matters about as much as an angle error of 0.2 rad.
The mirror. The Hamiltonian (53) is even: \(H(-\theta,-p) = H(\theta,p)\). So if \(s(t)\) solves (54) with torque \(\tau(t)\), then \(-s(t)\) solves it with \(-\tau(t)\). The mirror butterfly \(-s^*(t)\), the same drawing flipped left to right, is an orbit just as good, held by the same gains with the torque reversed. That is the \(\sigma = \pm1\) in (61). When the distance falls below 0.6, the catch begins. If nothing comes within 0.6 in 12 s, it is a miss (section 33).
32The catch: feedback designed on the orbit★
Near the loop the motion is nearly linear, and a linear controller can be designed exactly for it.
Linearising along the orbit. Divide the lap into \(M = 2400\) steps of \(h = T/M = 1.108\ \mathrm{ms}\), the motor's control period. Over step \(k\), with the torque held constant,
\[ \delta s_{k+1} = \Phi_k\,\delta s_k + b_k\,\tau_k,\qquad \Phi_k = \frac{\partial s_{k+1}}{\partial s_k}\Big|_{s^*},\quad b_k = \frac{\partial s_{k+1}}{\partial\tau}\Big|_{s^*}. \tag{62} \]The product \(\Phi_{M-1}\cdots\Phi_0\) is the monodromy matrix of (56). The 2400 matrices are periodic in \(k\): the problem is a linear system with periodic coefficients, the discrete twin of Floquet theory.
One motor, four directions. The controllability Gramian over one lap,
\[ W = \sum_{k=0}^{M-1} \Phi_{M-1}\cdots\Phi_{k+1}\;b_k\,b_k^{\mathsf T}\;\big(\Phi_{M-1}\cdots\Phi_{k+1}\big)^{\mathsf T} h, \tag{63} \]is the matrix whose quadratic form tells how much a unit of torque effort moves the end-of-lap state in each direction. Its eigenvalues are \(3.5\times10^{-8},\ 2.6\times10^{-7},\ 2.0\times10^{-5},\ 4.0\times10^{-5}\): all positive, so the pendulum is controllable through the top pin alone, although underactuated; the smallest belongs to a change of the energy (its eigenvector lies within 8° of the gradient of \(H\)), the costliest thing to change.
The periodic linear-quadratic regulator. Choose the torques to minimise
\[ \mathcal J = \sum_k \Big(\delta s_k^{\mathsf T}\,Q\,h\,\delta s_k + R\,\tau_k^2\Big),\qquad R = 10^{-3}\ \mathrm{(N\,m)^{-2}}, \tag{64} \]a balance between the error and the effort. Dynamic programming backwards from the end gives the Riccati recursion for a cost matrix \(\Pi_k\) and the gains,
\[ \Pi_k = Qh + \Phi_k^{\mathsf T}\Pi_{k+1}\Phi_k - \frac{\Phi_k^{\mathsf T}\Pi_{k+1}b_k\;b_k^{\mathsf T}\Pi_{k+1}\Phi_k}{R + b_k^{\mathsf T}\Pi_{k+1}b_k},\qquad K_k = \frac{b_k^{\mathsf T}\Pi_{k+1}\Phi_k}{R + b_k^{\mathsf T}\Pi_{k+1}b_k},\qquad \tau_k = -K_k\,\delta s_k . \tag{65} \]Run backwards around the lap again and again, \(\Pi\) settles on a periodic solution (here after 5 laps); its gains \(K_k\) are the controller. With them, the closed-loop monodromy \(\prod_k(\Phi_k - b_kK_k)\) has all four multipliers of modulus 0.074 to 0.081: an error shrinks to 8 % of itself each lap, where the free orbit would have let it grow by 2 %.
Following the loop, not a clock. The reference \(s^*(t_k)\) used in \(\delta s_k = s - \sigma s^*(t_k)\) is re-chosen every step as the nearest point of the loop (61), searching 30 steps around the last one. A clock-locked reference would ask the motor to correct the timing too. The timing can only be changed by changing the energy and waiting while the period shifts, and (63) shows the energy to be the costliest direction; tried, it saturated the motor and lost the pendulum. The re-indexed reference lets the pendulum keep its own timing and corrects only the error across the loop.
How far away it can catch. Measured (section 36), from 200 random states at each distance: from 0.1 the catch holds 199 times, from 0.2 171, from 0.3 140, from 0.4 112, from 0.6 62, from 0.8 26. The threshold 0.6 is a trade. A catch tried from that far holds about one time in three, and a slip (distance above 1) is a miss and a new try; but a closer pass is rarer, and waiting for it costs more time than the lost tries (with the threshold at 0.2 only 29 of 40 starts were caught within 400 s).
33Hold, let go, and miss
The motor holds the pendulum at least four laps and until it is within 0.005 of the loop, then switches off.
Held, the corrections shrink below 0.1 N·m; released, the pendulum is free and keeps drawing the butterfly by the slow instability of section 28. Measured on 300 released runs: within 0.005 of the loop at the release by this rule, and four free laps later 0.0017 in the median, nine in ten below 0.016, the worst 0.058.
A miss (steering not settled within 12 s, nothing near within 12 s of waiting, or a catch that slips past 1) makes the motor drain the pendulum back down to 60 J with the energy law (59) aimed at 60 J (at most 6 s), and start again. At 60 J the double pendulum is chaotic, and chaos scrambles the next approach: each try is a fresh draw from the many ways of having the right energy and swing. The search is a sequence of independent tries, each with a fair chance.
34Rotating orbits: the same motor, a different lock
The hunt for periodic orbits found ten rotating orbits and three more butterflies (The Hunt for Periodic Orbits). The reader can ask the motor for any of them. The rotating orbits need a different law, and it works better than the butterfly's.
The picture. A skater in a spin pulls her arms in and turns faster, but nothing pushes her round: how much she turns, her angular momentum, stays what it was. A double pendulum that whirls fast is nearly that skater. Gravity can give or take 39 J at most between the lowest and the highest pose; a rotating orbit carries 262 to 970 J. Gravity is a ripple on it. Without gravity two things would stay exactly constant with the motor off: the energy \(E\), and by (58) the angular momentum about the pin, \(P = p_1 + p_2\).
Measured on the ten rotating orbits: over a lap \(P\) stays within 1 to 8 % of its mean \(\bar P\) (standard deviation 0.3 to 0.8 against means of 7.6 to 27.3 kg·m²/s). On the butterfly it runs between 1.2 and 15.8. So the orbits fall into two kinds, and design() tells them apart by that spread: swinging (the butterflies: the upper rod swings to and fro) and whirling (the rotating orbits: both rods go round).
Why two numbers are enough for the picture. Without gravity nothing marks a direction in space. Turn the whole pendulum about the pin by any angle \(\psi\) and it moves exactly as before. So every motion with the rotating orbit's energy and the rotating orbit's \(\bar P\), with the lower rod overtaking the upper one in the same sense, draws the same rotating orbit, turned by some angle. Set \(E\) and \(\bar P\) and the pen already draws the rotating orbit. A third number, the turn \(\psi\), puts it in place.
Setting two things with one torque. Take \(\tau = a\,\dot\theta_1 + b\). By (57) and (58), averaged over a few lobes (gravity averages out),
\[ \dot E = a\,\langle\dot\theta_1^2\rangle + b\,\langle\dot\theta_1\rangle,\qquad \dot P = a\,\langle\dot\theta_1\rangle + b . \tag{66} \]Ask for the energy and the angular momentum to close on their targets at chosen rates, \(\dot E = c_E\,(E^* - E)\) and \(\dot P = c_L\,(P_{\text{ref}} - \langle P\rangle)\), and solve (66):
\[ a = \frac{\dot E - \langle\dot\theta_1\rangle\,\dot P}{\langle\dot\theta_1^2\rangle - \langle\dot\theta_1\rangle^2},\qquad b = \dot P - a\,\langle\dot\theta_1\rangle . \tag{67} \]The denominator is the unevenness of the upper rod's turning. If the rod turned perfectly evenly it would be zero, and one torque could not set two things: a steady push would change both together and nothing could separate them. The rod speeds up and slows down with each lobe, and that is what the motor uses. In the program \(c_E = 2\ \mathrm{s^{-1}}\), \(c_L = 1.5\ \mathrm{s^{-1}}\), the averages are running means over 0.2 s, and below 0.6 \(E^*\) the motor simply pumps with the energy term of (59). Of the two mirror images the motor takes the one whose lower rod already turns the right way: it holds the upper rod and cannot quickly reverse the lower one.
Turning the rotating orbit into place. The angle between the rods and the two momenta do not change when the pendulum is turned as a whole. Matching \((\theta_1 - \theta_2,\ p_1,\ p_2)\) to the stored lap gives the place \(k\) on the lap, and then the turn is \(\psi = \theta_1 - \theta_1^*(t_k)\). A little too much angular momentum makes the whole rotating orbit creep forward:
\[ \dot\psi = c_\psi\,\big(\langle P\rangle - \bar P\big). \tag{68} \]\(c_\psi\) is measured once per rotating orbit: strike it slightly differently along the direction \((-\dot\theta_2,\ \dot\theta_1)\) in \((p_1, p_2)\), which leaves the energy alone, run one lap and read the turn. It comes out between 0.58 and 4.46 rad/s per kg·m²/s. So the motor asks for a slightly wrong angular momentum on purpose,
\[ P_{\text{ref}} = \pm\bar P - \frac{k_\psi}{c_\psi}\,\psi,\qquad\text{so that}\qquad \dot\psi = -k_\psi\,\psi,\quad k_\psi = 0.8\ \mathrm{s^{-1}}, \tag{69} \]never more than 12 % off \(\bar P\). The turn dies away and the detuning with it. This is a phase-locked loop, the circuit that keeps a radio on its station: run a little fast while behind, a little slow while ahead. The rotating orbit counts as caught when the distance (61) falls below 0.2, and as lost above 0.7; a lost rotating orbit still has its energy and angular momentum, so the motor steers on without starting over.
Four rotating orbits are caught with the gains of section 32 instead: the 5 lobes at 768 J and at 669 J, the unstable 7 lobes at 313 J and the 8 lobes at 506 J. On these the upper rod stops and turns back during the lap, the turn loop (68) has no steady whirl to work on, and the catch of section 32 takes over at \(d < 0.6\) once \(E\) and \(\bar P\) are set.
The page's own start and 59 poses as a finger leaves them, Catch it pressed after 4 s; "held" means still caught six seconds (or six laps) later; 300 s allowed. Each of the ten rotating orbits: held in 60 of 60, never needing to start over; half within 2.6 to 5.7 s of the press, the slowest 14 s. The butterflies stay on the wait-and-catch of sections 30 to 33 and are slower: 12 turns 56 of 60 (median 12 s); 18 turns 60 (8 s); 24 turns 60 (21 s, slowest 122 s); 32 turns 60 (35 s, slowest 161 s). For the 24-turn butterfly the first catch holds in about six of ten tries; the others slip and the motor starts over.
How well they are held. The six rotating orbits on the lock stay within 0.04 to 0.09 of the loop on average (0.18 at worst) with a mean torque of 0.3 to 1.1 N·m: the lock keeps trimming and never quite rests. The four caught with gains settle towards zero torque, like the butterfly. After letting go, 20 s later: the stable rotating orbits (3, 5 and 8 lobes) are still within 0.04; the neutral ones have drifted by up to 0.6 (the rotating orbit turns slowly); the unstable 7-lobe rotating orbit is gone (1.5), as it must be.
35The program
A state machine of five phases, and three computations behind it.
Run.prototype.ctrl in pendulum.js (and catch_anywhere in butterfly_control.py). Arrows carry the condition that changes the phase.Before the film starts (PEND.design(), about 0.1 s in the browser): integrate the butterfly from its strike, store its 2401 states; obtain each \(\Phi_k, b_k\) of (62) by central differences of one control step (\(\varepsilon = 10^{-6}\) in the state, \(10^{-3}\ \mathrm{N\,m}\) in the torque); run the recursion (65) around the lap until \(\Pi\) changes by less than \(10^{-9}\) of itself in a lap; keep the 2400 gain rows \(K_k\).
While the film plays (Run.advance): every control step of 1.108 ms, compute the torque from the phase's law, hold it, and integrate (54) over the step with four classical Runge–Kutta sub-steps of 0.277 ms; record the state every four steps for the drawing. The film's clock asks for the state at its own time and the run integrates just ahead of it (0.15 s, so a press is answered at once), so the motion is computed as you watch, never recorded.
for each control step k (h = T/2400):
E, w1, P = energy(s), dtheta1/dt, p1 + p2
reach = max |P| over the last 3 s
phase chaos: tau = 0 until the reader presses Catch it or taps a pattern
(a rotating orbit: laws (67) and (69) instead of pump and wait; caught at d < 0.2, lost at d > 0.7)
phase pump: tau = law (59) -> wait when |E - E*| < 5 J and |reach - 15.77| < 3
(a drain after a miss aims law (59) at 60 J)
phase wait: tau = 0; d, nearest point, mirror sign = (61) -> catch when d < 0.6, miss after 12 s
phase catch: re-index to the nearest point; tau = -K[k] (s - sign S[k]) (65)
miss if d > 1; held until the reader presses Let go
(the gift film, ?auto=1: on after 6 s, let go after 4 laps when d < 0.005)
tau = clip(tau, -60, 60) N m
integrate (54) over h with 4 RK4 sub-steps, tau held
36Checks and measurements
Every number above was computed, and the browser's code was compared with the reference code.
| Check | Result |
|---|---|
Butterfly from its strike, browser (RK4, step ≤ 0.2 ms) against orbit24.json (DOP853) | angles agree to \(3.9\times10^{-7}\) rad over a lap; closes to \(4\times10^{-7}\) |
| Energy of the strike, from (53) | 390.7777 J in both codes |
| Gains \(K_k\): browser (finite differences) against Python (variational equations) | equal to three decimals, e.g. \(K_0 = (-0.191, -2.456, 12.395, -15.064)\) |
| The page's own start: let go from rest at \((\theta_1, \theta_2) = (2.85, 3.0)\) rad (energy 18.9 J, where hanging still is −19.6 J: the lower rod goes over the top 13 times in 6 s). Catch it pressed at 40 moments, every 0.5 s from 1 s to 20.5 s; target the butterfly | held in all 40 (still caught six laps later); the first catch held in 26, in the others it slipped and the motor started over. From the press to the catch that holds: median 15.7 s, nine in ten within 82 s, slowest 193 s (Node 22, the page's pendulum.js, 12 November 2026) |
| 60 poses as a finger would leave them (tip anywhere within reach, at rest), Catch it pressed 4 s after letting go; target the butterfly | held in all 60; the first catch held in 30; median 22.3 s, nine in ten within 96 s, slowest 152 s |
| The other thirteen patterns | section 34 |
| The time to the catch of one given start | not a fixed number: chaos amplifies the last digit of the arithmetic, so two browsers disagree, and so does a strike changed by \(10^{-6}\). Only counts over many starts can be compared |
| Integration step of the controller | one RK4 step per 1.108 ms lets the free orbit drift \(2\times10^{-3}\) a lap, and an early count of "30 of 30" made that way was withdrawn; four sub-steps: \(4\times10^{-6}\) a lap. The count below was repeated with 8 and with 16 sub-steps: 100 of 100 each time |
| The catch's basin: a random point of the lap, a random direction, 200 states per distance; held = within 0.005 without slipping past 1 | 0.1: 199/200, 0.2: 171/200, 0.3: 140/200, 0.4: 112/200, 0.6: 62/200, 0.8: 26/200 |
| 100 random starts (half struck from rest with \(|p_i| \le 12\), half random angles with \(|p_i| \le 6\)), 900 s allowed | three sets of 100 (seeds 1, 2, 2026): 100 caught and held in each; median 18.5, 18.9, 17.5 s after the motor switches on; 83, 84, 82 within 60 s; slowest 229, 226, 149 s |
| Released runs (the same 300): distance four free laps after the release | median 0.0016 to 0.0018; nine in ten below 0.016, 0.013, 0.006; worst 0.058, 0.020, 0.031 |
| Released runs followed with DOP853 (40 of them): time within 0.1 of the orbit | median 403 s, shortest 41 s, one still within after 800 s |
| How to repeat these counts | node tools/fig13/catch_stats.cjs starts 1, basin 1, strike 2 4; python3 tools/fig13/release_check.py |
The statistics depend on the settings. With an earlier, stricter set (catch at 0.2, settled at 1 J and 1 kg·m²/s) only 29 of 40 starts were caught within 400 s; loosening the settle test let more tries reach the waiting phase, and the larger catch threshold used the basin that was there.
37Equation to screen
What each drawn thing is.
- The rods: \(\theta_1, \theta_2\) of the live run; the pen at the tip draws \(x = l(\sin\theta_1+\sin\theta_2)\), \(h = -l(\cos\theta_1+\cos\theta_2)\); the trail is the last 0.8 s while free or searching, the last two laps once caught.
- The motor: six stator coils glow in proportion to the current \(|I| = |\tau|/k_t\); the motor constant \(k_t = 2.5\ \mathrm{N\,m/A}\) is assumed (a direct-drive torque motor; 60 N·m at 24 A); it is not part of the model, which takes the torque as given. The four rotor magnets turn with \(\theta_1\). The arc beside the motor is \(\tau\), its length \(|\tau|/60\ \mathrm{N\,m}\).
- The faint butterfly is \(s^*(t)\), the target; it fades once the pendulum is held.
- Energy is \(H\) of (53); the bar's mark is \(E^*\). Distance is \(d\) of (61), shown from the waiting phase on.
- The clock: the free pendulum at real speed; the motor at work and the butterfly at half speed (the butterfly's lower rod turns nine times a second); a new try after a miss at double speed. The physics does not change with the clock; only what one second of film shows.
38Limits and the next model
An ideal pendulum and an ideal motor.
The pins have no friction; the motor makes exactly the torque asked, at once, held over each 1.1 ms; the controller knows the state exactly. A real machine needs: friction, which at 9 whirls a second would drain the butterfly within seconds and make the motor work all the time, not only to catch; the motor's electrical dynamics (inductance, back-emf, \(V = R_mI + \Lambda\dot I + k_t\dot\theta_1\), as in Fig. 9) between the command and the torque; measurement, and an observer that estimates \(p_1, p_2\) from encoder angles; and limits on speed. The method has no proof of global success: the measured catch rate is a statistic over 100 starts, not a theorem. Natural next steps are a transverse (orbital) linearisation that removes the timing direction from the design itself (Shiriaev and co-workers), and model-predictive control that plans the approach over a lap instead of waiting for it.
- A pendulum hanging still is struck with \(p_1 = 2\), \(p_2 = 4\) kg·m²/s. Its kinetic energy is \(K = \tfrac{6}{7}p_1^2 - \tfrac{18}{7}p_1p_2 + \tfrac{24}{7}p_2^2\), and hanging straight down its potential energy is −19.6 J. Show that its energy is 18.1 J. The butterfly has 390.8 J. How much must the motor add?
- The motor can give at most 60 N·m. Suppose the upper rod turned steadily at 10 rad/s and the motor pushed with it all the time. Use \(\dot H = \tau\,\dot\theta_1\) to find how long the pumping would take. The live catch needs far longer. Give two reasons from the text.
- Start from Hamilton's equations with the torque \(\tau\) added to \(\dot p_1\), and derive \(\dot H = \tau\,\dot\theta_1\) in three lines. Which terms cancel, and why does the torque on the upper rod alone still change the energy of both rods?
- Press Random chaos five times and write down each time to the catch. Compare your five with the counts of 300 starts quoted above: half within 18 s, slowest 229 s.
39Further reading
- K. J. Åström and K. Furuta, “Swinging up a pendulum by energy control”, Automatica 36 (2000) 287–295. The energy law, its Lyapunov function \(V = (E-E_0)^2/2\), and the advice to combine energy control with a catching controller near the target (read).
- E. Ott, C. Grebogi and J. A. Yorke, “Controlling chaos”, Phys. Rev. Lett. 64 (1990) 1196. Waiting for a chaotic motion to come near an unstable periodic orbit and holding it with small corrections (citation checked; the full text could not be opened from this session).
- Fig. 9 of this site, the driven oscillator: proportional, integral and derivative control as physical parts; why an integral removes a steady error.
- The hunt for periodic orbits, Fig. 13 study: how the butterfly orbit was found by Newton's method, and why it is a butterfly.