According to Rigid-body rotation Law ,you can get a formula
mglsinθ=-ml^2*(d2θ/dt2)
m is the mass of the ball ,l is the length of the rope and θ is the angle between the rope and vertical.
According to Talyor series ,when θ is very small,sinθ=θ.
Then it turns to (d2θ/dt2)+g/l *θ=0,and...