Here is exercise 11, chapter 3 from Stein & Shakarchi's Complex Analysis II:
Show that if $|a|<1$, then:
$$\int_{0}^{2\pi}\log|1-ae^{i\theta}|\,d\theta = 0$$
Then, prove that the above result remains true if we assume only that $|a|\leq 1.$ ($a\in \mathbb{C}$)
I've already proved it for $|a|<1$, but couldn't make it for $|a|=1$, which I thought would be the easy part. But the only thing I could come up with was that, WLOG, it is enough to prove that:
$$\int_{0}^{2\pi}\log|1-e^{i\theta}|\,d\theta = 0$$
Tried to look for some kind of symmetry, but could't find it. Any ideas? Thanks!
I'll plod on and see what happens.
We want to show that $\int_{0}^{2\pi}\log|1-e^{it}|dt = 0 $.
$\begin{array}\\ |1-e^{it}| &=|1-\cos(t)-i\sin(t)|\\ &=\sqrt{(1-\cos(t))^2+\sin^2(t)}\\ &=\sqrt{1-2\cos(t)+\cos^2(t)+\sin^2(t)}\\ &=\sqrt{2-2\cos(t)}\\ &=\sqrt{2(1-\cos(t))}\\ &=\sqrt{2(2\sin^2(t/2))}\\ &=2\sin(t/2) \qquad\text{if }0 \le t \le 2\pi\\ \end{array} $
so $\log|1-e^{it}| =\log(2\sin(t/2)) $ so that
$\begin{array}\\ \int_{0}^{2\pi}\log|1-e^{it}|dt &=\int_{0}^{2\pi}\log(2\sin(t/2))dt\\ &=2\pi\log(2)+\int_{0}^{2\pi}\log(\sin(t/2))dt\\ &=2\pi\log(2)+2\int_{0}^{\pi}\log(\sin(t))dt\\ &=2\pi\log(2)+2(-\pi \log(2)) \qquad\text{according to Wolfy}\\ &=0\\ \end{array} $
By Googling for "integral with sine and log" I got a number of references to $\int_{0}^{\pi}\log(\sin(t))dt =-\pi \log(2) $ being a result of Euler including this one:
http://www.ams.org/journals/proc/2005-133-05/S0002-9939-04-07863-3/S0002-9939-04-07863-3.pdf
(Added later)
According to that paper, Euler proved his result by using $ \log(\sin x) = -\sum_{n=1}^{\infty} \dfrac{\cos(2nx)}{n}− \log 2 $ and $\int_0^{\pi} \cos(2nx)dx = 0 $.