Share on Facebook Share on Twitter Email
Answers.com

Generating function

 
Sci-Tech Dictionary: generating function
 
(′jen·ə′rād·iŋ ′fəŋk·shən)

(mathematics) A function g(x,y) corresponding to a family of orthogonal polynomials ƒ0(x), ƒ1(x),…, where a Taylor series expansion of g(x,y) in powers of y will have the polynomial ƒn (x) as the coefficient for the term yn. A function, g (y), corresponding to a sequence a0, a1, &cellip;) where g(y) = a0 + a1y + a2y2 + …. Also known as ordinary generating function.


Search unanswered questions...
Enter a word or phrase...
All Community Q&A Reference topics
 
Wikipedia: Generating function
Top

In mathematics, a generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers.

There are various types of generating functions, including ordinary generating functions, exponential generating functions, Lambert series, Bell series, and Dirichlet series; definitions and examples are given below. Every sequence has a generating function of each type. The particular generating function that is most useful in a given context will depend upon the nature of the sequence and the details of the problem being addressed.

Generating functions are often expressed in closed form as functions of a formal argument x. Sometimes a generating function is evaluated at a specific value of x. However, it must be remembered that generating functions are formal power series, and they will not necessarily converge for all values of x.

Generating functions are not functions in the formal sense of a mapping from a domain to a codomain; the name merely stems from the historical study of the structures.

Contents

Definitions

A generating function is a clothesline on which we hang up a sequence of numbers for display.
Herbert Wilf, Generatingfunctionology (1994)

Ordinary generating function

The ordinary generating function of a sequence an is

G(a_n;x)=\sum_{n=0}^{\infty}a_nx^n.

When the term generating function is used without qualification, it is usually taken to mean an ordinary generating function.

If an is the probability mass function of a discrete random variable, then its ordinary generating function is called a probability-generating function.

The ordinary generating function can be generalized to sequences with multiple indexes. For example, the ordinary generating function of a sequence am, n (where n and m are natural numbers) is

G(a_{m,n};x,y)=\sum_{m,n=0}^{\infty}a_{m,n}x^my^n.

Exponential generating function

The exponential generating function of a sequence an is

EG(a_n;x)=\sum _{n=0}^{\infty} a_n \frac{x^n}{n!}.

Poisson generating function

The Poisson generating function of a sequence an is

PG(a_n;x)=\sum _{n=0}^{\infty} a_n e^{-x} \frac{x^n}{n!}.

Lambert series

The Lambert series of a sequence an is

LG(a_n;x)=\sum _{n=1}^{\infty} a_n \frac{x^n}{1-x^n}.

Note that in a Lambert series the index n starts at 1, not at 0.

Bell series

The Bell series of an arithmetic function f(n) and a prime p is

f_p(x)=\sum_{n=0}^\infty f(p^n)x^n.

Dirichlet series generating functions

Dirichlet series are often classified as generating functions, although they are not strictly formal power series. The Dirichlet series generating function of a sequence an is

DG(a_n;s)=\sum _{n=1}^{\infty} \frac{a_n}{n^s}.

The Dirichlet series generating function is especially useful when an is a multiplicative function, when it has an Euler product expression in terms of the function's Bell series

DG(a_n;s)=\prod_{p} f_p(p^{-s})\,.

If an is a Dirichlet character then its Dirichlet series generating function is called a Dirichlet L-series.

Polynomial sequence generating functions

The idea of generating functions can be extended to sequences of other objects. Thus, for example, polynomial sequences of binomial type are generated by

e^{xf(t)}=\sum_{n=0}^\infty {p_n(x) \over n!}t^n

where pn(x) is a sequence of polynomials and f(t) is a function of a certain form. Sheffer sequences are generated in a similar way. See the main article generalized Appell polynomials for more information.

Ordinary generating functions

Polynomials are a special case of ordinary generating functions, corresponding to finite sequences, or equivalently sequences that vanish after a certain point. These are important in that many finite sequences can usefully be interpreted as generating functions, such as the Poincaré polynomial, and others.

A key generating function is the constant sequence 1, 1, 1, 1, 1, 1, 1, 1, 1, ..., whose ordinary generating function is

\sum_{n\in\mathbf{N}}X^n={1\over1-X}.

The right hand side expression can be justified by multiplying the power series on the left by 1 − X, and checking that the result is the constant power series 1, in other words that all coefficients vanish, except the one of X0. Moreover there can be no other power series with this property. The right hand side therefore designates the inverse of 1 − X in the ring of power series.

Expressions for the ordinary generating of other sequences are easily derived for this one. For instance for the geometric series 1,a,a2,a3,... for any constant a one has

\sum_{n\in\mathbf{N}}a^nX^n={1\over1-aX},

and in particular

\sum_{n\in\mathbf{N}}(-1)^nX^n={1\over1+X}.

One can also introduce regular "gaps" in the sequence by replacing X by some power of X, so for instance for the sequence 1, 0, 1, 0, 1, 0, 1, 0, .... one gets the generating function

\sum_{n\in\mathbf{N}}X^{2n}={1\over1-X^2}.

Computing the square of the initial generating function, one easily sees that the coefficients form the sequence 1, 2, 3, 4, 5, ..., so one has

\sum_{n\in\mathbf{N}}(n+1)X^n={1\over(1-X)^2},

and the third power has as coefficients the triangular numbers 1, 3, 6, 10, 15, 21, ... whose term n is the binomial coefficient \tbinom{n+2}2, so that

\sum_{n\in\mathbf{N}}\tbinom{n+2}2 X^n={1\over(1-X)^3}.

Since

\binom{n+2}2=\frac12{(n+1)(n+2)} =\frac12(n^2+3n+2),

one can find the ordinary generating function for the sequence 0, 1, 4, 9, 16, ... of square numbers by linear combination of the preceding sequences;

G(n^2;x)=\sum_{n=0}^{\infty}n^2x^n={2\over(1-x)^3}-{3\over(1-x)^2}+{1\over1-x}=\frac{x(x+1)}{(1-x)^3}.

Rational functions

The ordinary generating function of a sequence can be expressed as a rational function (the ratio of two polynomials) if and only if the sequence is a linear recursive sequences; this generalizes the examples above.

Multiplication is convolution

Multiplication of ordinary generating functions yields a discrete convolution (the Cauchy product) of the series.

Bivariate generating functions

One can define generating functions in several variables, for series with several indices. These are often called super generating functions, and for 2 variables are often called bivariate generating functions.

For instance, since (1 + x)n is the ordinary generating function for binomial coefficients for a fixed n, one may ask for a bivariate generating function that generates the binomial coefficients \binom{n}{k} for all k and n. To do this, consider (1 + x)n as itself a series (in n), and find the generating function in y that has these as coefficients. Since the generating function for an is just 1 / (1 − ay), the generating function for the binomial coefficients is:

\frac{1}{1-(1+x)y}=1+(1+x)y+(1+x)^2y^2+\dots,

and the coefficient on xkyn is the \binom{n}{k} binomial coefficient.

Examples

Generating functions for the sequence of square numbers an = n2 are:

Ordinary generating function

G(n^2;x)=\sum_{n=0}^{\infty}n^2x^n=\frac{x(x+1)}{(1-x)^3}

Exponential generating function

EG(n^2;x)=\sum _{n=0}^{\infty} \frac{n^2x^n}{n!}=x(x+1)e^x

Bell series

f_p(x)=\sum_{n=0}^\infty p^{2n}x^n=\frac{1}{1-p^2x}

Dirichlet series generating function

DG(n^2;s)=\sum_{n=1}^{\infty} \frac{n^2}{n^s}=\zeta(s-2)

Multivariate generating function

Multivariate generating functions arise in practice when calculating the number of contingency tables of non-negative integers with specified row and column totals. Suppose the table has r rows and c columns; the row sums are t_1,\ldots t_r and the column sums are s_1,\ldots s_c. Then, according to I. J. Good [1], the number of such tables is the coefficient of x_1^{t_1}\ldots x_r^{t_r}y_1^{s_1}\ldots y_c^{s_c} in


\prod_{i=1}^{r}\prod_{j=1}^c\frac{1}{1-x_iy_j}.

Applications

Generating functions are used to

  • Find a closed formula for a sequence given in a recurrence relation. For example consider Fibonacci numbers.
  • Find recurrence relations for sequences – the form of a generating function may suggest a recurrence formula.
  • Find relationships between sequences – if the generating functions of two sequences have a similar form, then the sequences themselves are probably related.
  • Explore the asymptotic behaviour of sequences.
  • Prove identities involving sequences.
  • Solve enumeration problems in combinatorics and encoding their solutions. Rook polynomials are an example of an application in combinatorics.
  • Evaluate infinite sums.

Other generating functions

Examples of polynomial sequences generated by more complex generating functions include:

Similar concepts

Polynomial interpolation is finding a polynomial whose values (not coefficients) agree with a given series; the Hilbert polynomial is an abstract case of this is commutative algebra.

See also

References

  • Donald E. Knuth, The Art of Computer Programming, Volume 1 Fundamental Algorithms (Third Edition) Addison-Wesley. ISBN 0-201-89683-4. Section 1.2.9: Generating Functions, pp.87–96.


  1. ^ Good, I. J. (1986). "On applications of symmetric Dirichlet distributions and their mixtures to contingency tables". The Annals of Statistics 4 (6): 1159–1189. 

External links


 
Best of the Web: Generating function
Top

Some good "Generating function" pages on the web:


Math
mathworld.wolfram.com
 
 
 

 

Copyrights:

Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved.  Read more
Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Generating function" Read more