I found this on some comprehensive exam.
Prove that $\int_{-\pi}^{\pi} \ln |1 - e^{i\theta}| d\theta = 0$.
I was wondering would standard approach work? By that I just mean splitting the integerl up into $\int_{-\pi}^{0} + \int_{0}^{\pi}$, and then use $$\ln(1 - e^{i\theta}) = -\sum\frac{e^{i\theta n}}{n}.$$
I found that the first integral yields $-\frac{2}{i n^2}$ and the second yields the negative of that, which yields $0$. But I feel like this is a real-analysis approach.
Can someone give me some insight?
Assume $|a|<1$, $\theta \in (-\pi,\pi)$. You may write $$ \int_{-\pi}^{\pi}\ln(1 - ae^{i\theta}) \:d\theta= -\int_{-\pi}^{\pi}\sum_{n\geq1}a^n\frac{e^{i\theta n}}{n}\:d\theta=-\sum_{n\geq1}\frac{a^n}n\int_{-\pi}^{\pi}e^{i\theta n}\:d\theta=-\sum_{n\geq1}\frac{a^n}n \times 0=0, $$ where the termwise integration may be justified by the following uniform bound: $$ \left|\sum_{n=1}^{\infty}\frac{a^n}{n} e^{i\theta n}\right|\leq \sum_{n=1}^{\infty}\frac{|a|^n }{n}=-\log(1- |a|)<\infty. $$