I want to find the following integral:
$$\int_0^{\infty} \frac{1}{(1+x^n)(1+x²)}.$$
I enter small values of $n$ on Wolfram and it seems like the answer should be $\pi /4$. Can anyone confirm this for any $n$? I try to do fraction decomposition but it gets ugly really fast.
(I think this should have been answered somewhere but I really can’t find it. Apologize in advance if this is a duplication)