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

Exercise 1.2.5-18

proved in Lean solution written

RatingM20
MarkersM (mathematical)
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

Assume Wallis's product for π/2\pi/2. Use exercise 17 to show that (12)!=π/2(\frac12)! = \sqrt{\pi}/2.

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

Write the pair of factors of Wallis's product as one factor (2n)2(2n−1)(2n+1)\frac{(2n)^2}{(2n-1)(2n+1)}, and divide the numerator and the denominator by 44.

Hint 2

Match this factor to the form in exercise 17 with k=2k = 2, and then relate (−12)!(-\frac12)! to (12)!(\frac12)!.

Solution

Show the solution

Wallis's product says that

∏n≥1(2n)2(2n−1)(2n+1)=21⋅23⋅43⋅45⋯=π2.\prod_{n \ge 1} \frac{(2n)^2}{(2n-1)(2n+1)} = \frac{2}{1}\cdot\frac{2}{3}\cdot\frac{4}{3}\cdot\frac{4}{5}\cdots = \frac{\pi}{2}.

The factor is n2(n−12)(n+12)\dfrac{n^2}{(n - \frac12)(n + \frac12)}, after division of the numerator and the denominator by 44. This is the shape of exercise 17 with k=2k = 2, α1=α2=0\alpha_1 = \alpha_2 = 0, β1=−12\beta_1 = -\frac12 and β2=12\beta_2 = \frac12. The sums are equal, both 00, and no β\beta is a negative integer. So

π2=(−12)! (12)!0! 0!=(−12)! (12)!.\frac{\pi}{2} = \frac{(-\frac12)!\,(\frac12)!}{0!\,0!} = (-\tfrac12)!\,(\tfrac12)!.

Now x!=x (x−1)!x! = x\,(x-1)! for each xx that is not a negative integer. This follows from eq. (13). With gmg_m as in exercise 17, gm(x−1)=m! mx−1x(x+1)⋯(x+m−1)g_m(x-1) = \dfrac{m!\,m^{x-1}}{x(x+1)\cdots(x+m-1)}, so x gm(x−1)=m! mx−1(x+1)⋯(x+m−1)=gm(x) x+mmx\,g_m(x-1) = \dfrac{m!\,m^{x-1}}{(x+1)\cdots(x+m-1)} = g_m(x)\,\dfrac{x+m}{m}. The factor x+mm\frac{x+m}{m} tends to 11. For x=12x = \frac12 this gives (−12)!=2 (12)!(-\frac12)! = 2\,(\frac12)!. Then

π2=2((12)!)2,((12)!)2=π4.\frac{\pi}{2} = 2\left((\tfrac12)!\right)^2, \qquad \left((\tfrac12)!\right)^2 = \frac{\pi}{4}.

The number (12)!(\frac12)! is a limit of positive numbers gm(12)g_m(\frac12), so it is not negative, and it is not 00 because its square is π4\frac{\pi}{4}. So (12)!=π2(\frac12)! = \frac{\sqrt\pi}{2}.

Check

Python computes the partial product up to n=105n = 10^5 and gets 1.5707924…1.5707924\ldots, close to π/2=1.5707963…\pi/2 = 1.5707963\ldots. Also Γ(32)=0.8862269…\Gamma(\frac32) = 0.8862269\ldots and π/2=0.8862269…\sqrt\pi/2 = 0.8862269\ldots. The value agrees with (12)!=12⋅(−12)!=12π(\frac12)! = \frac12 \cdot (-\frac12)! = \frac12\sqrt\pi, where (−12)!=Γ(12)=π=1.7724539…(-\frac12)! = \Gamma(\frac12) = \sqrt\pi = 1.7724539\ldots.

Remarks

The factors of the grouped product are (2n)2(2n−1)(2n+1)>1\frac{(2n)^2}{(2n-1)(2n+1)} > 1, so the partial products increase to π/2\pi/2. Exercise 1.2.6-43 proves Wallis's product.

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

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

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

Something is wrong? Report it.