The Euler–Mascheroni constant, conventionally denoted by , is the real number defined by
It measures the limiting difference between the partial sums of the harmonic series and the natural logarithm. The constant occurs in mathematical analysis, number theory, and probability, particularly in formulas involving the gamma and zeta functions. Despite extensive study, it is not known whether is rational or irrational.
Definition and existence
The th harmonic number is
Both and grow without bound, but their difference approaches a finite limit. Thus the definition of concerns the difference of two divergent quantities evaluated at the same finite index, not a subtraction of independently defined infinities.
Existence of the limit follows from elementary integral comparisons. Set
Then
because
Meanwhile,
so . The sequence is therefore decreasing and bounded below, and consequently converges.
An equivalent definition is
Together, the two sequences give the bounds
Geometric interpretation
The sum is the total area of rectangles of width and heights . The logarithm is the area under from to . The constant is the limiting excess of the rectangle area over this integral.
This interpretation illustrates a recurring role of : it is a correction term when a discrete sum is compared with a continuous integral.
History and notation
Leonhard Euler introduced the constant in his investigations of harmonic sums during the 1730s. Lorenzo Mascheroni subsequently studied it and calculated further decimal digits in work published in 1790. The compound name recognizes these early contributions.
The notation became standard later. The alternative name “Euler's constant” should not be confused with Euler's number , the base of natural logarithms. Nor is the constant the same object as the gamma function , although the two are closely related.
Series and integral representations
Telescoping logarithms in the defining limit gives the convergent series
Each summand is positive and behaves like , which explains convergence.
A representation involving the Riemann zeta function is
It follows by expanding , initially separating the endpoint when justifying the rearrangement. Here
Two useful integral representations are
and
In the second expression, the apparent singularities at cancel when the terms are combined. The two terms cannot instead be integrated separately as convergent improper integrals.
Asymptotic expansion and numerical calculation
The Euler–Maclaurin formula yields the asymptotic expansion
More precisely, truncation after any fixed number of terms gives an approximation with a controlled error as . The full expression is an asymptotic series, not generally a convergent series for fixed .
The first terms imply
where is big-O notation. Consequently, the defining limit converges slowly: increasing by a factor of ten gains only about one decimal digit.
Subtracting the leading correction greatly improves the approximation:
A useful explicit bound is
High-precision algorithms use accelerated representations rather than simply summing an enormous number of harmonic terms. In numerical analysis, error bounds and the management of rounding error are essential for certifying the resulting digits.
Connections with special functions
Gamma and digamma functions
For positive real , the gamma function is defined by
Differentiation at gives
The digamma function is the logarithmic derivative
Since ,
At positive integers,
which extends the relationship between harmonic numbers and into the theory of special functions.
The constant also appears in the expansion
For complex , the logarithm here is the analytic branch near whose value there is zero.
Zeta function near its pole
The zeta function has a simple pole at , and its local expansion begins
Equivalently,
Thus is the constant term remaining after the singular part is removed. In the wider Laurent expansion of , it is the zeroth Stieltjes constant.
Applications
Counting divisors
Let denote the number of positive divisors of the positive integer . A classical estimate is
The leading term describes the main growth of the cumulative divisor count; the next term contains .
This relationship arises by counting integer lattice points satisfying . Harmonic sums appear naturally when the count is organized according to one coordinate.
Probability and extreme values
If has the exponential distribution with rate , then its expected value after taking a logarithm is
If are independent exponential random variables with rate , their maximum satisfies
Consequently,
The limiting distribution of the centered maximum is the standard Gumbel distribution, whose cumulative distribution function is
Its mean is , providing a probabilistic interpretation of the same constant.
Arithmetic status
It remains unknown whether is a rational number or an irrational number. In particular, no proof establishes that its decimal expansion is nonrepeating.
It is also unknown whether is a transcendental number. Transcendence would imply irrationality, so this is a stronger unresolved question.
The occurrence of in formulas containing logarithms, the gamma function, or zeta values does not by itself determine its arithmetic nature. Likewise, extensive decimal calculations and rational approximations do not constitute a proof of irrationality.