I don't see how / why one can rewrite the integral as following:
$$\int_{\frac{\pi}{2}+(j-1)\pi}^{\frac{\pi}{2}+j\pi} \frac{|\cos(t)|}{\frac{\pi}{2}+j\pi} \,dt = \frac{2}{\frac{\pi}{2}+j\pi} $$
I think this should be rather easy, but I don't see what I'm missing.