Pi occurs in various mathematical problems involving the lengths of arcs or other curves, the areas of ellipses, sectors, and other curved surfaces, and the volumes of many solids. It is also used in various formulas of physics and engineering to describe such periodic phenomena as the motion of pendulums, the vibration of strings, and alternating electric currents.