Good evening!
I want to compute the integral $\displaystyle \int_{0}^{\pi/3}\ln^2 \left ( \sin x \right )\,dx$. However I find it extremely difficult. What I've tried is rewritting it as:
$\begin{aligned} \int_{0}^{\pi/3}\ln^2\left ( \sin x \right )\,dx &=\int_{0}^{\pi/3}\left [ \ln \left ( \sin x \right ) \right ]^2\,dx \\ &= \int_{0}^{\pi/3}\left [ \ln \left ( \frac{e^{-ix}-e^{ix}}{2i} \right ) \right ]^2\,dx\\ &= \int_{0}^{\pi/3}\left [ \ln \left ( e^{-ix}-e^{ix} \right )-\ln 2i \right ]^2\, dx\\ &= \int_{0}^{\pi/3}\left ( \ln^2\left ( e^{-ix}-e^{ix} \right )-2\ln 2i \ln \left ( e^{-ix}-e^{ix} \right ) +\ln^2 2i\right )\,dx\\ &= \int_{0}^{\pi/3} \ln^2 \left ( e^{-ix}-e^{ix} \right )\,dx-2\int_{0}^{\pi/3}\ln 2i \ln \left ( e^{-ix}-e^{ix} \right )\,dx +\int_{0}^{\pi/3}\ln^2 2i \,dx \\ \end{aligned}$
I wrote the first integral as: $\begin{aligned} \int_{0}^{\pi/3}\ln^2 \left ( e^{-ix}-e^{ix} \right )\,dx &= \int_{0}^{\pi/3}\ln^2 \left ( e^{-ix}\left ( 1-e^{-2ix} \right ) \right )\,dx\\ &= \int_{0}^{\pi/3}\ln^2 \left ( e^{-ix} \right )\,dx+\int_{0}^{\pi/3}\ln^2 \left ( 1-e^{-2ix} \right )\,dx\\ \end{aligned}$
Now I used MacLaurin's Expasion of $\ln(1-x)$ for the second integral, so that I can express it as complex series, which is the following:
$$\ln^2\left ( 1-e^{-2ix} \right )= \sum_{m=1}^{\infty}\sum_{k=1}^{\infty}\frac{e^{-2ikx}}{k}\frac{e^{-2imx}}{m} \implies \int_{0}^{\pi/3}\ln^2\left ( 1-e^{-2ix} \right )\,dx=\int_{0}^{\pi/3}\left ( \sum_{m=1}^{\infty}\sum_{k=1}^{\infty}\frac{e^{-2ikx}}{k}\frac{e^{-2imx}}{m} \right )\,dx$$
I'm pretty confident that I can alter summation and integral. I don't know if this can help. And this is where I stopped. I can't play around with the middle integral, because of that $\ln(2i)$ term which bothers me, otherwise I would apply the same technic with the MacLaurin expansion. Something also tells me that the last integral should be discarded. Because it's a complex one, but I have not dwelved in it further so I'm not quite sure if there are no cancellations with the other integrals I have, because they all contain complex parts.
Any help would be appreciated.
P.S: This is not homework.