# Double pendulum

A double pendulum consists of two pendulums attached end to end.

In physics and mathematics, in the area of dynamical systems, a double pendulum also known as a chaos pendulum is a pendulum with another pendulum attached to its end, forming a simple physical system that exhibits rich dynamic behavior with a strong sensitivity to initial conditions.[1] The motion of a double pendulum is governed by a set of coupled ordinary differential equations and is chaotic.

## Analysis and interpretation

Several variants of the double pendulum may be considered; the two limbs may be of equal or unequal lengths and masses, they may be simple pendulums or compound pendulums (also called complex pendulums) and the motion may be in three dimensions or restricted to the vertical plane. In the following analysis, the limbs are taken to be identical compound pendulums of length l and mass m, and the motion is restricted to two dimensions.

Double compound pendulum
Motion of the double compound pendulum (from numerical integration of the equations of motion)

In a compound pendulum, the mass is distributed along its length. If the mass is evenly distributed, then the center of mass of each limb is at its midpoint, and the limb has a moment of inertia of I = 1/12ml2 about that point.

It is convenient to use the angles between each limb and the vertical as the generalized coordinates defining the configuration of the system. These angles are denoted θ1 and θ2. The position of the center of mass of each rod may be written in terms of these two coordinates. If the origin of the Cartesian coordinate system is taken to be at the point of suspension of the first pendulum, then the center of mass of this pendulum is at:

\displaystyle{ \begin{align} x_1 &= \frac{l}{2} \sin \theta_1 \\ y_1 &= -\frac{l}{2} \cos \theta_1 \end{align} }

and the center of mass of the second pendulum is at

\displaystyle{ \begin{align} x_2 &= l \left ( \sin \theta_1 + \tfrac{1}{2} \sin \theta_2 \right ) \\ y_2 &= -l \left ( \cos \theta_1 + \tfrac{1}{2} \cos \theta_2 \right ) \end{align} }

This is enough information to write out the Lagrangian.

### Lagrangian

The Lagrangian is

\displaystyle{ \begin{align}L & = \text{kinetic energy} - \text{potential energy} \\ & = \tfrac{1}{2} m \left ( v_1^2 + v_2^2 \right ) + \tfrac{1}{2} I \left ( {\dot \theta_1}^2 + {\dot \theta_2}^2 \right ) - m g \left ( y_1 + y_2 \right ) \\ & = \tfrac{1}{2} m \left ( {\dot x_1}^2 + {\dot y_1}^2 + {\dot x_2}^2 + {\dot y_2}^2 \right ) + \tfrac{1}{2} I \left ( {\dot \theta_1}^2 + {\dot \theta_2}^2 \right ) - m g \left ( y_1 + y_2 \right ) \end{align} }

The first term is the linear kinetic energy of the center of mass of the bodies and the second term is the rotational kinetic energy around the center of mass of each rod. The last term is the potential energy of the bodies in a uniform gravitational field. The dot-notation indicates the time derivative of the variable in question.

Since (see Chain Rule and List of trigonometric identities)

$\displaystyle{ \dot x_1 = \dot \theta_1 \left(\tfrac{l}{2} \cos \theta_1 \right) \quad \rightarrow \quad \dot x_1^2 = \dot \theta_1^2 \left(\tfrac{l^2}{4} \cos^2 \theta_1 \right) }$
$\displaystyle{ \dot y_1 = \dot \theta_1 \left(\tfrac{l}{2} \sin \theta_1 \right) \quad \rightarrow \quad \dot y_1^2 = \dot \theta_1^2 \left(\tfrac{l^2}{4} \sin^2 \theta_1 \right) }$
$\displaystyle{ \dot x_1^2 + \dot y_1^2 = \dot \theta_1^2 \tfrac{l^2}{4} \left(\cos^2 \theta_1 + \sin^2 \theta_1 \right) = \tfrac{l^2}{4} \dot \theta_1^2 , }$

and

$\displaystyle{ \dot x_2 = l \left(\dot \theta_1 \cos \theta_1 + \tfrac{1}{2} \dot \theta_2 \cos \theta_2 \right) \quad \rightarrow \quad \dot x_2^2 = l^2 \left( \dot \theta_1^2 \cos^2 \theta_1 + \dot \theta_1 \dot \theta_2 \cos \theta_1 \cos \theta_2 + \tfrac{1}{4} \dot \theta_2^2 \cos^2 \theta_2 \right) }$
$\displaystyle{ \dot y_2 = l \left(\dot \theta_1 \sin \theta_1 + \tfrac{1}{2} \dot \theta_2 \sin \theta_2 \right) \quad \rightarrow \quad \dot y_2^2 = l^2 \left( \dot \theta_1^2 \sin^2 \theta_1 + \dot \theta_1 \dot \theta_2 \sin \theta_1 \sin \theta_2 + \tfrac{1}{4} \dot \theta_2^2 \sin^2 \theta_2 \right) }$
$\displaystyle{ \dot x_2^2 + \dot y_2^2 = l^2 \left( \dot \theta_1^2 \cos^2 \theta_1 + \dot \theta_1^2 \sin^2 \theta_1 + \tfrac{1}{4} \dot \theta_2^2 \cos^2 \theta_2 + \tfrac{1}{4} \dot \theta_2^2 \sin^2 \theta_2 + \dot \theta_1 \dot \theta_2 \cos \theta_1 \cos \theta_2 + \dot \theta_1 \dot \theta_2 \sin \theta_1 \sin \theta_2 \right) }$
$\displaystyle{ = l^2 \left( \dot \theta_1^2 + \tfrac{1}{4} \dot \theta_2^2 + \dot \theta_1 \dot \theta_2 \cos \left(\theta_1 - \theta_2 \right) \right), }$

substituting the coordinates above and rearranging the equation gives

$\displaystyle{ L = \tfrac{m l^2}{2} \left(\tfrac{1}{4} \dot \theta_1^2 + \dot \theta_1^2 + \tfrac{1}{4} \dot \theta_2^2 + \dot \theta_1 \dot \theta_2 \cos \left(\theta_1 - \theta_2 \right) \right) + \tfrac{m l^2}{24} \left( \dot \theta_1^2 + \dot \theta_2^2 \right) - m g \left(y_1 + y_2 \right) }$
$\displaystyle{ = \tfrac{1}{6} m l^2 \left ( {\dot \theta_2}^2 + 4 {\dot \theta_1}^2 + 3 {\dot \theta_1} {\dot \theta_2} \cos (\theta_1-\theta_2) \right ) + \tfrac{1}{2} m g l \left ( 3 \cos \theta_1 + \cos \theta_2 \right ). }$

The Euler-Lagrange equations then give the two following second-order, non-linear differential equations in $\displaystyle{ (\theta_1,\theta_2) }$[lower-alpha 1]:

$\displaystyle{ \begin{array}{l} m_2 \left(g \sin \left(\theta _1\right)+l_2 \left(\left(\theta _2'\right){}^2 \sin \left(\theta _1-\theta _2\right)+\theta _2'' \cos \left(\theta _1-\theta _2\right)\right)+l_1 \theta _1''\right)+m_1 \left(g \sin \left(\theta _1\right)+l_1 \theta _1''\right)=0 \\ g \sin \left(\theta _2\right)+l_1 \left(\theta _1'' \cos \left(\theta _1-\theta _2\right)-\left(\theta _1'\right){}^2 \sin \left(\theta _1-\theta _2\right)\right)+l_2 \theta _2''=0 \\ \end{array} }$

No closed form solutions for θ1 and θ2 as functions of time are known, therefore solving the system can only be done numerically, using the Runge Kutta method or similar techniques.

Parametric plot for the time evolution of the angles of a double pendulum. It can be noticed that the graph resembles a Brownian motion.

## Chaotic motion

Graph of the time for the pendulum to flip over as a function of initial conditions
Long exposure of double pendulum exhibiting chaotic motion (tracked with an LED)

The double pendulum undergoes chaotic motion, and shows a sensitive dependence on initial conditions. The image to the right shows the amount of elapsed time before the pendulum flips over, as a function of initial position when released at rest. Here, the initial value of θ1 ranges along the x-direction from −3.14 to 3.14. The initial value θ2 ranges along the y-direction, from −3.14 to 3.14. The colour of each pixel indicates whether either pendulum flips within:

• $\displaystyle{ \sqrt{\frac{l}{g}} }$ (black)
• $\displaystyle{ 10\sqrt{\frac{l}{g}} }$ (red)
• $\displaystyle{ 100\sqrt{\frac{l}{g}} }$ (green)
• $\displaystyle{ 1000\sqrt{\frac{l}{g}} }$ (blue) or
• $\displaystyle{ 10000\sqrt{\frac{l}{g}} }$ (purple).
Three double pendulums with near identical initial conditions diverge over time displaying the chaotic nature of the system.

Initial conditions that do not lead to a flip within $\displaystyle{ 10000\sqrt{\frac{l}{g}} }$ are plotted white.

The boundary of the central white region is defined in part by energy conservation with the following curve:

$\displaystyle{ 3 \cos \theta_1 + \cos \theta_2 = 2. }$

Within the region defined by this curve, that is if

$\displaystyle{ 3 \cos \theta_1 + \cos \theta_2 \gt 2, }$

then it is energetically impossible for either pendulum to flip. Outside this region, the pendulum can flip, but it is a complex question to determine when it will flip. Similar behavior is observed for a double pendulum composed of two point masses rather than two rods with distributed mass.[2]

The lack of a natural excitation frequency has led to the use of double pendulum systems in seismic resistance designs in buildings, where the building itself is the primary inverted pendulum, and a secondary mass is connected to complete the double pendulum.

• Double inverted pendulum
• Pendulum (mechanics)
• Trebuchet
• Bolas
• Mass damper
• Mid-20th century physics textbooks use the term "double pendulum" to mean a single bob suspended from a string which is in turn suspended from a V-shaped string. This type of pendulum, which produces Lissajous curves, is now referred to as a Blackburn pendulum.

## Notes

1. The equations were obtained with the following Mathematica code:
Block[
{m, g, \[Theta], l, L, x, y, v, t},
x = Accumulate[{Subscript[l, 1], Subscript[l, 2]}*
Sin[{Subscript[\[Theta], 1], Subscript[\[Theta], 2]}]];
y = Accumulate[ {Subscript[l, 1], Subscript[l,
2]}*-Cos[{Subscript[\[Theta], 1], Subscript[\[Theta], 2]}]];
v = D[{x, y} /. Subscript[\[Theta], i_] :> Subscript[\[Theta], i][t],
t];
L = Plus @@ ({Subscript[m, 1], Subscript[m,
2]}*(1/2 Map[# . # &, Transpose[v]] - (
g y /. Subscript[\[Theta], i_] :> Subscript[\[Theta], i][t])));
FullSimplify[
Table[
D[
Construct[
Function,
L /. Subscript[\[Theta], i]'[t] -> #
]'[Subscript[\[Theta], i]'[t]], t
] ==
Construct[
Function,
L /. Subscript[\[Theta], i][t] -> #
]'[Subscript[\[Theta], i][t]]
, {i, 2}
],
Assumptions -> {
Subscript[l, 1] > 0, Subscript[l, 2] > 0,
Subscript[m, 1] > 0, Subscript[m, 2] > 0
}
] /. h_[t] :> h // Column // TeXForm
]

## References

1. Levien, R. B.; Tan, S. M. (1993). "Double Pendulum: An experiment in chaos". American Journal of Physics 61 (11): 1038. doi:10.1119/1.17335. Bibcode1993AmJPh..61.1038L.
2. Alex Small, Sample Final Project: One Signature of Chaos in the Double Pendulum, (2013). A report produced as an example for students. Includes a derivation of the equations of motion, and a comparison between the double pendulum with 2 point masses and the double pendulum with 2 rods.