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.7-24

Exercise 1.2.7-24

stated in Lean solution written

RatingHM21
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.7 of Volume 1. Companion chapter: Harmonic numbers

The task

Prove that xeγx∏k≥1((1+xk)e−x/k)=1Γ(x)xe^{\gamma x}\prod_{k \ge 1}\left(\left(1 + \frac xk\right)e^{-x/k}\right) = \frac{1}{\Gamma(x)}.

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

Look at the partial product up to NN. Collect the exponentials into a single factor e−xHNe^{-xH_N}.

Hint 2

Compare the remaining product ∏(1+x/k)\prod(1 + x/k) with Eq. 1.2.5(13).

Solution

Show the solution

Let PNP_N be the partial product: PN=xeγx∏k=1N(1+xk)e−x/kP_N = xe^{\gamma x}\prod_{k=1}^{N}\left(1 + \frac xk\right)e^{-x/k}. The factors e−x/ke^{-x/k} multiply to e−xHNe^{-xH_N}, and ∏k≤N(1+xk)=(x+1)(x+2)⋯(x+N)N!\prod_{k \le N}\left(1 + \frac xk\right) = \frac{(x+1)(x+2)\cdots(x+N)}{N!}. So

PN=x ex(γ−HN) (x+1)⋯(x+N)N!=x ex(γ−HN+ln⁡N)⋅(x+1)⋯(x+N)N! Nx.P_N = x\,e^{x(\gamma - H_N)}\,\frac{(x+1)\cdots(x+N)}{N!} = x\,e^{x(\gamma - H_N + \ln N)}\cdot\frac{(x+1)\cdots(x+N)}{N!\,N^x}.

Case xx not 00 and not a negative integer. As N→∞N \to \infty, HN−ln⁡N→γH_N - \ln N \to \gamma, so the exponential tends to e0=1e^0 = 1. By Eq. 1.2.5(13), N! Nx(x+1)⋯(x+N)→Γ(x+1)\frac{N!\,N^x}{(x+1)\cdots(x+N)} \to \Gamma(x+1), so the last fraction tends to 1Γ(x+1)\frac{1}{\Gamma(x+1)}. Therefore PN→xΓ(x+1)=xxΓ(x)=1Γ(x)P_N \to \frac{x}{\Gamma(x+1)} = \frac{x}{x\Gamma(x)} = \frac{1}{\Gamma(x)}.

Case x=0x = 0 or x=−rx = -r with r≥1r \ge 1. The factor xx or the factor 1+x/r1 + x/r is 00, so PN=0P_N = 0 for N≥rN \ge r. Also 1Γ(x)=0\frac{1}{\Gamma(x)} = 0 at these points, since Γ\Gamma has a pole there.

Check

For x=12x = \frac12 and N=105N = 10^5 python gives PN=0.5641903…P_N = 0.5641903\ldots, and 1/Γ(12)=0.5641896…1/\Gamma(\frac12) = 0.5641896\ldots. For x=−32x = -\frac32 the values are 0.4231470.423147 and 0.4231420.423142. For x=3x = 3 they are 0.50002250.5000225 and 0.5=1/2!0.5 = 1/2!. The error is of the order of 1/N1/N.

Remarks

Taking the logarithmic derivative of the product gives −Γ′(x)Γ(x)=1x+γ+∑k≥1(1k+x−1k)-\frac{\Gamma'(x)}{\Gamma(x)} = \frac1x + \gamma + \sum_{k \ge 1}\left(\frac{1}{k+x} - \frac1k\right). So Hx−1=∑k≥1(1k−1k+x−1)H_{x-1} = \sum_{k \ge 1}\left(\frac1k - \frac{1}{k+x-1}\right) in the notation of exercise 1.2.7-23, which is the series form of HxH_x. The product converges for all complex xx.

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.