The mathematical underpinings of the winding number formula consist of Cauchy's Theorem and a calculation. The calculation is encapsulated in the following lemma.
We also have:
Using Cauchy's theorem, it is not too difficult to prove the following theorem.