Incomplete Gamma Function

DOWNLOAD Mathematica Notebook

The "complete" gamma function Gamma(a) can be generalized to the incomplete gamma function Gamma(a,x) such that Gamma(a)=Gamma(a,0). This "upper" incomplete gamma function is given by

 Gamma(a,x)=int_x^inftyt^(a-1)e^(-t)dt.
(1)

For a an integer n

Gamma(n,x)=(n-1)!e^(-x)sum_(k=0)^(n-1)(x^k)/(k!)
(2)
=(n-1)!e^(-x)e_(n-1)(x),
(3)

where e_n(x) is the exponential sum function. It is implemented as Gamma[a, z] in the Wolfram Language.

The incomplete gamma function Gamma(0,x) has continued fraction

 Gamma(0,x)=(e^(-x))/(x+1-1/(x+3-4/(x+5-9/(x+7+...))))
(4)

(Wall 1948, p. 358).

The lower incomplete gamma function is given by

gamma(a,x)=int_0^xt^(a-1)e^(-t)dt
(5)
=a^(-1)x^ae^(-x)_1F_1(1;1+a;x)
(6)
=a^(-1)x^a_1F_1(a;1+a;-x),
(7)

where _1F_1(a;b;x) is the confluent hypergeometric function of the first kind. For a an integer n,

gamma(n,x)=(n-1)!(1-e^(-x)sum_(k=0)^(n-1)(x^k)/(k!))
(8)
=(n-1)![1-e^(-x)e_(n-1)(x)].
(9)

It is implemented as Gamma[a, 0, z] in the Wolfram Language.

By definition, the lower and upper incomplete gamma functions satisfy

 Gamma(a,x)+gamma(a,x)=Gamma(a).
(10)

The exponential integral Ei(z) is closely related to the incomplete gamma function Gamma(0,z) by

 Gamma(0,z)=-Ei(-z)+1/2[ln(-z)-ln(-1/z)]-lnz.
(11)

Therefore, for real x,

 Gamma(0,x)={-Ei(-x)-ipi   for x<0; -Ei(-x)   for x>0.
(12)

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.