A pendulum is a weight suspended from a pivot so that it can swing freely. When a pendulum is displaced from its resting equilibrium position, it is subject to a restoring force due to gravity that will accelerate it back toward the equilibrium position. When released, the restoring force combined with the pendulum’s mass causes it to oscillate about the equilibrium position, swinging back and forth.

The time for one complete cycle, a left swing and a right swing, is called the period. A pendulum swings with a specific period which depends on its length. The equation of motion is:
In order to solve this equation, some assuptions are needed. If the initial velocity is small, the angular displacement is small as well. Expanding
we find:
The general solution for the harmonic oscillator is . Applying the initial conditions
and
we get:
It is important to note that the period of each oscillation is independent of the mass of the swinging body. This property, called isochronism, is the reason pendulums are so useful for timekeeping.
If the initial velocity is not small, the error in the Taylor expansion of grows larger and larger. Using advanced mathematical methods, or the conservation of mechanical energy, it can be proven that the period is given by:
where is a complete elliptic integral of the first kind, that can be series-expanded as shown above.