<s>[INST] Compute $ \int_{-\infty}^{\infty} \frac{x^2}{(1+x^2)^2} dx$ Compute $$ \int_{-\infty}^{\infty} \frac{x^2}{(1+x^2)^2} dx$$
Of course we have $$ \int_{-\infty}^{\infty} \frac{x^2}{(1+x^2)^2} dx = 2 \int_{0}^{\infty} \frac{x^2}{(1+x^2)^2} dx = 2 \int_{0}^{\infty} \left( \frac{x}{1+x^2}  \right) ^2 dx =  \lim_{ A \to \infty }  \int_{0}^{A} \left( \frac{x}{1+x^2}  \right) ^2 dx $$
I think that firstly I should compute $ \int \left( \frac{x}{1+x^2}  \right) ^2 dx $ but I don't have idea.
 [/INST] $$\frac{\pi}{t}=\int_{-\infty}^{\infty} \frac{dx}{t^2x^2+1}\Rightarrow\frac{\pi}{t^2}=\int_{-\infty}^{\infty}\frac{2tx^2}{(t^2x^2+1)^2}\,dx\Rightarrow \frac{\pi}{2}=\int_{-\infty}^{\infty}\frac{x^2}{(x^2+1)^2}\,dx$$
</s>