I'm stuck in a path on a paper about thermal conductivity. There is a identity involving an integral that a I can't realize how they've perfomed it. Here is it:
$$\lim_{N\to \infty} \int_{0}^{\pi}\frac{g_1(q)dq}{1+g_2(q)\sin(Nq)} =\int_{0}^{\pi}\frac{g_1(q)dq}{[1-g_2(q)^{2}]^{1/2}}$$
for "reasonable" functions $g_1$, $g_2$.
If you have any ideas to solve it or even the solution I'll be very grateful for help.
As $N$ gets large, the sine changes very rapidly, so that $g(q)$ is essentially constant. So we want to know the average value of $1/(1+a\sin(Nq))$ as $Nq$ goes through a cycle of $2\pi$, and $g(q)$ remains roughly constant at the value $a$.
Let $Nq=x$. During the following, make the substitution $z=e^{ix}$. I use $\cos x$ instead of $\sin x$ because it makes the calculation a little easier.
$$\frac{1}{2\pi}\int_0^{2\pi}\frac{dx}{1+a\cos x}\\ =\frac{1}{2\pi}\int_0^{2\pi}\frac{2dx}{2+a(e^{ix}+e^{-ix})}\\ =\frac{1}{i\pi}\int_{|z|=1}\frac{dz}{2z+az^2+a}\\ =\frac{1}{ia\pi}\int_{|z|=1}\frac{dz}{(z+1/a)^2+1-(1/a)^2} $$
The two roots of the quadratic have product equal 1, so one is inside the unit circle and the other outside. The residue for the one inside the circle is $2\pi i/(2\sqrt{1/a^2-1})$, and the final answer is $1/\sqrt{1-a^2}$.