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

Exercise 1.2.5-21

stated in Lean solution written

RatingHM25
MarkersHM (needs higher mathematics)
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

Prove Arbogast's formula for DxnwD_x^n w where ww is a function of uu and uu is a function of xx: a sum over jj and over the tuples (k1,…,kn)(k_1, \ldots, k_n) with k1+⋯+kn=jk_1 + \cdots + k_n = j and k1+2k2+⋯+nkn=nk_1 + 2k_2 + \cdots + nk_n = n.

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 Taylor series of u(x+h)u(x+h) in hh. The nnth derivative of w(u(x))w(u(x)) is n!n! times the coefficient of hnh^n in the Taylor series of w(u(x+h))w(u(x+h)).

Hint 2

Write u(x+h)=u(x)+δu(x+h) = u(x) + \delta with δ=∑i≥1Diu hi/i!\delta = \sum_{i \ge 1} D^iu\, h^i/i!. Expand w(u+δ)w(u + \delta) in powers of δ\delta, and then expand each power δj\delta^j with the multinomial theorem.

Hint 3

Pick the terms of total degree nn in hh. They give the conditions on the kik_i.

Solution

Show the solution

Plan. Use Taylor expansions with the remainder o(hn)o(h^n), multiply them out, and read the coefficient of hnh^n.

Notation. Let ui=Dxiuu_i = D^i_x u at the point xx and wj=Dujww_j = D^j_u w at the point u(x)u(x). Let uu be nn times differentiable at xx and ww be nn times differentiable at u(x)u(x). A function ff with this property satisfies f(x+h)=∑i≤nf(i)(x)hi/i!+o(hn)f(x+h) = \sum_{i \le n} f^{(i)}(x)h^i/i! + o(h^n). Conversely, if f(x+h)=∑i≤ncihi+o(hn)f(x+h) = \sum_{i \le n} c_i h^i + o(h^n), then ci=f(i)(x)/i!c_i = f^{(i)}(x)/i!, because the Taylor polynomial of this degree with the remainder o(hn)o(h^n) is unique.

Step 1. Put δ(h)=u(x+h)−u(x)=∑i=1nuihi/i!+o(hn)\delta(h) = u(x+h) - u(x) = \sum_{i=1}^{n} u_i h^i/i! + o(h^n). Then δ=O(h)\delta = O(h), and

w(u(x+h))=∑j=0nwjj! δj+o(δn)=∑j=0nwjj! δj+o(hn).w(u(x+h)) = \sum_{j=0}^{n} \frac{w_j}{j!}\,\delta^j + o(\delta^n) = \sum_{j=0}^{n} \frac{w_j}{j!}\,\delta^j + o(h^n).

Step 2. Replace δ\delta by its polynomial ∑i=1nuihi/i!\sum_{i=1}^{n} u_i h^i/i!. The change is o(hn)o(h^n) in each power δj\delta^j with j≥1j \ge 1, since δ=O(h)\delta = O(h). By the multinomial theorem,

(∑i=1nuihii!)j=∑k1+⋯+kn=jj!k1!⋯kn!∏i=1n(uii!)kihk1+2k2+⋯+nkn.\left(\sum_{i=1}^{n} \frac{u_i h^i}{i!}\right)^j = \sum_{k_1 + \cdots + k_n = j} \frac{j!}{k_1!\cdots k_n!} \prod_{i=1}^{n}\left(\frac{u_i}{i!}\right)^{k_i} h^{k_1 + 2k_2 + \cdots + nk_n}.

Step 3. The coefficient of hnh^n in w(u(x+h))w(u(x+h)) comes from the tuples with k1+2k2+⋯+nkn=nk_1 + 2k_2 + \cdots + nk_n = n. Each of them has j=k1+⋯+kn≤nj = k_1 + \cdots + k_n \le n, so every such tuple occurs in Step 1, and powers j>nj > n add only terms with h>nh^{>n}. The coefficient of hnh^n is

∑j ∑k1+⋯+kn=jk1+2k2+⋯+nkn=nwjj!⋅j!k1!⋯kn!∏iuiki(i!)ki.\sum_{j}\ \sum_{\substack{k_1 + \cdots + k_n = j \\ k_1 + 2k_2 + \cdots + nk_n = n}} \frac{w_j}{j!}\cdot\frac{j!}{k_1!\cdots k_n!} \prod_{i}\frac{u_i^{k_i}}{(i!)^{k_i}}.

The factor j!j! cancels. By the uniqueness remark, DxnwD_x^n w is n!n! times this coefficient, and that is the formula of the exercise: the coefficient of wj u1k1⋯unknw_j\,u_1^{k_1}\cdots u_n^{k_n} is n!k1!(1!)k1⋯kn!(n!)kn\dfrac{n!}{k_1!(1!)^{k_1}\cdots k_n!(n!)^{k_n}}.

Check

For n=3n = 3 the tuples are (3,0,0)(3,0,0), (1,1,0)(1,1,0) and (0,0,1)(0,0,1) with the coefficients 3!3!=1\frac{3!}{3!} = 1, 3!1!⋅1!⋅2!=3\frac{3!}{1!\cdot 1!\cdot 2!} = 3 and 3!3!=1\frac{3!}{3!} = 1. So Dx3w=w3u13+3w2u1u2+w1u3D^3_x w = w_3u_1^3 + 3w_2u_1u_2 + w_1u_3, which is the known formula. The number of tuples for n=1,…,6n = 1, \ldots, 6 is 1,2,3,5,7,111, 2, 3, 5, 7, 11, the number of partitions of nn. Python (sympy) compares the formula with direct differentiation for n≤6n \le 6 for w=eyw = e^y, u=sin⁡x+x2u = \sin x + x^2; w=sin⁡yw = \sin y, u=x3+2xu = x^3 + 2x; and w=y5+cos⁡yw = y^5 + \cos y, u=ex+xu = e^x + x, at x=0.3x = 0.3. All agree.

Remarks

The sum over the tuples is a sum over the partitions of nn with kik_i parts of size ii. This is the formula of Faà di Bruno, who published it in 1855. The coefficient counts the set partitions of an nn-set with kik_i blocks of size ii.

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.