Consider the problem of calculating $\int\limits_\gamma \frac{1}{z} \ dz$ where $\gamma$ is the circle given by $|z-1| = 2$. This encloses the singularity so by Cauchy's residue theorem the integral equals $2\pi i$. We now try and directly calculate this integral by the substitution $z = 1+2e^{i\theta}$ which gives us $$2\pi i = \int\limits_0^{2\pi} \frac{ie^{i\theta} \ d\theta}{e^{i\theta}+\frac{1}{2}}$$
How can I do the integral directly without invoking any powerful theorems (i.e no power series etc.)? Essentially I am asking how to calculate the contour integral around a circle not centred at a branch point.
$$z=1+2e^{i\theta}\implies dz=2ie^{i\theta}d\theta\implies$$
$$\oint_{|z-1|=2}\frac{dz}z=\int_0^{2\pi}\frac{2ie^{i\theta}d\theta}{1+2e^{i\theta}}=\int_0^{2\pi}\frac{d(1+2e^{i\theta})}{1+2e^{i\theta}}=\left.\mathrm{Log}\left(1+2e^{i\theta}\right)\right|_0^{2\pi}=$$
$$=\left[\log|1+2e^{i\theta}|+i\arg(1+2e^{i\theta})\right]_0^{2\pi}=\log3+\phi i-(\log3+(\phi-2\pi)i)=2\pi i$$
In the last calculation we had to add $\;-2\pi\;$ to the angle $\;\phi\;$ of $\;1+2e^{i\theta}=\;$ the logarithm's argument as we went around zero (we first evaluate it at $\;2\pi\;$ and then went back around a circle to angle zero)