The gamma function is Γ(n) = ∫₀^∞ x^(n−1) e^(−x) dx for n > 0, and the beta function is B(m, n) = ∫₀¹ x^(m−1)(1 − x)^(n−1) dx for m, n > 0. They are linked by B(m, n) = Γ(m)Γ(n)/Γ(m + n), and together they turn a whole family of hard-looking definite integrals into a few lines of algebra. In engineering maths papers the questions are mostly "reduce this integral to beta or gamma form, then evaluate".
This guide sets out the formulas you need, then works six original integrals that cover the standard question types, from direct gamma integrals to the trigonometric form of beta and the reflection formula.
The formulas on one page
| Result | Statement | Use it when |
|---|---|---|
| Gamma definition | Γ(n) = ∫₀^∞ x^(n−1) e^(−x) dx, n > 0 | integrand is a power times e^(−x) on (0, ∞) |
| Recurrence | Γ(n + 1) = n Γ(n) | stepping Γ up or down by 1 |
| Factorial | Γ(n + 1) = n! for n = 0, 1, 2, … | integer arguments |
| Half value | Γ(1/2) = √π | half-integer arguments |
| Scaled gamma | ∫₀^∞ x^(n−1) e^(−ax) dx = Γ(n)/aⁿ, a > 0 | e^(−ax) with a ≠ 1 |
| Beta definition | B(m, n) = ∫₀¹ x^(m−1)(1 − x)^(n−1) dx | powers of x and (1 − x) on (0, 1) |
| Symmetry | B(m, n) = B(n, m) | either order |
| Beta-gamma relation | B(m, n) = Γ(m)Γ(n)/Γ(m + n) | evaluating any beta value |
| Trigonometric form | ∫₀^(π/2) sin^p θ cos^q θ dθ = ½ B((p + 1)/2, (q + 1)/2) | powers of sin and cos on (0, π/2) |
| Infinite form | ∫₀^∞ x^(m−1)/(1 + x)^(m+n) dx = B(m, n) | x to a power over (1 + x) to a power |
| Reflection | Γ(n)Γ(1 − n) = π/sin(nπ), 0 < n < 1 | products like Γ(1/4)Γ(3/4) |
The recurrence comes from one integration by parts on the definition; our integration by parts guide shows the technique if that step feels shaky. Students who want a structured run through the whole integral calculus unit can see how sessions with Ajay Vatsyayan work on our online engineering maths tutoring page.
Example 1: gamma values at half-integers and negative arguments
Find Γ(7/2) and Γ(−3/2).
Γ(7/2). Step down with the recurrence until you reach Γ(1/2):
Γ(7/2) = (5/2) Γ(5/2) = (5/2)(3/2) Γ(3/2) = (5/2)(3/2)(1/2) Γ(1/2) = (15/8)√π
Γ(−3/2). The integral does not converge for negative n, but Γ extends using Γ(n) = Γ(n + 1)/n:
Γ(−1/2) = Γ(1/2)/(−1/2) = −2√π
Γ(−3/2) = Γ(−1/2)/(−3/2) = (−2√π)(−2/3) = (4/3)√π
Γ is undefined at 0, −1, −2, …, so an answer like Γ(−2) means the question has been misread.
Example 2: a direct gamma integral
Evaluate ∫₀^∞ x⁴ e^(−3x) dx.
Use the scaled form with n − 1 = 4 (so n = 5) and a = 3:
∫₀^∞ x⁴ e^(−3x) dx = Γ(5)/3⁵ = 4!/243 = 24/243 = 8/81
If you prefer to derive it, put t = 3x, so x = t/3 and dx = dt/3. The integral becomes (1/3⁵)∫₀^∞ t⁴ e^(−t) dt = Γ(5)/243.
Example 3: a substitution to reach gamma form
Evaluate ∫₀^∞ x⁶ e^(−2x²) dx.
Step 1: choose t to make the exponent plain. Let t = 2x². Then x = (t/2)^(1/2) and dx = dt/(2√2 √t). The limits stay 0 to ∞.
Step 2: rewrite every factor. x⁶ = (t/2)³ = t³/8.
∫₀^∞ x⁶ e^(−2x²) dx = ∫₀^∞ (t³/8) e^(−t) × t^(−1/2)/(2√2) dt = (1/(16√2)) ∫₀^∞ t^(5/2) e^(−t) dt
Step 3: identify the gamma. t^(5/2) = t^(n−1) with n = 7/2.
= Γ(7/2)/(16√2) = (15√π/8)/(16√2) = 15√π/(128√2) = 15√(2π)/256 ≈ 0.1468
Most errors in this type come from dx. Differentiate your substitution and write dx in terms of t on its own line before substituting.
Example 4: beta on (0, 1) and in its infinite form
(a) Evaluate ∫₀¹ x³(1 − x)⁵ dx.
Match x^(m−1)(1 − x)^(n−1): m − 1 = 3 and n − 1 = 5, so m = 4 and n = 6.
B(4, 6) = Γ(4)Γ(6)/Γ(10) = (3!)(5!)/9! = (6 × 120)/362880 = 1/504
(b) Evaluate ∫₀^∞ x³/(1 + x)⁷ dx.
Match x^(m−1)/(1 + x)^(m+n): m − 1 = 3 gives m = 4, and m + n = 7 gives n = 3.
B(4, 3) = (3!)(2!)/6! = 12/720 = 1/60
The infinite form is the one students forget exists. If you see a power of x over a power of (1 + x) on (0, ∞), try it before anything else.
Example 5: the trigonometric form
Evaluate ∫₀^(π/2) sin⁵θ cos⁴θ dθ.
Step 1: read off the beta arguments. With p = 5 and q = 4:
m = (p + 1)/2 = 3, n = (q + 1)/2 = 5/2
Step 2: apply the formula, including the half.
∫₀^(π/2) sin⁵θ cos⁴θ dθ = ½ B(3, 5/2) = ½ × Γ(3)Γ(5/2)/Γ(11/2)
Step 3: evaluate the gammas. Γ(3) = 2, Γ(5/2) = (3/4)√π, Γ(11/2) = (9/2)(7/2)(5/2)(3/2)(1/2)√π = (945/32)√π.
= ½ × 2 × (3/4)√π × 32/(945√π) = 24/945 = 8/315
You can check this with Wallis' formula: (4 × 2)(3 × 1)/(9 × 7 × 5 × 3 × 1) = 24/945 = 8/315. The two methods agreeing is a strong check.
Example 6: the reflection formula
Show that ∫₀^∞ dx/(1 + x⁴) = π/(2√2).
Step 1: substitute to reach the infinite beta form. Let t = x⁴, so x = t^(1/4) and dx = (1/4) t^(−3/4) dt.
∫₀^∞ dx/(1 + x⁴) = (1/4) ∫₀^∞ t^(−3/4)/(1 + t) dt
Step 2: identify m and n. t^(m−1) = t^(−3/4) gives m = 1/4, and m + n = 1 gives n = 3/4.
= (1/4) B(1/4, 3/4) = (1/4) Γ(1/4)Γ(3/4)/Γ(1)
Step 3: reflection. Γ(1/4)Γ(3/4) = π/sin(π/4) = π√2.
= (1/4) π√2 = π/(2√2) ≈ 1.1107
The same integral can be done with residues, which is a good cross-check if your course also covers our Cauchy residue theorem worked examples.
Why Γ(1/2) = √π (a short derivation)
Examiners sometimes ask you to prove this rather than quote it.
Put x = u² in the definition: Γ(1/2) = ∫₀^∞ x^(−1/2) e^(−x) dx = ∫₀^∞ (1/u) e^(−u²) × 2u du = 2∫₀^∞ e^(−u²) du.
Now use the beta-gamma relation with m = n = 1/2: B(1/2, 1/2) = Γ(1/2)²/Γ(1) = Γ(1/2)². The trigonometric form gives B(1/2, 1/2) = 2∫₀^(π/2) dθ = π. So Γ(1/2)² = π, and since Γ(1/2) > 0, Γ(1/2) = √π.
As a by-product, ∫₀^∞ e^(−u²) du = √π/2, the integral behind the normal distribution.
Spotting the right form
- Power of x times e^(−ax) on (0, ∞): scaled gamma, Example 2.
- e^(−a xᵏ) with k ≠ 1: substitute t = a xᵏ first, Example 3.
- x and (1 − x) on (0, 1): beta directly. For (a − x) on (0, a), substitute x = at first.
- Power of x over (1 + x) to a power on (0, ∞): infinite beta form, Example 4(b).
- sin and cos powers on (0, π/2): trigonometric form with the ½, Example 5.
- (ln(1/x))ⁿ on (0, 1): put x = e^(−t) to reach Γ(n + 1).
- Arguments adding to 1: reflection formula, Example 6.
Where students lose marks
- Writing Γ(n) = n! It is Γ(n) = (n − 1)!, so Γ(5) = 24, not 120.
- Dropping the ½ in the trigonometric form. Without it Example 5 would give 16/315.
- Reading m and n straight from the powers. In beta, the power is m − 1, not m; in the trig form, m = (p + 1)/2.
- Getting dx wrong after substitution. Write dx in terms of t on its own line.
- Using a negative or zero argument in the integral definition. The integral needs n > 0; negative non-integers need the recurrence.
- Forgetting aⁿ in the scaled gamma. ∫₀^∞ x⁴ e^(−3x) dx is Γ(5)/3⁵, not Γ(5).
Practice set
- Find Γ(9/2).
- Evaluate ∫₀^∞ x⁵ e^(−2x) dx.
- Evaluate ∫₀¹ x⁴(1 − x)³ dx.
- Evaluate ∫₀^(π/2) sin⁶θ dθ using beta.
- Evaluate ∫₀¹ (ln(1/x))³ dx.
- Evaluate ∫₀^∞ x²/(1 + x)⁶ dx.
Answers. (1) 105√π/16. (2) Γ(6)/2⁶ = 120/64 = 15/8. (3) B(5, 4) = 1/280. (4) ½B(7/2, 1/2) = 5π/32. (5) Γ(4) = 6. (6) B(3, 3) = 1/30.
Where beta and gamma turn up next
Gamma appears in the Laplace transform result L{tⁿ} = Γ(n + 1)/s^(n+1), which extends the table in our Laplace transforms exam guide to non-integer powers. The value Γ(1/2) = √π is proved with a polar double integral, covered in the double and triple integrals guide. In statistics, the gamma and beta distributions and the normal integral all rest on these functions; the binomial, Poisson and normal distributions guide is the place to start. Gamma also defines Bessel functions in the special functions unit that follows in many syllabi.
How Maths Bodhi helps
We drill the "reduce, identify, evaluate" routine on your own past papers and review your written attempts line by line. The university maths tutoring hub lists the other courses we support.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Written and checked by the Maths Bodhi team (November 2026).
Frequently asked questions
- What is the relation between beta and gamma functions?
- B(m, n) = Γ(m)Γ(n)/Γ(m + n) for m, n > 0.
- What is the value of Γ(1/2)?
- Γ(1/2) = √π, which follows from the integral of e^(−x²) over the real line.
- Is Γ(n) equal to n factorial?
- No; Γ(n) = (n − 1)! for positive integers, so Γ(n + 1) = n!.
- How do you convert a sine-cosine integral into a beta function?
- ∫₀^(π/2) sin^p θ cos^q θ dθ = ½ B((p + 1)/2, (q + 1)/2).
- Is the gamma function defined for negative numbers?
- Yes for negative non-integers, using Γ(n) = Γ(n + 1)/n; it is undefined at 0, −1, −2, ….
- What is Γ(1)?
- Γ(1) = 1, since ∫₀^∞ e^(−x) dx = 1, which also gives 0! = 1.
