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-43

Exercise 1.2.6-43

stated in Lean solution written

RatingHM20
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

Compute ∫01dtt(1−t)\int_0^1 \frac{dt}{\sqrt{t(1-t)}}.

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

Use the substitution t=sin⁡2θt = \sin^2\theta.

Solution

Show the solution

By definition B(1/2,1/2)=∫01t−1/2(1−t)−1/2 dtB(1/2,1/2) = \int_0^1 t^{-1/2}(1-t)^{-1/2}\,dt. Put t=sin⁡2θt = \sin^2\theta with 0<θ<π/20 < \theta < \pi/2. Then dt=2sin⁡θcos⁡θ dθdt = 2\sin\theta\cos\theta\,d\theta, and t(1−t)=sin⁡θcos⁡θ\sqrt{t(1-t)} = \sin\theta\cos\theta, both positive on this range. So B(1/2,1/2)=∫0π/22 dθ=π.B(1/2,1/2) = \int_0^{\pi/2}2\,d\theta = \pi.

Check

With Exercise 1.2.6-41, B(1/2,1/2)=Γ(1/2)2/Γ(1)=Γ(1/2)2B(1/2,1/2) = \Gamma(1/2)^2/\Gamma(1) = \Gamma(1/2)^2. So Γ(1/2)=π≈1.77245\Gamma(1/2) = \sqrt\pi \approx 1.77245, which is the known value.

Remarks

This is the quickest proof of Γ(1/2)=π\Gamma(1/2) = \sqrt\pi, and so of the integral ∫−∞∞e−u2 du=π\int_{-\infty}^\infty e^{-u^2}\,du = \sqrt\pi.

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.