I have to calculate real integral $\displaystyle \int_{-\infty}^\infty \frac{e^{cx}}{1+e^x} \, \text{d}x$ for $c \in (0,1)$. I have also hint, to integrate over the squere, which consists of $x$ axis, 2 lines paralel to $y$ axis, and line with $z=x+2\pi i$, for real $x$.
I think that idea is to use Residue theorem. I think, that for the function $\frac{e^{cz}}{1+e^z}$, all singularities are $z=\pi i+2k\pi i$, so the only one within the area is $2 \pi i$. But I am not sure how to calculate residue in this point, neither how to evaluate other $3$ integrals on rectangle. I have concluded, that both integrals on the vertical line cancel each other, becouse: $$ \lim_{A \to \infty} \int_0^{2\pi} \frac{e^{cA}e^{ix}}{1+e^Ae^{ix}} \, \text{d}x=0 $$ and $$ \lim_{A \to \infty} \int_{2\pi}^0 \frac{e^{-cA}e^{ix}}{1+e^{-A} e^{ix}} \, \text{d}x=0 $$ How to determine integral on the other horizontal line?