Assume $A^2 > B^2$ and that $A > 0$. Show that:
$$\int_0^{2\pi} \frac{d\theta}{A + B \sin \theta} = \frac{2\pi}{\sqrt{A^2 - B^2}}$$
This problem appears in the context of complex analysis. That implies the use of things such as contour integration. I have not seen a problem of this nature before so I'm not sure where to start.
Hint. Let $z=e^{i\theta}$ then $dz=iz d\theta$ and $$I:=\int_0^{2\pi} \frac{d\theta}{A + B \sin \theta}= \int_{|z|=1} \frac{\frac{dz}{iz}}{A + B\, \frac{z-1/z}{2i}}= \int_{|z|=1} \frac{2dz}{Bz^2+2Aiz-B}.$$ Now note that if $A>|B|>0$, then the polynomial $Bz^2+2Aiz-B$ has just one root $z_1$ inside the circle $|z|=1$ (the other one is outside). Hence, by the Residue Theorem, $$I:=2\pi i \, \mbox{Res}\left(\frac{2}{Bz^2+2Aiz-B},z_1\right).$$
Can you take it from here?