I am having a tough time finding the residue for a function, suppose my test function is
$$\frac{z^2}{{(z^2+a^2)}^2}$$
while I could determine the poles to be $+-ai$ and I know the formula to find the residue to be
$$a_{-1}= \frac{1}{2\pi i} \int f(z) dz$$
but I am confused, if I have to integrate the aforementioned function now and divide it by $2\pi i$ to find the residue or what. nay hint or suggestion would be appreciated .