$$\int_{-\infty}^\infty\frac{e^{-t}}{1+e^{-2t}}\ dt$$
I have the antiderivative as
$$-\arctan e^{-t}$$
but when I do it out, I end up getting $$-\frac\pi4 + 0 - \frac\pi2+\frac\pi4$$
However, I understand that the answer should be $$\frac{\pi}2$$
Did I get the antiderivative wrong or something?
Nope. Just a sign error. $$\int_0^\infty+\int_{-\infty}^0=0-(-\pi/4)+(-(-\pi/4)-0)=\pi/2.$$