These are the steps in order to get the Euler-Mascheroni constant $\gamma$ there were steps before where I'm starting but I didn't have questions about the justifications of those so I didn't include them.
$\int^1_0\ln(x)d(e^{-x}-1)+\int^\infty_1\ln(x)de^{-x}$
(1)=$\int^1_0\frac{1-e^{-x}}{x}dx-\int^\infty_1\frac{e^{-x}}{x}dx$
(2) $=\lim_{n\rightarrow\infty}[\int^1_0 \frac{1-(1-\frac{x}{n})^n}{x}dx-\int^n_1\frac{(1-\frac{x}{n})^n}{x}dx]$
(3)$=\lim_{n\rightarrow\infty}[\int^\frac{1}{n}_0\frac{1-(1-t)^n}{t}dt-\int^1_\frac{1}{n}\frac{(1-t)^n}{t}dt]$
(4)$=\lim_{n\rightarrow\infty}[\int^\frac{1}{n}_0\frac{1-(1-t)^n}{t}dt+\int^1_\frac{1}{n}[\frac{1-(1-t)^n}{t}-\frac{1}{t}]]dt$
(5)$=\lim_{n\rightarrow\infty}[\int^1_0\frac{1-(1-t)^n}{t}dt-\int^1_{\frac{1}{n}}\frac{1}{t}dt]$
(6) $=\lim_{n\rightarrow\infty}[\int^1_0\frac{1-t^n}{1-t}dt+ln(\frac{1}{n})]$
(7) $=\lim_{n\rightarrow\infty}[\int^1_0(t^{n-1}+t^{n-2}+...+t+1)dt+\ln(\frac{1}{n})]$
(8)$=\lim_{n\rightarrow\infty}(\frac{1}{n}+\frac{1}{n-1}+...+\frac{1}{2}+1-\ln(n)):=\gamma$
My rational:
(1) I don't understand this at all. Somehow, two sides that were identical are different. It's upsetting.
(2)$\lim_{n\rightarrow\infty}(1-\frac{x}{n})^n=e^{-x}$ so it's just a substitution.
(3) I don't like this one either. It doesn't seem like $\frac{x}{n}=t$ and $x=t$ is possible like it looks here. Even with the change of the integration domain.
(4) Just an arithmetic thing. No worries here.
(5) A change of domain incurred in the first part but the inside of the integral did not change. I suppose it's because you moved part of the second part over but I don't understand how in the world you would do that.
(6)The second part looks golden. The first part is not the same so I don't get that.
(7) We're just writing the first part out. This is good.
(8) And I'm back to not understanding.
Any help is appreciated!