Let C be the circle $|z| = 2$ traversed once counterclockwise. By using cauchy’s integral formula, compute $$\int_C \frac {sinz}{(z^2+1)^2}dz$$
I think that the singularities would be at i and -i, because $(z^2+1) = (z+i)(z-i)$. And both i and -i are in C, so I'm not sure how to deal with this. If the numerator was a polynomial, then I would do a partial fraction decomposition and solve it as a sum of integrals, but I can't do this with $sinz$.
Hint:
$\frac{1}{(z^2+1)^2} = \frac{1}{(z-i)^2(z+i)^2} = \frac{i}{4(z+i)}-\frac{1}{4(z+i)^2}-\frac{i}{4(z-i)}-\frac{1}{4(z-i)^2}$
So:
$\frac{\sin(z)}{(z^2+1)^2} = \frac{i\sin(z)}{4(z+i)}-\frac{\sin(z)}{4(z+i)^2}-\frac{i\sin(z)}{4(z-i)}-\frac{\sin(z)}{4(z-i)^2}$
Continue as you originally planned.
For reference: