Part 2.3: Pendulum Equations


A simple pendulum consists of a single point of mass m (bob) attached to a rod (or wire) of length \( \ell \) and of negligible weight. We denote by θ the angle measured between the rod and the vertical axis, which is assumed to be positive in counterclockwise direction. By applying the Newton’s law of dynamics, we obtain the equation of motion
\[ m\ell^2 \ddot{\theta} + mg\ell \,\sin \theta =0 . \]
It can be simplified by putting \( \omega = \sqrt{g/\ell} : \)
\[ \ddot{\theta} + \omega^2 \sin \theta =0 . \]
Further simplification is available by normalization, which leads to \( \omega = 1 \) and we get
\[ \ddot{\theta} + \sin \theta =0 . \]
In practice, it is easier to study an ordinary differential equation as a system of equations involving only the first derivatives.
\[ \dot{x} = y, \qquad \dot{y} = -\sin x . \]
The variables x and y can be interpreted geometrically. Indeed, the angle x = θ corresponds to a point on a circle whereas the velocity \( y = \dot{\theta} \) corresponds to a point on a real line. Therefore, the set of all states (x ,y) can be represented by a cylinder, the product of a circle by a line. More formally, the phase space of the pendulum is the cylinder \( S^1 \times \mathbb{R} , \) its elements are couples (position,velocity).

Thus, at each point (x ,y) in the phase space, there is an attached vector \( (\dot{x}, \dot{y} ) = (y, - \sin x) . \) This can be geometrically represented as a vector field on the cylindrical phase space.

 

Example: Consider the matrix You can draw phase portrait for the pendulum not on the plane \( \mathbb{R}^2 , \) but on the cylinder \( S^1 \times \mathbb{R} . \) The pendulum of course has only two equilibria, one at (0,0) and another one at (π,0).

plot = StreamPlot[{y, -Sin[x]}, {x, -Pi, Pi}, {y, -3, 3}, Frame -> None, Epilog -> {PointSize -> Large, Point[{{0, 0}, {π, 0}, {-π, 0}}]}, StreamPoints -> Fine, AspectRatio -> 0.8]
First[Normal@plot] /. a_Arrow :> ( a /. {x_Real, y_Real} :> {Cos[x], Sin[x], y} ) // Graphics3D
Show[ %, Graphics3D@{Opacity@.7, LightBlue, Cylinder[{{0, 0, -3}, {0, 0, 3}}]} ]
img = Image@StreamPlot[{y, -Sin[x]}, {x, -5, 5}, {y, -3, 3}, Frame -> None, PlotRange -> {{-5, 5}, {-3, 3}}, Epilog -> {PointSize -> Large, Point[{{0, 0}, {Pi, 0}, {-Pi, 0}}]}, StreamPoints -> Fine, AspectRatio -> 0.8, PlotRangePadding -> 0, ImageMargins -> 0, ImageSize -> 800];

Graphics3D[{Texture[img], EdgeForm[], cyl[{{0, 0, 0}, {0, 0, 2 Pi}}, 1]}, Boxed -> False]
img = Rasterize[ StreamPlot[{y, -Sin[x]}, {x, -5, 5}, {y, -3, 3}, Frame -> None, PlotRange -> {{-5, 5}, {-3, 3}}, Epilog -> {PointSize -> Large, Point[{{0, 0}, {Pi, 0}, {-Pi, 0}}]}, StreamPoints -> Fine, AspectRatio -> 0.8, PlotRangePadding -> 0, ImageMargins -> 0, ImageSize -> 500], Background -> None, ImageResolution -> 300];

Graphics3D[{Texture[ImageData@img], EdgeForm[], Cylinder[{{0, 0, 0}, {0, 0, 2 Pi}}, 1]}, Boxed -> False, Lighting -> "Neutral"]

The vector field can also be interpreted as a velocity vector field. This means that a point x in the phase space moves along a trajectory so that its velocity vector at each instant equals the vector of the vector field attached to the location of x. Such a trajectory X(t), also called an orbit, trajectory, streamline, is simply the solution of an ordinary differential equation
\[ \dot{\bf x} = {\bf f}({\bf x}) , \]
where f is the vector field defined by \( {\bf f} ({\bf x}) = (y, -\sin x ) . \) It is however more convenient to represent the trajectories on a plane instead of on a cylinder. This can be done by expanding the cylindrical phase space by periodicity onto a phase plane. The following diagram is called a phase portrait.
StreamPlot[{y, -Sin[x]}, {x, -5, 5}, {y, -3, 3}, Frame -> None, StreamPoints -> Fine, AspectRatio -> 0.8, Epilog -> {PointSize -> Large, Point[{{0, 0}, {\[Pi], 0}, {-\[Pi], 0}}]}]
A phase point x is at equilibrium if the vector field cancels at this point, that is to say
\[ \dot{\bf x} = {\bf f}({\bf x}) =0 \qquad \Longrightarrow \qquad \begin{cases} y&=0 , \\ \sin x &=0 . \end{cases} \]
Solving the latter, we get equilibrium points:
\[ \begin{cases} y&=0 , \\ x &=n\pi , \quad \mbox{with $n$ integer} . \end{cases} \]

 

Pendulum with moving support


The length of the pendulum is increasing by the stretching of the wire due to the weight of the bob. The effective spring constant for a wire of rest length \( \ell_0 \) is

\[ k = ES/ \ell_0 , \]
where the elastic modulus (Young's modulus) for steel is about \( E \approx 2.0 \times 10^{11} \) Pa and S is the cross-sectional area. With pendulum 3 m long, the static increase in elongation is about \( \Delta \ell = 1.6 \) mm, which is clearly not negligible. There is also dynamic stretching of the wire from the apparent centrifugal and Coriolis forces acting on the bob during motion. We can evaluate this effect by adapting a spring-pendulum system analysis. We go from rectangular to polar coordinates:
\[ x= \ell \,\sin \theta = z_0 \left( 1 + \xi \right) \sin \theta , \qquad z= z_0 - \ell\,\cos \theta = z_0 \left[ 1 - \left( 1 + \xi \right) \cos \theta \right] , , \]
where \( z_0 = \ell_0 + mg/k \) is the static pendulum length, \( \ell = z_0 \left( 1 + \xi \right) \) is the dynamic length, ξ is the fractional string extension, and θ is the deflection angle. The equations of motion for small deflections are
\begin{eqnarray*} \left( 1 + \xi \right)\ddot{\theta} + 2\dot{\theta}\,\dot{\xi} + \omega_p^2 \theta &=& 0 , \\ \ddot{\xi} + \omega_s^2 \xi - \dot{\theta} + \frac{1}{2}\,\omega_p^2 \theta^2 &=& 0, \end{eqnarray*}
where the overdots denote differentiation with respect to time t, \( \omega_p^2 = g/z_0 \) is the square of the pendulum frequency, and \( \omega_s^2 = k/m \) is the spring (string) frequency, squared.

To get a feeling for how rigid and massive the pendulum support must be, we model the support as mass M kept in place by a spring of constant K, as shown in the picture below.

p = Rectangle[{-Pi/6 - 1.2, 2}, {-5, -5}]
a = Graphics[{Gray, p}]
coil = ParametricPlot[{t + 1.2*Sin[3*t], 1.2*Cos[3*t] - 1.2}, {t, -Pi/6 , 5*Pi - Pi/6}, FrameTicks -> None, PlotStyle -> Black]
line = Graphics[{Thick, Line[{{16.3843645, -1.2}, {20, -1.2}}]}]
r = Graphics[{EdgeForm[{Thick, Blue}], FaceForm[], Rectangle[{20, -5}, {26, 2}]}]
back = RegionPlot[-5 < x < 28 || -7 < y < -5, {x, -5, 28}, {y, -7, -5}, PlotStyle -> LightOrange]
line2 = Graphics[{Thick, Dashed, Line[{{23, -1}, {23, -14}}]}]
line3 = Graphics[{Thick, Line[{{23, -1}, {29, -11.5}}]}]
disk = Graphics[{Pink, Disk[{29.5, -12}, 1]}]
text = Graphics[Text["\[Theta]" , {25.1, -9.5}]]
Show[a, coil, line, r, back, line2, line3, disk, text]
Pendulum with moving support.

The natural frequency of the support is

\[ \Omega = \left( K/M \right)^{1/2} . \] The coupled equations for the system are
\begin{eqnarray*} \ddot{\theta} + \omega_0^2 \theta + \ddot{x}/\ell &=& 0 , \\ \left( 1 + m/M \right) \ddot{x} + \left( m/M \right) \ell \,\ddot{\theta} + \Omega^2 x &=& 0, \end{eqnarray*}
where x is the displacement of the rigid support. The former equation says that the effect of sway is to impart an additional angular acceleration \( - \ddot{x}/\ell \) to the pendulum for small angles of oscillation (otherwise, we have to use \( \omega_0^2 \sin \theta \) instead of \( \omega_0^2 \theta \) ).

 

Pendulum Equation with Resistance


 

We convert the pendulum equation with resistance
\[ m\ell^2 \ddot{\theta} + c\,\dot{\theta} + mg\ell \,\sin \theta =0 . \]
to a system of two first order equations by letting \( x= \theta \quad\mbox{and} \quad y = \dot{\theta} : \)
\[ \frac{{\text d} x}{{\text d}t} = y , \qquad \frac{{\text d} y}{{\text d}t} = -\omega^2 \sin x - \gamma \,y . \]
Here \( \gamma = c/(m\,\ell ) , \ \omega^2 = g/\ell \) are positive constants. Therefore, the above system of differential equations is autonomous. Setting \( \gamma = 0.25 \quad\mbox{and}\quad \omega^2 =1 , \) we ask Mathematica to provide a phase portrait for the pendulum equation with resistance:

Example: We use Mathematica:

fx = Function[{x, y}, y]; fy = Function[{x, y}, -Sin[x] - 0.25*y]
portrait =
StreamPlot[{fx[x, y], fy[x, y]}, {x, -6, 6}, {y, -3, 3},
AspectRatio -> Automatic]
solution =
Function[point, Function @@ {t, ({x[t], y[t]} /.
NDSolve[{x'[t] == fx[x[t], y[t]], y'[t] == fy[x[t], y[t]],
Thred[{x[time], y[time]} == point]}, {x, y}, {t, time,
time + 40}])[[1]]}]
Out[12]=
Function[point, Function @@ {t, ({x[t], y[t]} /.
NDSolve[{Derivative[1][x][t] == fx[x[t], y[t]],
Derivative[1][y][t] == fy[x[t], y[t]],
Thred[{x[time], y[time]} == point]}, {x, y}, {t, time, time + 40}])[[1]]}]
To numerically solve the pendulum equation, we first define the system:
osc[gamma_, omega_, x0_, v0_] := {x'[t] == v[t], v'[t] == -gamma*v[t] - omega^2*Sin[x[t]], x[0] == x0, v[0] == v0}
Then, we define a routine which gives the result of integrating the differential equation with NDSolve, starting at t = 0, and integrating out to t = tfinal.
ans[gamma_, omega_, x0_, v0_, tfinal_] := {x[t], v[t]} /. Flatten[NDSolve[ osc[gamma, omega, x0, v0], {x[t], v[t]}, {t, 0, tfinal}]]
We try this out:
sol1 = ans[0.25, 1, 1, 0, 10]
Out[8]= = {InterpolatingFunction[{{0., 10.}}, <>][t], InterpolatingFunction[{{0., 10.}}, <>][t]}
The output sol1 contains the two interpolating functions (Mathematica uses cubic splines) that represent x(t) and v(t). We can evaluate them or plot them. For example, the values at t = 3 are
sol1 /. t -> 3
Out[11]= {-0.6186, -0.201005}
We now plot x and v as functions of t, using solid for x and dashed for v.
graph1 = Plot[{First[sol1], Last[sol1]}, {t, 0, 10}, AxesLabel -> {"t", "x, v"}, PlotLabel -> "Damped Oscillator",
PlotStyle -> {Dashing[{}], Dashing[{0.02, 0.02}]}]
Now we assign separate names to the x(t) and y(t) components of the solution
xsol1[t_] := First[sol1]
ysol1[t_] := Last[sol1]
Then we can reproduce the above graph:
graph2 = Plot[{sol1, sol1}, {t, 0, 15}, AxesLabel -> {"t", "x, v"}, PlotLabel -> "Damped Oscillator", PlotStyle -> {Dashing[{}], Dashing[{0.02, 0.02}]}]
Now we do something new by plotting y versus x:
graph3 = ParametricPlot[{xsol1[t], ysol1[t]}, {t, 0, 15}, PlotRange -> {{-1, 1}, {-0.7, 0.7}}, AxesLabel -> {"x", "v"}]
For this underdamped oscillator, we see that the phase plot is a spiral. As time increases, the system point moves inward towards the equilibrium at x = 0, v = 0. In physical terms, the oscillations decrease in amplitude as the damping takes energy out of the system.

We could also construct the plot without referring separately to sol1 contains the two interpolating functions (Mathematica uses cubic splines) that represent x(t) and v(t). We can evaluate them or plot them. For example, the values at t = 3 are
sol1 /. t -> 3
Out[11]= {-0.6186, -0.201005}
We now plot x and v as functions of t, using solid for x and dashed for v.
graph1 = Plot[{First[sol1], Last[sol1]}, {t, 0, 10}, AxesLabel -> {"t", "x, v"}, PlotLabel -> "Damped Oscillator",
PlotStyle -> {Dashing[{}], Dashing[{0.02, 0.02}]}]
Now we assign separate names to the x(t) and y(t) components of the solution
xsol1[t_] := First[sol1]
ysol1[t_] := Last[sol1]
Then we can reproduce the above graph:
graph2 = Plot[{sol1, sol1}, {t, 0, 15}, AxesLabel -> {"t", "x, v"}, PlotLabel -> "Damped Oscillator", PlotStyle -> {Dashing[{}], Dashing[{0.02, 0.02}]}]
Now we do something new by plotting y versus x:
graph3 = ParametricPlot[{xsol1[t], ysol1[t]}, {t, 0, 15}, PlotRange -> {{-1, 1}, {-0.7, 0.7}}, AxesLabel -> {"x", "v"}]
For this underdamped oscillator, we see that the phase plot is a spiral. As time increases, the system point moves inward towards the equilibrium at x = 0, v = 0. In physical terms, the oscillations decrease in amplitude as the damping takes energy out of the system.

We could also construct the plot without referring separately to xsol1 and ysol1.
graph4 = ParametricPlot[sol1, {t, 0, 15}, PlotRange -> {{-1, 1}, {-0.8, 0.8}}, AxesLabel -> {"x", "v"}]

Now we turn to plotting solutions of the pendulum equation subject to distinct initial conditions. Actually, we define three solutions:

sol2 = ans[0.25, 1, 2, 0, 15]
sol3 = ans[0.25, 1, 3, 0, 15]
Now we plot them.
ParametricPlot[{{First[sol1], Last[sol1]}, {First[sol2], Last[sol2]}, {First[sol3], Last[sol3]}}, {t, 0, 15},
PlotRange -> {{-1.6, 3.1}, {-1.9, 1.4}}, AxesLabel -> {"x", "v"}, PlotStyle -> {{Thick, Red}, {Thick, Blue}, {Thick, Green}}]
Every solution of this equation spirals in toward the equilibrium point at {0,0}. None of these spirals intersect other spirals, and none intersects itself. The phase plane provides an excellent way to visualize such a family of solutions. If we attempt to view these solutions simultaneously as functions of t, the result is quite cluttered:
Plot[{First[sol1], Last[sol1], First[sol2], Last[sol2], First[sol3], Last[sol3]}, {t, 0, 15}, AxesLabel -> {"t", "x,v"},
PlotRange -> {-2, 3}, PlotStyle -> {{Thick, Red}, {Thick, Blue}, {Thick, Green}}]

 

Spring Pendulum


Spring pendulum.

  Planar oscillations of elastic (spring) pendulum was first considered by Vitt, A. (Aleksandr Adolʹfovich) and Gorelik, G. (Gabriel Simonovich) in 1933. Its translation from the Russian in English by Lisa Shields with an introduction by Peter Lynch is available on the web.

The three dimensional spring pendulum was considered by P. Pokorny in 2008. The problem investigated by Vitt & Gorelik has only two degrees of freedom, namely the vertical and one of the horizontal dimensions. According to Gabriel Gorelik, the study was motivated by the Russian physicist L. I. Mandelshtam, who suggested this research topic as a worthy analogue of the recurrence phenomenon in the infrared spectrum of CO2, which is known today as Fermi resonance. Of particular interest is the case where the frequency of the vertical motion is exactly or nearly twice the frequency of the horizontal. Under those circumstances the vertical oscillations become parametrically unstable, and any small initial deviation of the bob from the vertical line through the spring support results in exponentially increasing horizontal (or pendulum) oscillation. The growth of the latter stops eventually, as most of the energy of the original vertical oscillations is converted into energy of pendulum motion. The process is now reversed as the centrifugal force, with two cycles of oscillation in the pendulum period, acts as a forcing or excitation term to the vertical harmonic oscillations. This phenomenon is a called parametric resonance of the coupled system, which manifests itself as an energy transfer from one component to the other and vice versa. The speed and amplitude of the energy transfer depend essentially on the initial conditions.

The elastic pendulum has been analyzed previously, either as a mechanical problem, or in conjunction with other parametric phenomena, such as wave-wave coupling in plasma physics and non-linear optics, and also in the problem of the coupling of vertical and radial oscillations of particles in cyclic accelerators. The applied mathematician, the popularizer of mathematics, research meteorologist, academic, and Irish Times columnist Peter Lynch (Dublin) initialized a research on wide class of systems modeled by an integrable approximation to the 3 degrees of freedom elastic pendulum with 1:1:2 resonance, or the swing-spring. He explained the phenomenon of the splitting of the spectral lines in the CO2 molecule (Raman scattering). This simple system under study possesses a rich and varied range of dynamical behavior. It has many analogues in other areas. For example, electrical systems with two degrees of freedom can be treated in similar ways, e.g., two oscillating circuits coupled by a transformer with an iron core.

Gabriel Gorelik was born into a Jewish family in Paris in 1909. He later studied theoretical physics under Mandelstam in Lomonosov Moscow State University, and then worked under A.A. Andronov, where he was later bullied in 1952 for his "ideological mistakes," as were many others at the time. Gorelik was tragically killed by a train in 1956. Gorelik's father, Simon, sacrificed his own life to save Moscow from a pneumonic plague outbreak in 1939 by diagnosing the disease, and then locking himself and the infected people inside the building while trying to save the life of the microbiologist Berlin, so that only twelve people died from the plague, including Simon Gorelik. Aleksandr Adolfovich Vitt also suffered a tragic fate. Vitt was born in Russia in 1902 to ethnic German parents, and he also studied under Mandelstam then later Andronov. Vitt was then persecuted during the Great Purge in 1938 and was sentenced to 5 years of labor camps where he died soon after 1938.

coil = ParametricPlot[{(t + 0.5*Sin[6*t])/Sqrt[2] + 0.5*Cos[6 t]/Sqrt[2], -(t + 0.5*Sin[6*t])/Sqrt[2] +
0.5*Cos[6*t]/Sqrt[2]}, {t, -0.27, 4*Pi + 0.26}, PlotStyle -> {Thick, Blue}]
line1 = Graphics[{Thick, Blue, Line[{{-0.5, 0.5}, {-4, 4}}]}]
line2 = Graphics[{Thick, Blue, Line[{{9.4, -9.4}, {11.4, -11.4}}]}]
line3 = Graphics[{Thick, Blue, Dashed, Line[{{-4, -14}, {-4, 4}}]}]
circle = Graphics[{Thick, Circle[{11.8, -11.8}, 0.5]}]
circle2 = Graphics[{Thick, Dashed, Circle[{-4, 4}, 12, {-Pi/2, -Pi/4}]}]
arrow = Graphics[{Arrowheads[0.05], Arrow[{{4.46 - 0.3, -4.46 - 0.3}, {4.46, -4.46}}]}]
text = Graphics[Style[Text["\[Theta]", {-1.4, -3.3}], FontSize -> 22]]
mass = Graphics[Style[Text["mass", {12.3, -10.5}], FontSize -> 20]]
spring = Graphics[Style[Text["spring", {7, -4}], FontSize -> 20]]
string = Graphics[Style[Text["string", {-0.5, 2.5}], FontSize -> 20]]
xarrow = Graphics[{Arrowheads[0.08], Arrow[{{-4.4, -14.4}, {14.5, -14.4}}]}]
x = Graphics[Style[Text["x", {14.5, -13.5}], FontSize -> 20]]
line4 = Graphics[{Thick, Dashed, Line[{{11.8, -12.5}, {11.8, -14.3}}]}]
y = Graphics[Style[Text["y", {10.9, -13.0}], FontSize -> 20]]
Show[line1, line2, coil, circle, line3, circle2, arrow, text, mass, spring, string, xarrow, x, line4, y]
 
 
 
 
 Leonid Mandelshtam.  Peter Lynch.  Gabriel Gorelik.  Alexander Vitt.

Leonid Isaakovich Mandelstam, or Mandelshtam (1879--1944) was a Soviet physicist of Belarusian-Jewish background. Leonid Mandelstam was born in Mogilev, Russian Empire (now Belarus). He studied at the Novorossiya University in Odessa, but was expelled in 1899 due to political activities, and continued his studies at the University of Strasbourg. He remained in Strasbourg until 1914, and returned with the beginning of World War I. He was awarded the Stalin Prize in 1942. Mandelstam died in Moscow, USSR (now Russia). He was a co-discoverer of inelastic combinatorial scattering of light used now in Raman spectroscopy. In 1918, Mandelstam theoretically predicted the fine structure splitting in Rayleigh scattering due to light scattering on thermal acoustic waves. Beginning from 1926, L.I. Mandelstam and G.S. Landsberg initiated experimental studies on vibrational scattering of light in crystals at the Moscow State University. As a result of this research, Landsberg and Mandelstam discovered the effect of the combinatorial scattering of light on 21 February 1928. They presented this fundamental discovery for the first time at a colloquium on 27 April 1928. They published brief reports about this discovery (experimental results with theoretical explanation) in Russian and in German, then they published a comprehensive paper in Zeitschrift fur Physik.

Current interest in the swinging spring arises from the rich variety of its solutions. The swinging and springing oscillations act as analogues of the Rossby and gravity waves in the atmosphere and may provide the basis for a paradigm of the most important interannual variation in the ocean-atmosphere climate system. For very small amplitudes, the motion is regular. As the amplitude is increased, the regular motion breaks down into a chaotic regime that occupies more and more of phase space as the energy grows. However, for very large energies, a regular and predictable regime is re-established (Núñez-Yépez, H N, A L Salas-Brito, C A Vargas and L Vicente, 1990: Onset of chaos in an extensible pendulum. Phys. Lett., A145, 101-105). This can easily be understood: for very high energies, the system rotates rapidly around the point of suspension and is no longer vibratory.

Nicolas Minorsky

The elastic pendulum problem became well known to the public after publication in 1947 of the famous book "Introduction to Non-Linear Mechanics" by Nicolas Minorsky (1885--1970). Nikolai Fyodorovich Minorsky was a Russian American control theory mathematician, engineer, and applied scientist. He is best known for his theoretical analysis and first proposed application of PID controllers in the automatic steering systems for U.S. Navy ships. He was educated at the Nikolaev Maritime Academy in St. Petersburg (Russia), and at the University of Nancy (France). For a year in 1917 to 1918 he was the adjunct Naval Attache at the Russian Embassy to France in Paris. In the midst of the Russian civil war Minorsky emigrated to the United States in June 1918.

From 1924–1934 Nicolas Minorsky was a Professor of Electronics and Applied Physics at the University of Pennsylvania. He received his PhD in physics from Penn in 1929. Minorsky worked on roll stabilization of ships for the Navy from 1934 to 1940, designing in 1938 an activated-tank stabilization system into a 5-ton model ship. His work was used for stabilizing of aircraft carriers during the landing of airplanes.

Our exposition of elastic pendulum follows the Minorsky's book. Let us consider a massless spring of rest length \( \ell_0 \) hung with a bob of mass m on its lower end; also let r be its length under load, k the spring constant, and g the acceleration of gravity. We assume that the pendulum is constrained to move in a fixed vertical plane, with the origin at the pivot when Cartesian coordinates or polar coordinates are employed. Obviously the system possesses two degrees of freedom, namely, the angle θ of the pendulum and the elongation r of the spring.

Let \( \ell = \ell_0 + \frac{mg}{k} \) be the length of the spring at equilibrium when the bob is attached because \( k \left( \ell - \ell_0 \right) = mg , \) where k is the spring constant in Hooke's law. The deviation from the loaded equilibrium is described in rectangular coordinates as

\[ \begin{split} x &= r(t)\,\sin \theta , \\ y &= r(t)\,\cos \theta - \ell = r(t)\,\cos \theta - \ell_0 - \frac{mg}{k} \end{split} \qquad \Longrightarrow \qquad \begin{split} \dot{x} &= \dot{r}\,\sin \theta + r\,\cos \theta\,\dot{\theta} , \\ \dot{y} &= \dot{r}\,\cos \theta - r\,\sin \theta \,\dot{\theta} . \end{split} \]

In order to derive the system of differential equations that model the spring pendulum oscillations, we calculate its kinetic energy

\[ \mbox{K} \left( r, \dot{r} , \dot{\theta} \right) = \frac{m}{2} \left( \dot{x}^2 + \dot{y}^2 \right) = \frac{m}{2} \left( \dot{r}^2 + r^2 \dot{\theta}^2 \right) \]
and the potential energy
\[ \Pi \left( r, \theta \right) = \frac{k}{2} \left( r - \ell_0 \right)^2 + mg\left( \ell - y \right) = \frac{k}{2} \left( r - \ell_0 \right)^2 - mg\, r(t)\,\cos \theta , \]
where \( r^2 = \left( \ell -y \right)^2 + x^2 . \) The first term of the potential energy corresponds to the elasticity of the suspension and the second to gravity. Their derivatives are
\begin{align*} \frac{\partial \mbox{K}}{\partial \dot{r}} &= m \dot{r} , \qquad & \frac{\partial \mbox{K}}{\partial \dot{\theta}} = m r^2 \dot{\theta} , \\ \frac{\partial \Pi}{\partial r} &= kr - k\ell_0 - mg \,\cos \theta , & \frac{\partial \Pi}{\partial \theta} = mg\,r\, \sin \theta . \end{align*}
From the Euler--Lagrange equations
\[ \frac{\text d}{{\text d}t} \, \frac{\partial \mbox{K}}{\partial \dot{r}} - \frac{\partial \mbox{K}}{\partial r} + \frac{\partial \Pi}{\partial r} = 0 , \quad \frac{\text d}{{\text d}t} \, \frac{\partial \mbox{K}}{\partial \dot{\theta}} + \frac{\partial \Pi}{\partial \theta} = 0 , \]
it follows
\begin{align*} \ddot{r} + \frac{k}{m}\left( r - \ell_0 \right) - r\,\dot{\theta}^2 - g\,\cos \theta &=0 , \\ \ddot{\theta} + \frac{2}{r}\, \dot{r}\,\dot{\theta} + \frac{g}{r}\,\sin \theta &= 0 . \end{align*}

If we introduce a new constant
\[ \ell = \ell_0 + \frac{mg}{k} \qquad \Longrightarrow \qquad \begin{cases} \sin\theta &= \frac{x}{r} , \\ \cos\theta &= \frac{\ell -y}{r} , \end{cases} \]
and a new variable
\[ z = \frac{r-\ell}{\ell} , \]
the kinetic energy and the potential energy will be expressed as
\[ \mbox{K} = \frac{m \ell^2}{2} \left( \dot{z}^2 +(z+1)^2 \dot{\theta}^2 \right) , \qquad \Pi = \frac{k}{2} \left( \ell z + \frac{mg}{k} \right)^2 + mg\ell \left[ 1 - \left( z+1 \right) \cos \theta \right] . \]
Taking derivatives, we get
\begin{align*} \frac{\partial \mbox{K}}{\partial \dot{z}} &= m\ell^2 \dot{z} , \qquad & \frac{\partial \mbox{K}}{\partial \dot{\theta}} = m \ell^2 (z+1)^2 \dot{\theta}= m\,r^2 \dot{\theta} , \\ \frac{\partial \Pi}{\partial z} &= k\ell^2\,z + mg \ell - mg\ell \,\cos \theta , & \frac{\partial \Pi}{\partial \theta} = mg\ell \left( z+1 \right) \sin \theta = mg \ell \,r\, \sin \theta . \end{align*}
The Euler--Lagrange equations become
\begin{align*} \ddot{z} - \left( z+1 \right) \dot{\theta}^2 + \frac{k}{m}\, z + \frac{g}{\ell} \left( 1- \cos \theta \right) &=0 , \\ \ddot{\theta} \left( z+1 \right) + 2\,\dot{\theta} + \frac{g}{\ell} \,\sin\theta &= 0 . \end{align*}

 

3D Elastic Pendulum


Pavel Pokorny.

The spring-mass oscillator is generally presumed to be one of the simplest and most basic physical systems. In the previous section, we considered massless spring with attached bob of mass m. Because a real spring has a finite distributed mass, we consider the bob that is suspended on a homogeneous elastic spring of mass ms with the elasticity constant k. Our exposition of this problem follows closely Pavel Pokorny's article

Denoting the rectangular coordinates of the bob by X, Y, and Z, and assuming the spring is stretched homogeneously, the kinetic energy of the system consisting of the spring with the bob becomes

\[ \mbox{K} = \frac{1}{2} \left( m + \frac{1}{3}\,m_s \right) v^2 , \]
where \( v = \sqrt{\dot{X}^2 + \dot{Y}^2 + \dot{Z}^2} \) is the velocity of the bob. The potential energy is
\[ \Pi = \left( m + \frac{1}{2}\,m_s \right) gZ + \frac{k}{2} \left( \sqrt{X^2 + Y^2 + Z^2} - \ell_0 \right)^2 , \]
where \( \ell_0 \) is the length of the unloaded spring. It is convenient to introduce dimensionless variables
\[ x= \ell_0^{-1} X , \quad y= \ell_0^{-1} Y , \quad z= \ell_0^{-1} Z , \quad t= T\,\sqrt{\frac{3k}{3m + m_s}} . \]
Then the equations of motion follow from the Euler--Lagrange equations:
\begin{align*} \ddot{x} &= \left( \frac{1}{\sqrt{x^2 + y^2 + z^2}} -1 \right) x , \\ \ddot{y} &= \left( \frac{1}{\sqrt{x^2 + y^2 + z^2}} -1 \right) y , \\ \ddot{z} &= \left( \frac{1}{\sqrt{x^2 + y^2 + z^2}} -1 \right) z -p , \end{align*}
where upper dots mean the second derivative with respect to time t and
\[ p = \frac{\left( 2m + m_s \right) g}{2k\ell_0} = \frac{\ell - \ell_0}{\ell_0} \]
is the dimensionless parameter. It is related to the ratio of frequencies:
\[ \gamma = \frac{p}{p+1} = \frac{\ell - \ell_0}{\ell} = \frac{\omega_p^2}{\omega_s^2} , \]
where
\[ \omega_p^2 = \frac{3g \left( 2m + m_s \right)}{2\ell \left( 3m + m_s \right)} \qquad\mbox{and} \qquad \omega_s^2 = \frac{3k}{3m + m_s} \]
are squares of frequencies for the pendulum (or quasi-horizontal) motion and the spring (or vertical) motion, respectively. Note that p > 0 is equivalent to 0 < γ < 1, which means that \( \omega_p < \omega_s . \)

 

Double Pendulum


Double pendulum.
Double pendulum.
Double compound pendulum.

A double pendulum consists of one pendulum attached to another. Double pendula are an example of a simple physical system which can exhibit chaotic behavior with a strong sensitivity to initial conditions. 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/pendula or compound pendulums (also called complex pendulums) and the motion may be in three dimensions or restricted to the vertical plane.

Consider a double bob pendulum with masses m1 and m2, attached by rigid massless wires of lengths \( \ell_1 \) and \( \ell_2 . \) Further, let the angles the two wires make with the vertical be denoted \( \theta_1 \) and \( \theta_2 , \) as illustrated at the left. Let the origin of the Cartesian coordinate system is taken to be at the point of suspension of the first pendulum, with vertical axis pointed up. Finally, let gravity be given by g. Then the positions of the bobs are given by

\begin{eqnarray*} x_1 &=& \ell_1 \sin \theta_1 , \\ y_1 &=& -\ell_1 \cos \theta_1 , \\ x_2 &=& \ell_1 \sin \theta_1 + \ell_2 \sin \theta_2 , \\ y_2 &=& -\ell_1 \cos \theta_1 - \ell_2 \cos \theta_2 . \end{eqnarray*}
The potential energy of the system is then given by
\[ \Pi = g\, m_1 \left( \ell_1 + y_1 \right) + g\,m_2 \left( \ell_1 + \ell_2 + y_2 \right) = g\,m_1 \left( 1- \cos \theta_1 \right) + g\, m_2 \left( \ell_1 + \ell_2 - \ell_1 \cos \theta_1 - \ell_2 \cos \theta_2 \right) , \]
and the kinetic energy by
\begin{eqnarray*} \mbox{K} &=& \frac{1}{2}\, m_1 v_1^2 + \frac{1}{2}\, m_2 v_2^2 \\ &=& \frac{1}{2}\, m_1 \ell_1^2 \dot{\theta}_1^2 + \frac{1}{2}\, m_2 \left[ \ell_1^2 \dot{\theta}_1^2 + \ell_2^2 \dot{\theta}_2^2 +2\ell_1 \ell_2 \dot{\theta}_1 \dot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) \right] \end{eqnarray*}
because
\[ v_1^2 = \dot{x}_1^2 + \dot{y}_1^2 = \ell_1^2 \dot{\theta}_1^2 , \qquad v_2^2 = \dot{x}_2^2 + \dot{y}_2^2 = \left( \ell_1 \cos\theta_1 \,\dot{\theta}_1 + \ell_2 \cos \theta_2 \,\dot{\theta}_2 \right)^2 + \left( \ell_1 \sin\theta_1 \,\dot{\theta}_1 + \ell_2 \sin \theta_2 \,\dot{\theta}_2 \right)^2 . \]
The Lagrangian is then
\begin{eqnarray*} {\cal L} &=& \mbox{K} - \Pi \\ &=& \frac{1}{2}\, m_1 \ell_1^2 \dot{\theta}_1^2 + \frac{1}{2}\, m_2 \left[ \ell_1^2 \dot{\theta}_1^2 + \ell_2^2 \dot{\theta}_2^2 +2\ell_1 \ell_2 \dot{\theta}_1 \dot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) \right] + \left( m_1 + m_2 \right) g\ell_1 \cos \theta_1 + m_2 g \ell_2 \cos \theta_2 . \end{eqnarray*}
Therefore, for θ1 we have
\begin{eqnarray*} \frac{\partial {\cal L}}{\partial \dot{\theta}_1} &=& m_1 \ell_1^2 \dot{\theta}_1 + m_2 \ell_1^2 \dot{\theta}_1 + m_2 \ell_1 \ell_2 \dot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) , \\ \frac{{\text d}}{{\text d}t} \left( \frac{\partial {\cal L}}{\partial \dot{\theta}_1} \right) &=& \left( m_1 + m_2 \right) \ell_1^2 \ddot{\theta}_1 + m_2 \ell_1 \ell_2 \ddot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) - m_2 \ell_1 \ell_2 \dot{\theta}_2 \sin \left( \theta_1 - \theta_2 \right) \left( \dot{\theta}_1 - \dot{\theta}_2 \right) , \\ \frac{\partial {\cal L}}{\partial \theta_1} &=& - \ell_1 g \left( m_1 + m_2 \right) \sin \theta_1 - m_2 \ell_1 \ell_2 \dot{\theta}_1 \dot{\theta}_2 \sin \left( \theta_1 - \theta_2 \right) . \end{eqnarray*}
So the Euler-Lagrange differential equation \( \frac{{\text d}}{{\text d}t} \left( \frac{\partial {\cal L}}{\partial \dot{q}} \right) = \frac{\partial {\cal L}}{\partial q} \) for θ1 becomes
\[ \left( m_1 + m_2 \right) \ell_1^2 \ddot{\theta}_1 + m_2 \ell_1 \ell_2 \ddot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) + m_2 \ell_1 \ell_2 \dot{\theta}_2^2 \sin \left( \theta_1 - \theta_2 \right) + \ell_1 g \left( m_1 + m_2 \right) \sin \theta_1 =0 . \]
Dividing through by \( \ell_1 , \) this simplifies to
\[ \left( m_1 + m_2 \right) \ell_1 \ddot{\theta}_1 + m_2 \ell_2 \ddot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) + m_2 \ell_2 \dot{\theta}_2^2 \sin \left( \theta_1 - \theta_2 \right) + g \left( m_1 + m_2 \right) \sin \theta_1 =0 . \]
Similarly, for θ2, we have
\begin{eqnarray*} \frac{\partial {\cal L}}{\partial \dot{\theta}_2} &=& m_2 \ell_2^2 \dot{\theta}_2 + m_2 \ell_1 \ell_2 \dot{\theta}_1 \cos \left( \theta_1 - \theta_2 \right) , \\ \frac{{\text d}}{{\text d}t} \left( \frac{\partial {\cal L}}{\partial \dot{\theta}_2} \right) &=& m_2 \ell_2^2 \ddot{\theta}_2 + m_2 \ell_1 \ell_2 \ddot{\theta}_1 \cos \left( \theta_1 - \theta_2 \right) - m_2 \ell_1 \ell_2 \dot{\theta}_1 \sin \left( \theta_1 - \theta_2 \right) \left( \dot{\theta}_1 - \dot{\theta}_2 \right) , \\ \frac{\partial {\cal L}}{\partial \theta_2} &=& \ell_1 \ell_2 m_2 \dot{\theta}_1 \dot{\theta}_2 \sin \left( \theta_1 - \theta_2 \right) - \ell_2 m_2 g\,\sin \theta_2 , \end{eqnarray*}
which leads to
\[ m_2 \ell_2 \ddot{\theta}_2 + m_2 \ell_1 \ddot{\theta}_1 \cos \left( \theta_1 - \theta_2 \right) - m_2 \ell_1 \dot{\theta}_1^2 \sin \left( \theta_1 - \theta_2 \right) + m_2 g \, \sin \theta_2 =0 . \]
The coupled second-order ordinary differential equations
\begin{eqnarray*} \left( m_1 + m_2 \right) \ell_1 \ddot{\theta}_1 + m_2 \ell_2 \ddot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) + m_2 \ell_2 \dot{\theta}_2^2 \sin \left( \theta_1 - \theta_2 \right) + g \left( m_1 + m_2 \right) \sin \theta_1 &=& 0 , \\ m_2 \ell_2 \ddot{\theta}_2 + m_2 \ell_1 \ddot{\theta}_1 \cos \left( \theta_1 - \theta_2 \right) - m_2 \ell_1 \dot{\theta}_1^2 \sin \left( \theta_1 - \theta_2 \right) + m_2 g \, \sin \theta_2 &=& 0 \end{eqnarray*}

The equations of motion can also be written in the Hamiltonian formalism. Computing the generalized momenta gives

\begin{eqnarray*} p_1 &=& \frac{\partial {\cal L}}{\partial \dot{\theta}_1} = \left( m_1 + m_2 \right) \ell_1^2 \dot{\theta}_1 + m_2 \ell_1 \ell_2 \dot{\theta}_2 \cos \left( \theta_1 - \theta_2 \right) , \\ p_2 &=& \frac{\partial {\cal L}}{\partial \dot{\theta}_2} = m_2 \ell_2^2 \dot{\theta}_2 + m_2 \ell_1 \ell_2 \dot{\theta}_1 \cos \left( \theta_1 - \theta_2 \right) . \end{eqnarray*}
The Hamiltonian becomes
\[ H = \dot{\theta}_1 p_1 + \dot{\theta}_2 p_2 - {\cal L} . \]
For animation of double pendulum equations, see:
https://www.myphysicslab.com/pendulum/double-pendulum-en.html

 

2.3.6. Applications


We consider a periodic movement described by the equation
\[ \dot{x} = -y^3 , \qquad \dot{y} = x^3 . \]
F[x_, y_] := -y^3;
G[x_, y_] := x^3;
sol = NDSolve[{x'[t] == F[x[t], y[t]], y'[t] == G[x[t], y[t]],
x[0] == 1, y[0] == 0}, {x, y}, {t, 0, 3*Pi},
WorkingPrecision -> 20]
ParametricPlot[Evaluate[{x[t], y[t]}] /. sol, {t, 0, 3*Pi}]

Out[11]=
{{x -> InterpolatingFunction[{{0, 9.4247779607693797154}}, <>],
    y -> InterpolatingFunction[{{0, 9.4247779607693797154}}, <>]}}
X[t_] := Evaluate[x[t] /. sol]
Y[t_] := Evaluate[y[t] /. sol]
fns[t_] := {X[t], Y[t]};
len := Length[fns[t]];
Plot[Evaluate[fns[t]], {t, 0, 3*Pi}]

 

  1. Vitt, A. (Aleksandr Adolʹfovich) and Gorelik, G. (Gabriel Simonovich), Oscillations of an Elastic Pendulum as an Example of the Oscillations of Two Parametrically Coupled Linear Systems, Journal of Technical Physics, 1933, vol. 3, pp. 294–307.
    Its translation from the Russian in English by Lisa Shields with an introduction by Peter Lynch is available on the web:
    http://copac.jisc.ac.uk/id/15694518?style=html
    http://catalogue.nli.ie/Record/vtls000058645
  2. P. Pokorny, Stability condition for vertical oscillation of 3-dim heavy spring elastic pendulum, Regular and Chaotic Dynamics, June 2008, Volume 13, Issue 3, pp 155--165.
    https://link.springer.com/article/10.1134/S1560354708030027
    http://old.vscht.cz/mat/Pavel.Pokorny/rcd/RCD155-color.pdf
  3. Pendulum
  4. Pendulum Physics
  5. Lumen Physics: Pendulum
  6. Predicting the Future – An Intro to Models Described by Time Dependent Differential Equations by Christian J Howard.
  7. M. G. Olsson, Why does a mass on a spring sometimes misbehave?, American Journal of Physics, 44, Issue 12, 1211 (1976); https://doi.org/10.1119/1.10265