Hi! I am having a hard time with residues. I understand the formal definition of a residue, but anything past that and I am struggling. My course lecturer has a very confusing way of organising the course material and it is very hard to comprehend so was wondering if anyone could help with these questions or direct me to another source which would help explain what to do?

part i: Calculate res(f, 0) of an even meromorphic function f which has a (unspecified) pole at 0.

part ii: Can anything be deduced about res(f,0) for an odd meromorphic function f with an unspecified pole at 0? Justify your answer.

Part iii:

Find $\displaystyle \int^{\infty}_{-\infty}\frac{cosx}{x^2 + 2x + 4}\,dx$ and $\displaystyle \int^{\infty}_{-\infty}\frac{sinx}{x^2 + 2x + 4}\,dx$

Any help would be much appreciated.