Skip to content

Sample lecture note: the simple pendulum

A real note from a physics-flavored lecture, kept here as a living example of what these pages can do. The subject: why a pendulum’s period doesn’t care how heavy the bob is.

For small swings, a pendulum is a simple harmonic oscillator in disguise. Gravity provides a restoring torque, and for small angles that torque is proportional to the displacement — which is the defining property of SHM.

Summing torques about the pivot for a bob of mass on a massless rod of length :

This is nonlinear because of the . The standard trick1 is the small-angle approximation (good to about 1% below ):

The mass cancels on both sides — the period depends only on length and gravity. A heavier bob swings no faster.

SymbolMeaningUnits
Angular displacement from verticalrad
Rod length, pivot to bobm
Gravitational accelerationm/s²
Angular frequency of oscillationrad/s
Period of one full swings
pendulum.py
import numpy as np
g = 9.81 # m/s^2
def period(length_m: float) -> float:
"""Small-angle period of a simple pendulum."""
return 2 * np.pi * np.sqrt(length_m / g)
for L in (0.25, 1.0, 4.0):
print(f"L = {L:>4} m -> T = {period(L):.2f} s")

Quadrupling the length doubles the period — exactly the scaling the formula promises.

  1. Linearization around an equilibrium shows up everywhere — circuits, control theory, economics. The pendulum is just the friendliest place to meet it.