Sub topic 14
When the pendulum is not simple harmonic
This chapter assumes you know the small-angle derivation of the pendulum equation and the period T₀ = 2π√(L/g). It also assumes you are comfortable with energy conservation and with the series expansion of sin θ. Here you will see where that derivation breaks, how much error it causes, and what the real motion looks like.
Where the approximation enters
The tangential equation of motion for a pendulum bob on a rigid rod or string is
θ'' = -(g/L) sin θ
The SHM equation θ'' = -(g/L) θ follows only after replacing sin θ with θ. That replacement is the single step that makes the pendulum a harmonic oscillator. The series for sine shows what is thrown away:
sin θ = θ - θ³/6 + θ⁵/120 - ...
The relative error of sin θ ≈ θ is about θ²/6, with θ in radians. The table shows how quickly it grows.
| Angle | θ (rad) | sin θ | Error of using θ |
|---|---|---|---|
| 5° | 0.0873 | 0.0872 | about 0.13% |
| 10° | 0.1745 | 0.1736 | about 0.5% |
| 30° | 0.5236 | 0.5000 | about 4.7% |
| 90° | 1.5708 | 1.0000 | 57% |
The true restoring force is weaker than the linear one. At large angles the bob is pulled back less than the SHM model predicts, so it takes longer to swing.
The potential energy is not a parabola
For a spring, U = ½kx² is an exact parabola. For a pendulum, taking the lowest point as zero:
U(θ) = mgL(1 - cos θ)
Expanding cos θ gives U ≈ ½ mgL θ² for small θ, which has the same form as the spring. The next term is negative:
U ≈ ½ mgL θ² - (1/24) mgL θ⁴
So the real potential well is flatter than a parabola, and it levels out completely at θ = 180°, where the bob is balanced upside down. A motion is called anharmonic when its restoring force is not proportional to displacement. Anharmonic motion has three consequences:
- The period depends on amplitude. SHM is isochronous, meaning the period is independent of amplitude. The pendulum loses this property.
- The waveform θ(t) is no longer a pure cosine. It is flatter near the turning points and contains higher harmonics, mainly a component at 3ω.
- The motion is still periodic and energy is still conserved, so the problem is not chaotic or unsolvable. It is only not sinusoidal.
How much longer is the period?
Energy conservation gives the exact period. For amplitude θ₀, the speed at the bottom is v = √(2gL(1 - cos θ₀)). Integrating dt = L dθ / v over a quarter cycle gives
T = 4√(L/g) K(k), with k = sin(θ₀/2)
Here K is the complete elliptic integral of the first kind. You do not need to evaluate it by hand. Two practical forms exist.
A series in the amplitude:
T ≈ T₀ (1 + θ₀²/16 + 11θ₀⁴/3072 + ...)
And the arithmetic-geometric mean (AGM) form used in the code below:
T = T₀ / AGM(1, cos(θ₀/2))
The AGM is computed by repeatedly replacing a pair (a, b) with their arithmetic mean and geometric mean. The two values converge in a handful of steps.
| Amplitude | T / T₀ | Actual period exceeds T₀ by |
|---|---|---|
| 5° | 1.0019 | 0.19% |
| 30° | 1.0174 | 1.7% |
| 90° | 1.1803 | 18% |
The first term of the series gives a useful rule of thumb: the fractional increase in period is about θ₀²/16. At 10° (0.1745 rad) that is 0.19%, which is why a pendulum clock with a small swing keeps good time. A swing of 90° runs the clock noticeably slow.
The curve is flat near zero and then steepens. This is why the small-angle result looks perfect in a classroom and fails on a playground swing.
Checking it in code
The first script evaluates the exact period with the AGM. The second integrates the nonlinear equation directly, without any approximation, and measures the period from the time the bob first reaches the vertical.
import math
def agm(a, b):
while abs(a - b) > 1e-12:
a, b = (a + b) / 2, math.sqrt(a * b)
return a
def exact_period(L, g, theta0):
return 2 * math.pi * math.sqrt(L / g) / agm(1.0, math.cos(theta0 / 2))
def measured_period(L, g, theta0, dt=1e-4):
# Integrate theta'' = -(g/L) sin(theta) with semi-implicit Euler.
# The bob starts at rest at theta0. The first zero crossing is a quarter period.
th, w, t = theta0, 0.0, 0.0
while True:
w += -(g / L) * math.sin(th) * dt
new = th + w * dt
t += dt
if new <= 0:
t_cross = t - dt + dt * th / (th - new) # linear interpolation
return 4 * t_cross
th = new
L, g = 1.0, 9.81
T0 = 2 * math.pi * math.sqrt(L / g)
for deg in (5, 30, 90):
th0 = math.radians(deg)
print(f"{deg:>3} deg: exact {exact_period(L, g, th0):.4f} s, "
f"simulated {measured_period(L, g, th0):.4f} s, SHM {T0:.4f} s")The exact and simulated columns should agree to about three decimal places, and both should drift away from the SHM column as the amplitude grows. The simulated value is slightly off because a time step of 10⁻⁴ s is finite. Reducing dt improves it.
The limit at 180°
As θ₀ approaches 180°, k = sin(θ₀/2) approaches 1 and K(k) diverges logarithmically. The period grows without bound because the bob spends longer and longer near the unstable upright position, where the net force is almost zero. The case is easy to see on an energy diagram:
- If the total energy is below 2mgL, the bob swings back and forth. This is libration.
- If the energy equals 2mgL exactly, the bob creeps toward the top and never arrives. This boundary is called the separatrix.
- If the energy is above 2mgL, the bob goes over the top and circles continuously. This is rotation. It is periodic, but it is not an oscillation about the bottom.
The same reasoning applies to a bob on a string. Below about 90° the string stays taut, but a string pendulum released from near the top can go slack on the way down. A rigid rod avoids this.
What changes, and what does not
Some results of the small-angle model carry over unchanged:
- The period is independent of the bob's mass. The mass cancels from the equation of motion at any amplitude.
- Energy conservation still gives the speed at any angle, using v = √(2gL(cos θ - cos θ₀)).
- Period still scales as √(L/g).
Other results need revision:
- The period increases with amplitude.
- θ(t) is not A cos(ωt + φ), so the formulas for velocity and acceleration from the earlier chapters no longer apply exactly.
- The acceleration is not proportional to displacement, so a plot of θ'' against θ bends away from a straight line.
A decision rule
Use the SHM formulas when the amplitude is below about 10° and you need accuracy of roughly 0.2% in the period. Use the first correction term, T ≈ T₀(1 + θ₀²/16), up to about 30°. Beyond that, use the AGM formula or a numerical integration. The same pattern holds for other oscillators: a spring obeys SHM until it is stretched far enough to leave the range where Hooke's law holds, and a pendulum obeys it until sin θ stops looking like θ.
Exercise
A 2.00 m pendulum on Earth (g = 9.81 m/s²) is released from rest at 60° from the vertical. (a) What is its small-angle period T₀? (b) Using the series T ≈ T₀(1 + θ₀²/16), estimate the actual period. (c) Find the speed of the bob at the bottom.
Show answer
(a) T₀ = 2π√(2.00/9.81) = 2π × 0.4515 = 2.837 s. (b) θ₀ = 60° = 1.0472 rad, so θ₀²/16 = 1.0966/16 = 0.0685, and T ≈ 2.837 × 1.0685 ≈ 3.03 s. The exact value, using the AGM, is about 3.04 s (T/T₀ ≈ 1.0732), so the one-term series is within 0.5%. (c) v = √(2gL(1 - cos θ₀)) = √(2 × 9.81 × 2.00 × 0.5) = √19.62 ≈ 4.43 m/s.
Exercise
A student measures a pendulum's period at amplitudes of 5° and 90° and finds the two values differ. The student concludes that the mass must have changed. What is the correct explanation, and by roughly how much should the periods differ?
Show answer
The mass cancels from the pendulum equation, so it cannot explain the difference. The pendulum is anharmonic: the true restoring force is proportional to sin θ, not θ, so the period grows with amplitude. The 90° period should be about 1.1803 / 1.0019 ≈ 1.18 times the 5° period, which is about 18% longer.