We put the circular orbit of the particle on a straight line and convert the motion to a 1-dimensional rectilinear motion as follows : The arc length, the natural parameter $\:s(t)\:$ is the distance travelled on the straight line till time $\:t\:$. The speed $\:v(t)\:$ on the straight line is the magnitude of the tangent to the circle velocity. 246
Now, on the straight line the particle is moving like under the influence of the tangent force which is $\:f_{t}=mg\sin(\theta)\:$ so under a variable acceleration $\:a_{t}=g\sin(\theta)\:$. But $\:\theta=s/R\:$ so the differential equation of motion is
\begin{equation} \dfrac{\mathrm{d}^{2} s}{ \mathrm{d}t^{2} }-g\sin\left(\dfrac{s}{R}\right)=0, \qquad \left[\dfrac{ \mathrm{d} s }{\mathrm{d} t}\right]_{t=0}=0, \qquad s(0)=0 \tag{01} \end{equation}
since the particle starts at rest on the origin.
On the other hand the condition for the particle to leave the sphere is the normal force to be zero \begin{equation} N=mg\cos(\theta)-ma_{c}=mg\cos(\theta)- \dfrac{mv^{2}}{R}=0 \tag{02} \end{equation} that is \begin{equation} \boxed { \bbox[#FFFF88,8px]{\:\:\left(\dfrac{ \mathrm{d} s }{\mathrm{d} t}\right)^{2}-gR\cos\left(\dfrac{s}{R}\right)=0 \:\:}} \tag{03} \end{equation}
Now, we must solve (01) to find at which point the condition (03) is satisfied. But it'll proved to be not necessary. 766