For a simple harmonic oscillator like a pendulum, the potential energy and kinetic energy oscillate at twice the frequency of the displacement. This is because energy reaches its maximum (and minimum) values twice during one complete cycle of motion.