How to evaluate $\displaystyle \int_0^{2 \pi} \ln(1+e^{i \theta}) d\theta$. W|A is giving $0$. How do I get this result if this is correct?
Attempt: let $z = e^{i \theta}$, then we have
$$\frac{1}{i}\oint_{|z|=1} \frac{\ln (1 +z)}{z} dz $$
Expading log at $z=0$ we get analytic function whose contour integration is zero. It this correct?