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

Exercise 1.2.7-20

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.7 of Volume 1. Companion chapter: Harmonic numbers

The task

Let f(x)=∑k≥0akxkf(x) = \sum_{k \ge 0}a_kx^k converge at x=x0x = x_0, and let the series ∑k≥0akx0kHk\sum_{k \ge 0}a_kx_0^kH_k converge too. Show that its sum is ∫01f(x0)−f(x0y)1−y dy\int_0^1\frac{f(x_0) - f(x_0y)}{1-y}\,dy, an integral that is improper at y=1y = 1.

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

Put ck=akx0kc_k = a_kx_0^k and look at the tails Ri=∑k≥ickR_i = \sum_{k \ge i}c_k. Rewrite the integrand as a power series in yy with the coefficients RiR_i.

Hint 2

Integrate term by term. Then the integral is ∑iRiti/i\sum_i R_it^i/i when the upper limit is t<1t < 1.

Hint 3

To get to t=1t = 1, use Abel's theorem on power series. For this, show that ∑iRi/i\sum_i R_i/i converges to the sum on the left. Compare its partial sums with those of ∑ckHk\sum c_kH_k.

Solution

Show the solution

Setup. Let ck=akx0kc_k = a_kx_0^k, and let S=∑k≥0ckHkS = \sum_{k \ge 0}c_kH_k. The integral is improper at y=1y = 1, and it is defined as the limit of ∫0t\int_0^t as t→1−t \to 1^-. Let F=∑ck=f(x0)F = \sum c_k = f(x_0).

Step 1: tails. Let Ri=∑k≥ickR_i = \sum_{k \ge i}c_k for i≥1i \ge 1. Then Ri→0R_i \to 0, so ∣Ri∣≤B|R_i| \le B for some BB, and Ri−Ri+1=ciR_i - R_{i+1} = c_i.

Step 2: the integrand. The terms ckc_k are bounded, so for 0≤y<10 \le y < 1 the series f(x0y)=∑ckykf(x_0y) = \sum c_ky^k converges absolutely. Also F−f(x0y)=∑k≥1ck(1−yk)F - f(x_0y) = \sum_{k \ge 1}c_k(1 - y^k), and 1−yk1−y=∑i=1kyi−1\frac{1 - y^k}{1-y} = \sum_{i=1}^{k}y^{i-1}. For each KK, exchanging the finite sums,

∑k=1Kck∑i=1kyi−1=∑i=1Kyi−1∑k=iKck=∑i=1Kyi−1(Ri−RK+1).\sum_{k=1}^{K}c_k\sum_{i=1}^{k}y^{i-1} = \sum_{i=1}^{K}y^{i-1}\sum_{k=i}^{K}c_k = \sum_{i=1}^{K}y^{i-1}\left(R_i - R_{K+1}\right).

As K→∞K \to \infty, ∑i≤Kyi−1RK+1→0\sum_{i \le K}y^{i-1}R_{K+1} \to 0, because RK+1→0R_{K+1} \to 0 and the geometric sum is at most 11−y\frac{1}{1-y}. So for 0≤y<10 \le y < 1,

g(y):=F−f(x0y)1−y=∑i≥1Riyi−1.g(y) := \frac{F - f(x_0y)}{1-y} = \sum_{i \ge 1}R_iy^{i-1}.

Step 3: integrate. The power series in Step 2 has bounded coefficients, so it has the radius of convergence at least 11. On [0,t][0, t] with t<1t < 1 it integrates term by term:

I(t):=∫0tg(y) dy=∑i≥1Riiti.I(t) := \int_0^tg(y)\,dy = \sum_{i \ge 1}\frac{R_i}{i}t^i.

Step 4: ∑Ri/i\sum R_i/i converges to SS. For each KK, the same exchange of finite sums at y=1y = 1 gives

∑k=1KckHk=∑i=1K1i(Ri−RK+1)=∑i=1KRii−RK+1HK.\sum_{k=1}^{K}c_kH_k = \sum_{i=1}^{K}\frac{1}{i}\left(R_i - R_{K+1}\right) = \sum_{i=1}^{K}\frac{R_i}{i} - R_{K+1}H_K.

The left side tends to SS. Claim: RK+1HK→0R_{K+1}H_K \to 0. Let bk=ckHkb_k = c_kH_k, so ∑bk\sum b_k converges and its tails τK=∑k>Kbk\tau_K = \sum_{k > K}b_k tend to 00. Then RK+1=∑k>Kbk/HkR_{K+1} = \sum_{k > K}b_k/H_k. The weights 1/Hk1/H_k are positive and decrease. By Abel summation, ∣∑k=K+1Nbk/Hk∣≤1HK+1max⁡K<M≤N∣∑k=K+1Mbk∣|\sum_{k=K+1}^{N}b_k/H_k| \le \frac{1}{H_{K+1}}\max_{K < M \le N}|\sum_{k=K+1}^{M}b_k|, and the maximum is at most 2sup⁡M≥K∣τM∣2\sup_{M \ge K}|\tau_M|. So ∣RK+1∣HK+1≤2sup⁡M≥K∣τM∣→0|R_{K+1}|H_{K+1} \le 2\sup_{M \ge K}|\tau_M| \to 0, and the claim follows. Hence ∑i≥1Ri/i\sum_{i \ge 1}R_i/i converges, with sum SS.

Step 5: Abel's theorem. If a power series ∑diti\sum d_it^i converges at t=1t = 1, then its sum tends to ∑di\sum d_i as t→1−t \to 1^-. With di=Ri/id_i = R_i/i, I(t)→SI(t) \to S as t→1−t \to 1^-. This says ∫01g(y) dy=S=∑kakx0kHk\int_0^1g(y)\,dy = S = \sum_{k}a_kx_0^kH_k.

Check

Take ak=1a_k = 1 and x0=12x_0 = \frac12. Then f(x)=11−xf(x) = \frac{1}{1-x}, and ∑k2−kHk=2ln⁡2=1.38629436…\sum_k 2^{-k}H_k = 2\ln 2 = 1.38629436\ldots. The integral ∫01(2−11−y/2)dy1−y\int_0^1\left(2 - \frac{1}{1 - y/2}\right)\frac{dy}{1-y}, computed by python, is also 1.38629436…1.38629436\ldots. A case with conditional convergence: ak=(−1)k/ka_k = (-1)^k/k for k≥1k \ge 1, x0=1x_0 = 1, so f(x)=−ln⁡(1+x)f(x) = -\ln(1+x). Python gives ∑k(−1)kHk/k=12ln⁡22−π212=−0.582240526…\sum_k(-1)^kH_k/k = \frac12\ln^2 2 - \frac{\pi^2}{12} = -0.582240526\ldots and the integral ∫01ln⁡(1+y)−ln⁡21−y dy=−0.582240526…\int_0^1\frac{\ln(1+y) - \ln 2}{1-y}\,dy = -0.582240526\ldots.

Remarks

The assumption that ∑ckHk\sum c_kH_k converges cannot be dropped. For ak=(−1)k/ln⁡(k+2)a_k = (-1)^k/\ln(k+2) and x0=1x_0 = 1 the series f(1)f(1) converges, since its terms alternate in sign and decrease to 00 in absolute value. But ∣akHk∣=Hk/ln⁡(k+2)→1|a_kH_k| = H_k/\ln(k+2) \to 1, so ∑akHk\sum a_kH_k diverges.

For ak=1a_k = 1 and x0=zx_0 = z the identity is ∑kHkzk=−ln⁡(1−z)1−z\sum_k H_kz^k = \frac{-\ln(1-z)}{1-z}, the generating function of the harmonic numbers. Exercise 1.2.7-22 uses this function.

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.