I am trying to solve the following integral using a contour (large semi-circle connected to smaller semi-circle in the upper-half plane): $$\int_0^{\infty} \frac{\log^4(x)}{1+x^2} dx.$$
I have split the contour into 4 parts - the large semi-circle, the small semi-circle, the part on the negative real axis and the part on the positive real axis.
The integral of the function over the contour is $2\pi i \sum Res(f)$, which is $\pi^5$. The function has poles: $i$ and $-i$, each of order $1$, but $i$ is the only pole contained in the contour.
The integral over the large semi-circle is $0$ as the large radius approaches infinity and the integral over the small semi-circle is $0$ as the small radius approaches $0$.
I take the real part of both sides and the following is left:
$$ \pi^5 = 2\int_0^{\infty} \frac{\log^4(x)}{1+x^2} dx + \int_{-\infty}^0 \frac{-6\pi^2\log^2(x) + \pi^4}{1+x^2} dx $$
My final answer is $5\pi^5/8$, but the correct answer is $5\pi^5/32$.
Any suggestions? Thank you!