Lemma (integral form of the winding number)

Let $γ: [a,b]\to γ$ be a closed curve and $w\not\in γ$. Then the winding number is $$ \begin{align*} I(γ; w) = \frac{1}{2πi} \oint_{γ} \frac{\d z}{z - w}. \end{align*} $$

Proof