The gridiron pendulum was designed by John Harrison in 1726 to make the swing period insensitive to changes in temperature. It consists of alternating brass and iron rods with lengths selected so that the effects of thermal expansion counteract. In this Demonstration, you can explore the effects of the temperature and the length of the gridiron pendulum on the clock error.

The period of a pendulum is , where is the pendulum length and is the acceleration due to gravity. The thermal expansion of a pendulum made of all iron or brass can lead to minutes of inaccuracy per day. The gridiron pendulum consists of a framework of nine alternating iron and brass rods. These metals have different coefficients of thermal expansion, where and .

The total expansion of the gridiron pendulum is , where is the length of the gridiron portion. The variable can be selected so that the total expansion is always zero.