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.9-13

Exercise 1.2.9-13

stated in Lean solution written

RatingHM22
MarkersHM (needs higher mathematics)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.9 of Volume 1. Companion chapter: Generating functions

The task

Express the Laplace transform of the step function f(x)=∑kak[0≤k≤x]f(x)=\sum_ka_k[0\le k\le x] with the generating function GG of the sequence.

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

On the interval [k,k+1)[k,k+1) the function ff is the constant a0+⋯+aka_0+\cdots+a_k.

Hint 2

Integrate e−ste^{-st} over one interval, or exchange the sum and the integral for the terms ak[t≥k]a_k[t\ge k].

Solution

Show the solution

Assume s>0s>0 and that ∑k∣ak∣e−sk\sum_k|a_k|e^{-sk} converges, so the generating function G(z)=∑akzkG(z)=\sum a_kz^k converges at z=e−sz=e^{-s}. Write f(t)=∑kak[t≥k]f(t)=\sum_ka_k[t\ge k]. Then

∫0∞e−stf(t) dt=∫0∞∑kak[t≥k]e−st dt=∑kak∫k∞e−st dt=∑kake−sks=1sG(e−s).\int_0^\infty e^{-st}f(t)\,dt=\int_0^\infty\sum_ka_k[t\ge k]e^{-st}\,dt=\sum_ka_k\int_k^\infty e^{-st}\,dt=\sum_ka_k\frac{e^{-sk}}s=\frac1sG(e^{-s}).

The exchange of sum and integral is allowed by Fubini's theorem, because ∑k∣ak∣∫k∞e−stdt=1s∑k∣ak∣e−sk<∞\sum_k|a_k|\int_k^\infty e^{-st}dt=\frac1s\sum_k|a_k|e^{-sk}<\infty. The integral of one term is ∫k∞e−stdt=e−sk/s\int_k^\infty e^{-st}dt=e^{-sk}/s. So the Laplace transform of ff is G(e−s)/sG(e^{-s})/s.

Check

Take ak=1a_k=1 for all kk. Then f(x)=⌊x⌋+1f(x)=\lfloor x\rfloor+1 and G(z)=1/(1−z)G(z)=1/(1-z). The transform is ∫0∞e−st(⌊t⌋+1)dt=∑k≥0e−sk/s=1s(1−e−s)\int_0^\infty e^{-st}(\lfloor t\rfloor+1)dt=\sum_{k\ge0}e^{-sk}/s=\frac1{s(1-e^{-s})}. For s=1s=1 both numbers are 1/(1−e−1)=1.5819767…1/(1-e^{-1})=1.5819767\ldots.

Remarks

This is the link between generating functions and Laplace transforms. The substitution z=e−sz=e^{-s} turns a series in zz into a function of ss, and the factor 1/s1/s comes from the integration of the step.

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.