Evaluating contour integrals I am looking over a past paper for which I do not have the mark scheme for and the question asks to evaluate the following contour integrals: $$\int_{|z|=2} |z+1|^2dz$$ $$\int_{|z|=2} (z+1)^2|dz|$$ I can't see a way to use Cauchy's integral formula and I am unsure how I would go about this using a substitution, help greatly appreciated.
 A: I don't think you've got any choice but to parametrise the curve, short of knowing a few tricks. For example, the first one is
$$ \int_{|z|=2} (\lvert z \rvert^2 + z + \bar{z} + 1) \, dz. $$
The last term, $1$, is analytic, so integrates to zero on a closed contour by Cauchy's theorem. $z$ is likewise analytic and so integrates to zero. $\lvert z \rvert^2$ is constant on the contour, equal to $4$, so the integral is zero again because a constant is analytic. Lastly, in the same way
$$ \bar{z} = \frac{4}{z}, $$
so the only thing left in the integral is
$$ 4\int_{|z|=2} \frac{dz}{z} = 4 \cdot 2\pi i $$
by the residue theorem (or the Cauchy integral formula, if you prefer). You might notice this is $2i$ times the area inside the circle of radius $2$; a nice thing about $\oint_{\gamma} \bar{z} \, dz$ for simple $\gamma$ is that it gives you $2i$ times the area inside $\gamma$; this is quite easy to prove using Green's theorem.

So the first one was possible to do without parametrising the contour, but I don't think this is possible for the second one: $\lvert dz \rvert = 2 \, d\theta$, where $0\leq\theta<2\pi$ and that's basically the only way to go: $\lvert dz \rvert$ is arc-length, so it's an arc-length integral, not a complex one. We have
$$ (1+z)^2 = (1+2e^{i\theta})^2 = 1+4e^{i\theta}+4e^{2i\theta}, $$
and of course the second two terms integrate to zero over $[0,2\pi)$, so the integral is $1 \cdot \int_0^{2\pi} 2d\theta = 4\pi$.
