Evaluate $$\int_{\gamma}\frac{z^5}{z^6-1}$$ where $\gamma=\{(x,y)\in\mathbb{R^2}\,|\,x^2+4y^2=16\}$.
How should I approach this? first to find the singularities by $z^6-1=0\iff z^6=1$
And then to plug each singularity in $\{(x,y)\in\mathbb{R^2}x^2+4y^2=16\}$?
Apply the argument principle: define $f(z)=z^6-1$. Then your integral is $\frac16\int_\gamma\frac{f'(z)}{f(z)}\,\mathrm dz$. By the argument principle, this is equal to $\frac16\times2\pi i$ times the number of zeros minus the number of poles of $f$ in the region of $\mathbb C$ enclosed by $\gamma$. Since there are six zeros and no poles there, the answer is $2\pi i$.