Defines Γ by Euler's integral on the right half-plane, collects the functional equation Γ(z+1)=zΓ(z) with the factorial and half-integer values, Gauss's limit formula, and the reflection and duplication formulas, and shows how to reduce an integral or a half-integral argument to a tabulated value.
The integral converges absolutely exactly on this half-plane. Write x=Rez, so that ∣tz−1e−t∣=tx−1e−t. Near t=0 the exponential is bounded between two positive constants and ∫01tx−1dt is finite if and only if x>0; near t=∞ the factor e−t beats every power, so the tail converges for every z. The same estimate shows that the convergence is uniform on each strip 0<a≤x≤b<∞.
Two changes of variable give forms that occur as often as the original. Substituting t=y2,
Γ(z)=2∫0∞y2z−1e−y2dy,
which connects Γ to the Gaussian integrals (Gaussian integrals); and substituting t=ln(1/τ),
Definition(Properties of Γ)AdaptedAdapted from Arfken, Weber & Harris (2013), §13.1, eqs. (13.1), (13.2), (13.4), (13.8), (13.23), (13.27)-(13.29), pp. 599-604; Riley, Hobson & Bence (2006), eqs. (18.154)-(18.158), pp. 636-637; Hassani (2013), Box 12.4.1 and eqs. (12.11), (12.13), (12.20), (12.22), pp. 379-381; Folland (1999), §2.3 and Prop. 2.56, pp. 58-59, 80; Strauss (2008), §A.5, eqs. (1)-(4), p. 425
Let Γ be given by Euler's integral on H={Rez>0}.
Analyticity and continuation.Γ is analytic on H and has a unique extension to a function analytic on C∖{0,−1,−2,…} with a simple pole at each non-positive integer, the residue at z=−n being (−1)n/n!. (Carried out in Analytic continuation; see the remark below.) From here on Γ means that extension.
Functional equation.Γ(z+1)=zΓ(z) at every z where both sides are finite. In particular Γ(1)=1 and
Γ(n+1)=n!(n=0,1,2,…).
Half-integer values.Γ(21)=π, and for n=0,1,2,…
Γ(n+21)=4nn!(2n)!π.
Gauss's limit formula. For every z∈/{0,−1,−2,…},
Γ(z)=n→∞limz(z+1)(z+2)⋯(z+n)n!nz.
Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.1), p. 599) take this as their first definition of Γ and derive the Euler integral from it; we go the other way.
Legendre's duplication formula. For every z at which both sides are finite,
Γ(z)Γ(z+21)=21−2zπΓ(2z).
No zeros.Γ(z)=0 for every z in its domain; equivalently 1/Γ is entire.
Idea of the proofOriginal
Everything follows from two computations. The functional equation is one integration by parts, and iterating it both extends Γ to the left and turns it into the factorial on the integers. The second computation is the one that produces π: multiply two Euler integrals together and change variables in the plane. Taking the product in the form Γ(z)Γ(1−z) and separating the total s+t from the ratio s/t makes the double integral factor, and the ratio integral is a standard keyhole-contour integral worth π/sinπz; that is the reflection formula, and Γ(1/2)2=π is its value at z=1/2.
The duplication formula is not an integral computation at all. Both Γ(z)Γ(z+21) and Γ(2z) are limits of explicit products of 2n+2 linear factors, and those two products differ only by a factor free of z together with a power (n/(2n+1))2z. So the ratio of the two sides is a constant, which one reads off at z=1/2. Gauss's limit formula, which supplies those products, is itself the Euler integral with e−t replaced by (1−t/n)n and then integrated by parts n times.
(2) The functional equation. Fix Rez>0 and integrate by parts on [ε,T]⊂(0,∞), differentiating tz and integrating e−t:
∫εTtze−tdt=εze−ε−Tze−T+z∫εTtz−1e−tdt.
The first boundary term is O(εRez) and vanishes as ε→0 because Rez>0; the second vanishes as T→∞ because e−T beats TRez. Hence Γ(z+1)=zΓ(z) on H, and then on all of C∖{0,−1,…} because two functions analytic there and equal on H are equal (Analytic continuation). Also Γ(1)=∫0∞e−tdt=1, so induction gives Γ(n+1)=nΓ(n)=⋯=n!.
(3) Half-integer values. In the squared form of the definition put z=21:
Γ(21)=2∫0∞e−y2dy=∫−∞∞e−y2dy=π,
the last step by the Gaussian integral (Gaussian integrals). Applying (2) n times,
Multiplying numerator and denominator by (2n)(2n−2)⋯2=2nn! turns the odd product into (2n)! and gives the stated closed form. (Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.28), p. 604) write the same thing with double factorials, (2n−1)!!π/2n.)
(4) Gauss's limit formula. For Rez>0 and n∈N set
Fn(z)=∫0n(1−nt)ntz−1dt.
Step 1: Fn(z)→Γ(z). Since ln(1−u)≤−u on [0,1), we have 0≤(1−t/n)n≤e−t for 0≤t≤n, so the integrands are dominated by tx−1e−t, which is integrable on (0,∞) for x=Rez>0. Pointwise (1−t/n)n→e−t for each fixed t>0. Dominated convergence (Dominated convergence) applied to the integrands extended by 0 beyond t=n gives Fn(z)→Γ(z).
Integrate Jm(w) by parts for m≥1, differentiating (1−u)m and integrating uw−1 to uw/w. The boundary term vanishes at u=1 because m≥1 and at u=0 because Rew>0, leaving
Jm(w)=wmJm−1(w+1).
This is the one place where Rew>0 is needed. Iterating n times and finishing with J0(w)=∫01uw−1du=1/w,
Jn(z)=zn⋅z+1n−1⋯z+n−11⋅z+n1=z(z+1)⋯(z+n)n!.
Combining the two steps proves (4) on H. Step 3: all other z. Let z∈/{0,−1,−2,…} and pick an integer m≥1 with Re(z+m)>0. Writing Pn(w)=w(w+1)⋯(w+n), the exact algebraic identity
holds for every n, because Pn(z+m)/Pn(z) is the quotient of those two products of m factors. As n→∞ the first factor tends to Γ(z+m) by steps 1-2, and ∏j=n+1n+m(z+j)/nm→1 since each of the m factors is n(1+O(1/n)). So the limit exists and equals Γ(z+m)/(z(z+1)⋯(z+m−1)), which is Γ(z) by part (2). (The integral Jn is a Beta integral, and this calculation is the special case B(z,n+1) of The Beta function.)
(5) Reflection. Take 0<Rez<1 and multiply two Euler integrals:
Γ(z)Γ(1−z)=∫0∞∫0∞sz−1t−ze−(s+t)dsdt.
The double integral converges absolutely, since the modulus of the integrand is sx−1t−xe−(s+t) with x=Rez and its integral is the finite number Γ(x)Γ(1−x); so the iterated integral may be treated as a double integral and the variables changed (Multiple integrals and change of variables). Replace (s,t) by the total and the ratio,
u=s+t,v=s/t,sos=1+vuv,t=1+vu,
a C1 bijection of (0,∞)2 onto itself with Jacobian determinant −u/(1+v)2. The two powers collapse,
sz−1t−z=(1+vuv)z−1(1+vu)−z=u(1+v)vz−1,
and multiplying by the Jacobian factor u/(1+v)2 leaves vz−1/(1+v), free of u. The integral therefore splits:
For 0<Rez<1 the remaining integral is the keyhole-contour integral ∫0∞vp−1(v+a)−1dv=πap−1/sinpπ of Integrals around branch cuts at a=1, p=z, with value π/sinπz. Both sides of the resulting identity are analytic on C∖Z, so it holds there. Finally, replacing z by −z and using Γ(1+z)=zΓ(z) on the left gives Γ(z)Γ(−z)=−π/(zsinπz).
(6) Duplication. With Pn as in step 3 above, (4) reads Γ(w)=limnn!nw/Pn(w). Pair the factors of Pn(z) and Pn(z+21):
Let n→∞. The left side tends to Γ(z)Γ(z+21)/Γ(2z) by (4), a finite non-zero number when Rez>0. On the right, (n/(2n+1))2z→2−2z=0. A quotient of two convergent sequences with non-zero limits converges, so the remaining factor cn=(n!)2n4n+1/(2n+1)! converges as well, say to c; and cn does not involve z, so c is one constant for all z. Hence
Γ(2z)Γ(z)Γ(z+21)=c2−2z(Rez>0).
Evaluate at z=21: the left side is Γ(21)Γ(1)/Γ(1)=π and the right side is c/2, so c=2π and the displayed identity is Γ(z)Γ(z+21)=21−2zπΓ(2z). Both sides are meromorphic on C, so this holds wherever they are finite. (Numerically, cn=3.41855, 3.53168, 3.54477 at n=10, 102, 104, against 2π=3.5449077.)
(7) No zeros. If Γ(z0)=0 for some z0 in the domain, then z0∈/Z would force the left side of the reflection formula to vanish while π/sinπz0 is finite and non-zero, which is impossible; and at z0=n≥1 we have Γ(n)=(n−1)!=0 by (2). So Γ never vanishes, and 1/Γ, which is analytic off the poles and takes the value 0 at each of them, is entire. □
Remark(Where the hypotheses are used)Original
Rez>0 in the definition is exactly the integrability condition at t=0, as the estimate in the definition block shows; for Rez≤0 the integral diverges outright rather than converging conditionally, so the continuation cannot be obtained by reinterpreting it. Folland (Folland (1999), §2.3, p. 58) makes this the point of departure: the integral defines Γ on the half-plane, and the functional equation then does the continuing.
The same condition is what makes the integration by parts work twice over: it kills the boundary term εze−ε in part (2) and the term at u=0 in the recursion for Jm in part (4).
Dominated convergence in part (4) needs the inequality (1−t/n)n≤e−t, not merely the pointwise limit; without a dominating function the interchange of limit and integral is not automatic, because the interval of integration also grows.
0<Rez<1 in part (5) is needed twice: for absolute convergence of the double integral (at x≤0 the s-integral diverges, at x≥1 the t-integral does), and for the keyhole evaluation of ∫0∞vz−1/(1+v)dv. Only after both sides are known to be analytic does continuation extend the identity to all non-integral z. Riley, Hobson and Bence (Riley, Hobson & Bence (2006), §18.12.2, p. 639) are explicit that the elementary argument gives the formula on this strip and that more is needed elsewhere.
At integers the reflection formula must be read as an identity of meromorphic functions. At z=n≥1, Γ(1−z) has a pole and sinπz=0, and the two singularities match; the useful content at those points is part (7) together with the pole structure of part (1).
Duplication at 2z∈{0,−1,−2,…} likewise compares two functions with poles at the same places, which is why we proved it first on Rez>0 and then continued.
Remark(Conventions, and what is proved where)Original
The analyticity of Γ on the right half-plane, the continuation by Γ(z)=Γ(z+1)/z, the simple poles at 0,−1,−2,… and the residues (−1)n/n! are proved in detail in Analytic continuation, where Γ serves as the worked example of continuation by a functional relation; part (1) above only records the result, and this unit's own work is the functional equation, the limit formula, and the reflection and duplication formulas. Worth noting about that proof: the Leibniz rule for differentiating under the integral sign (Differentiation under the integral sign) does not apply to Euler's integral, because it is stated for a bounded interval and a real parameter while here the interval is unbounded and the integrand unbounded at t=0; the analyticity is obtained instead by truncating the integral and applying Morera's theorem to the limit. The Leibniz rule does apply to each truncation ∫1/nn, which is how the differentiated forms Γ′(x)=∫0∞tx−1e−tlntdt and its higher analogues are justified for real x>0.
Three conventions worth keeping straight.
Argument shifts. Many texts, Arfken, Weber and Harris (Arfken, Weber & Harris (2013), §13.1-13.2, pp. 599-611) among them, state results for Γ(z+1) rather than Γ(z), since Γ(z+1)=z! when z is a non-negative integer. Their duplication formula, Γ(1+z)Γ(z+21)=2−2zπΓ(2z+1), becomes ours on applying the functional equation to Γ(1+z) and Γ(2z+1).
The factorial notation.z! for Γ(z+1) at non-integral z is used by Riley, Hobson and Bence (Riley, Hobson & Bence (2006), eqs. (18.155)-(18.156), p. 636) and avoided by Arfken, Weber and Harris (Arfken, Weber & Harris (2013), §13.1, p. 606). We write Γ throughout and reserve n! for integers.
Which property is the definition. Euler's integral (here, and in Riley, Hobson and Bence (Riley, Hobson & Bence (2006), p. 636), Hassani (Hassani (2013), p. 378), Folland (Folland (1999), p. 58) and Strauss (Strauss (2008), p. 425)), Gauss's limit (Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.1), p. 599)), and the Weierstrass product 1/Γ(z)=zeγz∏k≥1(1+z/k)e−z/k (Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.15), p. 602), Hassani (Hassani (2013), eq. (12.14), p. 379)) all define the same function; part (4) is the bridge between the first two, and taking reciprocals in part (4) and inserting n−z=e−zlnn gives the third, with the Euler-Mascheroni constant γ appearing as limn(∑k≤nk−1−lnn). The product form is the natural starting point for Digamma and polygamma functions.
Method(Reducing a quantity to Γ)Original
Powers times a stretched exponential. To evaluate ∫0∞xbe−cxkdx with c>0, k>0 and b>−1, substitute u=cxk. Then x=(u/c)1/k, dx=(u/c)1/kk−1u−1du and
∫0∞xbe−cxkdx=kc(b+1)/k1Γ(kb+1).
Check the exponent of c by dimensions: x scales as c−1/k, so the integral scales as c−(b+1)/k.
Reduce the argument to [1,2]. Use Γ(z)=Γ(z+1)/z to step right until the argument lies in [1,2], where Γ is between 0.8856 and 1; or Γ(z+1)=zΓ(z) to step left. This is both the numerically stable way to evaluate Γ and the way to read a half-integer or negative value off Γ(21)=π.
Use reflection when two arguments add to an integer. A product Γ(p)Γ(q) with p+q=1 is π/sinπp with no further work; with p+q=m∈Z, first shift by the functional equation until the sum is 1.
Use duplication when two arguments differ by 21. It converts Γ(z)Γ(z+21) into a single Γ(2z), and read backwards it splits Γ of an even multiple into two factors — the move that generates half-integer values and that underlies the Γ-quotients in the coefficients of Bessel and hypergeometric series.
For a large or complex argument, go asymptotic. Use Stirling's series (Stirling's formula) on lnΓ, after shifting the argument into the right half-plane with reflection if necessary; summing lnΓ is also how large factorials are handled in statistical mechanics.
Example(Half-integer values and a Gaussian moment)Original
Goal: evaluate ∫0∞x6e−x2dx and the two values Γ(27), Γ(−25).
Reduce the integral. Step 1 of the method with b=6, c=1, k=2 gives
∫0∞x6e−x2dx=21Γ(27).
Step down to Γ(21). By the functional equation three times,
Γ(27)=25⋅23⋅21Γ(21)=815π=3.3233510.
The closed form of part (3) agrees: n=3 gives (2n)!π/(4nn!)=720π/(64⋅6)=815π.
The integral. Therefore ∫0∞x6e−x2dx=1615π=1.6616755. Numerical quadrature of the integral returns 1.6616755.
A negative argument. Step the functional equation leftwards from Γ(21), i.e. use Γ(z)=Γ(z+1)/z at z=−21,−23,−25:
So Γ(−25)=−0.9453087, and the sign alternates with each step, as it must: between consecutive poles Γ keeps one sign, and the residues (−1)n/n! alternate.
Cross-check by reflection. With z=27, part (5) gives Γ(27)Γ(−25)=π/sin(7π/2)=−π. Indeed 3.3233510×(−0.9453087)=−3.1415927.
Example(An algebraic integral by reflection)Original
Goal: evaluate I=∫0∞x1/3(1+x)dx in closed form.
Recognise the shape. The proof of part (5) showed that for 0<Rez<1
Two independent checks. The tabulated values Γ(31)=2.6789385 and Γ(32)=1.3541179 multiply to 3.6275987; and numerical quadrature of I gives 3.6275987.
A duplication check at a different point. Reflection at z=41 gives Γ(41)Γ(43)=π/sin(π/4)=π2=4.4428829. Duplication at z=41 gives the same product by a different route, since Γ(41)Γ(43)=21/2πΓ(21)=2π. The tabulated values Γ(41)=3.6256099 and Γ(43)=1.2254167 confirm it.
Example(Mean and spread of a Weibull lifetime)Original
A batch of pump bearings has time to failure T with density f(t)=(β/τ)(t/τ)β−1e−(t/τ)β on t>0, with shape β=23 and scale τ=10 h. Find the mean life and the standard deviation.
Moments. With u=(t/τ)β, so t=τu1/β and f(t)dt=e−udu,
E[Tr]=∫0∞trf(t)dt=τr∫0∞ur/βe−udu=τrΓ(1+βr).
The substitution is step 1 of the method in disguise; note that ∫0∞ur/βe−udu is Γ(1+r/β), not Γ(r/β), because the exponent of u is r/β and Euler's integral carries z−1.
using the functional equation to express Γ(35) through the value of Γ at 32 already computed above.
Second moment.r=2, r/β=34, and two applications of the functional equation give Γ(37)=34⋅31Γ(31)=94(2.6789385)=1.1906393. So E[T2]=100(1.1906393)=119.06393h2.
Spread.VarT=E[T2]−(E[T])2. Carrying one more figure than the rounded values quoted above, E[T]=9.02745293 h and E[T2]=119.0639349h2, so
VarT=119.0639349−81.4949064=37.5690285h2,
and the standard deviation is 6.1293579 h, about 68% of the mean. Numerical integration of ∫tf(t)dt and ∫t2f(t)dt reproduces steps 2 and 3 to all digits shown.
Sanity check. At β=1 the density is exponential with mean τ and standard deviation τ, and the formulas give τΓ(2)=τ and τΓ(3)−Γ(2)2=τ, as they must.
Volumes in many dimensions. The cleanest appearance of Γ in analysis is the measure of the unit sphere and ball in Rn. Integrating e−∣x∣2 over Rn in two ways — as the n-th power of the one-dimensional Gaussian integral, and in polar coordinates, where the radial part is ∫0∞rn−1e−r2dr=21Γ(n/2) by the squared form of the definition — gives
the second by the functional equation, as Folland (Folland (1999), Prop. 2.54 and Cor. 2.55, pp. 79-80) sets it out. At n=3 these are 4π=12.566371 and 34π=4.1887902. Because Γ grows faster than any power, the unit ball's volume collapses: it peaks at n=5 with π5/2/Γ(7/2)=5.2637890 and has fallen to 3.2985089 by n=9. That collapse is the reason a Monte Carlo sampler that encloses a high-dimensional ball in its circumscribed cube almost never lands inside, and the reason phase-space volumes in statistical mechanics are computed through Γ rather than geometrically.
Thermal averages. Classical statistical mechanics weights a state of energy E by e−βE with β=1/kBT. For a structureless ideal gas the density of states goes as E1/2, so normalisation and the mean energy are both integrals of the form of step 1 of the method, and their ratio is a ratio of Γ's:
since Γ(5/2)/Γ(3/2)=3/2 by the functional equation; this is Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Example 13.1.1, pp. 606-607)'s route to the equipartition result. The same reduction gives every moment of the Maxwell speed distribution f(v)∝v2e−av2, a=m/(2kBT): applying step 1 of the method to numerator and denominator,
The power of kBT/m carries the dimensions of vn and the Γ-quotient is the pure number; at n=1 it returns the mean speed 8kBT/πm.
Normalising special functions.1/Γ, entire by part (7), is the standard normaliser in series solutions of differential equations: the Bessel function of order s is
Js(z)=j=0∑∞Γ(j+1)Γ(j+s+1)(−1)j(2z)2j+s,
in which Γ replaces the factorials of the integer-order case (Strauss (Strauss (2008), §10.5, eq. (4), p. 283), whose series this is).
Two readings of that series should be kept apart. Strauss (Strauss (2008), §10.5, p. 283) treats negative integral s as excluded: he states that the series solves Bessel's equation for every real sexcept a negative integer, on the ground that Γ is infinite at the negative integers, so that the series "is not defined" there. Our own reading, written as above with 1/Γ rather than with Γ in a denominator, is that the coefficients remain defined at s=−m: the first m of them carry 1/Γ of a non-positive integer, which is 0 by part (7), so those terms drop out and what is left sums to (−1)mJm — a solution, but not a new one. The restriction Strauss places on the order is therefore a restriction on getting a second solution, which is the same conclusion Bessel functions of the first kind reaches; nothing above is claimed on his authority beyond the displayed series.
The Beta integral B(p,q)=∫01tp−1(1−t)q−1dt equals Γ(p)Γ(q)/Γ(p+q), proved by writing the product of two Gamma integrals in polar coordinates; the trigonometric and (1+u)−p−q forms that follow give closed values for powers of sine and cosine and for a large family of algebraic integrals.
For complex p and q with Rep>0 and Req>0, the Beta function is
B(p,q)=∫01tp−1(1−t)q−1dt.
The integral converges absolutely under exactly those two conditions. Writing a=Rep and b=Req, the modulus of the integrand is ta−1(1−t)b−1; near t=0 the second factor is bounded away from 0 and ∞, so integrability there needs a>0, and near t=1 the same argument on the first factor needs b>0.
Hassani (Hassani (2013), §12.4, p. 380) calls this Euler's integral of the first kind, the Gamma integral being the second. Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.45), p. 617) go the other way and defineB(p,q) as Γ(p)Γ(q)/Γ(p+q), then prove that the integral above computes it; the content is the same, and part 2 of the statement is the bridge.
Special values and extension.B(p,1)=1/p and B(21,21)=π. Since the right-hand side of part 2 is a quotient of functions meromorphic on C, it extends B to all (p,q) with p,q∈/{0,−1,−2,…}; in particular, for 0<Rep<1 the reflection formula of The Gamma function gives
B(p,1−p)=Γ(p)Γ(1−p)=sinπpπ.
Idea of the proofOriginal
Part 2 is the whole unit, and it is proved by raising the dimension rather than by evaluating anything. A single Gamma integral, written with e−y2 instead of e−t, is an integral over a half-line; the product of two such integrals is an integral over a quadrant of the plane. In polar coordinates that quadrant splits: the radial variable carries all the decay and reassembles into one more Gamma integral, of argument p+q because the powers add, while the angular variable carries all the ratio information and leaves behind an integral in sin and cos that depends on p and q separately. Recognising that angular integral as B(p,q) — which is what the substitution t=sin2θ does — finishes the proof.
The other forms are one substitution each, chosen by what the integrand must look like: t=sin2θ sends [0,1] to a quarter period and turns 1−t into cos2θ; t=u/(1+u) sends [0,1] to [0,∞) and turns 1−t into 1/(1+u). The recurrences need no integration at all: the first is the algebraic identity tp−1(1−t)q−1=tp(1−t)q−1+tp−1(1−t)q under the integral sign, and the second is the functional equation of Γ applied to part 2.
(1) Symmetry. The substitution t=1−τ maps [0,1] to itself, reverses orientation and exchanges the two factors, so B(p,q)=∫01τq−1(1−τ)p−1dτ=B(q,p).
(3) Trigonometric form. Put t=sin2θ for θ∈[0,π/2], a C1 increasing bijection onto [0,1] with dt=2sinθcosθdθ and 1−t=cos2θ. Then tp−1(1−t)q−1dt=2sin2p−1θcos2q−1θdθ, which is part 3.
(4) Form on the half-line. Put t=u/(1+u) for u∈[0,∞), again an increasing bijection onto [0,1), with 1−t=1/(1+u) and dt=(1+u)−2du. Then
For the second expression in part 4, substitute s=1+v with v∈[0,∞): it becomes ∫0∞vq−1(1+v)−p−qdv, which is the first expression with p and q interchanged, hence equal to it by part 1. That is the form in which Hassani (Hassani (2013), eq. (12.17), p. 380) records it, reached there by t↦1/t in the definition.
(2) Relation to Γ. Use the squared form Γ(w)=2∫0∞y2w−1e−y2dy of Euler's integral (The Gamma function) for both factors:
Γ(p)Γ(q)=4∫0∞∫0∞x2p−1y2q−1e−(x2+y2)dxdy.
The double integral converges absolutely: replacing p and q by a=Rep and b=Req turns the integrand into its modulus, and the same display then evaluates to the finite number Γ(a)Γ(b). So the iterated integral may be treated as a double integral and the variables changed (Multiple integrals and change of variables). Pass to plane polar coordinates in the open first quadrant,
x=ρsinφ,y=ρcosφ,(ρ,φ)∈(0,∞)×(0,2π),dxdy=ρdρdφ.
Then x2+y2=ρ2, and the powers separate as x2p−1y2q−1=ρ2p+2q−2sin2p−1φcos2q−1φ. With the extra ρ from the area element the radial exponent is 2(p+q)−1, so
Γ(p)Γ(q)==B(p,q)by part 3(2∫0π/2sin2p−1φcos2q−1φdφ)⋅=Γ(p+q)(2∫0∞ρ2(p+q)−1e−ρ2dρ)
-- the first factor by part 3, the second by the squared form of Euler's integral at argument p+q, which converges because Re(p+q)>0. Since Γ(p+q)=0 (The Gamma function, part 7), dividing gives part 2.
(5) Recurrences. Inside the integral, tp−1(1−t)q−1=(t+(1−t))tp−1(1−t)q−1=tp(1−t)q−1+tp−1(1−t)q; integrating gives the first recurrence, with both new integrals convergent because the exponents only increased. For the second, part 2 and the functional equation Γ(q+1)=qΓ(q), Γ(p+q+1)=(p+q)Γ(p+q) give
(6) Special values.B(p,1)=∫01tp−1dt=1/p, which also follows from part 2 since Γ(1)=1 and Γ(p+1)=pΓ(p). For p=q=21, part 3 gives B(21,21)=2∫0π/2dθ=π, in agreement with part 2 and Γ(21)2=π. The extension and the value of B(p,1−p) are immediate from part 2 and the reflection formula. □
Remark(Where the hypotheses are used)Original
Rep>0 and Req>0 are two separate endpoint conditions, one per end of [0,1], and each is needed on its own. Dropping only the first leaves an integral that diverges at t=0 and converges at t=1. In the trigonometric form of part 3 the same two conditions appear as integrability at θ=0 and at θ=π/2; in the half-line form of part 4, as integrability at u=0 and at u=∞ — there the decay at infinity is u−q−1, so it is Req>0 that controls the tail.
Absolute convergence is what licenses the polar change of variables in part 2. The integrand is complex-valued whenever p or q is, so the interchange is not covered by any monotone argument; the bound by xa−1yb−1e−(x2+y2) with a,b>0 is.
The identity Γ(p)Γ(q)=B(p,q)Γ(p+q) is only divided by Γ(p+q) at the end, and that step uses the fact that Γ has no zeros. Written as a product it also makes sense in the limiting cases, which is how part 2 extends to arguments where Γ has poles: B inherits those poles from the numerator and zeros from the denominator.
The extension in part 6 is by definition, not by continuation of the integral. For Rep≤0 the Beta integral diverges; what is meromorphic in p and q is the quotient of Gamma functions, and that quotient is what B means outside the quadrant of convergence.
Remark(A difference of convention between our sources)Original
are both correct and both in print: the first in Riley, Hobson and Bence (Riley, Hobson & Bence (2006), eq. (18.164), p. 638) and Hassani (Hassani (2013), eq. (12.18), p. 380), the second in Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.47), p. 617). They differ by which of sin and cos carries which parameter, and they agree because B is symmetric (part 1) — equivalently, because θ↦π/2−θ swaps sin and cos. We use the first throughout, so that t=sin2θ matches the order of the arguments in the definition. Only the pairing of exponent with parameter is at stake, and a formula taken from one source and used with the other's convention still gives the right number, because the two results are equal; but mixing them inside one calculation makes the bookkeeping unreadable, so we fix one.
Method(Evaluating an integral as a Beta function)Original
Powers of sine and cosine. For ∫0π/2sinmθcosnθdθ with m,n>−1, match exponents: 2p−1=m and 2q−1=n, so
Integrals over [0,π] or [0,2π] reduce to this one by symmetry, with attention to signs when an exponent is odd.
An algebraic integrand on [0,1]. Bring ∫01xα(1−xk)βdx to the standard shape with t=xk: it becomes k−1B(kα+1,β+1). The conditions for convergence are α>−1 and β>−1.
An algebraic integrand on [0,∞). Use part 4 of the statement. The signature to look for is a numerator power and a denominator power of 1+u (or, after scaling u→u/c, of c+u): the numerator exponent fixes p and the denominator exponent fixes p+q.
Then evaluate the Γ's. Use part 2 and the method of The Gamma function: step the arguments into [1,2], use Γ(21)=π for half-integers, and reflection when two arguments add to an integer. If p+q is an integer the answer is elementary; if p+q is a half-integer it carries a π; if p and q have denominator 3 or 4 it carries a Γ(31) or Γ(41), which is not elementary.
Check the easy cases. Set one argument to 1: B(p,1)=1/p should reproduce the integral of a pure power. This catches factor-of-k errors from step 2 and swapped parameters from step 1.
Example(A trigonometric integral)Original
Goal: evaluate I=∫0π/2sin4θcos6θdθ.
Match exponents. Step 1 of the method with m=4, n=6 gives p=25, q=27, so I=21B(25,27).
Convert to Γ.
B(25,27)=Γ(6)Γ(25)Γ(27).
Evaluate the Gammas. By the functional equation from Γ(21)=π: Γ(25)=43π and Γ(27)=815π, while Γ(6)=5!=120. Hence
Note that the two half-integer arguments supplied π each, so the answer is a rational multiple of π, as step 4 of the method predicts for p+q=6 an integer.
Checks. Numerical quadrature of I returns 0.018407769. The symmetry check also holds: swapping the exponents, ∫0π/2sin6θcos4θdθ=21B(27,25), the same number, as it must be by θ↦π/2−θ.
The same formula for even powers of a single function. Setting n=0 in step 1 gives the Wallis values, for instance ∫0π/2sin6θdθ=21B(27,21)=Γ(27)Γ(21)/(2Γ(4))=9615π=0.4908739.
Example(An algebraic integral on the half-line)Original
Goal: evaluate J=∫0∞(1+x)3xdx and K=∫−11(1−x2)3/2dx.
J by part 4. The numerator is xp−1 with p−1=21, so p=23; the denominator is (1+x)p+q with p+q=3, so q=23. Both have positive real part, so
Check K geometrically.K is the area under y=(1−x2)3/2, and with x=sinθ it is ∫−π/2π/2cos4θdθ=2⋅21B(21,25) by step 1 with m=0, n=4 — the same number by a different route. Numerical quadrature gives 1.1780972.
Check against the easy case. Step 5 of the method: with the exponent 3/2 replaced by 0, step 2 gives B(21,1)=2, which is indeed ∫−11dx.
The period of an anharmonic oscillator. A particle of mass m in the symmetric potential V(x)=A∣x∣n (A>0, n>0) with energy E turns at xmax=(E/A)1/n. From 21mx˙2+V=E, a quarter period takes the particle from 0 to xmax, so
τ=4∫0xmax2(E−Axn)/mdx=22m∫0xmaxE−Axndx.
Substitute x=xmaxu1/n, so that Axn=Eu and dx=(xmax/n)u1/n−1du. The integral becomes a Beta integral with p=1/n and q=21:
using B(1/n,21)=πΓ(1/n)/Γ(n1+21). This is the form given as Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Exercise 13.3.13, p. 621). Two features are physics, not algebra. At n=2 the Gamma quotient is Γ(21)/Γ(1)=π and the energy dependence cancels, leaving τ=2π/ω with A=mω2/2: the harmonic case is the only one whose period is amplitude-independent. For n>2 the factor E1/n−1/2 makes a stiffer well oscillate faster at higher energy. Numerically, for m=1kg, A=1Jm−4, n=4 and E=1J, the quotient is Γ(41)/Γ(43)=3.6256099/1.2254167=2.9586751 and
τ=212π(2.9586751)=3.7081494s,
which direct numerical integration of the quarter-period integral confirms to seven digits.
The Beta distribution.B(a,b) is by construction the normaliser of the density f(x)=xa−1(1−x)b−1/B(a,b) on [0,1], for a,b>0 (Grimmett and Stirzaker (Grimmett & Stirzaker (2020), §4.4 (4.4.8), p. 108)). Its moments are ratios of Beta functions, and part 2 collapses them: E[X]=B(a+1,b)/B(a,b)=a/(a+b), and the same computation with a+2 gives
VarX=(a+b)2(a+b+1)ab.
At a=3, b=2 this is a mean of 0.6 and a variance of 6/150=0.04, a standard deviation of 0.2. The family contains the uniform distribution at a=b=1, and because its density has the same shape as the likelihood of a sequence of independent trials, it is the conjugate prior for a success probability — the reason Beta functions appear throughout Bayesian inference (Bayesian inference).
Weakly singular kernels. The kernel (z−x)α−1 of the Abel integral equation is inverted by convolving with (y−z)−α, and the computation that makes the inversion work is exactly ∫01s−α(1−s)α−1ds=B(1−α,α)=π/sinπα, part 6 above (Volterra equations). The same Beta integral is what gives the fractional integration operators their composition rule.
Defines ψ=Γ′/Γ and its derivatives, derives the series ψ(z)=−γ−1/z+∑k≥1(1/k−1/(z+k)) and ψ(m)(z)=(−1)m+1m!∑k≥0(z+k)−m−1 from the Weierstrass product, collects the values at integers and half-integers, and turns a convergent series of rational terms into a finite combination of digamma values.
Definition(Digamma and polygamma)AdaptedAdapted from Arfken, Weber & Harris (2013), §13.2, eqs. (13.36)-(13.37) and (13.41), pp. 611-612; Hassani (2013), eq. (12.15), p. 380
On Ω=C∖{0,−1,−2,…}, where Γ is analytic and non-vanishing (The Gamma function), the digamma function is the logarithmic derivative of Γ,
ψ(z)=Γ(z)Γ′(z)=dzdlnΓ(z),
and for m∈N the polygamma functions are its derivatives,
ψ(m)(z)=dzmdmψ(z)=dzm+1dm+1lnΓ(z).
All of them are analytic on Ω. The expression lnΓ is many-valued in general, but Γ′/Γ is not, and it is the quotient that is meant: on the interval (0,∞), where Γ>0, the two readings agree with lnΓ taken real.
Also needed is the Euler-Mascheroni constant
γ=n→∞lim(Hn−lnn)=0.5772156649…,Hn=k=1∑nk1,
the limit existing because Hn−lnn is decreasing and bounded below.
A warning about the argument.Arfken, Weber and Harris (Arfken, Weber & Harris (2013), §13.2, eqs. (13.36)-(13.41), pp. 611-612) write every formula of this section for ψ(z+1) and ψ(m)(z+1), because Γ(z+1) is the quantity they treat as the factorial. Their ψ(z+1) is our ψ evaluated at z+1, so their formulas are ours shifted; part 2 of the statement is the dictionary. Mixing the two conventions is the commonest source of an answer wrong by 1/z.
Definition(Series, values and recurrences)AdaptedAdapted from Arfken, Weber & Harris (2013), §13.2, eqs. (13.38)-(13.44) and Exercises 13.2.4, 13.2.8, 13.2.10, pp. 611-616; Hassani (2013), eq. (12.15), p. 380
the series converging absolutely, and uniformly on each compact subset of Ω. Equivalently ψ(1+z)=−γ+∑k≥1z/(k(k+z)), which is the form Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.38), p. 611) give.
Recurrence and integer values.ψ(z+1)=ψ(z)+1/z on Ω, and
On the real axis the first series converges for −1<z≤1.
Monotonicity on the positive axis. For x>0, ψ(1)(x)>1/x>0 and ψ(2)(x)<0; so ψ is strictly increasing and concave on (0,∞), lnΓ is strictly convex there, and x↦lnx−ψ(x) is strictly decreasing. Moreover ψ(x)→−∞ as x↓0 and ψ(x)→+∞ as x→∞, so ψ maps (0,∞) bijectively onto R.
Idea of the proofOriginal
A product becomes a sum under a logarithm, and a sum can be differentiated term by term. That single observation is the whole theory: Γ itself is awkward to differentiate, but 1/Γ is an infinite product of linear factors, so lnΓ is a series of logarithms of linear factors and ψ is a series of reciprocals of linear factors. Each further derivative raises the power and makes the series converge faster, which is why the polygamma series are the clean ones and the digamma series is the one that needs the Euler-Mascheroni constant to repair a divergence: ∑k1/(z+k) diverges on its own, and γ is precisely the bookkeeping left over when one subtracts the harmonic series from it.
Everything else is read off that series. Differences of ψ at arguments shifted by integers telescope, giving the recurrence and the harmonic numbers. The functional equations of Γ — reflection and duplication — become additive identities for ψ on taking logarithms and differentiating, and those supply the half-integer values. Setting z=1 in the polygamma series turns it into ζ(m+1), which is what makes ψ and its derivatives the natural language for summing series of rational terms: partial fractions expresses such a series as a combination of the very sums the polygamma functions tabulate.
ProofAdaptedAdapted from Arfken, Weber & Harris (2013), §13.2, eqs. (13.34)-(13.44), pp. 610-613, with the Weierstrass product, eq. (13.15), p. 602; Hassani (2013), eqs. (12.14)-(12.15), pp. 379-380
(1) The series.Step 1: the Weierstrass product. Gauss's limit formula (The Gamma function, part 4) says Γ(z)=limnn!nz/(z(z+1)⋯(z+n)). Since (z+1)⋯(z+n)/n!=∏k=1n(1+z/k), taking reciprocals gives
Γ(z)1=n→∞limzn−zk=1∏n(1+kz).
Write n−z=e−zlnn=eγze−zHnez(Hn−lnn−γ). The last factor tends to 1 because Hn−lnn→γ, and e−zHn=∏k=1ne−z/k, so
Γ(z)1=zeγzk=1∏∞(1+kz)e−z/k,
the product of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), eq. (13.15), p. 602) and Hassani (Hassani (2013), eq. (12.14), p. 379). Its factors tend to 1 fast: ln[(1+u)e−u]=−u2/2+O(u3), so with u=z/k the logarithms are O(∣z∣2/k2).
Step 2: logarithms and differentiation, for real argument. Fix 0<a<b and let x∈[a,b]. Every factor above is positive, so logarithms may be taken:
−lnΓ(x)=lnx+γx+k=1∑∞[ln(1+kx)−kx].
The series converges by the O(x2/k2) bound of step 1. Differentiating the k-th term gives 1/(k+x)−1/k=−x/(k(k+x)), of modulus at most b/k2 on [a,b]; so the differentiated series converges uniformly there by the Weierstrass M-test (Uniform convergence), and term-by-term differentiation is legitimate (Integrating and differentiating series term by term, part 2, whose hypotheses — continuously differentiable terms, convergence at a point, uniform convergence of the differentiated series — are exactly what we have checked). Hence
−ψ(x)=x1+γ+k=1∑∞(k+x1−k1),
which rearranges to part 1 for x>0.
Step 3: extension to Ω. Let SN(z)=−γ−1/z+∑k=1N(1/k−1/(z+k)), analytic on Ω. On a compact K⊂Ω take R with ∣z∣≤R on K; for k>2R we have ∣z+k∣≥k/2 and so
k1−z+k1=k∣z+k∣∣z∣≤k22R,
whence SN converges uniformly on K by the M-test. A uniform limit of continuous functions is continuous, and for a closed contour γ⊂Ω uniform convergence lets the limit pass through the contour integral, so ∮γlimNSN=limN∮γSN=0 by Cauchy's theorem; by Morera's theorem the limit S is analytic on Ω (both steps exactly as in Analytic continuation). Now S and ψ are analytic on Ω and agree on (0,∞) by step 2, a set with accumulation points in Ω, so they agree on all of Ω by the identity theorem. The second form of part 1 is the algebraic identity 1/k−1/(z+k)=z/(k(z+k)), and adding 1/z to both sides of part 1 gives the form in ψ(1+z) once part 2 is known.
(2) Recurrence and integer values. Differentiating the logarithm of Γ(z+1)=zΓ(z) gives ψ(z+1)=1/z+ψ(z) on (0,∞) and hence on Ω by analyticity. At z=1, part 1 reads
ψ(1)=−γ−1+k=1∑∞(k1−1+k1)=−γ−1+1=−γ,
the series telescoping to 1. Iterating the recurrence from ψ(1) gives ψ(n+1)=−γ+1+21+⋯+n1.
(3) Reflection, duplication, half-integers. Take logarithmic derivatives of the two functional equations of The Gamma function. From Γ(z)Γ(1−z)=π/sinπz, differentiating the logarithm in z and noting that the chain rule contributes −1 from the second factor,
ψ(z)−ψ(1−z)=−πcotπz,
which is the stated reflection relation. From Γ(z)Γ(z+21)=21−2zπΓ(2z), taking logarithms gives lnΓ(z)+lnΓ(z+21)=(1−2z)ln2+21lnπ+lnΓ(2z), and differentiating,
ψ(z)+ψ(z+21)=−2ln2+2ψ(2z).
Put z=21: the left side is ψ(21)+ψ(1) and the right side is −2ln2+2ψ(1), so ψ(21)=ψ(1)−2ln2=−γ−2ln2=−1.9635100. The values at n+21 follow from the recurrence of part 2, since ∑j=1n(j−21)−1=2∑j=1n(2j−1)−1.
(4) Polygamma. Differentiating part 1 once gives ψ(1)(z)=1/z2+∑k≥1(z+k)−2=∑k≥0(z+k)−2; the differentiated series converges uniformly on compact subsets of Ω by the M-test (the terms are O(k−2)), so the differentiation is termwise by the argument of step 3. Differentiating m−1 further times, each time legitimately because the series only converges faster, gives
and (−1)m−1=(−1)m+1. The recurrence is part 2 differentiated m times, using dm(1/z)/dzm=(−1)mm!z−m−1. At z=1 the sum is ∑k≥0(1+k)−m−1=ζ(m+1), convergent because m+1≥2.
(5) Maclaurin series.lnΓ(1+z) is analytic on the unit disc — Γ(1+z) is analytic and non-vanishing for ∣z∣<1, and lnΓ(1+0)=0 fixes the branch — so it equals its Taylor series there, with radius exactly 1 because Γ(1+z) has a pole at z=−1. The coefficients are the derivatives at 0: the first is ψ(1)=−γ by part 2, and for n≥2 the n-th derivative is ψ(n−1)(1)=(−1)n(n−1)!ζ(n) by part 4, so the n-th coefficient is (−1)n(n−1)!ζ(n)/n!=(−1)nζ(n)/n. Differentiating gives the series for ψ(1+z).
(6) Monotonicity. Part 4 with m=1 gives ψ(1)(x)=∑k≥0(x+k)−2 for x>0, and with m=2 gives ψ(2)(x)=−2∑k≥0(x+k)−3<0. The first sum is a left-endpoint Riemann sum, over the unit intervals [k,k+1], of the strictly decreasing function t↦(x+t)−2, so it strictly exceeds the integral:
ψ(1)(x)=k=0∑∞(x+k)21>∫0∞(x+t)2dt=x1>0.
Hence ψ is strictly increasing and concave; (lnΓ)′′=ψ(1)>0 makes lnΓ strictly convex; and the derivative of lnx−ψ(x) is 1/x−ψ(1)(x)<0, so that function is strictly decreasing. For the limits: the single term −1/x in part 1 drives ψ(x)→−∞ as x↓0, the remaining terms staying bounded; and ψ(n+1)=−γ+Hn→∞ with monotonicity in between. A continuous strictly increasing function with those limits is a bijection onto R. □
Remark(Where the hypotheses are used)Original
The constant γ is not decoration. In part 1 neither ∑k1/k nor ∑k1/(z+k) converges; only the difference does, and γ is the price of having split a convergent series into two divergent halves in the Weierstrass product. This is why the digamma series, alone among the family, contains a transcendental constant: for m≥1 the polygamma series in part 4 converges on its own and no constant appears.
Term-by-term differentiation needs the differentiated series to converge uniformly, not merely the original one; that is the hypothesis of Integrating and differentiating series term by term and it is what the b/k2 bound in step 2 supplies. The bound degrades as b→∞, which is why the argument is run on a compact interval and then extended, rather than on (0,∞) at once.
Step 2 is carried out on the positive axis for a reason. Taking the logarithm of the product requires choosing a branch, and for x>0 every factor is a positive real so the choice is forced. The identity theorem then carries the result to all of Ω without any branch question, because ψ=Γ′/Γ is single-valued even though lnΓ is not.
The reflection relation of part 3 holds only off the integers, where cotπz is finite and Γ(z)Γ(1−z) makes sense; the poles of πcotπz at the integers match the poles of ψ there. Each pole of ψ is simple with residue −1, as the term −1/(z+k) of part 1 shows.
Part 4 excludes m=0. The polygamma series as written would be ∑k1/(z+k) at m=0, which diverges; part 1 is the correct m=0 statement, with the compensating 1/k.
The convergence condition in the method below is not optional. A partial-fraction decomposition ∑jcj/(n+aj) sums to a combination of digamma values only when ∑jcj=0, which is the same as requiring the numerator degree to be at most the denominator degree minus two. Otherwise the series diverges and no rearrangement can rescue it.
Method(Summing a series of rational terms)AdaptedAdapted from Arfken, Weber & Harris (2013), §13.2, Series Summation, p. 613, and Exercises 13.2.14-13.2.15, p. 616
To evaluate ∑n≥1R(n) where R=P/Q is a rational function with no pole at a positive integer:
Check convergence. Require degP≤degQ−2. If degP=degQ−1 the series diverges logarithmically; split off the offending part first, or pair terms so that the leading behaviour cancels.
Factor and decompose. Write Q(n)=∏j(n+aj)mj+1 and expand R in partial fractions. With simple factors only, R(n)=∑jcj/(n+aj), and step 1 guarantees ∑jcj=0.
Replace each simple group by digamma values. From part 1, ψ(1+a)=−γ+∑k≥1(1/k−1/(k+a)). Summing over j with weights cj, the γ terms and the 1/k terms both cancel because ∑jcj=0, leaving
n=1∑∞j∑n+ajcj=−j∑cjψ(1+aj).
The two-factor case is worth memorising: for a=b,
n=1∑∞(n+a)(n+b)1=b−aψ(1+b)−ψ(1+a).
Use polygamma for repeated factors. A term (n+a)−m−1 with m≥1 needs no cancellation: by part 4,
n=0∑∞(n+a)m+11=m!(−1)m+1ψ(m)(a),
and a sum starting at n=1 is this minus a−m−1.
Evaluate the digamma values. Use part 2 for arguments differing from 1 by an integer (the answer is then rational, built from harmonic numbers), part 3 for half-integers (expect ln2), and the reflection relation for arguments summing to an integer (expect πcot). Arguments with denominator 3, 4 or 6 give closed forms in π and logarithms; other arguments must be left as ψ or evaluated numerically.
Check against a partial sum. Add the first few hundred terms numerically. Convergence is only like 1/N for a two-factor denominator, so compare with the tail estimate rather than expecting agreement to full precision.
Example(A telescoping sum, and what the method automates)Original
Goal: evaluate Σ1=n=1∑∞n(n+3)1.
Convergence. The numerator has degree 0 and the denominator degree 2, so step 1 is satisfied.
Partial fractions.n(n+3)1=31(n1−n+31), so c1=31 at a1=0 and c2=−31 at a2=3, and indeed c1+c2=0.
Apply step 3. With a=0, b=3,
Σ1=3ψ(4)−ψ(1).
Evaluate. By part 2, ψ(4)=−γ+H3=−γ+611 and ψ(1)=−γ, so the γ cancels and
Σ1=1811=0.6111111.
Checks. Direct summation of N=106 terms gives 0.6111101, short of the answer by 1.0×10−6. That is exactly the omitted tail: 31∑n>N(1/n−1/(n+3))=31(1/(N+1)+1/(N+2)+1/(N+3))≈1/N=10−6, the slow convergence step 6 warns about. The telescoping is visible here, so the answer can be had by hand; the point of the method is that it survives when the roots are not integers. The same three lines with a=0, b=21 give
n=1∑∞n(n+21)1=2(ψ(23)−ψ(1))=4−4ln2=1.2274113,
where ψ(23)=ψ(21)+2=2−γ−2ln2=0.0364900 by parts 2 and 3; summing 106 terms gives 1.2274103.
Example(An odd-denominator sum by polygamma)Original
Goal: evaluate Σ2=n=1∑∞(2n−1)21=1+91+251+⋯ without assuming the value of ζ(2) at the odd integers separately.
Shift to the polygamma shape.(2n−1)2=4(n−21)2, so with k=n−1
Σ2=41k=0∑∞(k+21)21=41ψ(1)(21)
by step 4 of the method with m=1, a=21.
Get ψ(1)(21) from duplication. Differentiate the duplication relation of part 3 once in z:
ψ(1)(z)+ψ(1)(z+21)=4ψ(1)(2z).
At z=21 this reads ψ(1)(21)+ψ(1)(1)=4ψ(1)(1), so ψ(1)(21)=3ψ(1)(1)=3ζ(2) by part 4.
Conclude.
Σ2=43ζ(2)=43⋅6π2=8π2=1.2337006.
Note that ψ(1)(21)=π2/2=4.9348022.
Checks. Summing N=106 terms of Σ2 gives 1.2337003, the tail being about 1/(4N)=2.5×10−7. Independently, Σ2 should be ζ(2) minus the even part ∑n≥1(2n)−2=41ζ(2), which is 43ζ(2) — the same answer, and a reminder that step 2 did the work of that elementary split without needing it.
ApplicationAdaptedAdapted from Arfken, Weber & Harris (2013), Exercises 13.1.21 and 13.2.12-13.2.13, pp. 610 and 616, and §13.2, Series Summation, p. 613
The log-mean of a Gamma variable, and fitting a shape parameter. The Gamma density with rate λ and shape t is f(x)=λtxt−1e−λx/Γ(t) on x>0 (Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Exercise 13.1.21, p. 610)). Its fractional moments are
E[Xs]=Γ(t)λt∫0∞xt+s−1e−λxdx=Γ(t)λsΓ(t+s),
and differentiating in s at s=0 — the derivative of Γ(t+s) at s=0 being Γ(t)ψ(t) — gives
E[lnX]=ψ(t)−lnλ.
For t=3, λ=2 this is ψ(3)−ln2=0.9227843−0.6931472=0.2296372, so the geometric mean is e0.2296372=1.2581434, well below the arithmetic mean t/λ=1.5; the gap is a measure of the skewness that makes the Gamma family useful for rainfall totals and for waiting times. The same formula is the whole content of maximum-likelihood fitting of a Gamma shape: the likelihood equations reduce to lnt^−ψ(t^)=lnxˉ−lnx, a scalar equation with at most one root, because lnx−ψ(x) is strictly decreasing on (0,∞) by part 6 (Maximum likelihood).
Phases and small expansions in quantum scattering. A charged particle in a Coulomb field has a wave function whose normalisation and phase involve Γ(1+iη) with η the Sommerfeld parameter (Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Exercise 13.2.13, p. 616)). Part 5 gives the small-η behaviour directly: lnΓ(1+iη)=−γiη−ζ(2)η2/2+O(η3), so argΓ(1+iη)=−γη+O(η3) and ∣Γ(1+iη)∣2=1−ζ(2)η2+O(η4). The same series, with z a small algebraic quantity rather than imaginary, is how relativistic hydrogen wave functions are expanded in powers of α2Z2 (Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Exercise 13.2.12, p. 616)).
Lattice and loop sums. Any sum whose general term is a rational function of the index — a one-dimensional lattice Green's function, a dimensionally regularised loop integral expanded about an integer dimension, a mode sum in a cavity — reduces by the method above to a finite combination of ψ and ψ(m) at rational arguments, and hence to γ, ln2, π and the zeta values. That reduction is why γ and ζ(2),ζ(3) appear in the coefficients of perturbative expansions, and why tables of ψ(m) were worth computing: the alternating sum ∑k≥0(−1)k(2k+1)−2, Catalan's constant, becomes [ψ(1)(41)−ψ(1)(43)]/16=0.9159656, a value with no known closed form in elementary constants.
Defines ζ(s)=∑n≥1n−s for real s>1 and the Bernoulli numbers Bn by the generating function t/(et−1), and proves Euler's identity ζ(2k)=(−1)k+1(2π)2kB2k/(2(2k)!), which turns a rational recursion into the closed values π2/6, π4/90, π6/945 and gives every ζ at an even integer.
For a real number s>1 the Riemann zeta function is the sum of the convergent series
ζ(s)=n=1∑∞ns1=1+2s1+3s1+⋯.
Convergence for s>1 and divergence for s≤1 are decided by the integral test (Convergence tests for series). The test needs a positive decreasing function, so take s>0 first; then x↦x−s is positive and decreasing on [1,∞), and for s=1
∫1Nx−sdx=1−sN1−s−1,
which has a finite limit as N→∞ exactly when s>1, while for s=1 the integral is lnN→∞. Riley, Hobson and Bence (Riley, Hobson & Bence (2006), §4.3.2, pp. 128-130) record both halves of this, and also give a second proof of the divergence at s=1 by grouping the terms 2−k+⋯+(2k+1−1)−1≥21. For s≤0 the function x−s is not decreasing and the test says nothing, but there it is not needed: the terms n−s≥1 do not tend to 0. In fact a single comparison covers the whole of s<1 at once, since n−s≥n−1 there.
Two matters of notation. The argument is written s by Ahlfors (Ahlfors (1979), Ch. 5, §4, p. 212) and Stein and Shakarchi (Stein & Shakarchi (2003), Ch. 5, §3.1, p. 155). Arfken, Weber and Harris (Arfken, Weber & Harris (2013), §12.4, Eq. (12.60), p. 571) write ζ(s) where they introduce the Dirichlet series, but ζ(z) where they treat the function as a function of a complex variable — at §12.2, p. 564, and throughout §13.5, pp. 629-631. We use s everywhere. And the same series defines an analytic function of a complex argument on the half plane Res>1, because it converges uniformly on each closed half plane Res≥σ0>1, where it is dominated by ∑n−σ0 (Ahlfors, p. 212, with the Weierstrass M-test of Uniform convergence). This unit needs only real s>1; see the note below for what lies beyond.
The Bernoulli numbersB0,B1,B2,… are the Taylor coefficients, scaled by factorials, of the function
G(t)=et−1t=n=0∑∞n!Bntn.
The quotient is defined and analytic on the punctured disc 0<∣t∣<2π and extends analytically across t=0: since et−1=t(1+2t+6t2+⋯) has a simple zero at the origin with the bracket equal to 1 there, G has a removable singularity at t=0 with G(0)=1. Its nearest singularities are the simple poles of 1/(et−1) at t=±2πi, so the radius of convergence of the series above is exactly 2π (Taylor series of analytic functions).
Reading off the first two coefficients gives B0=1 and, by one differentiation at the origin,
B1=G′(0)=−21.
Multiplying the series for G by (et−1)/t=∑m≥0tm/(m+1)! and requiring the product to be 1 gives, on comparing coefficients of tN, a rational recursion determining every Bn from its predecessors. In the form Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (12.34), p. 561) give for the even-index numbers,
N−1=n=1∑N−1(2n2N)B2n,N=2,3,4,…
Stein and Shakarchi (Stein & Shakarchi (2003), Ch. 3, Problem 4(b), p. 97) state the equivalent recursion over all indices, Bn=−n+11∑k=0n−1(kn+1)Bk for n≥1. Either gives
with Bn=0 for every odd n≥3 (proved below). Arfken, Weber and Harris tabulate these as far as B10 (Table 12.2, p. 562); the value of B12 quoted here is the next one either recursion returns, and is not taken from the table. The Bernoulli polynomialsBn(x), generated by text/(et−1), and the summation formula in which they are used belong to Euler-Maclaurin summation.
Even indices are zeta values. For every integer k≥1,
B2k=(−1)k+1(2π)2k2(2k)!ζ(2k),
which is the form in Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (12.38), p. 564); equivalently, solving for the zeta value,
ζ(2k)=(−1)k+12(2k)!(2π)2kB2k.
In particular ζ(2)=π2/6, ζ(4)=π4/90 and ζ(6)=π6/945.
Signs and growth. Since ζ(2k)>0, the sign of B2k is (−1)k+1: the even-index Bernoulli numbers alternate in sign. And since ζ(2k)→1, the formula forces ∣B2k∣∼2(2k)!/(2π)2k, which grows without bound — Arfken, Weber and Harris (Arfken, Weber & Harris (2013), p. 564) quote B20=−5.291×102 and B200=−3.647×10215.
The identity says nothing about ζ at odd arguments; no closed form for ζ(3),ζ(5),… is known, and Arfken, Weber and Harris (Arfken, Weber & Harris (2013), §12.4, p. 572) go no further than saying that these values seem to resist evaluation in closed form.
Idea of the proofOriginal
Everything follows from one observation: the function being expanded, t/(et−1), has poles, and the Bernoulli numbers are its Taylor coefficients, so the coefficients must remember where the poles are. The poles of 1/(et−1) sit at the points 2πmi, evenly spaced up the imaginary axis, all simple, all with residue 1. A sum over an arithmetic progression of poles is a sum of the form ∑m−n — a zeta value.
The mechanism that converts "Taylor coefficient" into "sum over all the poles" is the residue theorem. Write Bn/n! as the residue at the origin of t−n/(et−1), by Cauchy's coefficient formula. Then integrate that same function around a large circle. The circle encloses the origin and the 2N nearest poles on the imaginary axis, so the integral is 2πi times Bn/n! plus the residues (2πmi)−n. On the other hand the integrand decays like ∣t∣−n on the circle while the perimeter grows only linearly, so the integral itself tends to 0 once n≥2. The two statements together say that the Taylor coefficient is minus the sum of all the other residues.
The last step is bookkeeping in the sum ∑m=0(2πmi)−n: pairing m with −m makes it vanish for odd n and doubles it for even n, and for n=2k the factor i−2k=(−1)k comes out, leaving exactly ζ(2k).
The one quantitative point needing care is the circle. The radius must be chosen to keep the contour away from the poles — the odd multiples (2N+1)π do that, sitting half a period from every pole — and then 1/(et−1) is bounded on every such circle by a constant that does not depend on N.
Step 1: the poles of g and the residues away from the origin. The zeros of et−1 are the points t=2πmi, m∈Z, and each is simple because dtd(et−1)=et=1=0 there. For m=0 the factor t−n is analytic at 2πmi, so g has a simple pole there with
t=2πmiResg=e2πmi(2πmi)−n=(2πmi)n1,
by the quotient rule for simple poles (The residue theorem). Apart from these, g is analytic except at t=0.
Step 2: the residue at the origin is the Bernoulli number. On 0<∣t∣<2π the definition of the Bk gives the Laurent development
g(t)=t−n−1⋅et−1t=k=0∑∞k!Bktk−n−1,
convergent on that punctured disc. The coefficient of t−1 is the term k=n, so by uniqueness of the Laurent expansion (Laurent series)
t=0Resg=n!Bn.
Step 3: a lower bound for ∣et−1∣ on the circles ∣t∣=RN. Put RN=(2N+1)π for N≥1. We claim
∣et−1∣≥21for all ∣t∣=RN,N≥1.
Write t=x+iy and split on the size of x.
If ∣x∣≥1: the reverse triangle inequality gives ∣et−1∣≥∣et∣−1=∣ex−1∣, which is at least e−1 when x≥1 and at least 1−e−1=0.6321 when x≤−1.
If ∣x∣≤1: then ∣y∣=RN2−x2≥RN2−1, so
0≤RN−∣y∣≤RN−RN2−1=RN+RN2−11≤RN1≤3π1<0.107.
Since RN=2πN+π, writing η=∣y∣−2πN puts η in the interval [π−0.107,π]. The function et−1 has period 2πi, so ∣et−1∣=∣ex+iη−1∣ and
∣ex+iη−1∣2=e2x−2excosη+1≥e2x+2excos(0.107)+1≥e−2+1.98e−1+1>1.8,
using cosη≤cos(π−0.107)=−cos(0.107)<−0.994 in the middle step and x≥−1 with monotonicity in x at the end. Hence ∣et−1∣>1.3 here.
Both cases give at least 21, and in particular no pole of g lies on any circle ∣t∣=RN.
Step 4: the contour integral vanishes in the limit. The poles of g inside ∣t∣<RN are t=0 and t=2πmi with 1≤∣m∣≤N, since ∣2πm∣<(2N+1)π is exactly ∣m∣≤N. The residue theorem on the positively oriented circle CN={∣t∣=RN} therefore gives
2πi1∮CNg(t)dt=n!Bn+1≤∣m∣≤N∑(2πmi)n1.
By Step 3 the integrand obeys ∣g(t)∣≤2RN−n on CN, so the estimate for contour integrals gives
2πi1∮CNgdt≤2π1⋅2πRN⋅RNn2=RNn−12N→∞0,
because n≥2 makes the exponent n−1 positive. The remaining sum converges absolutely, its terms having modulus (2π∣m∣)−n with n≥2, so letting N→∞ yields the displayed identity
n!Bn=−m=0∑(2πmi)n1.
Step 5: separate the parities. Pair the terms m and −m. For odd n, (−m)−n=−m−n, so each pair cancels and the sum is 0; hence Bn=0 for odd n≥3, which is claim 1. For n=2k the two terms of a pair are equal, and i−2k=(i2)−k=(−1)k, so
the last step by the definition of ζ at the real argument 2k>1. Multiplying by (2k)! gives claim 2 in Arfken's form, and dividing instead by the prefactor gives the inverted form. Claim 3 is immediate: every term of ζ(2k) is positive, so signB2k=(−1)k+1, and 1<ζ(2k)≤ζ(2)=π2/6 for k≥1 pins ∣B2k∣ between 2(2k)!/(2π)2k and 6π2 times that.
The sample values follow from the table of B2k: with k=1, (2π)2/(2⋅2!)=π2 and B2=1/6 give ζ(2)=π2/6; with k=2, (2π)4/(2⋅4!)=π4/3 and B4=−1/30 with the sign (−1)3 give ζ(4)=π4/90; k=3 is done in the example below. □
s>1 in the definition. This is what makes the defining series converge, and it is used at the very end of the proof, where ∑m−2k is identified as ζ(2k): the identification is legitimate only because 2k≥2>1. The proof produces no information at odd arguments and none at s≤1.
n≥2 in the main identity. It enters twice: to make the large-circle bound 2RN1−n tend to zero, and to make the residue sum converge absolutely. For n=1 the identity is false — its right-hand side is a divergent symmetric sum, while B1=−21 — and this is exactly why B1 is the one odd-index Bernoulli number that does not vanish. It has to be computed separately from the generating function, as in the definition above.
The radius RN=(2N+1)π. An odd multiple of π sits half a period away from every pole 2πmi, which is what Step 3 converts into a bound independent of N. A circle of radius 2Nπ would pass through two poles and the argument would not even be stated. Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Fig. 12.1, p. 563) use a different contour for the same purpose — one that detours around the origin and runs along the real axis — and must then argue that the two real-axis segments cancel and that the large arc is negligible; the single growing circle avoids both discussions.
Simplicity of the poles of 1/(et−1). Used in Step 1 to get the residue 1. At t=0 the pole of g has order n+1, so Step 2 reads the residue off the Laurent series instead of using a residue formula — this is the step that makes the Bernoulli numbers appear at all.
The radius of convergence 2π is a real restriction. The series ∑Bntn/n! is useless beyond ∣t∣=2π, which is why the expansions of cot, tan and coth in Bernoulli numbers all carry a condition like ∣t∣<2π or ∣t∣<π. Claim 3 is the same fact seen from the coefficients: ∣B2k∣1/2k/(2k)!1/2k→1/2π.
An alternative route.Stein and Shakarchi (Stein & Shakarchi (2003), Ch. 3, Problem 4(c)-(e), pp. 97-98) reach the same formula without contours: the generating function gives zcotz=1+∑k≥1(−1)k22kB2kz2k/(2k)!, the partial-fraction expansion of the cotangent (Pole expansions and infinite products) gives xcotx=1−2∑m≥1ζ(2m)x2m/π2m, and comparing coefficients of x2m does the rest. The two routes are the same computation in different dress, since the partial-fraction expansion of the cotangent is itself a statement about the poles at the multiples of π. We follow the contour route because it needs only the residue theorem, which The residue theorem already provides.
Note(Three conventions for the Bernoulli numbers, and what lies outside s>1)AdaptedAdapted from Arfken, Weber & Harris (2013), §12.2, Eq. (12.39), p. 564; Ahlfors (1979), Ch. 5, §1.3, Exercise 4, p. 186; Arfken, Weber & Harris (2013), §13.5, Eqs. (13.67)-(13.72) and Exercise 13.5.10, pp. 629-633
Conventions.Arfken, Weber and Harris (Arfken, Weber & Harris (2013), p. 560) warn that formulas from different authors must not be combined without checking the definition, and the library bears them out. Three indexings occur in it:
ours, t/(et−1)=∑Bntn/n!, which is the convention of the Handbook of Mathematical Functions that Arfken, Weber and Harris adopt (p. 560);
the variant they record at Eq. (12.39), Bk=2(2k)!ζ(2k)/(2π)2k, with the subscript halved and all signs positive, so that Bk=∣B2k∣;
Ahlfors (Ahlfors (1979), Ch. 5, §1.3, Exercise 4, p. 186), who writes the Laurent development of (ez−1)−1 at the origin as z−1−21+∑k≥1(−1)k−1BkAz2k−1/(2k)! and notes that these BkA are all positive. Comparing with our Step 2 gives BkA=(−1)k−1B2k=∣B2k∣, so Ahlfors' indexing agrees with the second variant.
So the only differences in this library are the halved subscript and the suppressed sign; with ours, B2k and ζ(2k) are related with the factor (−1)k+1, and with the other two the sign disappears. Our numerical values B2=61, B4=−301, B6=421 are on our convention throughout.
Outside the half line. Everything above is confined to real s>1, which is this unit's scope, but the function does not stop there. Arfken, Weber and Harris (Arfken, Weber & Harris (2013), §13.5, pp. 629-633) continue ζ to the whole plane by the reflection formula Γ(2z)π−z/2ζ(z)=Γ(21−z)π−(1−z)/2ζ(1−z) (Eq. (13.67)) together with the alternating series ζ(z)=(1−21−z)−1∑n≥1(−1)n−1n−z, which converges on Rez>0 and so covers the critical strip; the continued function is analytic except for a simple pole at z=1 of residue 1 (Eq. (13.69) and Exercise 13.5.10). They also derive Euler's prime product ζ(s)=∏p prime(1−p−s)−1 (Eq. (13.72)), which the application below meets again in probabilistic clothing. The machinery is that of Analytic continuation; none of it is needed here.
Method(Values of ζ at integer arguments)Original
Even argument 2k, closed form. Get B2k from the recursion N−1=∑n=1N−1(2n2N)B2n with N=k+1, which involves only the earlier even-index numbers; then
ζ(2k)=(−1)k+12(2k)!(2π)2kB2k.
The arithmetic is exact and rational apart from the power of π.
Odd argument, or non-integer s. No closed form is available, and summing the series directly converges only algebraically: its terms decay like n−s and the tail after N terms is about N1−s/(s−1). At s=3 that tail is about 1/(2N2), so a few dozen terms are enough for four figures — N=32 puts the partial sum within 5×10−4 of ζ(3)=1.2020569… — but every further decimal digit costs a factor 10≈3.2 in N: N=707 for 10−6 and N≈2.2×104 for 10−9. The cost worsens without limit as s↓1, where the exponent s−1 collapses. For many digits, or for s near 1, either
use Euler-Maclaurin summation (Euler-Maclaurin summation), which replaces the tail ∑n≥Nn−s by s−1N1−s+2N−s+⋯, the further corrections carrying the same B2k as above, and gives many digits from a handful of terms; or
use the alternating series ζ(s)=(1−21−s)−1∑n≥1(−1)n−1n−s of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (13.68), p. 629), whose partial sums bracket the answer.
A consistency check worth doing. Any claimed ζ(2k) should satisfy ζ(2k)>1, decrease in k, and sit above the two-term lower bound 1+2−2k. The closed forms do: π2/6=1.644934, π4/90=1.082323, π6/945=1.017343.
Example(ζ(6)=π6/945, from the recursion to the number)Original
Step 1: B6 from the recursion. Take N=4 in N−1=∑n=1N−1(2n2N)B2n:
The first two terms are 314 and −37, whose sum is 37, so 28B6=3−37=32 and
B6=3⋅282=421.
(The same recursion at N=2 and N=3 returns B2=61 and B4=−301, and at N=5,6 it returns B8=−301, B10=665, matching Table 12.2 of Arfken, Weber and Harris, p. 562.)
Step 2: insert it. With k=3 the sign is (−1)4=+1, the factorial is 6!=720, and (2π)6=64π6:
ζ(6)=2⋅72064π6⋅421=6048064π6=945π6.
The reduction is 60480/64=945. Numerically π6=961.389194, so
ζ(6)=1.0173430620.
Step 3: check it against the series. Summing ∑n≤Nn−6 directly:
N
∑n≤Nn−6
ζ(6)−∑
tail bound 5N51
10
1.01734151244
1.5495×10−6
2.0×10−6
100
1.01734306196
1.95×10−11
2.0×10−11
1000
1.01734306198
2.0×10−16
2.0×10−16
The tail bound is the integral comparison ∑n>Nn−6≤∫N∞x−6dx=1/(5N5), the same comparison that proved convergence in the definition; the observed errors sit just below it, as they must. Note the cost: 1000 terms of the series buy sixteen digits, while Step 2 gives them all exactly. That contrast is the whole point of the closed form, and it is also why the method above sends odd arguments to Euler-Maclaurin rather than to the series.
Application(Blackbody radiation and the Stefan-Boltzmann constant)AdaptedAdapted from Arfken, Weber & Harris (2013), §13.5, Exercises 13.5.3, 13.5.5, 13.5.6, 13.5.7 and 13.5.8, pp. 632-633
The energy density of thermal radiation in a cavity, integrated over frequency with the Planck distribution, is
u=c3h38πk4T4∫0∞ex−1x3dx,
the set-up of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Exercise 13.5.5, p. 632), where x=hν/kT. The integral is a zeta value. Expand the integrand as a geometric series in e−x, which is legitimate term by term because every term is positive and the partial sums increase (∑n≤M of positive measurable terms, so monotone convergence applies, Integrating and differentiating series term by term):
the inner integral being Γ(4)/n4 after x↦x/n (The Gamma function). This is the general identity ∫0∞xs(ex−1)−1dx=Γ(s+1)ζ(s+1) of Arfken, Weber and Harris, Exercise 13.5.6. Now Euler's formula supplies the closed value: 3!ζ(4)=6⋅π4/90=π4/15=6.49393940.
So u=8π5k4T4/(15c3h3), and with the radiated flux σT4=cu/4,
σ=15c2h32π5k4.
Putting in k=1.380649×10−23JK−1, h=6.62607015×10−34Js and c=2.99792458×108ms−1 gives
σ=5.6703744×10−8Wm−2K−4,
the measured Stefan-Boltzmann constant. The π5 in that number is π4 from ζ(4) — that is, from B4=−1/30 — times one π from the solid-angle factor. The same pattern recurs: Arfken, Weber and Harris's Exercise 13.5.3 puts ζ(5) into the low-temperature resistivity of a monovalent metal, and Exercise 13.5.8 puts 7π5/30 into the neutrino energy density of the early universe. That last factor is the Fermi counterpart of the computation above: the sign in the denominator changes to ex+1, the geometric series becomes alternating, and Arfken, Weber and Harris's Exercise 13.5.7 gives ∫0∞xs(ex+1)−1dx=Γ(s+1)(1−2−s)ζ(s+1), so that ∫0∞x3(ex+1)−1dx=6⋅87⋅90π4=1207π4, which is 87 of the Bose value. Where a Bose or Fermi distribution is integrated against a power, a zeta value appears, and for an even argument this unit evaluates it.
Application(A random integer: Euler's product as independence)AdaptedAdapted from Grimmett & Stirzaker (2020), Problems 3.11.31 and 3.11.52, pp. 93, 97
Because ζ(β)<∞ for β>1, the weights m−β can be normalised into a probability distribution on N:
P(M=m)=ζ(β)m−β,m=1,2,3,…
Grimmett and Stirzaker (Grimmett & Stirzaker (2020), Problem 3.11.31, p. 93) construct this M as ∏ipiN(i) over the primes p1,p2,…, with the exponents N(i) independent and geometric with parameter 1−pi−β; the normalising constant then has the two expressions ζ(β)−1=∏i(1−pi−β), which is Euler's product. Read the other way (their Problem 3.11.52, p. 97), the events Ep={p divides M} are independent across primes with P(Ep)=p−β, and Euler's product is just the statement that P(M=1)=∏p(1−p−β).
Independence makes a divisibility question into a product. Grimmett and Stirzaker's part (c): M is divisible by no perfect square above 1 exactly when no p2 divides it, and these events are independent with probability p−2β each, so
P(M square-free)=p∏(1−p−2β)=ζ(2β)1.
At β=2 the answer is a number this unit can produce in closed form, because 2β=4 is even:
P(M square-free)=ζ(4)1=π490=0.9239384.
The classical companion, with the uniform distribution on {1,…,n} and n→∞, is 1/ζ(2)=6/π2=0.6079271 for the probability that two integers are coprime. Both numbers are closed-form only because the argument is even.
Defines the incomplete Gamma functions γ(a,x) and Γ(a,x) and the error functions erf and erfc as the case a=21, then gives both of the expansions a computation needs — a convergent power series for small argument and an asymptotic series with a rigorous remainder bound for large argument.
Cutting Euler's integral for Γ(a) (The Gamma function) at a point x>0 defines the lower and upper incomplete Gamma functions
γ(a,x)=∫0xe−tta−1dt,Γ(a,x)=∫x∞e−tta−1dt.
The first needs Rea>0 for convergence at the origin, where the integrand has modulus tRea−1e−t; the second converges for every a once x>0, because the only issue there is the decay at infinity, which e−t supplies. Adding them restores the whole integral:
γ(a,x)+Γ(a,x)=Γ(a)(Rea>0).
Because of that identity the two carry the same information, so which one a calculation is written in terms of is settled by the problem at hand and not by any difference in content; both Arfken, Weber and Harris (Arfken, Weber & Harris (2013), p. 633) and Riley, Hobson and Bence (Riley, Hobson & Bence (2006), p. 639) make the point. Riley, Hobson and Bence also record the normalised pair
P(a,x)=Γ(a)γ(a,x),Q(a,x)=Γ(a)Γ(a,x)=1−P(a,x),
which are the ones a statistician meets, since P(a,x) is a cumulative distribution function in x.
The factor 2/π is chosen so that erf(∞)=1, which is the Gaussian integral ∫0∞e−u2du=21π (Gaussian integrals); this is the normalisation of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Table 1.2, p. 66, and Eq. (13.90), p. 637), Riley, Hobson and Bence (Riley, Hobson & Bence (2006), Eq. (18.167), p. 640) and Strauss (Strauss (2008), Eq. (10), p. 51), and the one we use throughout. Immediately from the definition: erf(0)=0, erf(−x)=−erf(x) since the integrand is even, erfc(0)=1, and
dxderf(x)=π2e−x2,
so erf is strictly increasing, extends to an entire function of a complex argument, and satisfies the differential equation y′′+2xy′=0 noted by Hassani (Hassani (2013), §14.6, p. 437) — on our normalisation with the data y(0)=0, y′(0)=2/π.
The error function is the case a=21. Substituting t=u2 in the lower incomplete Gamma integral, so that dt=2udu and t−1/2=u−1,
γ(21,x2)=∫0x2e−tt−1/2dt=2∫0xe−u2du=πerf(x),
and likewise Γ(21,x2)=πerfc(x). These are the relations
erf(x)=π−1/2γ(21,x2),erfc(x)=π−1/2Γ(21,x2)
of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (13.93), p. 638) and Riley, Hobson and Bence (Riley, Hobson & Bence (2006), Eqs. (18.167)-(18.168), p. 640); the identity erf+erfc=1 is the splitting of the previous definition divided by Γ(21)=π. Everything proved below about γ(a,x) and Γ(a,x) therefore specialises to the error functions, and that is how we obtain their expansions.
The Gaussian distribution function. Riley, Hobson and Bence (p. 640) record the form in which the error function is met in probability: for the standard normal distribution,
Φ(x)=2π1∫−∞xe−y2/2dy=21+21erf(2x).
The 2 is the whole content of the difference between the two conventions: one integrates e−u2, the other e−y2/2. As a check, Φ(1)=21+21erf(0.7071068)=21+21(0.6826895)=0.8413447, the familiar one-sigma figure.
Definition(Series, recurrences and large-argument expansions)AdaptedAdapted from Arfken, Weber & Harris (2013), §13.6, Eqs. (13.75)-(13.76), pp. 633-634, Eqs. (13.91)-(13.92), p. 637, and Exercises 13.6.3-13.6.4, p. 638; Riley, Hobson & Bence (2006), §18.12.3, the integration-by-parts recurrence and integer closed form, p. 639
Let x>0 and a be real with a>0 where γ appears.
Recurrences.Γ(a+1,x)=aΓ(a,x)+xae−x for every real a, and γ(a+1,x)=aγ(a,x)−xae−x for a>0.
Convergent series for the lower function. For every x>0,
γ(a,x)=xan=0∑∞n!(a+n)(−1)nxn,
the series converging for all x (it is the term-by-term integral of the exponential series). In particular
erf(x)=π2n=0∑∞(2n+1)n!(−1)nx2n+1=π2(x−3x3+10x5−42x7+⋯),
valid for every real (indeed complex) x.
Exact truncation with remainder. Put c0=1 and cm=(a−1)(a−2)⋯(a−m) for m≥1. Then for every N≥1Γ(a,x)=e−xxa−1m=0∑N−1xmcm+cNΓ(a−N,x),
an identity, not an approximation. If moreover N≥a−1, the remainder obeys
cNΓ(a−N,x)≤∣cN∣e−xxa−1−N,
which is the modulus of the first omitted term.
Asymptotic expansion. Consequently, as x→∞ with a fixed,
Γ(a,x)∼e−xxa−1m=0∑∞xm(a−1)(a−2)⋯(a−m)
in the sense of Asymptotic series: each truncation has error of smaller order than its last retained term. This is the expansion of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (13.76), p. 634, and Exercise 13.6.4, p. 638), whose coefficient Γ(a)/Γ(a−m) is the same product; they state it for non-integral a. For such a the series diverges for every x. When a is a positive integer it is not a series at all but a terminating sum, which is part 5.
Integer a: the expansion terminates and is exact. If a=n∈N then cn=0, so part 3 with N=n has no remainder and
Γ(n,x)=(n−1)!e−xs=0∑n−1s!xs,γ(n,x)=(n−1)!(1−e−xs=0∑n−1s!xs),
the closed forms of Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (13.75), p. 633) and Riley, Hobson and Bence (Riley, Hobson & Bence (2006), p. 639).
The error functions. Taking a=21 and replacing x by x2 in parts 3 and 4: for x>0 and N≥1,
erfc(x)=xπe−x2(m=0∑N−1(−1)m2mx2m(2m−1)!!)+RN(x),∣RN(x)∣≤xπe−x2⋅2Nx2N(2N−1)!!,
with (−1)!!=1 and (2m−1)!!=1⋅3⋯(2m−1). Hence
erfc(x)∼xπe−x2(1−2x21+4x43−8x615+⋯)(x→∞),
which is the expansion Arfken, Weber and Harris (Arfken, Weber & Harris (2013), Eq. (13.92), p. 637) give in the equivalent form erf(x)≈1−π−1/2x−1e−x2∑m(−1)m(2m−1)!!/(2mx2m). The terms alternate in sign, so the bound on RN says the truncation error is no larger in modulus than the first term dropped, and successive truncations bracket the answer.
Idea of the proofOriginal
Two expansions, one for each end of the range, and each is got by expanding a different factor of the integrand.
For small x the exponential is the harmless factor: expand e−t in its everywhere-convergent power series and integrate term by term over the bounded interval [0,x]. Each monomial integrates to a power of x, and the result converges for every x — it is an honest Taylor series. The reason this only works for the lower function is that the upper one integrates over an unbounded interval, where the exponential series converges nowhere uniformly.
For large x the power ta−1 is the harmless factor: on [x,∞) it varies slowly compared with the collapse of e−t, so almost all of the integral comes from a neighbourhood of the left endpoint. Integration by parts is the systematic way to exploit that: it peels off xa−1e−x, the value at the endpoint, and leaves an integral of the same shape with the exponent lowered by one. Each repetition peels off a smaller term and lowers the exponent again. Nothing has been approximated so far — the identity in part 3 is exact for every N.
The approximation enters only when we stop and discard the leftover integral, and the single fact that makes the discard controllable is that ta−N−1 is decreasing once N>a−1: then it is largest at the endpoint, so the leftover integral is at most xa−N−1∫x∞e−tdt. That is precisely the size of the next term, which is the classical statement that the error is no worse than the first term omitted.
Unless the peeling stops of its own accord — which happens exactly when a is a positive integer, for then some factor a−m is 0 — the series cannot converge, because the exponents being lowered eventually make ∣cm∣ grow like m! while x−m shrinks only geometrically. So for each x there is a best place to stop — roughly where consecutive terms stop decreasing — and that best accuracy is all the expansion will ever give. The error functions inherit all of this at a=21, and the one accident of a=21 is that the coefficients are the double factorials with strictly alternating signs.
the boundary term at infinity vanishing because tae−t→0 for every fixed a. On [0,x] the same computation gives the boundary term −xae−x at the upper end and 0 at the lower end, the latter requiring a>0 so that ta→0:
Part 2 (convergent series). Fix x>0. The exponential series e−t=∑n≥0(−1)ntn/n! converges uniformly on the compact interval [0,x], by the Weierstrass M-test with Mn=xn/n! (Uniform convergence). Multiplying a uniformly convergent series by the fixed function ta−1 preserves uniform convergence on [ε,x] for each ε>0, and the resulting series of integrals converges absolutely because ∫0xta+n−1dt=xa+n/(a+n) is summable; so we may integrate term by term (Integrating and differentiating series term by term) and let ε→0:
For the error function put a=21 and replace x by x2: the general term becomes (−1)nx2n+1/(n!(n+21))=2(−1)nx2n+1/(n!(2n+1)), so πerf(x)=γ(21,x2)=2∑n(−1)nx2n+1/((2n+1)n!), which is part 2's second display. The first few coefficients are 1, −31, 101, −421.
Part 3 (exact truncation). Apply part 1 in the direction that lowers the first argument: replacing a by a−1 there gives Γ(a,x)=xa−1e−x+(a−1)Γ(a−1,x). We claim by induction on N that
Γ(a,x)=e−xxa−1m=0∑N−1xmcm+cNΓ(a−N,x).
For N=1 this is exactly the displayed relation, since c0=1 and c1=a−1. Assume it for N and apply the same relation to Γ(a−N,x), whose first argument is a−N:
Γ(a−N,x)=xa−N−1e−x+(a−N−1)Γ(a−N−1,x).
Substituting, and using cN(a−N−1)=cN+1 together with cNxa−N−1=xa−1⋅cNx−N, gives the statement for N+1. Note that no convergence question arises: each Γ(a−N,x) is a finite integral because x>0.
For the bound, let b=a−N and suppose N≥a−1, that is b−1≤0. Then t↦tb−1 is non-increasing on [x,∞), so tb−1≤xb−1 there and
0<Γ(b,x)=∫x∞tb−1e−tdt≤xb−1∫x∞e−tdt=xa−N−1e−x.
Multiplying by ∣cN∣ gives part 3's inequality, and the right-hand side is ∣cN∣x−N times the prefactor e−xxa−1, i.e. the modulus of the term with m=N — the first one omitted.
Part 4 (asymptotic character). Fix N with N≥a−1. By part 3 the error committed by truncating after the term m=N−1 is at most ∣cN∣e−xxa−1−N, which is O(x−1) times the last retained term cN−1e−xxa−N. So each truncation has error of smaller order than its final term as x→∞, which is the definition of an asymptotic expansion (Asymptotic series). Divergence for every fixed x, when a is not a positive integer: no factor a−m then vanishes, so no cm does, and the ratio of consecutive terms has modulus ∣a−m−1∣/x, which exceeds 1 once m>x+∣a∣; the terms therefore eventually increase without bound. For a a positive integer the terms are 0 from m=a on and the sum is finite, which is part 5.
Part 5 (integer a). If a=n is a positive integer then cn=(n−1)(n−2)⋯(n−n)=0, because the last factor is 0. Part 3 with N=n therefore has a vanishing remainder:
there being m factors, each negative, with moduli 21,23,…,22m−1. Since N≥1>a−1=−21 for every N≥1, the remainder bound of part 3 applies for all N. Writing part 3 at the point x2 and multiplying by π−1/2, using erfc(x)=π−1/2Γ(21,x2) and e−x2(x2)−1/2=e−x2/x for x>0, gives exactly part 6, with the remainder bound as stated. The signs alternate because the cm do and x−2m>0, and for an alternating sequence the bound "error at most the first omitted term" also makes consecutive truncations bracket the value. □
Remark(Where the hypotheses are used)Original
Rea>0 for γ, nothing for Γ. The lower integral is the one that reaches the origin, where ta−1 blows up; the condition is exactly integrability there. It is used again in part 1, where the boundary term tae−t at t=0 is discarded, and this is why only the γ recurrence carries the restriction while the Γ recurrence holds for every real a — including the negative values a−N that the repeated integration by parts generates.
x>0 throughout parts 3-6. Every remainder Γ(a−N,x) is a convergent integral only because the lower limit is positive; at x=0 the upper function with a negative first argument diverges. Correspondingly the large-argument expansion says nothing at small x, and the prefactor e−x2/(xπ) in part 6 is singular at x=0, where the true value erfc(0)=1 is perfectly finite.
N≥a−1 for the remainder bound. This is what makes ta−N−1 non-increasing on [x,∞), so that its maximum is at the endpoint. Without it the bound is false in the stated form: for a−N−1>0 the factor grows and the integral is not controlled by its endpoint value. For the error functions a=21 and every N≥1 qualifies, which is why part 6 needs no side condition.
Boundedness of the interval in part 2. Term-by-term integration of the exponential series is justified by uniform convergence on a compact interval. Attempting the same on [x,∞) fails at once — ∑(−1)ntn/n! is not uniformly convergent there — and this is the structural reason the upper function has no convergent expansion of that kind and must be handled by integration by parts instead.
Why the asymptotic series is still useful although it diverges. Divergence is not a defect to be worked around; it bounds the accuracy obtainable. The modulus of the term m is (2m−1)!!/(2mx2m) for erfc, and the ratio of consecutive terms is (2m+1)/(2x2), which is below 1 exactly while m<x2−21. So the terms decrease until about m≈x2 and increase thereafter: truncating near there gives the best this expansion can do, and the bound in part 6 says what that is. The example below carries this out at x=3.
Alternating signs are special to a=21. The bracketing property in part 6 comes from the signs of the cm, all of which are negative factors for a=21. For a>1 some factors a−m are positive and the signs are not alternating, so only the remainder bound survives, not the bracketing.
The symbol erf is not used consistently across the cited books, and a formula moved between them without checking will be wrong by a factor or an additive constant. In this library:
Hassani (Hassani (2013), §14.6, p. 436) writes erf(x)=π1∫−∞xe−t2dt, integrating from −∞ and with half our prefactor. That function equals 21(1+erf(x)) in our notation, so it runs from 0 to 1 as x runs over R and takes the value 21 at the origin. His initial data for y′′+2xy′=0, namely y(0)=21 and y′(0)=1/π (p. 437), are those of his function; ours satisfies the same equation with y(0)=0, y′(0)=2/π.
Hassani (Hassani (2013), §15.6, Problem 15.23, p. 487) writes, in the same book, erf(z)=∫0ze−t2dt with no prefactor at all, and in that normalisation records the confluent hypergeometric form
∫0ze−t2dt=zΦ(21,23;−z2),
with Φ the confluent hypergeometric function. Nothing in this unit rests on that identification, so Confluent hypergeometric functions is a pointer onward rather than a prerequisite; all that is used of Φ here is the ratio of Pochhammer symbols recorded at the end of this bullet. Translated into our normalisation Hassani's relation reads erf(z)=π2zΦ(21,23;−z2); it is the series of part 2 in hypergeometric dress, since (21)n/(23)n=1/(2n+1).
So the three differ only by a constant factor and, in the second case, an additive constant. Our statements and numbers use the first throughout, and the P,Q pair of Riley, Hobson and Bence relates to it by P(21,x2)=erf(x) and Q(21,x2)=erfc(x).
Method(Evaluating erf or erfc to a target accuracy)Original
Decide which function you want. For x large, erf(x) is close to 1 and all the information is in erfc(x); computing it as 1−erf(x) in finite precision destroys that information. Always compute the small one directly.
Choose the expansion by the size of x. Use the convergent series of part 2 for x up to roughly 2, and the asymptotic series of part 6 for larger x. The two regions overlap, which is what makes the pair usable for all x — but the overlap is one of usability, not of accuracy. The crossover is exactly where the asymptotic series is at its weakest: at x=2 its best truncation (N=4) is still 1.4% off, so in that region the convergent series is the one to trust, and step 4 will say so.
Convergent series: sum until the terms are small. The terms tn=2(−1)nx2n+1/(π(2n+1)n!) decrease in modulus as soon as x2<(2n+3)(n+1)/(2n+1), and after that the series alternates, so the sum of the discarded tail is at most ∣tn+1∣. Stop when that is below the tolerance.
Asymptotic series: check the bound before trusting the value. Add the terms (−1)m(2m−1)!!/(2mx2m) while they decrease, that is while m<x2−21, and use part 6 to bound the error by the first omitted term. If that bound is above the tolerance, the expansion cannot reach it at this x and no number of terms will help: go back to step 3, or use a continued fraction or quadrature.
Sanity checks that cost nothing.0<erfc(x)<1 for x>0; erfc is decreasing; and the first two terms of part 6 bracket the answer, so the true value must lie between e−x2/(xπ)⋅(1−2x21) and e−x2/(xπ) for x>1.
For general γ(a,x), Γ(a,x) the same split applies, with the crossover near x≈a+1: series from part 2 below it, the expansion of part 4 above it, and the exact closed form of part 5 whenever a is a positive integer.
Example(Both expansions, at x=0.6 and at x=3)Original
Small argument: erf(0.6) from the convergent series. The terms tn=π2(−1)nx2n+1/((2n+1)n!) at x=0.6 are
n
tn
partial sum
0
+0.67702750
0.67702750
1
−0.08124330
0.59578420
2
+0.00877428
0.60455848
3
−0.00075208
0.60380640
4
+0.00005265
0.60385904
5
−0.00000310
0.60385594
6
+1.5745×10−7
0.60385610
7
−7.0178×10−9
0.60385609
Eight terms give erf(0.6)=0.603856091, and the next term bounds the error by 2.8×10−10; the true value is 0.6038560908479, so the actual error is −2.7×10−10, inside the bound as the alternation guarantees. The terms shrink fast because x2=0.36 is small, and a tolerance of 10−9 costs eight terms.
Large argument: erfc(3) from the asymptotic series. Here the prefactor is
3πe−9=5.31736161.2340980×10−4=2.3208842×10−5,
and the bracket terms (−1)m(2m−1)!!/(2m⋅9m) are 1, −181, +3243, −583215, +104976105, i.e. 1, −0.0555556, +0.0092593, −0.0025720, +0.0010002:
N
truncated sum
erfc(3) estimate
error
bound from part 6
1
1.0000000
2.3208842×10−5
+1.12×10−6
1.29×10−6
2
0.9444444
2.1919462×10−5
−1.71×10−7
2.15×10−7
3
0.9537037
2.2134359×10−5
+4.39×10−8
5.97×10−8
4
0.9511317
2.2074665×10−5
−1.58×10−8
2.32×10−8
The true value is erfc(3)=2.20904970×10−5. Every error is below its bound and alternates in sign, so consecutive rows bracket the answer: the value lies between 2.2074665×10−5 and 2.2134359×10−5 after four terms. That bracket is 2.7×10−3 wide in relative terms and pins erfc(3) to 2.21×10−5: three significant figures from four terms of arithmetic, with the N=4 entry itself in error by 7.2×10−4 relative.
Where it stops improving. The terms decrease while m<x2−21=8.5, so the best truncation is N=9. It gives 2.2092512×10−5, an absolute error of 2.0×10−9 and a relative error of 9.1×10−5. Adding further terms makes matters worse: N=12 gives error −2.7×10−9. About four correct digits is all this expansion will deliver at x=3, for any number of terms.
The contrast with the convergent series at the same point. The convergent series does converge at x=3, but it must first build up and then cancel away a value near 1: its largest term is 214.17 (at n=7), and reaching an absolute accuracy of 10−9 in erf(3)=0.9999779095 needs 37 terms. To extract erfc(3)≈2.2×10−5 from that one then subtracts from 1, and the cancellation costs about eight digits: ∑n∣tn∣=1629.99 against an answer of 2.2090497×10−5 is a ratio of 7.4×107, and the final subtraction 1−erf(3) accounts for log10(1/erfc(3))=4.7 of those digits on its own. Four terms of the asymptotic series are both cheaper and better conditioned — this is the whole case for a divergent expansion.
Application(Diffusion from a step: the error-function profile)AdaptedAdapted from Strauss (2008), §2.4, Steps 1-3 and Eq. (5), pp. 48-49, and Example 1, p. 51; Stakgold & Holst (2011), §7.3, Eq. (7.3.22) and Duhamel's formula Eqs. (7.3.23)-(7.3.25), p. 449
The error function is not merely a convenient notation for a Gaussian integral; it is forced on the diffusion equation by a scaling argument, and the route is instructive.
Seek a solution of ut=kuxx on the whole line depending only on the dimensionless combination p=x/4kt — the only such combination available, as Strauss (Strauss (2008), §2.4, Step 1, p. 48) argues from the invariance of the equation under x↦a1/2x, t↦at. Writing u=g(p) and using the chain rule, ut=−2tpg′(p) and uxx=4kt1g′′(p), so the equation collapses to the ordinary differential equation
g′′(p)+2pg′(p)=0,
which is the equation satisfied by the error function. Its integrating factor ep2 gives g′(p)=C1e−p2 and hence g(p)=C1∫0pe−q2dq+C2: every scale-invariant solution is an affine function of erf(p). Matching the step initial data u(x,0)=1 for x>0 and 0 for x<0 fixes the constants (Strauss, Step 3, p. 49) and yields
u(x,t)=21+21erf(4ktx).
A number. Join two long copper bars at t=0, the half-line x<0 at 0∘C and the half-line x>0 at 100∘C, and ask for the temperature one centimetre inside the hot bar after 10 s. Copper has thermal diffusivity k=1.11×10−4m2s−1, so
The convergent series of part 2 gives erf(0.1500751)=0.1680788 in four terms, so the temperature is
T=100(21+21⋅0.1680788)∘C=58.40∘C,
and by the oddness of erf the mirror point one centimetre into the cold bar sits at 41.60∘C, the two averaging to the 50∘C that the join itself holds for all time. The diffusion length 4kt=6.7 cm after ten seconds is why the answer is so close to the mean of 50∘C: one centimetre is well inside the smeared front.
Boundary data instead of initial data.Stakgold and Holst (Stakgold & Holst (2011), §7.3, Eq. (7.3.22), p. 449) solve the companion half-line problem ut=uxx on x>0 with u(x,0)=0 and u(0,t)=1, and obtain the complementary error function: u(x,t)=erfc(x/4t), which is again of the form C1∫0pe−q2dq+C2 and so solves the same reduced equation, now with g(0)=1 and g(∞)=0. On this solution they build Duhamel's formula (their Eqs. (7.3.23)-(7.3.25)), which superposes time-shifted copies to solve the problem with an arbitrary boundary temperature h(t). The large-argument expansion of part 6 is what tells one how far the heat has not yet reached: at p=3 the surface temperature has raised the interior by only 2.2×10−5 of its value.