The above is the same problem as a real pendulum.
Do you know how to solve the pendulum problem?

Using \theta as the main variable,model:  \frac{d^2\theta}{dt^2}=-\frac{g}{R}\sin\theta