A hoop of mass M and radius R, initially at rest, has very, very near its top a point mass, m.
The point mass will fly off the hoop when the magnitude of the centrifugal acceleration (positive) equals that of the sum of the forces pushing the point mass toward the hoop's center (negative).
The centrifugal acceleration = ω²R
The radial component of acceleration of gravity = −g cos θ
The radial component of the hoop's translational acceleration = −RΩ sin θ
ω²R − g cos θ − RΩ sin θ = 0
where
ω is the angular speed of the hoop
g is the acceleration of gravity
Ω is the angular acceleration of the hoop
θ is the angle by which the hoop has turned since the initial time
The moment of inertia for a hoop of mass M and radius R about its axis of symmetry,
I = MR²
The angular acceleration, Ω, is equal to the torque, τ, divided by the moment of inertia.
Ω = τ/I
The torque is the component of the gravitational force on the mass m that is perpendicular to the vector from the hoop's center to the mass m, multiplied by the moment arm length, R.
τ = mgR sin θ
So the angular acceleration, as a function of θ, is
Ω = (m/M) (g/R) sin θ
We are looking for the θ and ω that satisfy
ω²R/g − [cos θ + (m/M) sin²θ] = 0
Let's consolidate the constants.
k = (m/M) (g/R)
Ω = k sin θ
Assume a small, but non-zero, initial angular displacement, θ₀ > 0.
Assume an initial angular speed of zero, ω₀ = 0.
Assume a very small time step, Δt.
Ω₀ = k sin θ₀
ω₁ = ω₀ + Ω₀ Δt
θ₁ = θ₀ + ½ (ω₀+ω₁) Δt
Ω₁ = k sin θ₁
ω₂ = ω₁ + Ω₁ Δt
θ₂ = θ₁ + ½ (ω₁+ω₂) Δt
Ω₂ = k sin θ₂
ω₃ = ω₂ + Ω₂ Δt
θ₃ = θ₂ + ½ (ω₂+ω₃) Δt
And so on, until
ωᵢ²R/g − [cos θᵢ + (m/M) sin²θᵢ] = 0