$$\int_{\frac{\pi}{3}}^{\frac{2\pi}{3}} \frac{x}{\sin x} dx$$ How to calculate this integral? I tried using integration by part without too much success. The indefinite integral of it seemed to be to complicated, but the answer should probably be something like $\frac{{\pi}\ln 3}2$ . I only know that $$\int\frac1{\sin x}dx=\ln\left|\frac1{\sin x}-\frac1{\tan x }\right|+C$$, and was told that it has something to do with the integral. I hope someone can answer this question. Thanks.
EDIT: sorry, but I mistakenly got the lower limit wrong. It should be $\frac{\pi}3$
Solution: (inspired by @Claude Leibovici)
Sub $$x=\frac{\pi}2+y$$ Then $$\int_{\frac{\pi}{3}}^{\frac{2\pi}{3}} \frac{x}{\sin x} dx$$ $$=\int_{\frac{-\pi}{6}}^{\frac{\pi}{6}} {\frac{{\frac{\pi}2}+y}{\cos y}} dy$$ $$=\int_{\frac{-\pi}{6}}^{\frac{\pi}{6}} {\frac{{\frac{\pi}2}}{\cos y}} dy + \int_{\frac{-\pi}{6}}^{\frac{\pi}{6}} {\frac y{\cos y}}dy$$ $$=\frac{{\pi}\ln3}2+0$$ $$=\frac{{\pi}\ln3}2$$ Again, thanks for those who put efforts to solve this problem.