TITLE: Is it possible to compute $\int_{0}^{\infty} \frac{1}{x^a + 1} dx$ without the residue theorem or Euler's reflection formula.
QUESTION [9 upvotes]: I've been trying to find a way to compute the integral
$$\int_{0}^{\infty}\frac{1}{x^a + 1} dx, \quad a > 1$$
without having to resort to the heavy machinery of complex analysis. I've found two methods to compute this integral but they both use complex. One way is just to use contour integration on the slice of pie with angle $2\pi/a$ and apply the residue theorem, the other method uses u-substitution to turn this integral into the beta function
$$\frac{1}{a}B\left(1/a,1-1/a\right) = \frac{1}{a}\Gamma(1/a)\Gamma(1-1/a)$$
and from here you can use Euler's reflection formula to get the solution. Is there any way to analyze this integral without referencing either the residue theorem or Euler's reflection formula?

REPLY [4 votes]: For any $b\in(0,1)$, let
$$ f(b) = \int_{0}^{+\infty}\frac{dx}{x^{1/b}+1} = b\int_{0}^{+\infty}\frac{x^b}{x(x+1)}\,dx=b\int_{0}^{1}\frac{x^b+x^{1-b}}{x(x+1)}\,dx. $$
From the representation in the middle it is clear that $g(b)=\frac{f(b)}{b}$ is a log-convex function on $(0,1)$; from the last representation it is clear that $g(b)=g(1-b)$. For any $c\in\left(-1,1\right)$, let
$$ h(c) = g\left(\frac{1+c}{2}\right) = \int_{0}^{1}\frac{x^{1/2-c/2}+x^{1/2+c/2}}{x(x+1)}\,dx \stackrel{x\mapsto x^2}{=} 2\int_{0}^{1}\frac{x^{c}+x^{-c}}{1+x^2}\,dx\stackrel{x\mapsto\exp(-u)}{=}\int_{0}^{+\infty}\frac{\cosh(cu)}{\cosh(u)}\,du.$$
We have that $h(c)$ is an even function and an analytic function over $(-1,1)$. For any $n\geq 0$ we have
$$ h^{(2n)}(0)=\int_{0}^{+\infty}\frac{u^{2n}}{\cosh(u)}\,du=2\int_{0}^{+\infty}u^{2n}\sum_{k\geq 0}(-1)^k e^{-(2k+1)u}\,du = (2n)!\sum_{k\geq 0}\frac{(-1)^k}{(2k+1)^{2n+1}} $$
and
$ \frac{h^{(2n)}(0)}{(2n)!} = \beta(2n+1)$. In particular if we know the ordinary generating function for the Dirichlet $\beta$ function we know $h(c)$ (then $g(b)$ and $f(b)$) and vice-versa. Luckily the OGF of $\beta$ is related to the EGF of Euler zig-zag numbers, which is fairly well-known (thanks to robjohn) and leads us to
$$ h(c)= \frac{\pi}{2\cos\frac{\pi c}{2}}\quad\Longrightarrow\quad f(b)= \frac{\pi b}{\sin(\pi b)}\quad\Longrightarrow\quad \int_{0}^{+\infty}\frac{dx}{x^a+1} = \frac{\pi}{a\sin\frac{\pi}{a}}.$$