Mathwords logoMathwords

Incomplete Gamma Function — Definition, Formula & Example

The incomplete gamma function is the gamma function's integral cut at a finite point xx. The lower version γ(s,x)\gamma(s,x) collects the area under ts−1e−tt^{s-1}e^{-t} from 00 to xx, and the upper version Γ(s,x)\Gamma(s,x) collects the remaining area from xx to infinity.

For Re⁡(s)>0\operatorname{Re}(s) > 0 and x≥0x \ge 0, the lower incomplete gamma function is γ(s,x)=∫0xts−1e−t dt\gamma(s,x) = \int_0^x t^{s-1}e^{-t}\,dt. For x>0x > 0, the upper incomplete gamma function Γ(s,x)=∫x∞ts−1e−t dt\Gamma(s,x) = \int_x^{\infty} t^{s-1}e^{-t}\,dt converges for every complex ss. Where both are defined, γ(s,x)+Γ(s,x)=Γ(s)\gamma(s,x) + \Gamma(s,x) = \Gamma(s). The regularized forms are P(s,x)=γ(s,x)/Γ(s)P(s,x) = \gamma(s,x)/\Gamma(s) and Q(s,x)=Γ(s,x)/Γ(s)=1−P(s,x)Q(s,x) = \Gamma(s,x)/\Gamma(s) = 1 - P(s,x). For real s>0s > 0, P(s,x)P(s,x) increases from 00 to 11 as xx runs from 00 to ∞\infty.

Key Formula

γ(s,x)=∫0xts−1e−t dt,Γ(s,x)=∫x∞ts−1e−t dt,γ(s,x)+Γ(s,x)=Γ(s)\gamma(s,x)=\int_0^{x} t^{s-1}e^{-t}\,dt,\qquad \Gamma(s,x)=\int_x^{\infty} t^{s-1}e^{-t}\,dt,\qquad \gamma(s,x)+\Gamma(s,x)=\Gamma(s)
Where:
  • ss = Shape parameter. It is the same s as in the complete gamma function. The lower form needs Re(s) > 0.
  • xx = Cutoff point that splits the integral, with x ≥ 0
  • tt = Dummy variable of integration
  • Γ(s)\Gamma(s) = The complete gamma function, equal to the total area for both pieces combined

Worked Example

Problem: Compute γ(2,3)\gamma(2,3) and Γ(2,3)\Gamma(2,3) exactly. Then find the regularized value P(2,3)P(2,3).
Step 1: Set s=2s = 2 in the lower definition. The integrand becomes t e−tt\,e^{-t}. Integration by parts with u=tu = t and dv=e−t dtdv = e^{-t}\,dt gives the antiderivative.
γ(2,3)=∫03t e−t dt,∫t e−t dt=−(t+1)e−t+C\gamma(2,3)=\int_0^{3} t\,e^{-t}\,dt, \qquad \int t\,e^{-t}\,dt = -(t+1)e^{-t} + C
Step 2: Evaluate the antiderivative from 00 to 33.
γ(2,3)=[−(t+1)e−t]03=−4e−3−(−1)=1−4e−3≈0.8009\gamma(2,3)=\Big[-(t+1)e^{-t}\Big]_0^{3} = -4e^{-3} - (-1) = 1 - 4e^{-3} \approx 0.8009
Step 3: Get the upper piece from the complement rule. You do not need a second integral, because Γ(2)=1!=1\Gamma(2) = 1! = 1. Dividing by Γ(2)=1\Gamma(2) = 1 leaves the value unchanged, so P(2,3)=γ(2,3)P(2,3) = \gamma(2,3).
Γ(2,3)=Γ(2)−γ(2,3)=1−(1−4e−3)=4e−3≈0.1991\Gamma(2,3)=\Gamma(2)-\gamma(2,3)=1-(1-4e^{-3})=4e^{-3}\approx 0.1991
Answer: γ(2,3)=1−4e−3≈0.8009\gamma(2,3) = 1 - 4e^{-3} \approx 0.8009 and Γ(2,3)=4e−3≈0.1991\Gamma(2,3) = 4e^{-3} \approx 0.1991. Also P(2,3)≈0.8009P(2,3) \approx 0.8009, so about 80% of the total area under t e−tt\,e^{-t} lies between 00 and 33.

Why It Matters

In a statistics or probability course, you meet this function as a cumulative distribution function. A chi-square variable with kk degrees of freedom satisfies Pr⁡(X≤x)=P(k/2, x/2)\Pr(X \le x) = P(k/2,\, x/2). If NN is a Poisson random variable with mean λ\lambda and nn is a positive integer, then Pr⁡(N≤n−1)=Q(n,λ)\Pr(N \le n-1) = Q(n, \lambda). Software that reports p-values for chi-square tests is evaluating an incomplete gamma function.

Common Mistakes

Mistake: Treating the unregularized value γ(s,x)\gamma(s,x) as a probability or a fraction of the total.
Correction: γ(s,x)\gamma(s,x) approaches Γ(s)\Gamma(s), not 11, as xx grows. For example, γ(3,x)\gamma(3,x) approaches Γ(3)=2\Gamma(3) = 2. Divide by Γ(s)\Gamma(s) to get P(s,x)P(s,x), which always lies between 00 and 11. Check which convention your software uses, since some libraries return the regularized form by default.

Related Terms