A pendulum is a body suspended from a fixed support that freely swings back and forth under the influence of gravity. When a pendulum is displaced sideways from its resting, equilibrium position, it is subject to a restoring force due to gravity that will accelerate it back towards the equilibrium position. When released, the restoring force acting on the pendulum's mass causes it to oscillate about the equilibrium position, swinging it back and forth. The mathematics of pendulums are in general quite complicated. Simplifying assumptions can be made, which in the case of a simple pendulum allow the equations of motion to be solved analytically for small-angle oscillations.
Contents
Simple gravity pendulum
A simple gravity pendulum is an idealized mathematical model of a real pendulum. It is a weight (or bob) on the end of a massless cord suspended from a pivot, without friction. Since in the model there is no frictional energy loss, when given an initial displacement it swings back and forth with a constant amplitude. The model is based on the assumptions:
The rod or cord is massless, inextensible and always remains under tension.
The bob is a point mass.
The motion occurs in two dimensions.
The motion does not lose energy to external friction or air resistance.
The gravitational field is uniform.
The support is immobile.
The differential equation which governs the motion of a simple pendulum is
where g is the magnitude of the gravitational field, ℓ is the length of the rod or cord, and θ is the angle from the vertical to the pendulum.
Small-angle approximation
The differential equation given above is not easily solved, and there is no solution that can be written in terms of elementary functions. However, adding a restriction to the size of the oscillation's amplitude gives a form whose solution can be easily obtained. If it is assumed that the angle is much less than 1 radian (often cited as less than 0.1 radians, about 6°), or
θ≪1,
then substituting for sin θ into Eq. 1 using the small-angle approximation,
sinθ≈θ,
yields the equation for a harmonic oscillator,
d2θdt2+gℓθ=0.
The error due to the approximation is of order θ3 (from the Taylor expansion for sin θ).
Let the starting angle be θ0. If it is assumed that the pendulum is released with zero angular velocity, the solution becomes
The motion is simple harmonic motion where θ0 is the amplitude of the oscillation (that is, the maximum angle between the rod of the pendulum and the vertical). The corresponding approximate period of the motion is then
which is known as Christiaan Huygens's law for the period. Note that under the small-angle approximation, the period is independent of the amplitude θ0; this is the property of isochronism that Galileo discovered.
Rule of thumb for pendulum length
T0=2πℓg gives ℓ=gπ2T024.
If SI units are used (i.e. measure in metres and seconds), and assuming the measurement is taking place on the Earth's surface, then g ≈ 9.81 m/s2, and g/π2 ≈ 1 m/s2 (0.994 is the approximation to 3 decimal places).
Therefore, relatively reasonable approximations for the length and period are:
ℓ≈T024,T0≈2ℓ
where T0 is the number of seconds between two beats (one beat for each side of the swing), and l is measured in metres.
Arbitrary-amplitude period
For amplitudes beyond the small angle approximation, one can compute the exact period by first inverting the equation for the angular velocity obtained from the energy method (Eq. 2),
dtdθ=ℓ2g1cosθ−cosθ0
and then integrating over one complete cycle,
T=t(θ0→0→−θ0→0→θ0),
or twice the half-cycle
T=2t(θ0→0→−θ0),
or four times the quarter-cycle
T=4t(θ0→0),
which leads to
T=4ℓ2g∫0θ0dθcosθ−cosθ0.
Note that this is an improper integral because the integrand has singularities at θ=±θ0+2πℤ, but these singularities are integrable as long as 0<θ0<π. At θ0=±π, the singularities become non-integrable, implying that the integral's value diverges as the maximum swing angle approaches the vertical
limθ0→πT=∞,
so that a pendulum with just the right energy to go vertical will never actually get there. (Conversely, a pendulum close to its maximum can take an arbitrarily long time to fall down.)
This integral can be rewritten in terms of elliptic integrals as
T=4ℓgF(π2,sinθ02)
where F is the incomplete elliptic integral of the first kind defined by
F(φ,k)=∫0φdu1−k2sin2u.
Legendre polynomial solution for the elliptic integral
Given Eq. 3 and the Legendre polynomial solution for the elliptic integral:
K(k)=π2∑n=0∞((2n−1)!!(2n)!!kn)2
where n!! denotes the double factorial, an exact solution to the period of a simple pendulum is:
T=2πℓg(1+(12)2sin2θ02+(1⋅32⋅4)2sin4θ02+(1⋅3⋅52⋅4⋅6)2sin6θ02+⋯)=2πℓg⋅∑n=0∞(((2n)!(2n⋅n!)2)2⋅sin2nθ02).
Figure 4 shows the relative errors using the power series. T0 is the linear approximation, and T2 to T10 include respectively the terms up to the 2nd to the 10th powers.
Power series solution for the elliptic integral
Another formulation of the above solution can be found if the following Maclaurin series:
sinθ02=12θ0−148θ03+13840θ05−1645120θ07+⋯.
is used in the Legendre polynomial solution above.
The resulting power series is:
T=2πℓg(1+116θ02+113072θ04+173737280θ06+229311321205760θ08+1319183951268147200θ010+2335264632009078326886400θ012+⋯),
more fractions available in the On-Line Encyclopedia of Integer Sequences with OEIS: A223067 having the numerators and OEIS: A223068 having the denominators.
Arithmetic-geometric mean solution for elliptic integral
Given Eq. 3 and the arithmetic–geometric mean solution of the elliptic integral:
K(k)=π2M(1−k,1+k),
where M(x,y) is the arithmetic-geometric mean of x and y.
This yields an alternative and faster-converging formula for the period:
T=2πM(1,cosθ02)ℓg.
The first iteration of this algorithm gives
T1=2T01+cosθ02.
This approximation has the relative error of less than 1% for angles up to 96.11 degrees. Since 12(1+cos(θ02))=cos2θ04, the expression can be written more concisely as
T1=T0sec2θ04.
The second order expansion of sec2(θ0/4) reduces to T≈T0(1+θ0216).
A second iteration of this algorithm gives
T2=4T01+cosθ02+2cosθ02=4T0(1+cosθ02)2.
This second approximation has a relative error of less than 1% for angles up to 163.10 degrees.
Approximate formulae for the nonlinear pendulum period
Though the exact period T can be determined, for any finite amplitude θ0<π rad, by evaluating the corresponding complete elliptic integral K(k), where k≡sin(θ0/2), this is often avoided in applications because it is not possible to express this integral in a closed form in terms of elementary functions. This has made way for research on simple approximate formulae for the increase of the pendulum period with amplitude (useful in introductory physics labs, classical mechanics, electromagnetism, acoustics, electronics, superconductivity, etc. The approximate formulae found by different authors can be classified as follows:
‘Not so large-angle’ formulae, i.e. those yielding good estimates for amplitudes below π/2 rad (a natural limit for a bob on the end of a flexible string), though the deviation with respect to the exact period increases monotonically with amplitude, being unsuitable for amplitudes near to π rad. One of the simplest formulae found in literature is the following one by Lima (2006): T≈−T0lna1−a, where a≡cos(θ0/2).
‘Very large-angle’ formulae, i.e. those which approximate the exact period asymptotically for amplitudes near to πrad, with an error that increases monotonically for smaller amplitudes (i.e., unsuitable for small amplitudes). One of the better such formulae is that by Cromer, namely: T≈2πT0ln(4/a).
Of course, the increase of T with amplitude is more apparent when π/2<θ0<π, as has been observed in many experiments using either a rigid rod or a disc. As accurate timers and sensors are currently available even in introductory physics labs, the experimental errors found in ‘very large-angle’ experiments are already small enough for a comparison with the exact period, and a very good agreement between theory and experiments in which friction is negligible has been found. Since this activity has been encouraged by many instructors, a simple approximate formula for the pendulum period valid for all possible amplitudes, to which experimental data could be compared, was sought. In 2008, Lima derived a weighted-average formula with this characteristic:
T≈ra2TLima+k2TCromerra2+k2,
where r=7.17, which presents a maximum error of only 0.6% (at θ0=95∘).
Arbitrary-amplitude angular displacement
The Fourier series expansion of θ(t) is given by
θ(t)=8∑n≥1 odd(−1)⌊n/2⌋nqn/21+qncos(nωt)
where q is the elliptic nome, q=exp(−πK(1−k2)/K(k)), k=sin(θ0/2), and ω=2π/T the angular frequency.
If one defines
ε=12⋅1−cos(θ0/2)1+cos(θ0/2)
q can be approximated using the expansion
q=ε+2ε5+15ε9+150ε13+1707ε17+20910ε21+⋯
(see OEIS: A002103). Note that ε<12 for θ0<π, thus the approximation is applicable even for large amplitudes.
Equivalently, the angle can be given in terms of the Jacobi elliptic function cd with modulus k
θ(t)=2arcsin(kcd(gℓt;k)),k=sinθ02.
For small x, sinx≈x, arcsinx≈x and cd(t;0)=cost, so the solution is well-approximated by the solution given in Pendulum (mechanics)#Small-angle approximation.
Examples
The animations below depict the motion of a simple (frictionless) pendulum with increasing amounts of initial displacement of the bob, or equivalently increasing initial velocity. The small graph above each pendulum is the corresponding phase plane diagram; the horizontal axis is displacement and the vertical axis is velocity. With a large enough initial velocity the pendulum does not oscillate back and forth but rotates completely around the pivot.
Compound pendulum
A compound pendulum (or physical pendulum) is one where the rod is not massless, and may have extended size; that is, an arbitrarily shaped rigid body swinging by a pivot O. In this case the pendulum's period depends on its moment of inertia IO around the pivot point.
The equation of torque gives:
τ=Iα
where:
α is the angular acceleration.
τ is the torque
The torque is generated by gravity so:
τ=−mgr⊕sinθ
where:
m is the total mass of the rigid body (rod and bob)
r⊕ is the distance from the pivot point to the system's centre-of-mass
θ is the angle from the vertical
Hence, under the small-angle approximation, sinθ≈θ (or equivalently when θmax≪1),
α=θ¨=mgr⊕IOsinθ≈−mgr⊕IOθ
where IO is the moment of inertia of the body about the pivot point O.
The expression for α is of the same form as the conventional simple pendulum and gives a period of
T=2πIOmgr⊕
And a frequency of
f=1T=12πmgr⊕IO
Damped, driven pendulum
The above discussion focuses on a pendulum bob only acted upon by the force of gravity. Suppose a damping force, e.g. air resistance, as well as a sinusoidal driving force acts on the body. This system is a damped, driven oscillator, and is chaotic.
Equation (1) can be written as
ml2d2θdt2=−mglsinθ
(see the Torque derivation of Equation (1) above).
A damping term and forcing term can be added to the right hand side to get
ml2d2θdt2=−mglsinθ−bdθdt+acos(Ωt)
where the damping is assumed to be directly proportional to the angular velocity (this is true for low-speed air resistance, see also Drag (physics)). a and b are constants defining the amplitude of forcing and the degree of damping respectively. Ω is the angular frequency of the driving oscillations.
Dividing through by ml2:
d2θdt2+bml2dθdt+glsinθ−aml2cos(Ωt)=0.
For a physical pendulum:
d2θdt2+bIdθdt+mgr⊕Isinθ−aIcos(Ωt)=0.
This equation exhibits chaotic behaviour. The exact motion of this pendulum can only be found numerically and is highly dependent on initial conditions, e.g. the initial velocity and the starting amplitude. However, the small angle approximation outlined above can still be used under the required conditions to give an approximate analytical solution.
Physical interpretation of the imaginary period
The Jacobian elliptic function that expresses the position of a pendulum as a function of time is a doubly periodic function with a real period and an imaginary period. The real period is, of course, the time it takes the pendulum to go through one full cycle. Paul Appell pointed out a physical interpretation of the imaginary period: if θ0 is the maximum angle of one pendulum and 180° − θ0 is the maximum angle of another, then the real period of each is the magnitude of the imaginary period of the other.
Coupled pendula
Coupled pendulums can affect each other's motion, either through a direction connection (such as a spring connecting the bobs) or through motions in a supporting structure (such as a tabletop). The equations of motion for two identical simple pendulums coupled by a spring connecting the bobs can be obtained using Lagrangian mechanics.
The kinetic energy of the system is:
EK=12mL2(θ˙12+θ˙22)
where m is the mass of the bobs, L is the length of the strings, and θ1, θ2 are the angular displacements of the two bobs from equilibrium.
The potential energy of the system is:
Ep=mgL(2−cosθ1−cosθ2)+12kL2(θ2−θ1)2
where g is the gravitational acceleration, and k is the spring constant. The displacement L(θ2−θ1) of the spring from its equilibrium position assumes the small angle approximation.
The Lagrangian is then
ℒ=12mL2(θ˙12+θ˙22)−mgL(2−cosθ1−cosθ2)−12kL2(θ2−θ1)2
which leads to the following set of coupled differential equations:
θ¨1+gLsinθ1+km(θ1−θ2)=0θ¨2+gLsinθ2−km(θ1−θ2)=0
Adding and subtracting these two equations in turn, and applying the small angle approximation, gives two harmonic oscillator equations in the variables θ1+θ2 and θ1−θ2:
θ¨1+θ¨2+gL(θ1+θ2)=0θ¨1−θ¨2+(gL+2km)(θ1−θ2)=0
with the corresponding solutions
θ1+θ2=Acos(ω1t+α)θ1−θ2=Bcos(ω2t+β)



