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.6-40

Exercise 1.2.6-40

stated in Lean solution written

RatingHM17
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Prove the three basic properties of the beta function B(x,y)=∫01tx−1(1−t)y−1 dtB(x,y) = \int_0^1 t^{x-1}(1-t)^{y-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

For (a) integrate directly. For the second equality in (a) change tt to 1−t1 - t.

Hint 2

For (b) add the two integrands.

Hint 3

For (c) integrate B(x,y+1)B(x, y+1) by parts and combine the result with (b).

Solution

Show the solution

The integral converges for x,y>0x, y > 0, since the integrand is O(tx−1)O(t^{x-1}) near 00 and O((1−t)y−1)O((1-t)^{y-1}) near 11.

(a) B(x,1)=∫01tx−1 dt=1/xB(x, 1) = \int_0^1 t^{x-1}\,dt = 1/x. The substitution t→1−tt \to 1 - t shows B(x,y)=B(y,x)B(x,y) = B(y,x), so B(1,x)=B(x,1)=1/xB(1,x) = B(x,1) = 1/x.

(b) tx(1−t)y−1+tx−1(1−t)y=tx−1(1−t)y−1(t+(1−t))=tx−1(1−t)y−1t^{x}(1-t)^{y-1} + t^{x-1}(1-t)^{y} = t^{x-1}(1-t)^{y-1}\bigl(t + (1-t)\bigr) = t^{x-1}(1-t)^{y-1}. Integrate over [0,1][0,1].

(c) In B(x,y+1)=∫01tx−1(1−t)y dtB(x, y+1) = \int_0^1 t^{x-1}(1-t)^{y}\,dt take u=(1−t)yu = (1-t)^y and dv=tx−1 dtdv = t^{x-1}\,dt. Then B(x,y+1)=[txx(1−t)y]01+yx∫01tx(1−t)y−1 dt=yxB(x+1,y).B(x,y+1) = \Bigl[\tfrac{t^x}{x}(1-t)^y\Bigr]_0^1 + \frac{y}{x}\int_0^1 t^{x}(1-t)^{y-1}\,dt = \frac{y}{x}B(x+1, y). The boundary term is 00 at both ends, since x,y>0x, y > 0. So B(x+1,y)=xyB(x,y+1)B(x+1,y) = \frac{x}{y}B(x,y+1). Put this in (b): B(x,y)=xyB(x,y+1)+B(x,y+1)=x+yyB(x,y+1)B(x,y) = \frac{x}{y}B(x,y+1) + B(x,y+1) = \frac{x+y}{y}B(x,y+1).

Check

For x=2x = 2, y=3y = 3: B(2,3)=∫01t(1−t)2 dt=12−23+14=112B(2,3) = \int_0^1 t(1-t)^2\,dt = \frac12 - \frac23 + \frac14 = \frac1{12}. Also B(3,3)=130B(3,3) = \frac1{30} and B(2,4)=120B(2,4) = \frac1{20}. Then 130+120=112\frac1{30} + \frac1{20} = \frac1{12}, and 53⋅120=112\frac{5}{3}\cdot\frac1{20} = \frac1{12}.

Remarks

Part (c) is the beta-function form of eq. 1.2.6(7). Exercise 1.2.6-41 gives the closed form that contains all three parts.

This solution is drafted, 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.