I know that $$ \int_0^\infty \frac{\log x}{\exp x} = -\gamma $$ where $ \gamma $ is the Euler-Mascheroni constant, but I have no idea how to prove this.
The series definition of $ \gamma $ leads me to believe that I should break the integrand into a series and interchange the summation and integration, but I can't think of a good series. The Maclaurin series of $ \ln x $ isn't applicable as the domain of $ x $ is not correct and I can't seem to manipulate the integrand so that such a Maclaurin series will work.
Another thing I thought of was using $ x \mapsto \log u $ to get $ \int\limits_{-\infty}^\infty \frac{\log \log u}{u^2} \ du $ and use some sort of contour integration, but I can't see how that would work out either.
lemma1: $$\int_{0}^{1}\dfrac{1-e^{-x}}{x}dx-\int_{1}^{\infty}\dfrac{e^{-x}}{x}dx=\gamma$$
pf:use \begin{align}\sum_{i=1}^{n}\dfrac{1}{i}&=\int_{0}^{1}\dfrac{1-t^n}{1-t}dt\\ &=\int_{0}^{n}\dfrac{1-(1-\frac{x}{n})^n}{x}dx \end{align} and $$\ln{n}=\int_{1}^{n}\dfrac{1}{x}dx$$ so $$\gamma=\lim_{n\to\infty}(\sum_{i=1}^{n}\dfrac{1}{i}-\ln{n})=\lim_{n\to\infty}\left(\int_{0}^{1}\dfrac{1-(1-x/n)^n}{x}dx-\int_{1}^{n}\dfrac{(1-x/n)^n}{x}dx\right)$$
so $$\gamma=\int_{0}^{1}\dfrac{1-e^{-x}}{x}dx-\int_{1}^{\infty}\dfrac{e^{-x}}{x}dx=\int_{0}^{1}(1-e^{-x})d(\ln{x})-\int_{1}^{\infty}e^{-x}d(\ln{x})=\cdots=-\int_{0}^{\infty}e^{-x}\ln{x}dx$$