Is there a way to solve the integral of $$\int_{-\infty}^\infty \frac{e^{ax}}{1+e^x}dx $$ for $$a\in (0,1)$$
without using the rectangular region like in this post but still using a contour integral?
Perhaps using a semicircular region, circular region, or freshnel contour perhaps? I just don't have a lot of experience with the rectangular region problems.
Thanks.
After substituting $x\mapsto\log(x)$, we use the keyhole contour from this answer with $n=a-1$ and $m=1$: $$ \begin{align} \int_{-\infty}^\infty\frac{e^{ax}}{1+e^x}\,\mathrm{d}x &=\int_0^\infty\frac{x^{a-1}}{1+x}\,\mathrm{d}x\\ &=\pi\csc(\pi a) \end{align} $$