The following question from $\textit{Statistical Inference }$by Casella & Berger was given to me on an assignment last semester. On the surface, it appeared to be a straight-forward question about transformations, but I stumbled across an integral I could not understand. Here is the question:
If $X \sim \text{exponential(1)}$, show that $Y=\mu-\beta \log X$ has the $\text{Gumbel$(\mu,\beta)$}$ distribution, where $-\infty<\mu<\infty$ and $\beta>0$.
We have that $f_X(x)=e^{-x}$ for $x \geq 0$. Now, let $Y=\mu-\beta \log X$. Then, $g(x)=\mu-\beta \log x$, which is monotone on $0 I then attempted to find the mean of the distribution as follows.
\begin{eqnarray*}
\text{E}(Y)&=& \frac{1}{\beta}\int_{-\infty}^\infty ye^{-e^{\frac{\mu-y}{\beta}}}e^{\frac{\mu-y}{\beta}}dy \hspace{0.5in} \text{Let $u=e^{\frac{\mu-y}{\beta}} \implies du=-\frac{1}{\beta}e^{\frac{\mu-y}{\beta}}dy$} \\
&=& \int_0^\infty \left(\mu e^{-u}-\beta e^{-u}\log u \right)du=\mu \int_0^\infty e^{-u}du-\beta\int_0^\infty \left(e^{-u}\log u\right) du \\
&=& \mu-\beta\int_0^\infty \left(e^{-u}\log u\right) du
\end{eqnarray*}
According to Wikipedia, the mean is given by $\mu+\beta\gamma$, where $\gamma\approx 0.5772$ is the Euler-Mascheroni constant. Therefore, the last integral above is equal to $-\gamma$, and indeed, that is the answer Wolfram|Alpha provides. I am wondering if there is any way to solve the integral $I=\int_0^\infty (e^{-u}\log u) du$ using standard methods. I tried making every substitution I could think of and kept getting stuck. I even showed this to my instructor; he was not able to show that it equals $-\gamma$ either. I should also mention that prior to doing this question, I had never heard of the Euler-Mascheroni constant. Any help would be appreciated. Thank you!