1. Introduction
The swinging sticks pendulum represents a physical setup that serves as a fascinating intersection between classical mechanics, specifically Lagrangian mechanics, and the realm of chaos theory [
1,
2]. This system involves a series of slender, interconnected metal rods or sticks, arranged in an asymmetric way. They are set in a way that allows them to pivot freely around their attachment points. Unlike a simple pendulum, the swinging stick exhibits complex and chaotic behavior due to its unique combination of rotational and translational motion. This kinetic sculpture gained international recognition following its appearance in the film Iron Man 2, where it was featured in the office of the character Pepper Potts. The artwork, characterized by the hypnotic, oscillatory motion of its interconnected elements, served as a symbolic representation of innovation and futuristic aesthetics, aligning closely with the film’s thematic emphasis on technological advancement.
The study and characterization of dynamical systems is a frequent task in computational physics, often requiring new techniques for finding solutions and examining the results. In this contribution, various algorithms and methods for studying the swinging sticks pendulum, which can exhibit a very complex behavior, are implemented. The dynamics of complex pendulums have been extensively studied [
3,
4,
5,
6,
7,
8,
9,
10,
11]. In [
3], the authors, using numerical methods, describe the complexity of the dynamic behavior that the double pendulum exhibits. In the book [
4], Gitterman explains the chaotic behavior of several pendulums. Calvao and Penna [
5] introduce an analysis of some techniques and algorithms used to describe the dynamics of double pendulums. Shinbrot et al. [
6] determine the exponential rate of separation of initially close trajectories. Additionally, they identified positive Lyapunov exponents, a characteristic of chaotic systems. In [
7], the authors experimentally investigate a double pendulum. They characterize and measure the system’s sensitivity to initial conditions. Rafat and coauthors [
8] find that the chaos onset happens at a significantly lower energy for a double pendulum with distributed mass than a simple double pendulum. In [
9], a planar double pendulum system is numerically investigated, with the authors analyzing its chaotic dynamics through bifurcation diagrams, Poincaré sections, and Lyapunov exponents. Korsch et al. [
10] demonstrate the existence of quasiperiodic motion at low energy levels for a simple double pendulum. In [
11], the authors explore a technological application of the double pendulum aimed at harvesting energy from ocean waves. However, none of the above-cited contributions analyze swinging stick pendulums. The present article aims to fill this gap by discussing various methods and algorithms and by presenting new results. Additionally, to the best of our knowledge, the dynamical behavior of a swinging stick pendulum has not been investigated until now.
In the realm of Lagrangian mechanics, the swinging sticks pendulum is often analyzed using a Lagrangian formulation, which considers the system’s kinetic and potential energy [
12]. The Lagrangian approach provides a powerful framework for understanding the dynamics of the pendulum, considering both its rotational and translational degrees of freedom [
8,
9]. This mathematical formalism allows for a comprehensive exploration of the sticks’ motion and enables predictions about their time-dependent behavior.
An intriguing feature of the swinging sticks pendulum is its sensitivity to initial conditions, a defining trait of chaotic systems [
13]. Even minor variations in the starting configuration can result in completely different trajectories, rendering long-term behavior unpredictable. This hallmark of chaos underscores the system’s inherent nonlinearity and dynamics complexity.
Studying the swinging sticks pendulum not only provides insights into the principles of classical mechanics and Lagrangian dynamics but also offers a tangible example of chaos theory in action. The interplay between these fundamental concepts makes the system an attractive subject for both theoretical exploration and experimental investigation, contributing to our broader understanding of the intricate dynamics that govern physical systems. Experimental studies can further validate the chaotic behavior observed, reinforcing the practical relevance of chaos theory in describing real-world physical phenomena.
Here, we investigate the behavior of the swinging stick pendulum within the small-angle approximation. Our analysis integrates methods from nonlinear dynamics and Fourier analysis. We generate and analyze a range of trajectories—both analytically and numerically—to explore the evolution and relationships of the system’s frequency components.
This paper is organized as follows: In
Section 2, we obtain the Euler–Lagrange equations for the swinging sticks pendulum.
Section 3 describes the dynamical system associated with the physical setup. In
Section 4, a description of the numerical scheme is introduced.
Section 5 presents the analysis at low energy, the numerical results, and compares them with theoretical predictions. Finally,
Section 6 summarizes the principal conclusions and discusses potential future research.
2. The Euler–Lagrange Equations
Let us consider the motion of a swinging sticks pendulum as in
Figure 1.
Our particular system is formed by two sticks of different lengths, pivoting about points displaced from their respective center of masses. The parameters of the system are the lengths, and (with ), and, without loss of generality, we set the masses . The distance from the pivots to the respective center of masses are and , respectively. Additionally, we set and . We will see below that additional restrictions are required for , in order to get a unique stable equilibrium point.
We employ the angles
and
as generalized coordinates (see
Figure 1), in order to analyze the motion of the sticks [
12]. Thus, the Lagrangian for the longer stick can be written as
where
(
) is the kinetic (potential) energy, and
, i.e., the moment of inertia for a stick rotating around its center of mass (CM). Explicitly, we can write
and
where
g is the gravity. The coordinates of the center of mass
and
can be written as
Thus
results in
Replacing the velocity of the CM
we can finally write
For the shorter stick, we have
where
(
) is the kinetic (potential) energy. Explicitly, we can write for
Using the coordinates of the CM,
the velocity becomes
Finally
is
Simplifying, we have
where we have neglected terms of the order
, since
. For the potential energy
, we can write
Likewise, the Lagrangian
can then be written as
We can then write the Lagrangian of the system
as
Let us analyze the potential energy, which can be written as
to find the equilibrium positions. It is convenient to choose
so that the potential energy of the pendulum is zero in a stable equilibrium position (see next). Equilibrium configurations of the system occur when
is stationary with respect to
and
, i.e., where the gradient of the potential vanishes
. Explicitly, we can write
The four equilibrium configurations are
,
,
and
. In order to establish the nature of these equilibrium points, i.e., if they correspond to a situation of an equilibrium stable, unstable or neutral, we compute the Hessian matrix
where
,
, and
. Plugging the second order partial derivatives in
H results in
In our setup, we have set
and
, then, in order to have only one stable equilibrium point in
, it is necessary that
. This can be verified by calculating the eigenvalues
of
H at the four equilibrium point pairs and requiring that both are strictly positive [
14,
15].
The potential energies of these four cases
(with
, 4) can be written as:
We can then write the potential
as
where we have chosen
in such a way that
. The total kinetic energy of the system can be written as
where
From the Lagrangian
L we can obtain the Euler–Lagrange (EL) equations for
and
as
Let us first compute the partial derivatives with respect to
and
, i.e.,
Then, let us calculate the left-hand side of the EL equations
Now let us work with the right-hand side of the EL equations to obtain
Finally, the EL equations result in
5. Motion at Low Energy
When the total energy of the system is low, the nonlinear terms in Equations (
41)–(
44) can be neglected, and the pendulum will oscillate with a small amplitude around the stable equilibrium point. Accordingly, Equations (
39) and (
40) can be linearized by employing small-angle approximations and omitting nonlinear terms, resulting in the following linear system of ordinary differential equations:
The normal modes of oscillation refer to the motions in which the angles
and
vary harmonically in time with the same frequency and phase, albeit not necessarily with the same amplitude, i.e.,
Upon substituting harmonic solutions into the linearized system (
56) and (
57), two normal or characteristic angular velocities (or frequencies), denoted as
and
, are identified, representing the fast and slow modes of oscillation:
where
On introducing the normal modes, Equations (
58) and (
59), into the governing Equations (
56) and (
57), the relation between the amplitude factors
and
for the harmonic motions is obtained:
When
, the two sticks oscillate in the same direction; when
, they move in opposite directions. For both modes, fast and slow, we identified a family of non-trivial solutions
. Consequently, the amplitude of the normal mode is not uniquely determined; this occurs because the governing system of ordinary differential equations is homogeneous and linear [
18].
Among the four fixed points, only
can generate motion at low energies. For the other three fixed points, which are unstable, movement is not limited to small disturbances. Several numerical tests are performed, using the Bulirsch–Stoer method described above, to analyze the behavior of the system around the fixed point
. The following parameters are set in the tests:
. The system at this fixed point has an energy
J. Energy conservation is confirmed for all time steps, with a tolerance of less than
. The dynamics of the system described by Equations (
41)–(
44) in the vicinity of the fixed point
is examined. This fixed point acts as a center; consequently, a small perturbation applied as an initial condition is expected to result in a motion around it. Four tests are conducted using different initial conditions.
For the first test, the initial condition is
, which corresponds to an energy
J.
Figure 2 and
Figure 3 illustrate the temporal evolution of
and
, respectively.
To describe the frequencies involved in the motion, the fast Fourier transform (FFT) is applied to both
and
. For
, only the frequency
1/s is present and supports the motion. In contrast,
reveals two frequencies:
1/s and
1/s. These results are illustrated in
Figure 4.
Another tool for analyzing the system’s dynamics is Poincaré maps [
19,
20]. To construct a Poincaré map for a solution of the equations system (
41)–(
44), the
frequency is used as the sampling frequency; therefore, the Poincaré map is made up of values of
and
obtained for integer multiples of the period
, then points satisfying
with
. After obtaining the sampled data series for
and
, the FFT is applied. The FFT for
shows that there are no other frequencies involved in the motion of
. However, for
, the FFT for the sampled series displays a frequency
1/s.
Figure 5 shows the Fourier transform for values of
and
captured at integer multiples of
. The upper figure displays the FFT for
and the lower one for
. Also, the Poincaré map
vs
is displayed in
Figure 6, which is a closed curve that depends on a single frequency
.
The second test begins with the initial conditions
. The associated energy is
J. In this scenario, the motion of
is characterized by two frequencies,
1/s and
1/s. In contrast, the motion of
is governed solely by a single frequency of
1/s. The FFT results are shown in
Figure 7.
The initial condition for the third test is set to , which corresponds to J. In this case, the initial perturbation applies only to . The FFT is used to determine the frequencies supporting the system dynamics. For , only the frequency 1/s is obtained from the numerical results. In contrast, for the numerical data reveal two frequencies: 1/s and 1/s.
The fourth test uses the following initial condition . Therefore, the system has an energy J. Then, a small initial perturbation affects only . For , the FFT determines two frequencies 1/s and 1/s, and for only a single frequency 1/s.
For all tests, the FFT algorithm provided by MATLAB (version 24.2 (R2024b)) is used [
21]. The FFT by default uses a rectangular window whose length matches that of the signal. To verify the results, we have also used a Hanning window [
22], obtaining the same frequencies. The resolution for all cases is set to
.
At low energy, the frequencies of the motion can be obtained from Equation (
59). For the same parameters used in the numerical tests, the calculated frequencies are
1/s and
1/s. Note the high accuracy between the numerical and analytical values obtained.
In a low-energy scenario, the system dynamics can be described as the sum of normal modes. In the first test, the motion of is dictated exclusively by the mode with frequency . In contrast, the motion of arises from a combination of two normal modes associated with the frequencies and . For the second test, the dynamics of is given by the sum of two normal modes with frequencies and , and the motion of depends only on one normal mode with frequency . In the third test, behaviors consistent with those observed in the first case are noted. In contrast, the dynamic in the fourth test resembles that seen in the second test.
It is essential to recognize how the motion of the system is influenced by its initial conditions. When the initial perturbation affects either or , the dynamics of the first stick exhibits a periodic motion determined by a single frequency. In contrast, the motion of the second stick is influenced by two frequencies. It is also observed that the amplitude of movement of the first stick is greater than that of the second stick. On the other hand, if a small initial perturbation is applied to or , the motion of the second stick is governed by one frequency, while the motion of the first stick is affected by two frequencies. However, the movement amplitude of the second stick is greater than that of the first stick.
The quotient between
and
is an irrational number, indicating that the motion around the fixed point
is quasiperiodic [
8,
19]. To analytically describe the motion of the low-energy system, we can write
and
as the sum of the normal modes [
23]:
However, the coefficients
are related by Equation (
62). Therefore, the previous equations results in
These two equations and their derivatives,
and
, form a system of four equations that allows us to determine
,
,
, and
. As a first example, we analyze the test with the initial conditions
. We obtain
, and
.
Figure 8 and
Figure 9 compare numerical data and analytical results. The blue line represents the analytical results, and the red points are the numerical data. In addition, we calculate the highest difference between the analytical and numerical results as the largest value of the difference
, the mean error
, and the standard deviation of the error
, where
and
are the numerical and analytical values of the data series, and
N is the number of elements of the data series. For
, we find
,
and
, and for
, we calculate
,
and
.
For this test, we evaluate that
This result implies that
only depends on
(
). On the other hand, as
,
depends on
and
(
and
). This analysis is consistent with the FFT study previously presented.
The phase diagrams for this last test are shown in
Figure 10 and
Figure 11. Here, we can observe the different behaviors generated by oscillations with one and two frequencies. In addition to this, note the very reduced amplitude of both the angles and the angular velocities. However, also note that
and
, as we explained above.
The second example corresponds to the initial conditions
. We obtain
and
. The comparison between the analytical and numerical results is shown in
Figure 12 and
Figure 13. The differences between analytical and numerical results can be evaluated using the absolute value of the highest difference
, the mean error
, and the standard deviation
. For
, we calculate
,
, and
, and for
, we obtain
,
, and
. In both tests, the numerical results accurately verify the theoretical predictions.
Note that implies that depends only on . In addition to this, the products and have the same order as and , which implies that the evolution of depends on both angular velocities and .
Using small perturbations allows us to utilize the linearized system given by Equations (
56) and (
57) instead of the general system (
39) and (
40). This means neglecting the following terms in Equation (
39):
, and the following terms in Equation (
40):
. In our analysis, we have considered that the small perturbations approximation is valid if the sum of the neglected terms does not exceed
of the sum of the terms in the linearized equations:
This evaluation depends on the imposed initial condition because the system’s evolution depends on it. Therefore, when
is varied, leaving
, we obtain a limiting energy
J, which corresponds to an initial
. If the initial
is varied while maintaining
, we obtain
J and
. Thus, the equilibrium energy for
and
is
J, and the energy limit for small perturbations is
J.
We highlight that the numerical data were calculated solving the system (
41)–(
44), and the analytical results were obtained using the linearized system (
39) and (
40). Thus, the ability to evaluate analytical results for low-energy motions enables us to validate the behavior of the numerical integrator scheme and ensure that the developed software is free of errors.
In [
8], a study of small perturbations in a double pendulum with distributed mass is presented. The authors identify a system similar to Equations (
56) and (
57) and calculate two normal frequencies. However, they do not provide a detailed analysis of how the system’s dynamics depend on the initial conditions.
6. Conclusions and Outlook
In this study, we examined the motions of small perturbations in a swinging stick pendulum and investigated how the dynamics of the system are affected by the initial shape of these small perturbations. To describe the equations of motion for this intricate system, we used Lagrangian mechanics. The equilibrium configurations were determined by minimizing the potential energy, which imposed constraints on the system parameters. We deduced, using the Hessian matrix, the necessary conditions to have only one stable equilibrium point in , where subscripts 1 and 2 refer to the first and second sticks of the device, respectively.
Starting from the Euler–Lagrange equations, we derived a four-dimensional autonomous dynamical system characterized by two angular positions and two angular velocities, denoted as . The motion near the stable point was analyzed both numerically and analytically. Numerical solutions were obtained using the Bulirsch–Stoer method, while analytical closed forms were gained through a normal mode analysis. To complement these approaches, we performed a fast Fourier transform (FFT) analysis and constructed Poincaré maps to study the system’s dynamics. Four different sets of initial conditions—small perturbations—were examined.
When the small initial perturbation was applied to or (i.e., the first stick), its motion was governed by a single frequency, whereas the second stick exhibited dynamics involving two incommensurate frequencies. However, the first stick showed a much greater amplitude and angular velocity than the second stick. Conversely, when the small initial disturbances affected only or (i.e., the second stick), the roles were reversed: the second stick followed a single-frequency motion, while the first was influenced by two incommensurate frequencies. In addition, in this case, the second rod moved with greater amplitude and angular velocity than the first rod. When motions depend on one frequency, they are periodic. However, if the motions depend on two frequencies, they are quasiperiodic.
Finally, we emphasize that the agreement between the numerical, analytical, and fast Fourier transform results was remarkably high across all tests. This strong consistency lays a solid foundation for the second part of this study, which will address the response of the system to general (non-small) initial disturbances.