The Euler–Mascheroni Constant

Two quantities both diverge, yet the gap between them settles at one value. That gap is the Euler–Mascheroni constant.

The harmonic numbers and the logarithm both grow without end. Still, the space between them narrows and comes to a stop. The gap stops because its increments form a convergent series. That secret is the second formula below.

For example, two πŸ§‘ friends run side by side. Both run endlessly far, but the distance between them stops growing at about 5 meters. That settled distance plays the role of this constant.

Ξ³=lim⁑nβ†’βˆž(Hnβˆ’ln⁑n)β‰ˆ0.5772\gamma = \lim_{n\to\infty}(H_n - \ln n) \approx 0.5772
Ξ³=βˆ‘nβ‰₯1(1nβˆ’ln⁑ ⁣(1+1n))\gamma = \sum_{n\ge1}\left(\frac1n - \ln\!\left(1+\frac1n\right)\right)

Part of these learning paths

Examples & Exercises

Show that Ξ³n=Hnβˆ’ln⁑n\gamma_n = H_n - \ln n is decreasing and bounded below, hence convergent.

Hint: use 1n+1<ln⁑(n+1)βˆ’ln⁑n<1n\frac{1}{n+1} < \ln(n+1) - \ln n < \frac{1}{n}.

Ξ³n+1βˆ’Ξ³n=1n+1βˆ’(ln⁑(n+1)βˆ’ln⁑n)<0\gamma_{n+1} - \gamma_n = \frac{1}{n+1} - \bigl(\ln(n+1) - \ln n\bigr) < 0
n=50n = 50: H50β‰ˆ4.499205338H_{50} \approx 4.499205338, ln⁑50β‰ˆ3.912023005\ln 50 \approx 3.912023005, Ξ³50β‰ˆ0.5871823329\gamma_{50} \approx 0.5871823329 β€” one step down drops by Ξ³50βˆ’Ξ³51=ln⁑(51/50)βˆ’151β‰ˆ0.0001948>0\gamma_{50} - \gamma_{51} = \ln(51/50) - \frac{1}{51} \approx 0.0001948 > 0.
Show proof
  1. Ξ³n+1βˆ’Ξ³n=(Hn+1βˆ’ln⁑(n+1))βˆ’(Hnβˆ’ln⁑n)=1n+1βˆ’(ln⁑(n+1)βˆ’ln⁑n)\gamma_{n+1} - \gamma_n = (H_{n+1} - \ln(n+1)) - (H_n - \ln n) = \frac{1}{n+1} - (\ln(n+1) - \ln n). By the left half of the hint inequality, ln⁑(n+1)βˆ’ln⁑n>1n+1\ln(n+1) - \ln n > \frac{1}{n+1}, so this difference is negative: Ξ³n\gamma_n is strictly decreasing.

  2. The lower bound appears by splitting ln⁑n\ln n: Ξ³n=Hnβˆ’βˆ‘k=1nβˆ’1(ln⁑(k+1)βˆ’ln⁑k)=1n+βˆ‘k=1nβˆ’1(1kβˆ’ln⁑(1+1k))\gamma_n = H_n - \sum_{k=1}^{n-1}(\ln(k+1) - \ln k) = \frac{1}{n} + \sum_{k=1}^{n-1}\left(\frac{1}{k} - \ln\left(1+\frac{1}{k}\right)\right), and each bracket is positive by the right half of the hint inequality, ln⁑(1+1k)<1k\ln\left(1+\frac{1}{k}\right) < \frac{1}{k}. Hence Ξ³n>1n>0\gamma_n > \frac{1}{n} > 0.

  3. A decreasing sequence bounded below converges by the monotone convergence theorem. Its limit is the Euler–Mascheroni constant Ξ³:=lim⁑nβ†’βˆžΞ³n\gamma := \lim_{n\to\infty} \gamma_n, with Ξ³β‰₯0\gamma \ge 0 (in fact Ξ³β‰ˆ0.5772\gamma \approx 0.5772).

  4. Numerical check (n=50n = 50): Ξ³50=4.499205338βˆ’3.912023005=0.5871823329\gamma_{50} = 4.499205338 - 3.912023005 = 0.5871823329, and Ξ³51=Ξ³50βˆ’(ln⁑(51/50)βˆ’1/51)β‰ˆ0.5871823329βˆ’0.0001948=0.5869875\gamma_{51} = \gamma_{50} - (\ln(51/50) - 1/51) \approx 0.5871823329 - 0.0001948 = 0.5869875 β€” matching the caption's drop of 0.00019480.0001948.

Show that βˆ‘n=1∞(1nβˆ’ln⁑(1+1n))=Ξ³\sum_{n=1}^{\infty}\left(\frac{1}{n} - \ln\left(1+\frac{1}{n}\right)\right) = \gamma (a telescoping sum).

βˆ‘k=1n(1kβˆ’ln⁑(1+1k))=Hnβˆ’ln⁑(n+1)=Ξ³nβˆ’ln⁑(1+1n)\sum_{k=1}^{n}\left(\frac{1}{k} - \ln\left(1+\frac{1}{k}\right)\right) = H_n - \ln(n+1) = \gamma_n - \ln\left(1+\frac{1}{n}\right)
n=100n = 100: partial sum =H100βˆ’ln⁑101β‰ˆ5.187377518βˆ’4.615120517=0.5722570008= H_{100} - \ln 101 \approx 5.187377518 - 4.615120517 = 0.5722570008 β€” converging toward Ξ³β‰ˆ0.5772\gamma \approx 0.5772.
Show proof
  1. Expanding the partial sum, βˆ‘k=1nln⁑(1+1k)=βˆ‘k=1n(ln⁑(k+1)βˆ’ln⁑k)=ln⁑(n+1)\sum_{k=1}^{n} \ln\left(1+\frac{1}{k}\right) = \sum_{k=1}^{n}(\ln(k+1) - \ln k) = \ln(n+1) telescopes, so βˆ‘k=1n(1kβˆ’ln⁑(1+1k))=Hnβˆ’ln⁑(n+1)\sum_{k=1}^{n}\left(\frac{1}{k} - \ln\left(1+\frac{1}{k}\right)\right) = H_n - \ln(n+1).

  2. Since Hnβˆ’ln⁑(n+1)=Ξ³nβˆ’ln⁑(1+1n)H_n - \ln(n+1) = \gamma_n - \ln\left(1+\frac{1}{n}\right), with Ξ³nβ†’Ξ³\gamma_n \to \gamma (problem 1) and ln⁑(1+1n)β†’0\ln\left(1+\frac{1}{n}\right) \to 0, the partial sums converge to Ξ³\gamma. Hence the series sums to Ξ³\gamma.

  3. Each term dk:=1kβˆ’ln⁑(1+1k)d_k := \frac{1}{k} - \ln\left(1+\frac{1}{k}\right) is positive by ln⁑(1+1k)<1k\ln\left(1+\frac{1}{k}\right) < \frac{1}{k}, so this says a series of positive terms sums to Ξ³\gamma β€” this is exactly why the gap between the diverging harmonic series and ln⁑n\ln n converges: the total of these differences is finite.

  4. Numerical check (n=100n = 100): H100βˆ’ln⁑101β‰ˆ5.187377518βˆ’4.615120517=0.5722570008H_{100} - \ln 101 \approx 5.187377518 - 4.615120517 = 0.5722570008 β€” matching the caption and approaching Ξ³β‰ˆ0.5772\gamma \approx 0.5772 (the gap β‰ˆ0.005\approx 0.005 is the tail βˆ‘k>100dk\sum_{k>100} d_k).

Prove that 0.5<Ξ³<0.60.5 < \gamma < 0.6.

Hint: compute the first 10 terms of Ξ³=βˆ‘k=1∞dk\gamma = \sum_{k=1}^{\infty} d_k (dk=1kβˆ’ln⁑(1+1k)d_k = \frac{1}{k} - \ln\left(1+\frac{1}{k}\right)) directly and bound the tail rigorously with integral estimates.

Ξ³=βˆ‘k=1∞dk,dk:=1kβˆ’ln⁑(1+1k)>0\gamma = \sum_{k=1}^{\infty} d_k, \qquad d_k := \frac{1}{k} - \ln\left(1+\frac{1}{k}\right) > 0
ln⁑(1+1k)=∫kk+1dxxβ‰₯1k+12β‡’dk≀1k(2k+1)<12k2\ln\left(1+\frac{1}{k}\right) = \int_k^{k+1}\frac{dx}{x} \ge \frac{1}{k+\frac12} \quad \Rightarrow \quad d_k \le \frac{1}{k(2k+1)} < \frac{1}{2k^2}
n=10n = 10: βˆ‘k=110dk=H10βˆ’ln⁑11β‰ˆ0.5310729812\sum_{k=1}^{10} d_k = H_{10} - \ln 11 \approx 0.5310729812, tail <0.05< 0.05 β€” so 0.5311<Ξ³<0.58110.5311 < \gamma < 0.5811.
Show proof
  1. By problem 2, Ξ³=βˆ‘k=1∞dk\gamma = \sum_{k=1}^{\infty} d_k with every dk>0d_k > 0.

    The first 10 terms telescope to βˆ‘k=110dk=H10βˆ’ln⁑11β‰ˆ2.9289682539βˆ’2.3978952728=0.5310729812\sum_{k=1}^{10} d_k = H_{10} - \ln 11 \approx 2.9289682539 - 2.3978952728 = 0.5310729812.

    Since dk>0d_k > 0, this is already a lower bound: Ξ³>0.5310729812>0.5\gamma > 0.5310729812 > 0.5.

  2. To bound the tail from above, estimate dkd_k from above.

    Write ln⁑(1+1k)=∫kk+1dxx\ln\left(1+\frac{1}{k}\right) = \int_k^{k+1} \frac{dx}{x}; by convexity of 1x\frac{1}{x}, f(k+t)+f(k+1βˆ’t)β‰₯2f(k+12)f(k+t) + f(k+1-t) \ge 2f(k+\tfrac12) for 0≀t≀10 \le t \le 1, so integrating gives ∫kk+1dxxβ‰₯1k+1/2=22k+1\int_k^{k+1} \frac{dx}{x} \ge \frac{1}{k+1/2} = \frac{2}{2k+1}.

    Hence dk≀1kβˆ’22k+1=1k(2k+1)<12k2d_k \le \frac{1}{k} - \frac{2}{2k+1} = \frac{1}{k(2k+1)} < \frac{1}{2k^2}.

  3. Now βˆ‘k=11∞dk<12βˆ‘k=11∞1k2<12βˆ‘k=11∞1k(kβˆ’1)=12βˆ‘k=11∞(1kβˆ’1βˆ’1k)=12β‹…110=0.05\sum_{k=11}^{\infty} d_k < \frac{1}{2}\sum_{k=11}^{\infty} \frac{1}{k^2} < \frac{1}{2}\sum_{k=11}^{\infty} \frac{1}{k(k-1)} = \frac{1}{2}\sum_{k=11}^{\infty}\left(\frac{1}{k-1} - \frac{1}{k}\right) = \frac{1}{2}\cdot\frac{1}{10} = 0.05 (using 1k2<1k(kβˆ’1)\frac{1}{k^2} < \frac{1}{k(k-1)} for kβ‰₯2k \ge 2, and the last sum telescopes).

  4. Therefore 0.5310729812<Ξ³<0.5310729812+0.05=0.58107298120.5310729812 < \gamma < 0.5310729812 + 0.05 = 0.5810729812, so certainly 0.5<Ξ³<0.60.5 < \gamma < 0.6. The true value Ξ³β‰ˆ0.5772\gamma \approx 0.5772 lies inside this interval.

7. Series