## University Calculus: Early Transcendentals (3rd Edition)

$$\int \frac{dz}{1+e^z}=z-\ln(1+e^z)+C$$
$$A=\int \frac{dz}{1+e^z}$$ We set $u=e^z$ Then $$du=e^zdz=udz$$ $$dz=\frac{1}{u}du$$ Therefore, $$A=\int\frac{\frac{1}{u}}{1+u}du=\int\frac{1}{u(1+u)}du$$ $$A=\int\frac{(1+u)-(u)}{u(1+u)}du=\int\Big(\frac{1+u}{u(1+u)}-\frac{u}{u(1+u)}\Big)du$$ $$A=\int\Big(\frac{1}{u}-\frac{1}{1+u}\Big)du$$ $$A=\ln|u|-\ln|1+u|+C$$ $$A=\ln|e^z|-\ln|1+e^z|+C$$ Since $e^z\gt0$ for all $z$, we have $|e^z|=e^z$ and $|1+e^z|=1+e^z$ $$A=\ln e^z-\ln (1+e^z)+C$$ $$A=z-\ln(1+e^z)+C$$