Dilogarithm Created 2026-10-06 Updated 2026-10-25
The dilogarithm is the order-two polylogarithm, defined for by . Its derivative is , with a removable value at zero; a chosen complex logarithm branch gives its analytic continuation.
Exponential-logarithmic distribution Created 2026-10-25 Updated 2026-10-31
For , and , this probability density function has cumulative distribution function . Differentiating gives the density, while the endpoint limits are zero and one. Its quantile function is for , enabling inverse transform sampling.
Expanding the denominator as a geometric series gives
Termwise integration, justified by the monotone convergence theorem, and the gamma function integral yield raw moments . Thus the polylogarithm expresses its mean, variance and higher moments. Here is the complement of the series parameter ; parameter conventions must be checked when comparing formulas.
For fixed , the factor grows at most polynomially in , whereas decays exponentially when . The defining series for the polylogarithm therefore converges absolutely and locally uniformly for every complex and . It is holomorphic in on the unit disc and entire in there.
Let and , evaluated from the given polylogarithm formulas. Generate a large sample of independent and identically distributed random variables with r_sample_f, and compute its sample mean and sample variance using mean and var. The central limit theorem gives the first standardized check:
For the second check, the correct asymptotic variance of the sample variance involves the fourth central moment :
The denominator is not unless the probability distribution has the requisite fourth central moment, as does the normal distribution. Here the probability density function decays exponentially, so all required moments are finite.
To compute , expand the denominator of the probability density function as a geometric series and integrate each nonnegative term. The gamma function integral gives the raw moments
Thus and . The following R code implements both checks for chosen interior parameters and large n:
p <- 0.4
beta <- 1.3
n <- 100000
raw_m <- vapply(1:4, function(j) {
  -factorial(j) * polylog(j + 1, 1 - p) / (beta^j * log(p))
}, numeric(1))
m <- raw_m[1]
v <- raw_m[2] - m^2
mu4 <- raw_m[4] - 4 * m * raw_m[3] +
  6 * m^2 * raw_m[2] - 3 * m^4
x <- r_sample_f(n, p, beta)
c(mean_check = sqrt(n) * (mean(x) - m) / sqrt(v),
  variance_check = sqrt(n) * (var(x) - v) / sqrt(mu4 - v^2))
For each check separately, an absolute value below is consistent with its approximate confidence interval. Repeat with many independent samples: the two standardized statistics should each resemble a standard normal distribution, with about outside that range. Also vary , and n; a systematic discrepancy that grows with suggests a bias. The two checks from the same sample are generally dependent, so passing both is not itself a joint statement, nor can a finite test prove that a generator is correct.
The second central limit theorem follows from the central limit theorem for the sample variance: differs by a quantity tending to zero in probability from .
Measure energies from the single-particle ground state, and assume the three-dimensional ideal Bose gas in the large-particle-number limit. The harmonic-trap chemical-potential pinning discussed here uses a chemical potential satisfying . On cooling, it approaches zero; below the condensation temperature it remains at zero to leading thermodynamic order. Above that temperature it is negative. The detailed negative-chemical-potential branch shape is determined by the density of states; the figure uses the harmonic trap analysed below. The finite-size condensate chemical potential stays slightly below zero rather than being exactly pinned there.
A Bose-Einstein condensate has macroscopic occupation of a single quantum state. A dilute atomic gas needs low temperature and high phase-space density while remaining metastable against ordinary liquid or solid formation. Laser cooling followed by evaporative cooling of atoms in a weak trap can achieve the required regime. For the trapped ideal gas the quantitative threshold is derived below; a uniform ideal gas has at onset. An experimental signature is a narrow low-momentum component appearing within the broader thermal distribution after time-of-flight expansion, as observed in magnetically trapped rubidium-87.[ref]
Spinless cubic-box wave-vector counting. Impose periodic boundary conditions on a cube of side . The allowed vectors are with integer components. Each state occupies in wave-vector space. For a spinless particle, counting the spherical shell gives
There is no spin multiplicity. This is continuum shell counting; a finite box has discrete levels. Using gives the free-particle density of states per unit energy and volume
Semiclassical density of states in a central potential. At position , the available kinetic energy is . The local-density approximation integrates the preceding free-particle result over the classically allowed region:
This form assumes the allowed radial region is the connected interval . A nonmonotonic potential would require integrating all allowed shells.
For the isotropic harmonic trap, . Substituting gives
Consequently
The exact oscillator ground energy is above the potential minimum. The harmonic-trap energy-zero convention subtracts that constant, while the displayed density of states is the leading semiclassical continuum expression, neglecting the finite-level corrections produced by that shift. The discrete ground state must be counted separately.
Condensate population. Below the transition, use for the excited states. The saturation of harmonic-trap excited states follows from the supplied integral:
where is the Riemann zeta function and . Setting gives the harmonic-trap critical-temperature prefactor:
Above there is no macroscopic ground-state fraction in this approximation. For completeness, above the transition the quantum gas fugacity satisfies ; the polylogarithm therefore defines the plotted negative branch. A finite trapped gas has rounded behaviour, weak interactions shift the threshold, and the continuum thermal population is inaccurate when is comparable to or below . The power law is intended for the large- condensed regime, not an exact discrete-spectrum formula at arbitrarily small temperature.[ref]
Excited-state saturation. Consider first a uniform three-dimensional noninteracting gas of identical spinless bosons in a large box. Set the one-particle ground energy to zero. The Bose-Einstein distribution is , with quantum gas fugacity . For dispersion , the excited density of states is
Using the thermal de Broglie wavelength , integration gives
The polylogarithm is . Its finite value at implies a maximum excited population , with . Once this is less than , the excess particles occupy the ground state macroscopically. This is Bose-Einstein condensation, rather than occupation of a state by merely one or a few atoms.
Transition and condensate fraction. Setting the saturation number equal to gives the homogeneous ideal Bose gas condensation temperature
Below this temperature, approaches zero from below in the thermodynamic limit, and particle conservation gives
Above there is no macroscopic condensate and adjusts to keep fixed. At finite , the chemical potential remains slightly below the ground energy and the transition is rounded.
Figure 1.
Original uniform ideal-gas condensate fraction and schematic accumulation in the lowest state below the critical temperature; the exponent is for a three-dimensional box
. Details.
Energy and the role of geometry. The excited-state internal energy is
The zero-energy condensate contributes no term to this energy in the ideal model. Below ,
Condensation depends on low-energy state counting: for a uniform quadratic-dispersion gas, a finite-temperature bulk condensate requires spatial dimension greater than two. A trap changes the density of states and therefore the temperature law; a three-dimensional harmonic trap gives a cubic, rather than , condensate-fraction exponent. Finally, an ideal-gas condensate should not automatically be called a superfluid: its free quadratic spectrum has zero critical speed by the Landau criterion. Interactions matter for the robust collective-flow properties of real dilute condensates.
For , and integer , truncating the defining polylogarithm power series after terms has remainder
The inequality uses monotonicity of and then the geometric series. The bound applies to negative real as well as positive real , and gives a rigorous absolute truncation tolerance independently of cancellation. It does not bound floating-point rounding error.