taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.5-19

Exercise 1.2.5-19

stated in Lean solution written

RatingHM22
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.5 of Volume 1. Companion chapter: Permutations and factorials

The task

Let Γm(x)\Gamma_m(x) be the expression under the limit in eq. (15). Show that for x>0x > 0 it equals ∫0m(1−t/m)mtx−1 dt\int_0^m (1 - t/m)^m t^{x-1}\,dt, and that this equals mx∫01(1−t)mtx−1 dtm^x \int_0^1 (1-t)^m t^{x-1}\,dt.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Start with the second integral and find its value. Use integration by parts, with the derivative of (1−t)m(1-t)^m in one step.

Hint 2

Prove by induction on mm that ∫01(1−t)mtx−1 dt=m!x(x+1)⋯(x+m)\int_0^1 (1-t)^m t^{x-1}\,dt = \dfrac{m!}{x(x+1)\cdots(x+m)} for all x>0x > 0.

Hint 3

Then substitute t=mst = ms to get the first integral.

Solution

Show the solution

Let I(m,x)=∫01(1−t)mtx−1 dtI(m, x) = \int_0^1 (1-t)^m t^{x-1}\,dt for x>0x > 0 and integer m≥0m \ge 0. The integral converges, since x−1>−1x - 1 > -1.

Claim: I(m,x)=m!x(x+1)⋯(x+m)I(m, x) = \dfrac{m!}{x(x+1)\cdots(x+m)}.

For m=0m = 0 the integral is ∫01tx−1 dt=1x\int_0^1 t^{x-1}\,dt = \frac1x. For m≥1m \ge 1 integrate by parts with u=(1−t)mu = (1-t)^m and dv=tx−1 dtdv = t^{x-1}\,dt:

I(m,x)=[(1−t)mtxx]01+mx∫01(1−t)m−1tx dt.I(m, x) = \left[(1-t)^m \frac{t^x}{x}\right]_0^1 + \frac{m}{x}\int_0^1 (1-t)^{m-1} t^{x}\,dt.

The bracket is 00 at t=1t = 1 because m≥1m \ge 1, and 00 at t=0t = 0 because x>0x > 0. So I(m,x)=mx I(m−1,x+1)I(m, x) = \frac{m}{x}\,I(m-1, x+1). By the induction hypothesis for m−1m - 1 and x+1x + 1,

I(m,x)=mx⋅(m−1)!(x+1)(x+2)⋯(x+m)=m!x(x+1)⋯(x+m).I(m, x) = \frac{m}{x}\cdot\frac{(m-1)!}{(x+1)(x+2)\cdots(x+m)} = \frac{m!}{x(x+1)\cdots(x+m)}.

This proves the claim. Therefore mxI(m,x)=mx m!x(x+1)⋯(x+m)=Γm(x)m^x I(m, x) = \dfrac{m^x\,m!}{x(x+1)\cdots(x+m)} = \Gamma_m(x).

For the first integral, put t=mst = ms with dt=m dsdt = m\,ds and tx−1=mx−1sx−1t^{x-1} = m^{x-1}s^{x-1}:

∫0m(1−tm)mtx−1 dt=mx∫01(1−s)msx−1 ds=mxI(m,x)=Γm(x).\int_0^m \left(1 - \frac{t}{m}\right)^m t^{x-1}\,dt = m^{x}\int_0^1 (1-s)^m s^{x-1}\,ds = m^x I(m, x) = \Gamma_m(x).

Check

Take m=3m = 3 and x=12x = \frac12. Then Γ3(12)=3⋅612⋅32⋅52⋅72=1.58358930977…\Gamma_3(\frac12) = \dfrac{\sqrt3 \cdot 6}{\frac12\cdot\frac32\cdot\frac52\cdot\frac72} = 1.58358930977\ldots. Numeric integration with python gives the same value 1.58358930977…1.58358930977\ldots for ∫03(1−t/3)3t−1/2 dt\int_0^3 (1 - t/3)^3 t^{-1/2}\,dt and for 3∫01(1−t)3t−1/2 dt\sqrt3\int_0^1 (1-t)^3 t^{-1/2}\,dt. For x=1x = 1 and any mm: Γm(1)=mm+1→1=0!\Gamma_m(1) = \frac{m}{m+1} \to 1 = 0!.

Remarks

The integral I(m,x)I(m, x) is the beta function B(x,m+1)B(x, m+1). Exercise 1.2.5-20 lets m→∞m \to \infty in the first form.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

stated The statement is in Lean and it builds. The proof is not in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.