Q: Where $C$ is the closed contour around the complex plane circle $|z|=1$ in the positive orientation, calculate:
$$ \int_C \frac{z + i}{z} \, dz $$
Is this simply zero? If an antiderivative exists, the integral of a closed contour is always zero, right? That seems too easy.
The antiderivative would be $F(z) = z + i \log z$
Using the parametrization $$ \gamma:[0,2\pi] \to \mathbb{C}, \quad \gamma(t)=e^{it} $$ of the unit circle, we get \begin{eqnarray} \int_C\dfrac{z+i}{z}\,dz&=&\int_C(1+iz^{-1})\,dz=\int_0^{2\pi}(1+ie^{-it})ie^{it}\,dt=\int_0^{2\pi}(-1+ie^{it})\,dt\\ &=&\left[-t+e^{it}\right]_0^{2\pi}=-2\pi \end{eqnarray}