I have to evaluate the following integral using the residue theorem. $$ \int_{|z-i|=3} \frac {dz}{(z^2+2)(z+1)}.$$ First I found that there are three singularities, all 1st order poles. These are at $-1$, $\sqrt2i$ and $-\sqrt2i$.
My path is a circle centered at $i$ with a radius of 3. This means that I should sum up the residue of all three residues and none of them will be ignored correct?
I'm learning the residue theorem now. When I'm applying it to one singularity at a time, will I be using the whole polynomial $ \frac 1 {(z^2+2)(z+1)}$ and applying the shortcut where I take the derivative of the bottom and leave the numerator unchanged and then plug in my singularity value to calculate the residue at that point? Thanks!