Evaluate $$\int_{\Gamma} \frac{1}{z^2+1}$$ where $\Gamma=\{z:|z|=2\}$
One way is to use partial fractions and then cauchy integral formula.
The other way is to look at:
$$\int_{\Gamma} \frac{1}{z^2+1}=\int_{\gamma_1}\frac{\frac{1}{z-i}}{z+i}+\int_{\gamma_2}\frac{\frac{1}{z+i}}{z-i}$$
Where $\gamma_1$ is a curve around $i$ and $\gamma_2$ is a curve around $-i$ but in which direction? clockwise? as $\Gamma$ is anti clockwise?
No, it is not a sum. Usually, the meaning of $\int_\Gamma$ with $\Gamma=\{z\in\mathbb{C}\,:\,|z|=r\}$ means that we are integrating along the loop $\Gamma\colon[0,2\pi]\longrightarrow\mathbb C$ defined by $\Gamma(t)=re^{it}$.
In this specific case, the value of the integral will be $2\pi i$ times the sum of the residues of $\frac1{z^2+1}$ at $i$ and $-i$. The first residue is equal to $-\frac i2$ and the second one is equal to $\frac i2$. Therefore, the integral is equal to $0$.