An oscillating pendulum has a velocity of 2ms-1 at the equilibrium position O and velocity…