Gamma Function Explained with Worked Examples

The gamma function extends the factorial: , and .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Gamma function means

Integrating by parts gives , which is the recursive rule for factorials. With , we get .

The function is defined for all positive real , so you can talk about “half factorials”. comes from the Gaussian integral.

It appears in probability (gamma and chi-squared distributions), physics and number theory.

This page is part of Integration in Calculus. Topics that work alongside it: Beta function, Gaussian integral, Wallis integrals, Leibniz integral rule (differentiation under the integral sign), Fundamental theorem of calculus (part 1) and Integral of sin² x.

What is it used for?

The gamma function Γ(n) extends the factorial to non-integers: Γ(n) = (n − 1)! for whole numbers n.

How to use gamma function

  1. Use to reduce.
  2. Use for whole numbers.
  3. Use for half-integers.
  4. Evaluate.

Graph

Γ(n) = (n − 1)! at whole numbers01234560510152025Γ(n) = (n − 1)! at whole numbersnΓ(n)Graph with x from 0 to 6 and y from 0 to 28. Shows Γ(n) (5).

At n = 1, 2, 3, 4, 5 the gamma function takes the values 0!, 1!, 2!, 3!, 4! = 1, 1, 2, 6, 24. The function also fills in the values between whole numbers.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: a whole-number value

Find .

Worked example
Answer
2424
  1. Use Γ(n + 1) = n!

Example 2: a half-integer value

Find .

Worked example
Answer
π2\dfrac{\sqrt\pi}{2}
  1. Use Γ(z + 1) = zΓ(z)
  2. Use Γ(½) = √π

Example 3: Γ(6)

Find .

Worked example
Answer
120120
  1. Use Γ(n) = (n − 1)!
  2. Evaluate

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

Γ(5)

4!

24.

Γ(½)

√π

1.7725.

Γ(7/2)

(5/2)(3/2)(1/2)√π

3.3234.

Γ(3/2)

½√π

0.8862.

Word problems

Γ(z) = ∫₀^∞ t^(z−1)e^(−t)dt extends the factorial: Γ(n + 1) = n!, Γ(z + 1) = zΓ(z) and Γ(½) = √π.

Integer

Γ(5) = 4!.

  1. 24
  2. Check: ✓24

Half

Γ(½).

  1. √π
  2. Check: ✓1.7725

Recurrence Higher

Γ(7/2) = (5/2)(3/2)(1/2)Γ(½).

  1. 1.875 × 1.7725
  2. Check: ✓3.3234

Γ(3/2) Higher

Γ(3/2) = ½Γ(½).

  1. 0.5 × 1.7725
  2. Check: ✓0.8862

Common mistakes

Γ(n) = n!

off by one ✗

Γ(n) = (n − 1)! ✓

Shift.

Γ(½) = π

wrong ✗

√π ✓

Square root.

Γ(0)

defined ✗

pole ✓

Undefined.

Γ(z + 1) = Γ(z) + 1

wrong ✗

zΓ(z) ✓

Multiply.

Exam tips

  1. Γ(n) = (n − 1)!.
  2. Γ(z + 1) = zΓ(z).
  3. Γ(½) = √π.
  4. Poles at 0, −1, −2, …
  5. Half-integers via recurrence.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Γ(6) Foundation

120

2. Γ(4) Foundation

6

3. Γ(5/2) to 4 d.p. Foundation

1.3293

4. Γ(9/2) to 4 d.p. Higher

11.6317

5. Γ(1) Higher

1

6. Γ(10) Higher

362880

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Gamma function
Γ(z).
Factorial extension
Γ(n + 1) = n!.
Recurrence
Γ(z + 1) = zΓ(z).
Half-integer
n + ½.
Pole
Where Γ is infinite.
Euler integral
∫t^(z−1)e^(−t).

Frequently asked questions

What is the gamma function?

Γ(z) = ∫₀^∞ t^(z−1)e^(−t)dt.

What is Γ(5)?

24.

What is Γ(½)?

√π.

What is the recurrence?

Γ(z + 1) = zΓ(z).

Which page covers the beta function?

beta function.

Which page covers the Gaussian integral?

Gaussian integral.

More in Calculus and the formula sheets.