This is a differential equation I encountered while solving a problem in Hamiltonian mechanics.
Let $A,B,C \in \mathbb{R}$ with some possible restrictions. I wish to find a solution to the initial value problem $$y'(x) = \sqrt{A \cos(y(x)) + \frac{B}{\sin^2 y(x)} + C} $$ with the initial conditions $y(x_0) = y_0$. I recognize that the above differential equation does not make sense for all choices of $A,B,C$ and $y_{x_0}$.
To even get the problem to this staged already required some "tricks", but now I am all out of ideas as to how to continue. Subject to certain constraints such as $A = C = x_0 = 0$, $B > 0$ and $y_0 = \frac{\pi}{2}$, I believe we have a solution $$ y(x) = \arccos(\sqrt{B}x) \ .$$ However for non-zero $A$ and $C$ I have no ideas. The equation is slightly reminiscent of the Jacobi elliptic equations.
Any ideas?
Edit : As requested the original problem is to find the equations of motion for a particle constrained to a sphere of radius $R$ subject to a vertical force $\alpha \hat{\mathbf{z}}$. Using spherical coordinates where $\varphi \in [0, 2 \pi)$, $\theta \in [0, \pi)$ we have the Lagrangian $$ L(\theta, \dot{\theta}, \varphi, \dot{\varphi}) = \frac{1}{2} m R^2 \left(\dot{\theta}^2 + \sin^2 \theta \dot{\varphi}^2 \right) + \alpha R \cos \theta \ .$$ Now we either convert this into the Hamiltonian or we solve the Euler-Lagrange equations in which case we are left with $$\frac{d}{dt} \frac{\partial L}{\partial \dot{\theta}} = \frac{\partial L}{\partial \theta} \iff m R^2 \ddot{\theta} = m R^2 \cos \theta \sin \theta \dot{\varphi}^2 - \alpha R \sin \theta $$ $$ \frac{d}{dt} \frac{\partial L}{\partial \dot{\varphi}} = \frac{\partial L}{\partial \varphi} \iff \frac{d}{dt} \left( m R^2 \sin^2 \theta \dot{\varphi} \right) = 0 \ .$$ From the second equation we see that the quantity $\sin^2 \theta \dot{\varphi}$ is a constant with respect to time. So if we denote this constant by $D$ then we have $$ \ddot{\theta} = D \frac{\cos \theta }{\sin^3 \theta} - \frac{\alpha}{m R} \sin \theta \ .$$ Now if we multiply both sides by $\dot{\theta}$ and integrate with respect to time from some initial time $t_0$ we have $$ \frac{\dot{\theta}^2}{2} = - \frac{D}{2 \sin^2 \theta} + \frac{\alpha}{m R} \cos \theta + E \ .$$ Here I have included all the constants which appeared in the integration in $E$. Now this problem is the same as the one I have posed.