Phil Lucht Math & Physics Archive
Home / Math and Physics Files / Math / Special Functions / Gamma Functions

gamma function page

DOCX · 52.3 KB
Open DOCX file

Phil's short reference page (dated 1.10.10) listing Gamma function formulas: Euler integral, recursion, reflection, pole residues, special values, double factorials, Stirling series, duplication, and digamma. It then derives the reflection formula by contour integration and the Beta integral from Bateman. It also derives Smythe's results for Legendre functions P_n(0) and Q_n(0+), and ends with notes on |Γ(1/2+iτ)|².

AI-written summary; may contain errors.

Extracted text (machine-read; may contain errors)
The Gamma Function PhL 1.10.10 (1) Euler's Integral: Γ(z) = !Syntax Error, Itz-1e-t dt Re(z) > 0 (2) Recursion: Π(z) ≡ Γ(z+1) = z Γ(z) Γ(n+1) = n! Γ(n) = (n-1)! n! = n (n-1)! (3) Extension to Re(z)<0: Γ(z) Γ(1-z) = π/sin(πz) Γ(z+1)Γ(-z) = - π/sin(πz) = z Γ(z) Γ(-z) " Euler's Reflection Formula" Γ(1/2+iτ)Γ(1/2-iτ) = π/cosh(πτ) (4) Pole residues: 1/(2πi) z=-n dz Γ(z) = (-1)n/n! // CCW loop (5) Special values: 0! = Γ(1) = 1 Γ(1/2) = Γ(3/2) = /2 Γ(-1/2) = -2 Γ(m+1/2) = 2-m (2m-1)!! m=1,2,3... Γ(- m+1/2) = 2m (-1)m [(2m-1)!!]-1 m=1,2,3... 5!! = 5*3*1 6!! = 6*4*2 (5a) More double factorials: n even or odd n!! = 2n/2Γ(n/2+1) (n-1)!! = 2n/2 Γ(n/2+1/2)/ n even n!! = 2n/2Γ(n/2+1) (2/π)1/2 (n-1)!! = 2(n-1)/2Γ(n/2+1/2) n odd /[Γ(n/2+1) Γ(1/2 - n/2)] = (-1)n/2 (n-1)!! / n!! n even Smythe #1 Γ(1/2 + n/2) / Γ(1+n/2) = (2/) (n-1)!! / n!! n odd Smythe #2 (6) |Γ(ix)|2 = π/[x sh(πx)] // just - π/sin(πz) = z Γ(z) Γ(-z) with z = ix (7) Stirling: Γ(x+1) = x! = xx e-x { 1 + 1/(12x) + 1/(288x2) + ... } (8) Duplication formula: 22x-1 Γ(x)Γ(x+1/2) = Γ(2x) (9) Real analytic: Γ(z*) = [Γ(z)]* (11) Flip Rule: Γ(a)/Γ(b) = Γ(1-b) sin(πb) / [Γ(1-a) sin(πa) ] example 1: Pochhammer symbol (b)n = Γ(b+n)/Γ(b) = (-1)n Γ(1-b)/Γ(1-b-n) example 2: Γ(x)/Γ(x-n) = (-1)n Γ(n+1-x)/Γ(1-x) (12) Digamma function: ψ(z) = Γ '(z)/Γ(z) = ( ln Γ(z) )' // see Bateman p 16 for rules about A derivation of the Euler Reflection Formula I do this because this is such an important Gamma formula. Summary: By considering the integral I shown below, evaluated two different ways, we are able to show that π /sin(πx) = !Syntax Error, Idr rx-1/(r+1) Then from Bateman we identify the integral on the right above with Γ(x)Γ(1-x), completing the derivation for real x. We then repeat the proof for complex z, or just continue the result off the real axis. This plan was presented in Special functions By George E. Andrews, Richard Askey, Ranjan Roy (Google scan). So, consider this integral: I = ∫C dz zx-1/(z-1) 0 < x < 1 Where the contour C is as shown: This huge double loop contour can be deformed to be a simple CCW loop picking up the pole residue, and that gives I = 2πi (1)x-1 = 2πi As usual, we set z = r eiθ and on loops we have dz = r eiθ idθ. Either loop integral has this form: ∫dθ r eiθ i (r eiθ)x-1 / (r eiθ - 1) = i rx ∫dθ eiθ(x-1) / (r eiθ - 1) For the inner loop, as r→ 0 we get loop integral = - i rx ∫dθ eiθ(x-1) = rx f(x) Since x > 0, this integral is 0. For the outer loop, as r → ∞ we get loop integral = i rx ∫dθ eiθ(x-1)/(reiθ) = i rx-1 ∫dθ eiθ(x-2) = rx-1 g(x) Since x < 1, this integral is 0 (the great circle) We are then left with just the integral of the discontinuity across the cut. Above the cut we have z = r eiπ above cut z = r e-iπ below cut So the cut integral is this [ now we have z = r e±iπ so dz = dr e±iπ = -dr ] !Syntax Error, I dz disc[ zx-1]/(z-1) !Syntax Error, I (-dr) /(-r-1) * [ (r eiπ)x-1 – (r e-iπ)x-1 ] = – !Syntax Error, Idr /(r+1) * rx-1 [ eiπ(x-1) - e-iπ(x-1) ] = – 2isin(π[x-1]) !Syntax Error, Idr /(r+1) * rx-1 = + 2isin(πx) !Syntax Error, Idr /(r+1) * rx-1 Thus we have shown that 2πi = 2isin(πx) !Syntax Error, Idr /(r+1) * rx-1 π /sin(πx) = !Syntax Error, Idr rx-1/(r+1) (**) Now Bateman shows in full detail on page 9 that the Beta function is given by this integral !Syntax Error, Ids sx-1/ (s+1)x+y = Γ(x)Γ(y)/Γ(x+y) // = B(x,y) Therefore if we set x+y = 1 so that y = 1-x we have !Syntax Error, Idr rx-1/(r+1) = Γ(x)Γ(1-x) Notice that for 0 < x < 1, this integral converges, so that is not an issue. Therefore, using (**), we have just derived the pretty famous Euler Reflection Formula for the Gamma function π /sin(πx) = Γ(x)Γ(1-x) Our entire derivation goes through as long as 0 < Re(x) < 1 to get a complex result. Or we can take the real result and continue it off the real axis. In any event, our result is this: π /sin(πz) = Γ(z)Γ(1-z) or Γ(1-z) = π / [ Γ(z) sin(πz) ] 1-z = -z' then z'→z to get: or Γ(-z) = – π / [ Γ(1+z) sin(πz) ] (*) We can define Γ(z) by the usual integral Γ(z) = !Syntax Error, Itz-1e-t dt Re(z) > 0 and then the formula (*) tells us the meaning of the Gamma function everywhere in the left have z plane. In particular, we can see that it has poles at z = 0, -1, -2 and so on from the sin(πz) function, and we could easily compute the residues of those poles (as on first page above). Derivation of Smythe #1 and finding values for Pn(0): This arises in the context of computing Pn(0). We so this with Bateman (22) which says Pn(0) = / [ Γ(1/2-n/2)Γ(1+n/2) ] If n is 1, 3, 5, the first gamma is Γ(0), Γ(-1), etc and has poles, so Pn(0) = 0 when n is odd. For n even, we can apply one result above [ the rest of this section is only value for n = even ] n!! = 2n/2Γ(n/2+1) which handles the second gamma so we have Pn(0) = 2n/2 / [ Γ(1/2-n/2) n!! ] Now we have to get rid of the -n/2 using Γ(1/2-n/2)Γ(n/2+ 1/2) = π / sin(π[1/2-n/2]) = π/cos(-nπ/2) = π/cos(nπ/2) = π / (-1)n/2 z 1-z which tells us that Γ(1/2-n/2) = π (-1)n/2 / Γ(n/2+ 1/2) But for n even we have a rule above which says (n-1)!! = 2(n-1)/2Γ(n/2+1/2) (2/π)1/2 = 2n/2 Γ(n/2+1/2)/ => 1/ Γ(n/2+1/2) = 2n/2/ [(n-1)!!] so we then have Γ(1/2-n/2) = (-1)n/2 / Γ(n/2+ 1/2) = π (-1)n/2 2n/2/ [(n-1)!!] = (-1)n/22n/2 / (n-1)!! and so we end up with Pn(0) = 2n/2 / [ Γ(1/2-n/2) n!! ] = 2n/2 (n-1)!!/ [(-1)n/22n/2 n!! ] = (-1)n/2(n-1)!!/ n!! n even which is the correct result says Smythe. We can summarize by saying / [ Γ(1/2-n/2)Γ(1+n/2) ] = (-1)n/2(n-1)!!/ n!! // Smythe #1 Derivation of Smythe #2 and finding values for Qn(0+): // off the cut Q ! For Qn(0±) we use Bateman p 134 (40). Negative integers in the a,b position just cause F truncation, fine. Just set F=1 on both terms. We then have: Qn(0±) = 2-1Γ(1/2 + n/2) (±j)-n-1/ Γ(1+n/2) + 0 If we are coming down from above, the expo sign is – so we have e-iπn/2 = (-j)n and then Qn(0+) = (+j)-n-12-1 Γ(1/2 + n/2) / Γ(1+n/2) // valid for all n For n even, we use our first n!! line on the front page, which says n!! = 2n/2Γ(n/2+1) (n-1)!! = 2n/2 Γ(n/2+1/2)/ n even and which tell us that Γ(n/2+1) = 2-n/2 n!! Γ(n/2+1/2) = (n-1)!! 2-n/2 Γ(1/2 + n/2) / Γ(1+n/2) = (n-1)!! 2-n/2 / 2-n/2 n!! = (n-1)!! / n!! and therefore Qn(0+) = (+j)-n-12-1 Γ(1/2 + n/2) / Γ(1+n/2) = (+j)-n-12-1(n-1)!! / n!! = (+j)-n-12-1π (n-1)!! / n!! n even But if n is even we have (+j)-n = (-j)n = 1 for n = 0, -1 for n = 2, and so on => (+j)-n = (-1)n/2 so that (+j)-n-1 = (-1)n/2 /j = – j (-1)n/2 and then Qn(0+) = (-1)n/2 (-jπ/2) (n-1)!! / n!! n even // agrees with Smythe Above we found that Pn(0) = (-1)n/2(n-1)!!/ n!! n even so we can say that Qn(0+) = (-jπ/2) Pn(0) n even // agrees with Smythe For n odd, we start over with our odd n data from above Qn(0+) = (+j)-n-12-1 Γ(1/2 + n/2) / Γ(1+n/2) // valid for all n n!! = 2n/2Γ(n/2+1) (2/π)1/2 (n-1)!! = 2(n-1)/2Γ(n/2+1/2) n odd and which tell us that Γ(n/2+1) = (2/π)-1/2 2-n/2 n!! Γ(n/2+1/2) = 2-(n-1)/2(n-1)!! Γ(1/2 + n/2) / Γ(1+n/2) = 2-(n-1)/2(n-1)!! / (2/π)-1/2 2-n/2 n!! = 2-n/2+1/2+1/2+n/2 (n-1)!! / [ n!! ] = 2 (n-1)!! / [ n!! ] which we restate for copying to the front page Γ(1/2 + n/2) / Γ(1+n/2) = (2/) (n-1)!! / n!! n odd Smythe #2 and therefore Qn(0+) = (+j)-n-12-1 Γ(1/2 + n/2) / Γ(1+n/2) = (+j)-n-12-1 * 2 (n-1)!! / [ n!! ] = (+j)-n-1 (n-1)!! / n!! But now n is odd, so we have (+j)-n-1 = : n = 1 -1 n = 3 +1 etc (+j)-n-1 = (-1)(n+1)/2 and our final result is Qn(0+) = (-1)(n+1)/2 (n-1)!! / n!! n = odd // agrees with Smythe Summary of our results for P and Q at 0: Pn(0) = 0 n odd Pn(0) = (-1)n/2(n-1)!! / n!! n even Qn(0+) = (-1)(n+1)/2 (n-1)!! / n!! n odd Qn(0+) = (-1)n/2 (-jπ/2) (n-1)!! / n!! n even Qn(0+) = (-jπ/2) Pn(0) n even Pn(0) / Qn(0+) = (-jπ/2)-1 = 2j/π [ I think the above stuff is superseded by Legendre doc prop. -- 1.27.11] Notes (1) Recall from above that Γ(z+1)Γ(-z) = - π/sin(πz) = z Γ(z) Γ(-z) If we set z = (-1/2+iτ) we get Γ(-1/2+iτ +1)Γ(-[-1/2+iτ]) = - π/sin(π[-1/2+iτ]) = (-1/2+iτ) Γ(-1/2+iτ) Γ(-[-1/2+iτ]) But we know that -sin(π[-1/2+iτ]) = sin(π[1/2-iτ]) = cos(iπτ) = cosh(πτ) Thus the above becomes Γ(1/2+iτ)Γ(1/2- iτ) = π/cosh(πτ) = (-1/2+iτ) Γ(-1/2+iτ) Γ(1/2- iτ) So here then are two useful results, the first being the less obvious |Γ(1/2+iτ)|2 = Γ(1/2+iτ)Γ(1/2- iτ) = π/cosh(πτ) (-1/2+iτ) Γ(-1/2+iτ) Γ(1/2- iτ) = π/cosh(πτ) Here is Maple confirmation of the first result above