While I have tried integrating the following integral $$ I = \int_{i\pi}^{3i\pi}\frac{dx}{e^{x} + 1} $$
I am getting zero, which is mostly wrong. Here is my attempt
Integrating I: $$ \int_{i\pi}^{3i\pi}\frac{dx}{e^{x} + 1} $$
Multiplying by $e^{x}$ on both the numerator and denominator, I get $$ \int_{i\pi}^{3i\pi}\frac{e^{x}dx}{(e^{x} + 1)(e^{x})} $$
Taking $u = e^{x} +1$ & $du = e^{x}$
I get the new limits at $u(i\pi)$ and $u(3i\pi)$. Both of which give the value of u at 0.
Hence, $$ \int_{0}^{0}\frac{du}{(u-1)(u)} = 0 ? $$
I know I have made a mistake. Can anyone please show where I have made a mistake and how I can correct it. Thank you.