Formal Power Series
Formal Power Series
Formal Power Series
Comparing the coefficients of xn−1 we see that nan = an−1 for all n ≥ I. By
induction, this implies that an = 0 for all I ≤ n < 0, so that in fact I ≥ 0. From
exp(0) = 1 we see that a0 = 1, and it then follows that an = 1/n! for all n ∈ N, so
that ∞
X xn
exp(x) = .
n=0
n!
This last example is particularly instructive. You might think that the limit should
exist and equal 1. However, the coefficient of x1 in (1 − x/k)−1 is 1/k, and we see
that the sequence (1/k : k ≥ 1) is not eventually constant. Therefore, this sequence
of formal power series does not converge according to Definition 7.10.
Two important special cases of this concept of limits are the interpretations of
infinite sums and infinite products of formal Laurent series. For an infinite sequence
(fk (x) : k ∈ N) of formal Laurent series, we define
∞
X K
X
fk (x) := lim fk (x)
K→∞
k=0 k=0
and
∞
Y K
Y
fk (x) := lim fk (x),
K→∞
k=0 k=0
provided that these limits exist.
Example 7.12. Consider the infinite summation
∞
X xk
.
k=1
1 − xk
Does this converge? To check the definition, for each K ∈ N consider the partial
sum
K K
X xk X
xk + x2k + x3k + · · · .
fK (x) := k
=
k=1
1−x k=1
To show that limK→∞ fK (x) exists, we fix an n ∈ N and consider the sequence
[xn ]fK (x) as K → ∞. Is this sequence eventually constant? Yes it is! If K > n
then
K n
n n
X xk n
X xk
[x ]fK (x) = [x ] k
= [x ] k
= [xn ]fn (x)
k=1
1 − x k=1
1 − x
since the terms with k > n can only contribute to the coefficients of powers of x
which are strictly greater than n. Since this number [xn ]fn (x) depends only on n
and not on K, the sequence [xn ]fK (x) is eventually constant as K → ∞. Therefore,
the infinite summation converges. In fact,
∞ ∞
X xk X
k
= d(n)xn
k=1
1 − x n=1
There are a few cases. If g(x) = 0 then g(x)n does not exist for any negative integer
n. Thus, if g(x) = 0 then f (g(x)) = f (0) exists if and only if I(f ) ≥ 0, in which
case f (0) = [x0 ]f (x). Assume now that g(x) 6= 0, so that g −1 (x) does exist in
the field R((x)). If f (x) has only finitely many nonzero coefficients then f (g(x))
is a polynomial function of g(x) and g −1 (x), and therefore is an element of R((x)).
Finally, assume that f (x) has infinitely many nonzero coefficients. Therefore, for
every N ∈ N there is an n ≥ N such that an 6= 0. Notice that (since R is an
integral domain) the index of an g(x)n is nI(g), n times the index of g(x). Therefore,
if I(g) ≤ 0 then condition (b) of Proposition 7.14 is violated for the sequence
(an g(x)n : n ≥ I(f )), so that the infinite summation
X∞
f (g(x)) = an g(x)n
n=I(f )
is not defined. Conversely, if I(g) > 0 then condition (b) of Proposition 7.14 is
satisfied, and f (g(x)) does exist. In summary, we have proved the following.
Proposition 7.15. Let f (x) and g(x) be formal Laurent series in R((x)), in which
R is a field. Then f (g(x)) is well–defined if and only if one of the following cases
holds:
(i) g(x) = 0 and I(f ) ≥ 0;
(ii) g(x) 6= 0 and f (x) has only finitely many nonzero coefficients;
(iii) g(x) 6= 0 and I(g) > 0.
Under some circumstances, it is useful to think of a formal power series f (x) ∈
R[[x]] as a “change of variables” by considering u := f (x) as another variable itself.
Of course, this u does depend on x, but one can consider the ring R[[u]], which will
be a subring of R[[x]]. The most interesting case is that in which R[[u]] = R[[x]],
which occurs exactly when there is a formal power series g(u) ∈ R[[u]] such that
x = g(u). These two equations u = f (x) and x = g(u) imply that x = g(f (x)) and
u = f (g(u)), which is called an invertible change of variables.
Proposition 7.16. Let R be a field, and let f (x) be a formal power series in R[[x]].
There exists g(u) ∈ R[[u]] such that x = g(f (x)) and u = f (g(u)) if and only if
either I(f ) = 1, or f (x) = a0 + a1 x with both a0 and a1 nonzero. If such a g(u)
exists then it is unique.
Proof. Consider a pair of formal power series such that x = g(f (x)) and u = f (g(u)).
First, if f (x) = 0 then there is clearly no g(u) ∈ R[[u]] such that u = f (g(u)),
so that this case does not arise.
Second, consider the case in which f (x) = ∞ n
P
n=0 an x has a nonzero constant
term a0 6= 0. In order for the composition g(f (x)) to be well-defined, g(u) =
P ∞ j
j=0 bj x must have only finitely many nonzero coefficients, by Proposition 7.15.
Since f (g(x)) = x and a0 6= 0, it follows that b0 6= 0 as well (for otherwise, if
b0 = 0 then [x0 ]f (g(x)) = a0 6= 0, contradicting f (g(x)) = x). Now, since b0 6= 0,
for the composition f (g(u)) to be well-defined, f (x) must have only finitely many
nonzero coefficients, by Proposition 7.15. That is, f (x) and g(u) are polynomials
with nonzero constant terms. Now both f (g(u)) and g(f (x)) are polynomials of
degree deg(f ) · deg(g), and hence deg(f ) = deg(g) = 1. From f (x) = a0 + a1 x and
g(u) = b0 + b1 u we see that x = g(f (x)) = b0 + b1 a0 + b1 a1 x, so that b0 + b1 a0 = 0 and
b1 a1 = 1. That is, b1 = a−1 −1
1 and b0 = −a0 a1 , so that g(u) is uniquely determined.
One easily checks that f (g(u)) = u as well, finishing this case.
P∞ Finally, consider a nonzero f (x) ∈ R[[x]] with index at least one. Let f (x) =
n
n=1 an x be given P
– we are assuming that a0 = 0. To begin with, we seek a formal
power series g(u) = ∞ j
j=0 bj u such that g(f (x)) = x. Expanding this, we have
∞ ∞ ∞
!j
X X X
j n
x = g(f (x)) = bj f (x) = bj an x
j=0 j=0 n=1
∞
X ∞
X X
= xm bj an1 an2 · · · anj .
m=0 j=0 n1 +n2 +···+nj =m
In the inner summation, since a0 = 0 we need only consider those j–tuples (n1 , . . . , nj )
such that each ni ≥ 1. Comparing coefficients of like powers of x, we see that for x0
we have
0 = b0 ,
1
for x we have
1 = b1 a1 ,
m
and for x with m ≥ 2 we have
Xm X
0= bj an1 an2 · · · anj .
j=1 n1 +n2 +···+nj =m
7. Exercises.
7. Define a sequence of formal power series in Z[[x]] by g0 (x) := 1, and gk+1 (x) :=
(1 − xgk (x))−1 for all k ∈ N.
(a) Prove that the limit g(x) = limk→∞ gk (x) exists.
(b) Show that g(x) satisfies the equation g(x) = (1 − xg(x))−1 , and thus is the
generating function for SDLPs in Theorem 6.9.
8. Consider the Chain Rule: for f (x) and g(x) in R((x)) such that f (g(x)) is
defined,
d
f (g(x)) = f 0 (g(x))g 0 (x).
dx
(a) Prove this for f (x) and g(x) in R[[x]].
(b) Prove this for f (x) and g(x) in R((x)).
12(a) Show that if f (x) ∈ R[[x]] is such that [x0 ]f (x) = 1, then log(f (x)) con-
verges.
12(b) With f (x) as in part (a), show that
d d
log(f (x)) = f −1 (x) f (x).
dx dx
12(c) Show that log(exp(x)) = x.
12(d) Show that
1 1
exp log = .
1−x 1−x
7. Endnotes.
What we have in this section is just a tiny glimpse into the subject of com-
mutative algebra. Most of the motivation for this subject is quite separate from
the concerns of enumerative combinatorics – it aims towards algebraic geometry,
which describes sets of solutions to a collection of polynomial equations, among
other things. If you want to read up on this I recommend the following books, with
the caveat that they are really intended for graduate students.
• M.F. Atiyah and I.G. Macdonald, “Introduction to Commutative Algebra,”
Addison–Wesley, Reading MA, 1969.
• J.M. Ruiz, “The Basic Theory of Power Series,” Braunschweig Vieweg, 1993.
The last of these also develops the foundations of geometry for categories other
than the algebraic one. It is all very fascinating stuff, but quite complicated, and
not really relevant to our present purpose. More down–to–earth expositions of what
we need of formal power series are given in Chapter 2 of
and in Chapter 3 of
• C.D. Godsil, “Algebraic Combinatorics,” Chapman and Hall, New York, 1993.
8. The Lagrange Implicit Function Theorem.
The topic of this section – the Lagrange Implicit Function Theorem – is the
most widely applicable technique for the enumeration of recursively defined
structures. As we saw in Section 6, recursive structure leads to a functional equation
for the relevant generating function. When this equation is quadratic it can be solved
by the Quadratic Formula, as in Section 6. In most cases, however, the equation
is not quadratic and simple high–school tricks do not suffice. Instead, Lagrange’s
Theorem is perfectly suited to such tasks.
Theorem 8.1 (LIFT). Let K be a commutative ring which contains the rational
numbers Q. Let F (u) and G(u) be formal power series in K[[u]] such that [u0 ]G(u)
is invertible in K.
(a) There is a unique (nonzero) formal power series R(x) in K[[x]] such that
R(x) = x G(R(x)).
(b) The constant term of R(x) is 0, and for all n ≥ 1,
1
[xn ]F (R(x)) = [un−1 ]F 0 (u)G(u)n .
n
Before proceeding to the proof, let’s apply this theorem to Example 6.15.
Example 8.2. As in Example 6.15, let W be the set of ternary rooted trees, and
let W (x) be the generating function for W with respect to number of nodes. We
have derived the functional equation
W = x(1 + W )3
for this generating function. This fits perfectly into the hypothesis of LIFT, using
K = Q, F (u) = u and G(u) = (1 + u)3 . Thus, we calculate that the number of
ternary rooted trees with n ≥ 1 nodes is
n 1 n−1 3n 1 3n
[x ]W (x) = [u ](1 + u) = .
n n n−1
That’s a piece of cake!
Lemma 8.4. Let F (x) and G(x) be formal Laurent series. Then
[x−1 ]F 0 (x)G(x) = −[x−1 ]F (x)G0 (x).
Proof. This follows by applying Lemma 8.3 to F (x)G(x), since
d
(F (x)G(x)) = F 0 (x)G(x) + F (x)G0 (x),
dx
by Exercise 7.3.
Lemma 8.5 (Change of Variables). Let F (u) and B(x) be formal Laurent series.
Assume that I(B) > 0, and that [xI(B) ]B(x) is invertible in K. Then
[x−1 ]F (B(x))B 0 (x) = I(B)[u−1 ]F (u).
Proof. First, we consider the case in which F (u) = uk for some integer k. If k 6= −1
then we may write the LHS of the formula as
1 d
[x−1 ]B(x)k B 0 (x) = [x−1 ] B(x)k+1 = 0,
k+1 dx
−1 k
by Lemma 8.3. Also, if k 6= −1 then [u ]u = 0 on the RHS, so the formula holds
in this case. In the remaining case, k = −1, we have I(B)[u−1 ]u−1 = I(B) on the
RHS. On the LHS we have [x−1 ]B(x)−1 B 0 (x). To compute this, write
B(x) = cxI(B) H(x),
in which c ∈ K is invertible and H(x) is a formal power series with [x0 ]H(x) = 1.
By Proposition 7.5, H(x)−1 exists and is a formal power series – also
B(x)−1 = c−1 x−I(B) H(x)−1
and
B 0 (x) = cxI(B) H 0 (x) + cI(B)xI(B)−1 H(x).
Therefore,
[x−1 ]B(x)−1 B 0 (x) = [x−1 ](c−1 x−I(B) H(x)−1 )(cxI(B) H 0 (x) + cI(B)xI(B)−1 H(x))
= [x−1 ](H(x)−1 H 0 (x) + I(B)x−1 ) = I(B),
since H(x)−1 H 0 (x) is a formal power series. This establishes the formula whenever
F (u) = uk for some integer k ∈ Z.
Now consider any formal Laurent series F (u) = ∞ k
P
k=I(F ) ak u . We have
∞
X
0
F (B(x))B (x) = ak B(x)k B 0 (x),
k=I(F )
and so, by using the cases we have already proven, we see that
X∞
−1 0
[x ]F (B(x))B (x) = ak [x−1 ]B(x)k B 0 (x)
k=I(F )
∞
X
= ak I(B)[u−1 ]uk
k=I(F )
∞
X
−1
= I(B)[u ] ak uk = I(B)[u−1 ]F (u).
k=I(F )
1. Fix a positive integer c. For each n ∈ N, determine the number of plane planted
trees with n nodes in which the number of children of each node is divisible by c. (I
remind you that 0 is divisible by every such c.)
2. For a plane planted tree T , let h(T ) denote the number of nodes of T which
have an even number of children. For each n ∈ N, determine the average value of
h(T ) among all the PPTs with n nodes.
3. Fix an integer k ≥ 2. A k–ary rooted tree T has a root node , and each node
may have at most one child of each of k “types”. (The case k = 2 gives BRTs, and
the case k = 3 gives TRTs.)
kn
(a) Show that the number of k–ary rooted trees with n nodes is n1 n−1
.
(b) Show that, as n → ∞, the expected number of terminals among all k–ary
rooted trees with n nodes is asymptotically (1 − 1/k)k n.
4. For a plane planted tree (PPT) T , let f (T ) be the number of nodes of T with
at least three children. Show that for n ≥ 4, the average value of f (T ) among all
the PPTs with n nodes is (n2 − 3n)/(8n − 12).
6. For a plane planted tree (PPT) T , let d(T ) be the degree of the root nodes
of T . Show that for n ≥ 1, the average value of d(T ) among all the PPTs with n
nodes is (3n − 3)/(n + 1).
7. For a plane planted tree T , a middle child is a non–root node which is neither
the leftmost nor the rightmost child of its parent. Let p(T ) denote the number of
middle children in T . For each n ∈ N, determine the average value of p(T ) among
all the PPTs with n nodes.
8. (a) Let α and x be indeterminates. Find a formal power series f (y) such that
exp(αx) = f (x exp(−x)).
(b) Let β be another indeterminate. Prove that
n
n−1
X n
(α + β)(n + α + β) = αβ (k + α)k−1 (n − k + β)n−k−1 .
k=0
k
(For n ≥ 1, the polynomial z(n + z)n−1 is known as an Abel polynomial.)
8. Endnotes.
Incidentally, Lagrange was not a combinatorialist. In fact, combinatorics as
such did not even exist during his lifetime (with the exception of a few things which
Euler investigated). Lagrange discovered this theorem in order to solve functional
equations which he derived in calculations of the orbital motion of the moon. These
calculations were by far the most accurate ever done up to that time, and for many
decades thereafter. All without electricity, too, of course!
For some entertaining reading, and somewhat fictionalized biographies of fa-
mous mathematicians, I recommend the following dated and sexistly titled classic:
• E.T. Bell, “Men of Mathematics,” Simon & Schuster, New York, 1986.
The proof of the Lagrange Implicit Function Theorem presented here is adapted
from Goulden and Jackson’s monumental book:
• I.P. Goulden and D.M. Jackson, “Combinatorial Enumeration,” John Wiley &
Sons, New York, 1983.