
The component of the tension in the string (
F) along the
x-axis (

) is responsible for providing the restoring force to move the particle towards the center. The net restoring force is thus given by

due to each half of the string.
From elementary geometry we have,

Hence the equation of motion of the particle is given by,