$$ K = \int_{0}^{\infty}\frac{1}{x^{4}+x^{2}+1}dx $$
I am supposed to use contour integration to solve this, but I can't even determine the singularities. The denominator doesn't have any that I can see. From what I understand about contour integration, isn't the solution $ 2\pi i\sum residues $ ? Perhaps I am missing something?
You can also deal with this integral without using residue theory.
Let
\begin{align*} I &=\int \frac{1}{1+x^{2}+x^{4}} \ dx \\ &= \frac{1}{2} \cdot \int \frac{2}{1+x^{2}+x^{4}} \ dx \\ &= \frac{1}{2} \cdot \int \frac{(1-x^{2}) + (1+x^{2})}{1+x^{2}+x^{4}} \ dx \\ &=\frac{1}{2} \cdot \int\frac{1-x^{2}}{1+x^{2}+x^{4}} \ dx+ \frac{1}{2} \cdot \int\frac{(1+x^{2})}{1+x^{2}+x^{4}} \ dx \\ &= I_{1} + I_{2} \end{align*}
Now to evaluate $I_{1}$ do the following
\begin{align*} I_{1} &=-\frac{1}{2}\cdot\int \frac{x^{2}-1}{x^{4}+x^{2}+1} \ dx \\ &= -\frac{1}{2}\cdot \int\frac{1-\frac{1}{x^2}}{x^{2}+1+\frac{1}{x^2}} \ dx \\ &=-\frac{1}{2} \cdot \int \frac{1-\frac{1}{x^2}}{\left(x+\frac{1}{x}\right)^{2}-1} = -\frac{1}{2} \cdot \int \frac{dt}{t^{2}-1} \end{align*}