# What's the solution of this integral? [closed]

What's the solution of this integral? $$\int_{0}^{\pi} \frac{\cos^2 \left( \dfrac{\pi \cos x}{2} \right)} {\sin x} \, dx$$

• It has no elementary solution unless you consider trigonometric integrals as elementary. Jan 16 '17 at 17:43
• It would help to know more about how far you got with your thinking on this problem, and what kind of result (numeric vs. symbolic) you hope to achieve. In particular the apparent singularity in the denominator at endpoints $x= 0,\pi$ is compensated by the behavior of the numerator at these points. Jan 16 '17 at 18:38

It is easy to see that $~I~=~2\displaystyle\int_0^1\frac{\cos^2\Big(\dfrac\pi2~x\Big)}{1-x^2}~dx~=~\dfrac4\pi\displaystyle\int_0^\tfrac\pi2\frac{\cos^2x}{1-(ax)^2}~dx,~$ for $~a=\dfrac2\pi~.$
self-evident. Indeed, on one hand we have $~I~=~\dfrac{\gamma+\ln(2\pi)-\text{Ci}(2\pi)}2,~$ while on the other
we get $~I~=~\dfrac{\gamma+\ln(2\pi)}2~+~\dfrac\pi4\sqrt2\cdot J^{(1,0)}\bigg(-\dfrac12~,~\pi\bigg).~$ By comparing the two results, we
ultimately arrive at the conclusion that $~J^{(1,0)}\bigg(-\dfrac12~,~\pi\bigg)~=~-\dfrac{\sqrt2}\pi~\text{Ci}(2\pi).$