The Beta Function

The area under a curve shaped by two exponents, p and q, is the beta function. Sliders morph the curve's shape.

The two ends of the curve are pulled with different strengths. So the hump shifts and changes height. This area equals an exact ratio of gamma functions.

For example, pull the two ends of a 🧡 string with different strengths and the bulge in the middle changes shape. Adjusting the end pulls is what p and q do.

B(p,q)=∫01tpβˆ’1(1βˆ’t)qβˆ’1 dt(p,q>0)B(p,q)=\int_0^1 t^{p-1}(1-t)^{q-1}\,dt\quad(p,q>0)
B(p,q)=Ξ“(p)Ξ“(q)Ξ“(p+q)B(p,q)=\frac{\Gamma(p)\Gamma(q)}{\Gamma(p+q)}

Part of these learning paths

Examples & Exercises

Prove that the improper integral B(p,q)=∫01tpβˆ’1(1βˆ’t)qβˆ’1 dtB(p,q) = \int_0^1 t^{p-1}(1-t)^{q-1}\,dt converges for p,q>0p, q > 0.

∫01/2tpβˆ’1(1βˆ’t)qβˆ’1 dtβ‰βˆ«01/2tpβˆ’1 dt<βˆžβ€…β€ŠβŸΊβ€…β€Šp>0\int_0^{1/2} t^{p-1}(1-t)^{q-1}\,dt \asymp \int_0^{1/2} t^{p-1}\,dt < \infty \iff p > 0
p=0.5p = 0.5 β€” blows up at t=0t = 0, yet the integral converges.
Show proof
  1. Split the integral at t=1/2t = 1/2.

    On (0,1/2](0, 1/2] we have 12≀1βˆ’t<1\frac12 \leq 1-t < 1, so (1βˆ’t)qβˆ’1(1-t)^{q-1} is trapped between the positive constants c1=min⁑(1,21βˆ’q)c_1 = \min(1, 2^{1-q}) and c2=max⁑(1,21βˆ’q)c_2 = \max(1, 2^{1-q}).

    Hence c1tpβˆ’1≀tpβˆ’1(1βˆ’t)qβˆ’1≀c2tpβˆ’1c_1 t^{p-1} \leq t^{p-1}(1-t)^{q-1} \leq c_2 t^{p-1}, and the comparison test reduces the convergence of ∫01/2tpβˆ’1(1βˆ’t)qβˆ’1 dt\int_0^{1/2} t^{p-1}(1-t)^{q-1}\,dt to that of ∫01/2tpβˆ’1 dt\int_0^{1/2} t^{p-1}\,dt.

  2. ∫δ1/2tpβˆ’1 dt=(1/2)pβˆ’Ξ΄pp\int_\delta^{1/2} t^{p-1}\,dt = \frac{(1/2)^p - \delta^p}{p} for pβ‰ 0p \neq 0, which converges to 2βˆ’pp\frac{2^{-p}}{p} as Ξ΄β†’0+\delta \to 0^+ when p>0p > 0.

    For p=0p = 0 it is βˆ’ln⁑(2Ξ΄)β†’βˆž-\ln(2\delta) \to \infty, and for p<0p < 0 it is Ξ΄p∣pβˆ£β†’βˆž\frac{\delta^p}{|p|} \to \infty.

    So ∫01/2tpβˆ’1 dt\int_0^{1/2} t^{p-1}\,dt converges exactly when p>0p > 0.

  3. The end t=1t = 1 is symmetric. With s=1βˆ’ts = 1-t, ∫1/21βˆ’Ξ΅tpβˆ’1(1βˆ’t)qβˆ’1 dt=∫Ρ1/2(1βˆ’s)pβˆ’1sqβˆ’1 ds\int_{1/2}^{1-\varepsilon} t^{p-1}(1-t)^{q-1}\,dt = \int_{\varepsilon}^{1/2} (1-s)^{p-1} s^{q-1}\,ds (a legitimate C1C^1 substitution on a compact interval), so the same argument with pp and qq swapped shows ∫1/21tpβˆ’1(1βˆ’t)qβˆ’1 dt\int_{1/2}^1 t^{p-1}(1-t)^{q-1}\,dt converges exactly when q>0q > 0.

  4. On the middle piece [Ξ΄,1βˆ’Ξ΄][\delta, 1-\delta] the integrand is continuous, so the integral is always finite. Hence the improper integral B(p,q)B(p,q) converges exactly when p>0p > 0 and q>0q > 0 β€” the divergences at the two ends cannot cancel, since the integrand is positive.

Prove B(p,q)=B(q,p)B(p,q) = B(q,p) with the substitution u=1βˆ’tu = 1-t.

B(p,q)=∫01tpβˆ’1(1βˆ’t)qβˆ’1 dt=∫01uqβˆ’1(1βˆ’u)pβˆ’1 du=B(q,p)B(p,q) = \int_0^1 t^{p-1}(1-t)^{q-1}\,dt = \int_0^1 u^{q-1}(1-u)^{p-1}\,du = B(q,p)
p=2,q=3p = 2, q = 3 β€” B(2,3)=B(3,2)=1/12B(2,3) = B(3,2) = 1/12.
Show proof
  1. Problem 1 gives convergence for p,q>0p, q > 0, so we may substitute u=1βˆ’tu = 1-t (du=βˆ’dtdu = -dt) in the truncated integral ∫δ1βˆ’Ξ΅tpβˆ’1(1βˆ’t)qβˆ’1 dt\int_\delta^{1-\varepsilon} t^{p-1}(1-t)^{q-1}\,dt (a C1C^1 substitution on a compact interval).

  2. The interval flips: t=Ξ΄t = \delta gives u=1βˆ’Ξ΄u = 1-\delta and t=1βˆ’Ξ΅t = 1-\varepsilon gives u=Ξ΅u = \varepsilon, so ∫δ1βˆ’Ξ΅tpβˆ’1(1βˆ’t)qβˆ’1 dt=∫1βˆ’Ξ΄Ξ΅(1βˆ’u)pβˆ’1uqβˆ’1(βˆ’du)=∫Ρ1βˆ’Ξ΄uqβˆ’1(1βˆ’u)pβˆ’1 du\int_\delta^{1-\varepsilon} t^{p-1}(1-t)^{q-1}\,dt = \int_{1-\delta}^{\varepsilon} (1-u)^{p-1}u^{q-1}(-du) = \int_{\varepsilon}^{1-\delta} u^{q-1}(1-u)^{p-1}\,du.

  3. Sending Ξ΄,Ξ΅β†’0+\delta, \varepsilon \to 0^+, convergence from problem 1 turns the two sides into B(p,q)B(p,q) and B(q,p)B(q,p), so B(p,q)=B(q,p)B(p,q) = B(q,p). Flipping the curve tpβˆ’1(1βˆ’t)qβˆ’1t^{p-1}(1-t)^{q-1} left-right leaves the area underneath unchanged.

Show B(p+1,q)=pqB(p,q+1)B(p+1,q) = \frac{p}{q}B(p,q+1) by parts, then deduce B(p+1,q)=pp+qB(p,q)B(p+1,q) = \frac{p}{p+q}B(p,q).

B(p+1,q)=pp+q B(p,q)B(p+1,q) = \frac{p}{p+q}\,B(p,q)
p=1,q=3p = 1, q = 3 β€” B(2,3)=14B(1,3)=112B(2,3) = \frac14 B(1,3) = \frac{1}{12}.
Show proof
  1. Do not apply parts directly to the improper integral.

    On the truncated interval [Ξ΄,1βˆ’Ξ΅][\delta, 1-\varepsilon] (0<Ξ΄<1βˆ’Ξ΅<10 < \delta < 1-\varepsilon < 1) the integrand is smooth, so apply parts to the truncated integral of B(p+1,q)=∫01tp(1βˆ’t)qβˆ’1 dtB(p+1,q) = \int_0^1 t^p(1-t)^{q-1}\,dt with u=tpu = t^p, dv=(1βˆ’t)qβˆ’1 dtdv = (1-t)^{q-1}\,dt.

    Then du=ptpβˆ’1 dtdu = p t^{p-1}\,dt and v=βˆ’(1βˆ’t)qqv = -\frac{(1-t)^q}{q}.

    The truncation is needed because for 0<p<10 < p < 1 or 0<q<10 < q < 1 the derivative is singular at the endpoints.

  2. On the truncated interval the boundary term is [βˆ’tp(1βˆ’t)qq]Ξ΄1βˆ’Ξ΅=βˆ’(1βˆ’Ξ΅)pΞ΅qq+Ξ΄p(1βˆ’Ξ΄)qq\left[-\frac{t^p(1-t)^q}{q}\right]_{\delta}^{1-\varepsilon} = -\frac{(1-\varepsilon)^p \varepsilon^q}{q} + \frac{\delta^p (1-\delta)^q}{q}.

    Since p,q>0p, q > 0, tp(1βˆ’t)qβ†’0t^p (1-t)^q \to 0 at both ends: Ξ΄pβ†’0\delta^p \to 0 as Ξ΄β†’0+\delta \to 0^+ and Ξ΅qβ†’0\varepsilon^q \to 0 as Ξ΅β†’0+\varepsilon \to 0^+, so the boundary term tends to 00.

    Sending Ξ΄,Ξ΅β†’0+\delta, \varepsilon \to 0^+ and using convergence from problem 1 gives B(p+1,q)=pq∫01tpβˆ’1(1βˆ’t)q dt=pqB(p,q+1)B(p+1,q) = \frac{p}{q}\int_0^1 t^{p-1}(1-t)^q\,dt = \frac{p}{q}B(p,q+1).

  3. Meanwhile, multiplying the integrand of B(p,q)=∫01tpβˆ’1(1βˆ’t)qβˆ’1 dtB(p,q) = \int_0^1 t^{p-1}(1-t)^{q-1}\,dt by 1=t+(1βˆ’t)1 = t + (1-t) gives ∫01tp(1βˆ’t)qβˆ’1 dt+∫01tpβˆ’1(1βˆ’t)q dt\int_0^1 t^p(1-t)^{q-1}\,dt + \int_0^1 t^{p-1}(1-t)^q\,dt, that is, B(p+1,q)+B(p,q+1)B(p+1,q) + B(p,q+1).

  4. From the second step, B(p,q+1)=qpB(p+1,q)B(p,q+1) = \frac{q}{p}B(p+1,q); substituting gives B(p,q)=B(p+1,q)+qpB(p+1,q)=p+qpB(p+1,q)B(p,q) = B(p+1,q) + \frac{q}{p}B(p+1,q) = \frac{p+q}{p}B(p+1,q). Rearranging yields B(p+1,q)=pp+qB(p,q)B(p+1,q) = \frac{p}{p+q}B(p,q).

  5. A note (an idea-level sketch, not a proof): the bridge to the gamma function, B(p,q)=Ξ“(p)Ξ“(q)Ξ“(p+q)B(p,q) = \frac{\Gamma(p)\Gamma(q)}{\Gamma(p+q)}, follows the standard sketch β€” write Ξ“(p)Ξ“(q)\Gamma(p)\Gamma(q) as a double integral over (0,∞)2(0,\infty)^2; the polar substitution t=r2sin⁑2ΞΈt = r^2\sin^2\theta, s=r2cos⁑2ΞΈs = r^2\cos^2\theta then separates the radial part into Ξ“(p+q)\Gamma(p+q) and the angular part into B(p,q)B(p,q). The full justification, including Fubini's theorem on the unbounded domain, goes beyond this scene, so we take the relation as the bridge, not as a proved theorem here.

11. Integration