I got the improper integral: $$ \int_0^\infty \frac{x^2}{x^4+1} \, dx $$
On one hand one could of course just evaluate the integral and then apply limits. However, it's not always practical to find an antiderivative. I got a hint that one can trace back improper integrals to sequences and thus just calculate the limit of a sequence which is way easier, could someone explain to me how this works or link me to some theorems? Thanks.
The value of this integral is finite because $f(x):={ \frac { x^ 2 }{ x^ 4+1 } }$ is continuous in $\mathbb{R}$ and $f(x)\sim 1/x^2$ as $x$ goes to $\pm\infty$.
It can be evaluated by using Residue Theorem: $$\int _{ 0 }^{ \infty }f(x)dx= \frac{1}{2}\int _{ -\infty }^{ \infty }f(x)dx= \pi i(\mbox{Res}(f,e^{i\pi/4})+\mbox{Res}(f,e^{i3\pi/4}))\\= \pi i\left(\frac{1}{4e^{i\pi/4}}+\frac{1}{4ie^{i\pi/4}}\right)= \frac{\pi}{2\sqrt{2}}.$$
Alternatively, you can integrate $f$ by noting that $$x^4+1 =(x^2+1)^2 - (\sqrt2x)^2 = (x^2+\sqrt2x+1)(x^2-\sqrt2x+1)$$ Then, by using partial fraction decomposition, we get $$f(x)=\frac{1}{2\sqrt{2}}\left(\frac{x}{x^2-\sqrt2x+1} -\frac{x}{x^2+\sqrt2x+1}\right).$$