I have been trying to do this problem for a while:
Use Cauchy's integral formula to evaluate $$\int_{-\infty}^\infty \frac{t\operatorname{sin}(\pi t)}{t^2+4}dt.$$
I have factored it into $$\int_{-\infty}^\infty \frac{t\operatorname{sin}(\pi t)}{t^2+4}dt=\frac{1}{2i}\left(\int_{-\infty}^\infty \frac{te^{i\pi t}}{t^2+4}dt-\int_{-\infty}^\infty \frac{te^{-i\pi t}}{t^2+4}dt\right).$$
So for first integral I am supposed to split it up into $\oint f dz - \int_{\gamma}f dz$ where $f$ is the integrand above and $\Gamma$ is a circle of radius $R$ in the upper half plane (ie $\gamma(t)=Re^{i\theta}:0\leq\theta<\pi$). But I can't seem to evaluate the second integral in this formula - the $\int_{\gamma}f dz$.
I'm sure this is obvious but I could use some help.