I was playing around with the integral: $$\int_{-\infty}^{\infty} \frac{\log(1+e^{-z})}{1+e^{-z}}dz$$
I couldn't find a way of solving it, but I used WolframAlpha to find that the integral evaluated to $\zeta(2)$ or $\frac{\pi^2}{6}$.
How would I go around finding the solution?
My experience with integrals is very limited, but I think the solution can possibly be found using the polylogarithm (saw a similar integral use it), but I don't know much of the function so maybe someone on here could help me.
I initially tried rewriting the $\frac{1}{1+e^{-z}}$ as a geometric series, but I don't think that works.
Then I looked at finding the poles and drawing a contour, but I also don't think that works.
Is there some identity that can be used here, which I happen not to know?
Any help is appreciated, especially if you could show your working out step by step.
My immediate thought is to let $$ u = 1+e^{-z} \implies du = -e^{-z} dz = (1-u)dz $$ so $$ \mathcal{I}:= \int_{-\infty}^{\infty} \frac{\log(1+e^{-z})}{1+e^{-z}}dz = \int_{\infty}^{1} \frac{\log(u)}{u} \frac{du}{1-u} = \int_{1}^{\infty} \frac{\log(u)}{u(u-1)} du $$ Now let $$ v = \log(u) \implies dv = \frac 1 u du $$ giving us a perhaps more familiar integral: $$ \mathcal{I} = \int_{0}^{\infty} \frac{v}{ e^v-1 } dv = \int_{0}^{\infty} \frac{ve^{-v}}{ 1-e^{-v} } dv $$ Apply the geometric series to this: assuming the interchange of sum & integral is valid, $$ \mathcal{I} = \int_{0}^{\infty} ve^{-v} \sum_{n=0}^\infty e^{-nv} dv = \sum_{n=0}^\infty \int_{0}^{\infty} ve^{-v} e^{-nv} dv = \sum_{n=0}^\infty \int_{0}^{\infty} v e^{-(n+1)v} dv = \sum_{n=1}^\infty \int_{0}^{\infty} v e^{-nv} dv $$ The remainder is a standard integral. Apply integration by parts. $$ \mathcal{I} = \sum_{n=1}^\infty \frac{1}{n^2} = \zeta(2) $$