Compute the following integral:
$\int_{-\infty}^{\infty} \frac{1}{(1+x+x^2)^2} dx$. Can some one give me some hints on how to do this?
I tried writing $(1+x+x^2)=f(x)$ and then multiplying and dividing by $\frac{d f(x)}{dx}=1+2x$ so we get $\int_{-\infty}^{\infty} \frac{1}{1+2x} \frac{1+2x}{(f(x))^2} dx $ = $\int_{-\infty}^{\infty} \frac{1}{1+2x} \frac{df(x)}{(f(x))^2} $. Here I tried to use integration by parts but I can't get anywhere.
You could try to complete the square to get $\int_{-\infty}^{\infty} \cfrac{1}{((x+\frac{1}{2})^2+\frac{3}{4})^2} dx$ and then use the substitution $y = x+\frac{1}{2}$. This will give you:
$\int_{-\infty}^{\infty} \cfrac{1}{(y^2+\frac{3}{4})^2} dy$
After this, try the trigonometric substitution $y=\cfrac{\sqrt{3}}{2}\tan{\theta}$.