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.
To simplify, we can talk about the same integral around the origin. I would first note that transforming $t$ to $u(t)$ where $u(t)=z(t)$ is equivalent to evaluating the original integral in terms of $z$ without transforming it.
So why can we not just take
$\oint_C \frac{1}{z}\,dz = \log(b)- \log(a)$ where $a = e^{0i}=1, b=e^{2 \pi i}=1$ and get $\log 1 - \log 1 = 0$?
The error is that in order to use the fundamental theorem for a complex function, we need to have a holomorphic antiderivative, and $\log z$ is not holomorphic- it is multivalued. A correct calculation should take that into account:
$\oint_C \frac{1}{z}\,dz = \log(e^{2 \pi i})- \log(e^{0 i}) = 2 \pi i -0 = 2 \pi i$