I know that the following complex integral
$$\int \frac1z dz$$
over the path $\frac12+e^{it}$ for $0 \le t \le 2\pi$ should give $2 \pi i$. But I get $0$ instead. Why is that?
My working so far:
- Substituting $z$ for $t$:
$$\int_0^{2\pi} \frac{i e^{it}}{\frac12+e^{it}} dt$$
- Using substitution of $u=\frac12 + e^{it}$:
$$\int_{\frac12+e^{i0}}^{\frac12+e^{i2\pi}} \frac1u du$$
- This integral is
$$\ln|u|$$
- Substitute back $t$ back in:
$$\ln\left|\frac12+e^{it}\right|$$
- Evaluate this between $t=2\pi$ and $t=0$ as specified earlier. $e^{2\pi i} = 1$ and $e^{0 i} = 1$ so the final answer is $\ln\frac32-\ln\frac32=0$.
Why don't I get $2 \pi i$? Thank you.