First Year Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Beta and gamma functions

Beta and Gamma functions: definitions, properties, relations, and use in evaluating definite integrals.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Engineers frequently face definite integrals that look hard by elementary methods (e.g., integrals with exponentials, powers, and trigonometric powers). The Beta and Gamma functions convert such integrals into standard forms with known values, saving time and avoiding algebraic mistakes. They also appear in probability distributions (like Gamma and Beta distributions) used in reliability, queuing, and signal processing.

Key ideas

Γ(z) = ∫₀^∞ t^(z−1) e^(−t) dt. It extends the factorial to non-integers via Γ(n) = (n−1)! for positive integers n. Assumptions: Re(z) > 0 to ensure convergence; extension to other z (except non-positive integers) is by analytic continuation (not needed at first year level).

  • Property: Recurrence (functional) equation of Gamma. For all complex z not equal to non-positive integers, Γ(z+1) = z·Γ(z). Derivation for Re(z) > 0: integrate Γ(z+1) = ∫₀^∞ t^z e^(−t) dt by parts with u = t^z, dv = e^(−t) dt to get Γ(z+1) = [−t^z e^(−t)]₀^∞ + z ∫₀^∞ t^(z−1) e^(−t) dt = z·Γ(z). Boundary terms vanish for Re(z) > 0.

  • Special value: Γ(1/2) = √π. Standard derivation uses the Gaussian integral ∫₀^∞ e^(−x²) dx = √π/2 and substitution t = x² to match the Γ(1/2) form.

  • Definition: Beta function. For x, y with Re(x) > 0 and Re(y) > 0, B(x, y) = ∫₀¹ t^(x−1) (1−t)^(y−1) dt. It is symmetric: B(x, y) = B(y, x), seen by replacing t by 1−t.

  • Relation: Beta–Gamma relation. For Re(x) > 0, Re(y) > 0, B(x, y) = Γ(x) Γ(y) / Γ(x + y). Common derivation (often asked in exams): Start with Γ(x)Γ(y) = ∫₀^∞ ∫₀^∞ u^(x−1) v^(y−1) e^(−(u+v)) du dv. Make change of variables r = u + v (0 < r < ∞), t = u/(u+v) (0 < t < 1). Then u = r t, v = r(1−t), and the Jacobian determinant is |∂(u,v)/∂(r,t)| = r. Hence Γ(x)Γ(y) = ∫₀^∞ ∫₀¹ (r t)^(x−1) [r(1−t)]^(y−1) e^(−r) · r dt dr = [∫₀¹ t^(x−1) (1−t)^(y−1) dt] · [∫₀^∞ r^(x+y−1) e^(−r) dr] = B(x, y) · Γ(x + y). Rearranging gives the relation.

  • Alternative form: Trigonometric integral for Beta. For p > 0, q > 0, ∫₀^(π/2) sin^(p−1) θ · cos^(q−1) θ dθ = (1/2) B(p/2, q/2). Derivation: Use substitution t = sin² θ (or t = cos² θ) in the Beta integral.

  • Reflection formula (advanced but examinable as a short note): Euler’s reflection formula. For z not an integer, Γ(z) Γ(1−z) = π / sin(π z). This can be derived using properties of the Beta function and trigonometric forms; it is useful for values like Γ(1/3), Γ(2/3) relations (full derivation often beyond first exam scope; state only if asked).

  • Duplication formula (Legendre’s formula, sometimes asked): For any z, Γ(z) Γ(z + 1/2) = 2^(1−2z) √π · Γ(2z). This connects values at z and z + 1/2 and is useful to compute half-integer Gamma values.

  • Convergence conditions (important for correctness): • Γ(z) integral converges if Re(z) > 0 (near 0 we need t^(z−1) integrable; at ∞ exponential kills it). • B(x, y) integral converges if Re(x) > 0 and Re(y) > 0 (endpoints t = 0 and t = 1 behave like t^(x−1) and (1−t)^(y−1)).

  • Standard integrals via Gamma and Beta: • ∫₀^∞ x^n e^(−a x) dx = n! / a^(n+1) for a > 0, integer n ≥ 0 (from Γ(n+1) with substitution t = a x). • ∫₀^∞ x^(m−1) e^(−a x) dx = Γ(m) / a^m for a > 0, Re(m) > 0. • ∫₀^∞ x^(m−1) / (1 + x)^(m+n) dx = B(m, n) for Re(m), Re(n) > 0 (substitution x = t/(1−t)). • ∫₀^(π/2) sin^p x dx and ∫₀^(π/2) cos^p x dx can be evaluated using the trigonometric Beta form (Wallis-type integrals).

  • What to draw if asked for a diagram: For the proof of B(x, y) = Γ(x)Γ(y)/Γ(x+y) using the double integral and change of variables: • Draw the u–v plane with positive axes, shade the first quadrant region u > 0, v > 0. Label a typical point (u, v). • Next to it, draw the r–t rectangle: 0 < r < ∞ on the horizontal axis and 0 < t < 1 on the vertical axis. Label the mapping u = r t, v = r(1−t) and note “Jacobian = r.” Indicate that lines t = const. are rays u : v = t : (1−t) and lines r = const. are straight lines u + v = r.

  • Strategy for applications:

    1. Try to match ∫ x^(m−1) e^(−a x) dx with Gamma.
    2. Try to match ∫₀¹ t^(x−1) (1−t)^(y−1) dt with Beta, often after substitution x = t/(1−t) or t = sin² θ.
    3. For trigonometric powers over [0, π/2], use the trigonometric Beta form.

Formulas

Γ(z) = ∫₀^∞ t^(z−1) e^(−t) dt — Γ is Gamma function; t is dummy variable (no units); valid for Re(z) > 0; result is dimensionless.

Γ(z+1) = z·Γ(z) — Recurrence relation; z dimensionless; holds for all complex z except non-positive integers; dimensionless results.

Γ(n) = (n−1)! — For integer n ≥ 1; dimensionless.

Γ(1/2) = √π — Special value; dimensionless.

B(x, y) = ∫₀¹ t^(x−1) (1−t)^(y−1) dt — Beta function; valid for Re(x) > 0, Re(y) > 0; dimensionless.

B(x, y) = Γ(x) Γ(y) / Γ(x + y) — Beta–Gamma relation; Re(x), Re(y) > 0; dimensionless. For positive integers m, n, this gives B(m, n) = (m−1)! (n−1)! / (m+n−1)!.

∫₀^(π/2) sin^(p−1) θ · cos^(q−1) θ dθ = (1/2) B(p/2, q/2) — p > 0, q > 0; θ in radians; dimensionless.

∫₀^∞ x^(m−1) e^(−a x) dx = Γ(m) / a^m — a > 0, Re(m) > 0; x has the same units as 1/a, so the result has units of x^m (i.e., a^(−m)); commonly used with a in s⁻¹ or m⁻¹ depending on context.

∫₀^∞ x^n e^(−a x) dx = n! / a^(n+1) — n a non-negative integer; a > 0; the result has units of x^(n+1) (i.e., a^(−(n+1))).

∫₀^∞ x^(m−1) / (1 + x)^(m+n) dx = B(m, n) — Re(m) > 0, Re(n) > 0; dimensionless.

Γ(z) Γ(1−z) = π / sin(π z) — Euler’s reflection formula; z not an integer; dimensionless.

Γ(z) Γ(z + 1/2) = 2^(1−2z) √π · Γ(2z) — Legendre’s duplication formula; z arbitrary complex avoiding poles; dimensionless. In particular, for n ∈ N, Γ(n + 1/2) = ((2n)! / (4^n n!)) √π.

Worked examples

Example 1 — Prove Γ(1/2) = √π (the standard derivation)

  1. Start with the Gaussian integral I = ∫₀^∞ e^(−x²) dx. Square it using an independent variable y: I² = ∫₀^∞ ∫₀^∞ e^(−x² − y²) dx dy.
  2. Change to polar coordinates: x = r cosθ, y = r sinθ with r ∈ [0, ∞), θ ∈ [0, π/2]. The Jacobian is r. Then I² = ∫₀^(π/2) ∫₀^∞ e^(−r²) r dr dθ = [∫₀^(π/2) dθ] · [∫₀^∞ r e^(−r²) dr] = (π/2) · (1/2).
  3. Therefore, I² = π/4, so I = √π/2 (I > 0).
  4. Now compute Γ(1/2) = ∫₀^∞ t^(−1/2) e^(−t) dt. Put t = x² ⇒ dt = 2x dx and t^(−1/2) = 1/x. Then Γ(1/2) = ∫₀^∞ (1/x) e^(−x²) (2x dx) = 2 ∫₀^∞ e^(−x²) dx = 2 · (√π/2) = √π. Final answer: Γ(1/2) = √π.

Example 2 — Evaluate ∫₀^∞ x³ e^(−2x) dx using Γ. Given: a = 2 (s⁻¹ if x were time in s), n = 3 (dimensionless power). Use ∫₀^∞ x^n e^(−a x) dx = n! / a^(n+1).

  1. Formula: ∫₀^∞ x^n e^(−a x) dx = n! / a^(n+1).
  2. Substitute n = 3, a = 2: value = 3! / 2⁴ = 6/16.
  3. Simplify: 6/16 = 3/8 = 0.375; units = a^(−4) (e.g., s^4 if a is s⁻¹). Final answer: ∫₀^∞ x³ e^(−2x) dx = 3/8.

Example 3 — Evaluate ∫₀^(π/2) sin⁵ x · cos² x dx using the Beta function. We match to ∫ sin^(p−1) x cos^(q−1) x dx with p − 1 = 5 ⇒ p = 6 and q − 1 = 2 ⇒ q = 3.

  1. Formula: ∫₀^(π/2) sin^(p−1) x cos^(q−1) x dx = (1/2) B(p/2, q/2).
  2. Put p/2 = 3 and q/2 = 3/2: integral = (1/2) B(3, 3/2).
  3. Use B(x, y) = Γ(x) Γ(y)/Γ(x + y): B(3, 3/2) = Γ(3) Γ(3/2) / Γ(9/2).
  4. Compute Gamma values: • Γ(3) = 2! = 2. • Γ(3/2) = (1/2) Γ(1/2) = (1/2) √π. • Γ(9/2) = (7/2)(5/2)(3/2)(1/2) √π = (105/16) √π.
  5. Therefore B(3, 3/2) = [2 · (1/2) √π] / [(105/16) √π] = 1 · 16/105 = 16/105.
  6. Integral = (1/2) · (16/105) = 8/105 ≈ 0.076190... Final answer: ∫₀^(π/2) sin⁵ x · cos² x dx = 8/105.

Example 4 — Show ∫₀^∞ x^(m−1) / (1 + x)^(m+n) dx = B(m, n) for Re(m), Re(n) > 0.

  1. Start with integral I = ∫₀^∞ x^(m−1) / (1 + x)^(m+n) dx.
  2. Substitute x = t/(1−t) with t ∈ (0, 1). Then dx = dt/(1−t)² and 1 + x = 1/(1−t). Also, x^(m−1) = [t/(1−t)]^(m−1).
  3. The integrand becomes: x^(m−1) / (1 + x)^(m+n) dx = [t^(m−1) (1−t)^(−(m−1))] · (1−t)^(m+n) · [dt/(1−t)²]. Since (1 + x)^(m+n) = [1/(1−t)]^(m+n), its reciprocal is (1−t)^(m+n). Combine powers of (1−t): exponent = −(m−1) + (m+n) − 2 = n − 1. Thus the transformed integrand is t^(m−1) (1−t)^(n−1) dt.
  4. Limits: x: 0→∞ maps to t: 0→1. Therefore I = ∫₀¹ t^(m−1) (1−t)^(n−1) dt = B(m, n). Final statement: ∫₀^∞ x^(m−1)/(1 + x)^(m+n) dx = B(m, n) for Re(m), Re(n) > 0.

Common mistakes

  • Sign errors in substitutions for Beta: with x = t/(1−t), missing the Jacobian dx = dt/(1−t)², leading to wrong powers of (1−t).
  • For trigonometric Beta integrals, setting p = exponent instead of p − 1 = exponent. Always match integral to sin^(p−1) and cos^(q−1).
  • Dropping the factor 1/2 in ∫₀^(π/2) sin^(p−1) θ cos^(q−1) θ dθ = (1/2) B(p/2, q/2).
  • In Γ(1/2) proof, forgetting the quadrant limit (θ from 0 to π/2) and using 0 to 2π, which would give I² = π/2 incorrectly; the square of the half-line integral only covers the first quadrant.
  • Treating Gamma values as integers for non-integer arguments. For example, Γ(3/2) is not 1/2!; it equals (1/2)√π.

For your exam

• Prove the Beta–Gamma relation using the double integral and change of variables (include Jacobian r and the region mapping). • Derive Γ(1/2) = √π via the Gaussian integral. • Obtain the trigonometric Beta form ∫₀^(π/2) sin^(p−1) θ cos^(q−1) θ dθ = (1/2) B(p/2, q/2) using t = sin² θ.

  • Short notes: State Euler’s reflection formula and/or Legendre’s duplication formula, with a sentence on where they are used.
  • Evaluations of integrals: Use Gamma/Beta to evaluate integrals such as ∫₀^∞ x^m e^(−a x) dx, ∫₀^∞ x^(m−1)/(1 + x)^(m+n) dx, and ∫₀^(π/2) sin^p x dx or mixed powers sin^p x cos^q x.
  • What full-marks answers include: correct formula, conditions (like a > 0, Re(m) > 0), clear substitution with new limits and Jacobian, intermediate simplification steps, and a clean final value. For derivations, include the diagram description of regions and clearly state the Jacobian.

Quick check

  1. State the Beta–Gamma relation and the conditions under which it holds.
  2. Evaluate ∫₀^∞ x e^(−3x) dx.
  3. Write the value of ∫₀^(π/2) sin³ x dx using the Beta function (no need to simplify beyond Gamma symbols). Answers: (1) B(x, y) = Γ(x) Γ(y) / Γ(x + y), valid for Re(x) > 0, Re(y) > 0. (2) 1!/3² = 1/9. (3) With p − 1 = 3 ⇒ p = 4: integral = (1/2) B(2, 1/2) = (1/2) Γ(2) Γ(1/2)/Γ(5/2).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?