So, I've got the following function: $f(x) = sin(\frac{1}{z-2}) + \frac{1}{z^4+1}$
I'm integrating over a circle centered at the origin with radius between 1 and 2, so some singularities are inside the circle and some are outside. I can't think of how to do this integral except with the cauchy formula, but I can't get it into the correct form.
Thanks for the help.
Singularities are at $z=2,\frac{\sqrt{2}}{2}+i\frac{\sqrt{2}}{2}, -\frac{\sqrt{2}}{2}+i\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}-i\frac{\sqrt{2}}{2}, -\frac{\sqrt{2}}{2}-i\frac{\sqrt{2}}{2}$.
Then use Cauchy Residue Theorem, $\int_C f(z)dz=2\pi i \sum \text{Res}(z_i)$.
These residues are simple poles so I suggest using $\text{Res}(z_i)=\lim_{z\to z_i}(z-z_i)f(z)$.
Edit: The singularity at $z=2$ will never be inside your disk so do not use the residue of this singularity in your sum. The other singularities are all on the unit circle so they will always be in your disk.