The mathematics of pendulums are in general quite complicated.
Simplifying assumptions can be made, which in the case of a simple pendulum allows the equations of motion to be solved analytically for small-angle oscillations.
Simple gravity pendulum 
A so called "simple pendulum" is an idealization of a "real pendulum" but in an isolated system using the following assumptions:
- The rod or cord on which the bob swings is massless, inextensible and always remains taut;
- Motion occurs only in two dimensions, i.e. the bob does not trace an ellipse but an arc.
- The motion does not lose energy to friction or air resistance.
The differential equation which represents the motion of a simple pendulum is
where is acceleration due to gravity, is the length of the pendulum, and is the angular displacement.
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, or
yields the equation for a harmonic oscillator,
The error due to the approximation is of order θ 3 (from the Maclaurin series for sin θ).
Given the initial conditions θ(0) = θ0 and dθ/dt(0) = 0, the solution becomes,
The motion is simple harmonic motion where θ0 is the semi-amplitude of the oscillation (that is, the maximum angle between the rod of the pendulum and the vertical). The period of the motion, the time for a complete oscillation (outward and return) is
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 
- can be expressed as
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 m/s2, and (0.994 is the approximation to 3 decimal places).
Therefore a relatively reasonable approximation for the length and period are,
Arbitrary-amplitude period 
and then integrating over one complete cycle,
or twice the half-cycle
or 4 times the quarter-cycle
which leads to
This integral can be re-written in terms of elliptic integrals as
where is the incomplete elliptic integral of the first kind defined by
Or more concisely by the substitution expressing in terms of ,
where is the complete elliptic integral of the first kind defined by
For comparison of the approximation to the full solution, consider the period of a pendulum of length 1 m on Earth (g = 9.80665 m/s2) at initial angle 10 degrees is . The linear approximation gives . The difference between the two values, less than 0.2%, is much less than that caused by the variation of g with geographical location.
From here there are many ways to proceed to calculate the elliptic integral:
Legendre polynomial solution for the elliptic integral 
where n!! denotes the double factorial, an exact solution to the period of a pedulum is:
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:
is used in the Legendre polynomial solution above. The resulting power series is:
Arithmetic-geometric mean solution for elliptic integral 
where is the arithmetic-geometric mean of and .
This yields an alternative and faster-converging formula for the period:
where is the arithmetic-geometric mean of 1 and .
The animations below depict several different modes of oscillation given different initial conditions. The small graph above the pendulums are their phase portraits.
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. In this case the pendulum's period depends on its moment of inertia I around the pivot point.
The equation of torque gives:
- is the angular acceleration.
- is the torque
The torque is generated by gravity so:
- L is the distance from the pivot to the center of mass of the pendulum
- θ is the angle from the vertical
Hence, under the small-angle approximation ,
This is of the same form as the conventional simple pendulum and this gives a period of:
And a frequency of:
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. This interpretation, involving dual forces in opposite directions, might be further clarified and generalized to other classical problems in mechanics with dual solutions.
See also 
- Blackburn pendulum
- Conical pendulum
- Double pendulum
- Inverted pendulum
- Spring pendulum
- Mathieu function
- Pendulum equations (software)
- Nelson, Robert; M. G. Olsson (February 1986). "The pendulum — Rich physics from a simple system". American Journal of Physics 54 (2): pp. 112–121. doi:10.1119/1.14703. Retrieved 2012-04-30.
- Carvalhaes, Claudio; Suppes, Patrick (2008). "Approximations for the period of the simple pendulum based on the arithmetic-geometric mean". American Journal of Physics 76 (12).
- Physical Pendulum
- Paul Appell, "Sur une interprétation des valeurs imaginaires du temps en Mécanique", Comptes Rendus Hebdomadaires des Scéances de l'Académie des Sciences, volume 87, number 1, July, 1878
- Adlaj, S. Mechanical interpretation of negative and imaginary tension of a tether in a linear parallel force field , Selected papers of the International Scientific Conference on Mechanics "SIXTH POLYAKHOV READINGS", January 31 - February 3, 2012, Saint-Petersburg, Russia, pp. 13-18.
Further reading 
- Baker, Gregory L.; Blackburn, James A. (2005). The Pendulum: A Physics Case Study. Oxford University Press.
- Ochs, Karlheinz (2011). "A comprehensive analytical solution of the nonlinear pendulum". European Journal of Physics 32 (2): 479–490. doi:10.1088/0143-0807/32/2/019.
- Sala, Kenneth L. (1989). "Transformations of the Jacobian Amplitude Function and its Calculation via the Arithmetic-Geometric Mean". SIAM J. Math. Anal. 20 (6): 1514–1528. doi:10.1137/0520100.