Double Pendulum
A double pendulum is undoubtedly an actual miracle of nature. The jump in complexity, which is observed at the transition from a simple pendulum to a double pendulum is amazing. The oscillations of a simple pendulum are regular. For small deviations from equilibrium, these oscillations are harmonic and can be described by sine or cosine function. In the case of nonlinear oscillations, the period depends on the amplitude, but the regularity of the motion holds. In other words, in the case of a simple pendulum, the approximation of small oscillations fully reflects the essential properties of the system.
Double pendulum "behaves" quite differently. In the regime of small oscillations, the double pendulum demonstrates the phenomenon of beats. The character of oscillations of the pendulums changes radically with increasing energy − the oscillations become chaotic. Despite the fact that the double pendulum can be described by a system of several ordinary differential equations, that is by a completely deterministic model, the appearance of chaos looks very unusual. This situation is reminiscent of the Lorenz system where a deterministic model of three equations also shows chaotic behavior. Try to experiment with the application below and watch the movement of the double pendulum at different mass ratios and initial angles.
Next, we will build a mathematical model of the double pendulum in the form of a system of nonlinear differential equations. Let's start with the derivation of the Lagrange equations.
Lagrange Equations
In Lagrangian mechanics, evolution of a system is described in terms of the generalized coordinates and generalized velocities. In our case, the deflection angles of the pendulums
A simplified model of the double pendulum is shown in Figure
We assume that the rods are massless. Their lengths are
We introduce the
The kinetic and potential energy of the pendulums (respectively
Then the Lagrangian can be written as
Take into account that
Consequently,
As a result, the Lagrangian of the system takes the following form:
Now we can write the Lagrange equations (sometimes they are called the Euler-Lagrange equations):
The partial derivatives in these equations are expressed by the following formulas:
Hence, the first Lagrange equation can be written as
Cancelling
Similarly, we derive the second differential equation:
After canceling
Thus, the nonlinear system of two Lagrange differential equations can be written as
Small Oscillations of the Double Pendulum
Assuming that the angles
We write this Lagrangian in a simpler form, expanding it in a Maclaurin series and retaining the linear and quadratic terms. The trigonometric functions can be replaced by the following approximate expressions:
Here we have taken into account that the term with
Substituting this in the original Lagrangian and considering that the potential energy is defined up to a constant, we obtain the quadratic Lagrangian for the double pendulum in the form:
We derive the Lagrange differential equations for the given Lagrangian. They are written as
Find the partial derivatives:
We get the system of two differential equations
or
This system of equations can be written in a compact matrix form. We introduce the matrices
Then the system of differential equations can be represented as
In the case of one body, this equation describes the free undamped oscillations with a certain frequency. In the case of the double pendulum, the solution (as you will see below) will contain oscillations with two characteristic frequencies, which are called normal modes. The normal modes are the real part of the complex-valued vector function
where
In the case of arbitrary masses
Thus, we have a biquadratic equation for the frequencies
As it can be seen, the eigenfrequencies
For equal masses
Now, after the eigenfrequencies
Let the eigenvector
The coordinates of the eigenvector
Thus, the eigenvector
Similarly, we find the coordinates of the second eigenvector
The general solution of the matrix equation can be written as
where the constants
Consider the character of small oscillations for a specific set of initial data. Suppose, for example, that the initial positions and velocities of the pendulums have the following values:
In this case, the initial phases are zero:
Then the law of oscillations of the pendulums is expressed by the formulas
where the angular frequencies
Here the angles
As you can see from the graphs, the energy is cyclically transferred between the two bobs. When one of the pendulums almost stops, the other swings with maximum amplitude. After some time, the bobs "switch roles" and so on.
The resulting oscillations are represented as oscillations at the higher frequency
Thus, the small oscillations of the double pendulum look as periodic changes and are described by the sum of two harmonics with frequencies
Strictly speaking, the small oscillations of the double pendulum will be periodic if only the ratio of the eigenfrequencies
Legendre Transformation and Hamilton Equations
We now turn back to the original nonlinear system of equations and examine the character of oscillations of arbitrary amplitude. This system of equations can not be solved analytically. Therefore, we consider a numerical model of the double pendulum.
The Lagrange equations given above are second order differential equations. It is more conveniently to convert them into the form of Hamilton's canonical equations. As a result, instead of the two second-order equations, we obtain a system of four differential equations of the first order.
In Hamiltonian mechanics, the state of a system is determined by the generalized coordinates and generalized momenta. In our case, we can use again as in the Lagrange equations the angles
or in the brief description:
The transition from the Lagrangian to the Hamiltonian form of the equations is performed using the Legendre transformation, which is defined as follows.
Suppose that
Consider the line
Such transformation of the function
Knowing the dependence
The Legendre transformation is easily generalized to the case of functions of several variables. In the model of the double pendulum, the transition from the Lagrangian to the Hamiltonian is described by the Legendre transformation of the form:
In this expression,
As a result of this transformation, each Lagrange equation becomes a system of two Hamilton's canonical equations of the form:
Omitting the formal (and cumbersome) algebraic transformations, we write the Hamilton's canonical equations for the double pendulum in the final form:
where
We can now proceed to the numerical analysis of the equations.
Numerical Simulation of Chaotic Oscillations
The most common method of numerical solution of differential equations is the
To model the motion of the double pendulum, we also use the classical
where
This system can be rewritten in vector form:
The vector
The Runge-Kutta
The value of the vector
The total error of the algorithm on a finite interval has the order
The described model is the basis for the animation shown at the beginning of this page. For simplicity, we chose the same initial angles of deflection of the pendulum bobs: