[Math] Closed form of: $\displaystyle \int_0^{\pi/2}x^{n}\ln{(\sin x)}dx $

calculusclosed-formdefinite integralsintegrationlogarithms

$\displaystyle \int_0^{\pi/2}x^{n}\ln{(\sin x)}dx $
Does a closed form of the above integral exists?
$n$ is a positive integer

Best Answer

Using integration by parts the problem boils down to finding a closed form for: $$ I_n = \int_{0}^{\pi/2} x^n\cot(x)\,dx. \tag{1}$$ By considering the logarithmic derivative of the Weierstrass product for the sine function we have: $$ \cot(x) = \frac{1}{x}+\sum_{n\geq 1}\frac{2x}{x^2-\pi^2 n^2}=\frac{1}{x}+\sum_{n\geq 1}\left(\frac{1}{x-n\pi}+\frac{1}{x+n\pi}\right) \tag{2}$$ and: $$ \frac{1-\pi x\cot(\pi x)}{2}=\sum_{n\geq 1}\zeta(2n)\,x^{2n}\tag{3} $$ hence: $$ I_n = \pi^{n}\int_{0}^{1/2}x^{n-1}\cdot \pi x\cot(\pi x)\,dx =\pi^n\left(\frac{1}{n 2^n}-2\sum_{n\geq 1}\frac{\zeta(2n)}{3n 8^n}\right).\tag{4}$$ On the other hand, by setting $z=e^{ix}$ in $(1)$ we may see that $I_n$ is given by a countour integral: $$ I_n = \int_{C} (-i\log(z))^n \frac{z^2+1}{z^3-z}\,dz \tag{5}$$ or simply by: $$ I_n = \int_{0}^{+\infty}\left(\frac{\pi}{2}-\arctan(u)\right)^n \frac{u}{1+u^2}\,dx = \int_{0}^{+\infty}\frac{\left(\arctan u\right)^n}{u(1+u^2)}\,du\tag{6}$$ so if we apply partial fraction decomposition and integration by parts again, we may see that $I_n$ is given by a finite combination of $\pi^n \log(2)$ and values of the zeta function at the odd integers multiplied by powers of $\pi$.