Energy of motion review

As a pendulum swings freely, what is happening to its energy