I want to show that
$$\int_0^{\pi} \log(2 - 2 \cos x) = 0$$
However, I cannot do this. I tried splitting the integral into $\int_0^{\pi/3} \log(2 - 2 \cos x)\,dx + \int_{\pi/3}^{\pi} \log(2 - 2 \cos x) \,dx$ and showing that the two parts were negatives of one another. Wolframalpha does not give very a simple antiderivative. I was wondering if there was a nice way to do this.
Other attempts: using $\int_0^a f(x) \,dx = \int_0^{a} f(a-x) \,dx$, trying to change the $\cos$ to $\sin$ by some substitution like $u = \pi/2 - x$ and trying to get things to cancel.
$$\log(2-2\cos x)=\log(2(1-\cos x))=\log2+\log(2\sin^2 x/2)=2\log2+2\log\sin x/2$$
If we show that $\int_0^\pi\log\sin(x/2)~\mathrm dx=-\pi\log2$, we are done.
With $t\mapsto x/2$, the above claim is,
This is a pretty well known integral. Can you take it from here?