I've been looking at the following integral, and trying to solve it through series:
$$\int_0^\infty \frac{x}{e^x-1} dx$$
I tried expanding out $e^x-1$:
$$\int_0^\infty \frac{x}{x+x^2/2!+x^3/3!+x^4/4!+\cdots} dx$$
but I do not know how to continue from there; I feel like it would have something to do with long division, but I don't know how.
I also tried the substitution
$$t=e^x-1$$ $$dt=e^xdx$$ $$x=\ln(1+t)$$
So after multiplying the integrand by $1 = e^x/e^x$ and substituting I got
$$\int_0^\infty \frac{\ln(1+t)}{t(1+t)}dt$$
I tried using series as well, but I was stuck after
$$\int_0^\infty \frac{t-t^2/2+t^3/3-t^4/4+\cdots}{t(1+t)}dt$$ $$\int_0^\infty \frac{1}{t+1}-\frac{t}{2(t+1)}+\frac{t^2}{3(t+1)}-\frac{t^3}{4(t+1)}+\cdots dt$$
I know that it is supposed to equal $\frac {\pi^2}{6}$, so I know that after doing everything it should come out to $\frac{1}{1^2}+\frac{1}{2^2}+\frac{1}{3^2}+\cdots$, but I do not know how to get there.
Thanks!
P.s. Wolfram Alpha gives a closed form for the antiderivative of $\frac{x}{e^x-1}$ as $\operatorname{Li}_2(e^x)-\frac{x^2}{2}+x\ln(1-e^x)+c$