Use Cauchy's integral formula to compute the following:
$$\int \limits_{\Gamma} \frac{\cos(z)+i\sin(z)}{(z^2+36)(z+2)}dz$$ where $\Gamma$ is the circle of centre $0$ and radius $3$ traversed in the anticlockwise direction.
I know you can factor the bottom further but I it wont work because when you put it into partial fractions, they don't turn out to be interior points.
Since the function $f(z) := [\cos(z) + i\sin(z)]/(z^2 + 36)$ is analytic inside and on $\Gamma$, and $-2$ lies inside $\Gamma$, by Cauchy's integral formula, the integral evaluates to
$$2\pi i f(-2) = 2\pi i \frac{\cos(-2) + i\sin(-2)}{40} = \frac{\pi ie^{-2i}}{20}.$$