Methods of evaluating $$\int_0^{\infty}\frac{{\rm d}x}{x^2+1}$$
Firstly i know that directly: $$\int_0^{\infty}\frac{{\rm d}x}{x^2+1}=\arctan x\Bigg|_{0}^{\infty}=\frac{\pi}2$$ Also we can use the contour integral: $$\int_{\text{Line}}\frac{{\rm d}z}{z^2+1}+\underbrace{\int_{\text{Arc}}\frac{{\rm d}z}{z^2+1}}_{\text{zero}}=2\pi {\rm i}\;\substack{\large \text{Res}\\{z=i}}\;\frac{1}{z^2+1}=2\pi{\rm i}(1/(2i))=\pi$$ Since the line extends in both directions but we need only the positive side $$\int_0^{\infty}\frac{{\rm d}x}{x^2+1}=\frac{\pi}2$$ Now I have two questions:
- What methods can be used to evaluate the residue, can someone be detailed enough to explain in brief all useful? Note that I have too listed them below. Actually explain for the function $$\frac1{(z^2+1)^2}$$ at $z=i$
- What other methods for evaluating the integral?
Residue Methods I would use:
Laurent series, Some theorem which says residue for $\frac{\phi(z)}{(z-z_0)^m}$ at $z_0$ is $\frac{\phi^{(m-1)}(z_0)}{(m-1)!}$, for pole of order 1 in a zero of the denominator of rational function we can diffrentiate the denominator once.