TITLE: Proofs surrounding Euler's constant
QUESTION [1 upvotes]: Show that 
$$
1 + \frac{1}{2} + \frac{1}{3}  + \cdots + \frac{1}{n} =
\int_{0}^{1}{1 - \left(1 - t\right)^{n} \over t}\,\mathrm{d}t
$$
and hence that Euler's $\gamma$ constant is given by
$$
\gamma =
\lim_{n \to \infty}\left\{%
\int_{0}^{1}\left[1 - \left(1 - {t \over n}\right)^{n}\,\right]
\,{\mathrm{d}t \over t} -
\int_{1}^{n}\left(1 - {t \over n}\right)^{n}\,{\mathrm{d}t \over t}\right\}
$$
then deduce that
$$
\gamma = \int_{0}^{1}\frac{1 - \,\mathrm{e}^{-t} -
\,\mathrm{e}^{-1/t}}{t}\,\mathrm{d}t
$$
For the first part it's pretty obvious that
$$
\int_{0}^{1}{1 - \left(1 - t\right)^{n} \over t}\,\mathrm{d}t =
\int_{0}^{1}{1 \over t}\,\mathrm{d}t -
\int_{0}^{1}{\left(1 - t\right)^{n} \over t}\,\mathrm{d}t
$$
and the first part can easily be integrated to get  $\log\left(t\right)$. 
However, I am having major problems when trying to integrate the second part of the integral. Integration by parts and substitution gets me nowhere, and considering this comes from a complex analysis course, I'm kind of assuming there must be some technique in here that needs to be used, maybe the residue theorem, or perhaps looking at the limit ?.
Thanks in advance !.

REPLY [0 votes]: I have a very simple solution to the first part of your question.
Note the following: 
$$\frac{1-(1-x)^n}{x}=\sum_{k=0}^{n-1} (1-x)^k$$
This can be easily verified using the sum of a geometric series.
So,
$$\int_0^1\frac{1-(1-x)^n}{x}=\sum_{k=1}^n -\frac{1}{k}(1-x)^k\bigg|^{x=1}_{x=0}=\sum_{k=1}^n\frac{1}{n}$$
{"set_name": "stack_exchange", "score": 1, "question_id": 1956100}