I need to check something that I think I got wrong at the first try. If $$ f(z) = \frac{1+z^2}{1-\cos{2\pi z}} $$ Find $$ I = \frac{1}{2\pi i } \oint_C \frac{f'(z)}{f(z)} dz $$ where $ C$ is the circle around $|z| = \pi $
I used the argument theorem, $$ \frac{1}{2\pi i }\oint_C \frac{f'(z)}{f(z)} dz = N - P $$ where $N$ is the sum of the order of the zeros, and $P$ is the sum of the order of poles inside the countour.
Zeros of $ f(z)$ are $ i, -i$, both or order $1$, then, the poles of $f(z)$ are $-3,-2,-1,0,1,2,3$. While doing my exam, I thought they were orden $1$ each one, so the integral would be $2-7 = -5$. But I think now, If I expand cosine, I would get $$\frac{1+z^2}{1- (1-\frac{z^2}{2!} +\frac{z^4}{4!} + \cdots )} =\frac{1+z^2}{ \frac{z^2}{2!} -\frac{z^4}{4!} + \cdots } $$ So, the pole should be now order $2$, so the integral should be $2 - 14 = -12$ $$I = -12$$ Is it right now or is there anything else I'm missing?