I am trying to get $\phi(t)$ out of this equation:
$$\frac12 J \dot\phi^2 + mgl ( 1- \cos\phi) = E_0.$$
I know it's a common method to say $\sin(\phi) \approx \phi $ and $\cos(\phi) \approx 1 $, but as you can see, this would destroy my whole equation.
I have considered writing $$\cos(\phi) = \sqrt{1-\sin^2(\phi) } = \sqrt{1-\phi^2},$$ but in that case I don't know how to solve the equation