I saw on SE that:
$$\log(\sin x)=-\log(2)-\sum_{n=1}^{\infty}\frac{\cos(2nx)}{n} \phantom{a} (0<x<\pi)$$
This is an extremely useful identity, as it helps solve:
$$\int_{0}^{\pi} \log(\sin(x)) dx$$
But how is it derived? From Taylor series, power series? How do I get this?
Even if someone can start me off that would be great.