Whittaker & Watson Ch. 6. Problem 7. is a result apparently due to E. Amigues, that if $C$ is a circle in the complex plane centred at $a$, $z\in C,$ and the function $f$ is analytic on and inside $C$ except at some number of poles, then "if to each element of $\gamma$ be attributed a mass proportional to the corresponding element of $C,$ the centre of gravity of $\gamma$ is the point $r,$ where $r$ is the sum of the residues of $f(z)/(z-a)$ at its poles in the interior of $C.$"
I can sort of intuitively see where this result is coming from, since if $f$ is regular then $r=f(a)$ follows immediately from Cauchy's formula, and I suppose the idea is that $f$ just twists the circle around a bit in such a way that the centre of the circle is mapped into the centre of gravity of the curve $\gamma,$ but I'm not quite sure how to explicitly go about showing that the centre of gravity should be the sum of the residues of $f(z)/(z-a).$
Just looking for a helping hand. Thanks.