Potential energy is given by PE = mgh, where m is mass, g is acceleration due to gravity, and h is height. As the pendulum swings, its height above the equilibrium position (lowest point) changes. Potential energy is maximum at the extreme positions (P and T), where the pendulum is momentarily at its highest point and stops before changing direction. Potential energy is minimum at the mean position (R), where the pendulum is at its lowest point and moving with maximum speed.