Generating function

from Wikipedia, the free encyclopedia

In different areas of mathematics , the generating function of a sequence is understood to be the formal power series

.

For example, the generating function of the constant sequence is the geometric series

The series converges for all and has value

.

Because of the use of formal power series, however, questions of convergence do not generally play a role - it is just a symbol. This more explicit representation as a power series often allows conclusions to be drawn about the consequence.

Examples

The following identities apply:

  •     (generating function of the sequence of natural numbers )
  •     (generating function of the sequence of square numbers )
  •     (generating function of the geometric sequence )

Manipulation of generating functions

If a sequence is represented as a generating function, certain manipulations of the sequence correspond to corresponding manipulations of the generating function.

Let us consider e.g. B. the sequence with the generating function . Derive results

.

This corresponds to the sequence multiplication with results

.

So we get the sequence

Deriving a generating function therefore corresponds to the multiplication of the nth member of the sequence with and subsequent index shift to the left, multiplication with z corresponds to a shift of the indices to the right.

Let us consider another sequence with the generating function . If you multiply by the generating function from above according to the Cauchy product formula you get:

So the nth coefficient of the product is of the form . That is exactly the partial sum of the first coefficients of the original generating function. The multiplication of a generating function with thus provides the partial sums.

The following table provides an overview of other possible manipulations:

episode generating function

is the generating function of the sequence , that of the sequence .

application

Generating functions are an important tool for solving recursions and difference equations as well as for counting number partitions . The pointwise multiplication of a generating function to the identity corresponding to the displacement of the modeled terms of the sequence by one position to the rear, front, as a new member having the index a is added. Assuming we have to solve the recursion , then it is , and it applies to the generating function

so

Solving for F yields

But we know from the previous section that this corresponds to the series , so it is true after the coefficient comparison .

Different types of generating functions

There are other types of generating functions besides the usual generating function. Sometimes it proves convenient to consider sequences using the following two types of generating functions.

Exponential generating function

The exponentially generating function (or generating function of the exponential type ) of a sequence is the number .

For example, the exponential function is the exponentially generating function of the sequence

Dirichlet generating function

The Dirichlet-generating function of a sequence is the series . It is named after Peter Gustav Lejeune Dirichlet .

For example, the Riemann zeta function is the Dirichlet generating function of the sequence

Probability generating function

If all are between zero and one and add up to one, then the generating function of this series is also called the probability generating function . She plays z. B. a role in the calculation of expected values and variances as well as in the addition of independent random variables .

Generating functions and the Z-transformation

Let be the ordinary generating function of and be the unilateral Z-transformation of . The relationship between the generating function and the Z-transform is

The corresponding generating functions can be obtained from a table of Z-transformations and vice versa.

Example: It is thus results

literature