I stumbled upon this integral while attempting to evaluate $\sum_{n=1}^{\infty}\frac{\cos(n\theta)}{n}$.
I started with the series $-\ln(1-z)=\sum_{n=1}^{\infty}\frac{z^n}{n}$, replaced z with $e^{i\theta}$ and extracted the real part to get $-\ln(2\sin(\frac{\theta}{2}))= \sum_{n=1}^{\infty}\frac{\cos(n\theta)}{n}$.
Using Parseval's identity it follows that $\frac{1}{\pi}\int_{0}^{2\pi}\ln^2(2\sin(\frac{\theta}{2}))d\theta=\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}$.
This gives me the result: $\int_{0}^{2\pi}\ln^2(2\sin(\frac{\theta}{2}))d\theta=\frac{\pi^3}{6}$.
Now this is the most roundabout way I have ever evaluated an integral, and I have attempted to find a more direct way to do it without any success. Does anyone know of other methods for evaluating this?
It is well-known that:
$$ \int_{0}^{\pi}(2\sin\theta)^{\alpha}\,d\theta = 2^\alpha\, \frac{\Gamma\left(\frac{1}{2}\right)\Gamma\left(\frac{1}{2}+\frac{\alpha}{2}\right)}{\Gamma\left(1+\frac{\alpha}{2}\right)}$$ hence by differentiating both sides with respect to $\alpha$ we get: $$ \int_{0}^{\pi}(2\sin\theta)^{\alpha}\log(2\sin\theta)\,d\theta= 2^\alpha\, \frac{\Gamma\left(\frac{1}{2}\right)\Gamma\left(\frac{1}{2}+\frac{\alpha}{2}\right)}{\Gamma\left(1+\frac{\alpha}{2}\right)}\cdot\frac{\psi\left(\frac{\alpha+1}{2}\right)-\psi\left(\frac{\alpha+2}{2}\right)+\log 4}{2}$$ and we just need to differentiate both sides with respect to $\alpha$ again, then evaluate in $\alpha=0$ by exploiting: $$\frac{\Gamma\left(\frac{1}{2}\right)^2}{\Gamma(1)}=\pi, \qquad \psi\left(\frac{1}{2}\right)-\psi(1)=-\log 4,\qquad \psi'\left(\frac{1}{2}\right)-\psi'(1)=2\,\zeta(2).$$