$$I = \int_0^\infty\frac{1}{x^4+x^2+1}dx$$ I have evaluated the integral directly and know the result is $\frac{\pi}{2\sqrt3}$ but I must be messing up my residues or perhaps my path of integration when attempting the contour evaluation. When attempting contour I arrive at $\frac{\sqrt3\pi}{3}$
Edit: here is the way I did it to start.
$$J'=I; let\space x=1/y$$ A few algebraic steps and subbing back to x $$J'=\int_0^1\frac{x^2}{x^4+x^2+1}dx$$ So that $I=\int_0^1\frac{x^2+1}{x^4+x^2+1}dx$ Which can be solved via trig. I used some computer software to confirm the solution but I had an additional approach that was more careful which provided the same answer. My residue work was rather sloppy as I've done very little with contour integrations. I will post it as well if needed.
Hint:
$$2I=\int_{-\infty}^{+\infty}\frac1{x^4+x^2+1}\ dx$$
Use a semi-circle contour and notice that
$$f(z)=\frac1{z^4+z^2+1}$$
$$\operatorname{Res}(f,e^{\pi i/3})=\frac1{12}(-3-i\sqrt3)$$
$$\operatorname{Res}(f,e^{2\pi i/3})=\frac1{12}(3-i\sqrt3)$$