The Gamma Function
Total Page:16
File Type:pdf, Size:1020Kb
The Gamma function Marco Bonvini October 9, 2010 1 Gamma function The Euler Gamma function is defined as Z ∞ t z 1 Γ(z) dt e− t − . (1) ≡ 0 It is easy to show that Γ(z) satisfy the recursion relation Γ(z + 1) = z Γ(z) : (2) indeed, integrating by parts, Z ∞ t z Γ(z + 1) = dt e− t 0 Z t z ∞ ∞ t z 1 = e− t + z dt e− t − − 0 0 = z Γ(z) . (3) For z = n integer eq. (2) is the recursion relation of the factorial, and thus we have Γ(n + 1) n! ; (4) ∝ because in addition Γ(1) = 1 (easly derived from the definition), we have the identification Γ(n + 1) = n! , (5) and in this sense the Gamma function is a complex extension of the factorial. The sequence of Gamma function computed in all half-integers can be obtained using subsequently the recursion relation (2) and knowing that 1 Γ = √π (6) 2 that is easy to compute: Z 1 ∞ t 1 Γ = dt e− t− 2 2 0 Z ∞ x2 = 2 dx e− 0 √π = 2 = √π . (7) 2 1 15 10 5 !2 2 4 !5 !10 Figure 1: Re Γ(x) for real x. 1.1 Analytical structure First, from the definition (1), we see that Γ(z¯) = Γ(z) , (8) that is to say that Gamma is a real function, and in particular Im Γ(x) = 0 for x R. ∈ Inverting eq. (2) we have 1 Γ(z) = Γ(z + 1) , (9) z and when z = 0 it diverges (because Γ(1) = 1 is finite). It is evident that z = 0 corresponds to a simple pole of order 1 and residue 1: indeed Res Γ(z) = lim z Γ(z) = lim Γ(z + 1) = 1 . (10) z=0 z 0 z 0 → → Formally, we can discover that the Gamma function has simple poles in all negative integers simply iterating the recursion (2): 1 Γ( n) = Γ( n + 1) − n − − = ... ( 1)n = − Γ(0) (n N) . (11) n! ∈ ( 1)n This brings to the conclusion that Γ( n) has a simple pole of order 1 and residue − . More − n! rigorously, this can be shown in the usual way: Res Γ(z n) = lim z Γ(z n) z=0 − z 0 − → z = lim Γ(z n + 1) z 0 z n − → − = ... 2 z = lim Γ(z) z 0 (z n)(z n + 1) (z 1) → − − ··· − ( 1)n = − (n N) . (12) n! ∈ In all the complex plane (except the negative real axis) the Gamma function is well defined. Fon non-integer negative real values the Gamma function can be analytically continued (as we have seen for example for half-integers, positives and negatives). We can prove these results in a simpler way. Starting from the definition (1) we rewrite Z Z 1 ∞ t z 1 t z 1 Γ(z) = dt e− t − + dt e− t − 1 0 Z Z 1 X n ∞ t z 1 z 1 ∞ ( 1) n = dt e− t − + dt t − − t n! 1 0 n=0 Z X n ∞ t z 1 ∞ ( 1) 1 = dt e− t − + − (13) n! z + n 1 n=0 where the first integral is an analytic function of z and the second term gives the position of the poles and their residues. Moreover, the Gamma function has an essential singularity to complex infinity, because Γ 1 has a non-defined limit for z 0. This is to say that the Gamma function is not well z → defined in the compactified complex plane. Now we want to show that near a pole in n one has the expansion − ( 1)n 1 Γ(z n) = − + ψ(n + 1) + (z) (14) − n! z O where ψ(z) is the logarithmic derivative of the Gamma function, defined in (41); note that ψ(n + 1) has an explicit expression given in eq. (44). First, note that 1 Γ(z n) = Γ(z n + 1) − z n − − = ... 1 = Γ(z + n + 1) (z n)(z n + 1) (z 1) z (z + 1) (z + n) − − ··· − ··· 1 = G(z, n) (15) z where we have defined Γ(z + n + 1) ( 1)n h i G(z, n) = = Γ(z + n + 1) − 1 + (z2) . (16) (z2 n2) (z2 1) (n!)2 O − ··· − By Taylor expanding G(z, n) around z = 0 in (15) we get 1 h 2 i Γ(z n) = G(0, n) + z G0(0, n) + (z ) − z O ( 1)n 1 1 = − + Γ0(n + 1) + (z) , (17) n! z n! O that is the claimed result. 3 1.2 Alternative definitions There are some alternative definitions of the Gamma function. One, due to Euler, is 1 z 1 Y∞ (1 + ) n!(n + 1)z Γ(z) = n = lim . (18) z 1 + z n z(z + 1) (z + n) n=1 n →∞ ··· It is easy to prove (using the expression with the limit) that with this definition the recursion relation (2) is satisfied, and also that for z = 1 gives Γ(1) = 1. Another one, due to Weierstrass, is h i γz Y z/n n! exp z 1 + 1 + ... + 1 e− ∞ e γz 2 n Γ(z) = = e− lim , (19) z 1 + z n z(z + 1) (z + n) n=1 n →∞ ··· where γ is the Euler-Mascheroni number defined in Section 2.2 The equivalence to the Euler definition can be seen by taking the logarithm of this two forms: the first gives X∞ 1 z log Γ(z) = log z + z log 1 + log 1 + (20) − n − n n=0 and the second gives X∞ z z log Γ(z) = log z γz + log 1 + . (21) − − n − n n=0 Comparing this two expressions we note that they are equal because of eq. (48). Note that this two expression are useful in order to numerically approximate log Γ(z), by truncating the series to a certain value of n. 1.3 Euler reflection formula A useful formula is π Γ(z) Γ(1 z) = (22) − sin(πz) called the Euler reflection formula. To demonstrate it, consider the alternative definition (18) and note that 1 1 = Γ(z) Γ(1 z) z Γ(z) Γ( z) − − − z z z( z) Y∞ (1 + n ) (1 n ) = − z − z z 1 1 − − n=1 (1 + n ) (1 + n ) ! Y∞ z2 = z 1 − n2 n=1 sin(πz) = (23) π where we have used ! Y∞ z2 sin(πz) = πz 1 . (24) − n2 n=1 4 1.4 Stirling approximation The Stirling approximation for the factorial is n n n! = √2πn e− n (25) which is valid for large n. To demonstrate it, we perform a saddle point approximation to the integral (1): Z ∞ t z Γ(z + 1) = dt e− t 0 Z ∞ t+z log t = dt e− 0 now we expand the exponent near its maximum and get Z ∞ 1 dt exp z + z log z t2 ' 0 − − 2z Z z z ∞ 1 t2 e− z dt e− 2z ' −∞ z z = √2πz e− z (26) that is the claimed result. 1.5 Derivative recursion relation Consider the Taylor expansion near z = 0 of Γ(z + z0 + 1): X∞ Γ(k)(z + 1) Γ(z + z + 1) = 0 zk ; (27) 0 k! k=0 using eq. (2) this is equal to (z + z0) Γ(z + z0), that expanded is X∞ Γ(k)(z ) (z + z ) Γ(z + z ) = (z + z ) 0 zk 0 0 0 k! k=0 X k ∞ z h (k) (k 1) i = z Γ(z ) + z Γ (z ) + k Γ − (z ) . (28) 0 0 k! 0 0 0 k=1 Comparing the two expansions, we get the equality (k > 0) (k) (k) (k 1) Γ (z0 + 1) = z0 Γ (z0) + k Γ − (z0) . (29) 1.6 Inverse Gamma function We can define an inverse Gamma function 1 ∆(z) (30) ≡ Γ(z) 5 2.5 2.0 1.5 1.0 0.5 !2 2 4 6 !0.5 !1.0 Figure 2: Re ∆(x) for real x. which is an entire function (analytical in all the complex plane). The recursion relation (2) becomes ∆(z) = z ∆(z + 1) . (31) We are able to produce an integral representation of the ∆ function: consider the Laplace z 1 transform of the function t − with respect to t: Z ∞ st z 1 z dt e− t − = s− Γ(z) (32) 0 z and then we have that the inverse Laplace tranform of s− is Z c+i 1 ∞ ts z z 1 ds e s− = ∆(z) t − (33) 2πi c i − ∞ z where c has to be choosen to the right of all the singularities of s− , that is c > 0. Now, by choosing t = 1, we get Z c+i 1 ∞ s z ∆(z) = ds e s− , (34) 2πi c i − ∞ where the integration path can be deformed to be a contour of the negative real axis. Note that for positive integers z = n + 1 the branch cut vanishes and only a pole in s = 0 remains, and then the path can be closed around s = 0 to obtain I 1 1 s n 1 = ds e s− − , (35) n! 2πi that can be also easly demonstrated using the residue theorem. Now consider the Taylor expansion near z = 0 of ∆(z + z0): X∞ ∆(k)(z ) ∆(z + z ) = 0 zk ; (36) 0 k! k=0 using eq. (31) this is equal to (z + z0) ∆(z + z0 + 1), that expanded is X∞ ∆(k)(z + 1) (z + z ) ∆(z + z + 1) = (z + z ) 0 zk 0 0 0 k! k=0 6 X k ∞ z h (k) (k 1) i = z ∆(z + 1) + z ∆ (z + 1) + k ∆ − (z + 1) .