I'm trying to compute the following integral using the residue theorem: $$\int_{-\infty}^\infty \frac{dx}{x^2-2x+4}$$
I know that this integral is equal to the integral over the upper half plane since the integral over the semi-circle in the upper half plane goes to zero as $R \to \infty$. I'm happy with computing this integral and have found the result to be $\pi/\sqrt{3}$ (which I'm fairly confident is correct).
However, I'm having trouble showing that the integral over the semi-circle in the upper half plane does go to zero. I know that I can use the $Ml$ inequality to show this.
Let the radius of the semi-circle be $R$. So I know that $l$ is $2\pi R$. So then I need to find an upper bound on the modulus of the integrand. This is where I'm stuck. How do I do this?


You maximal value is on the boundary of your semidisk. Take R o infinity and you are ready. $$\frac{1}{2\pi }\left|\int_{\gamma}\frac{1}{z^2-2z+4}\right|\le \frac{2\pi R}{2\pi}\max_{|z|=R}\left|\frac{1}{z^2-2z+4}\right|\le\frac{R}{R^2-2R+4}\le 1/R \to 0 $$ as $R\to \infty$