When a pendulum moves from its mean position to the extreme position,