Analytic Combinatorics/Shape of Functions

Introduction

We start with an informal presentation of how to understand different sorts of generating functions in the context of analytic combinatorics and which techniques to apply to which functions. Little background knowledge of complex analysis is assumed.

Representing generating functions in the complex plane

We are used to seeing generating functions as formal objects. For example, unrestricted integer compositions have the below ordinary generating function and power series expansion.[1]

We can also see generating functions as "complex-analytic" functions: those whose input and output are complex numbers. A complex number has two components, a "real" and an "imaginary" part. Therefore, we can graph the above generating function as a three-dimensional landscape, the north-south and east-west plane measuring the real and imaginary parts of the input and the height of the graph measuring the magnitude of the output.

Compositions visualised as a 3D surface. The same graph as seen from above, as a contour graph.

Functions with one pole singularity

Notice that there is a peak when the input has real part 0.5 and imaginary part 0. Actually, this peak should extend up to infinity but we are limited by our technology. This is because if we set then

Where such a peak occurs is called a pole singularity. Therefore, for our function, we have a pole singularity at 1/2.

We will see by the Cauchy-Hadamard theorem that, if we take the reciprocal of the singularity (i.e. 2), we can get upper and (with some caveats) lower bounds for our estimates of the coefficients. For any there are infinite such that .

Comparing the upper and lower bounds and the actual value of for e = 0.01
n
5002.670165651072143E+1491.636695303948071E+1503.96304232182789E+151
7501.379771935849753E+2242.961193260766428E+2252.49484210739009E+227
10007.129784604165516E+2985.357543035931337E+3001.5705704444599E+303

But, because our function has only one pole singularity, we can use an even better estimate for Meromorphic functions: (which is in fact the actual value of ).

Other generating functions which have only one pole singularity include derangements and alignments.

s(n, k) is the unsigned Stirling number of first kind
NameSurface graph(Exponential) generating functionCauchy-Hadamard upper-boundMeromorphic estimateActual value
Derangements
Alignments[2]

Functions with more than one pole singularity

Many generating functions have more than one pole singularity. Fortunately, the above analysis also applies if there is one pole closest to the origin and all other poles are further away.

For example, the Fibonacci numbers with the ordinary generating function

This has two poles at and .[3] The nearest to the origin is .

This gives us a Cauchy-Hadamard upper-bound of roughly and a meromorphic estimate of .

It even works if there are an infinite number of pole singularities, such as in the case of surjections, with exponential generating function .

This has poles at all points , with one of .[4] The nearest to the origin is .

This gives an upper-bound of and a meromorphic estimate of .

Functions with multiple dominant pole singularities

Some generating functions have multiple poles equidistant to the origin.

For example, has two poles at and .

Sadly, it is harder to work out estimates for these functions, as their coefficients have periodic behaviour. For example, the above function has expansion .

We will see in Analytic_Combinatorics/Meromorphic_Functions_with_Multiple_Dominant_Singularities what it is possible to say about such functions.

Functions with different sorts of singularities

Generating functions involving logarithms and roots have singularities different from poles, meaning we cannot apply the meromorphic formula presented above.

These types of singularity, called branch points, only become apparent when we plot the output in terms not of its magnitude but of its argument, its angle from the real axis.

Take the generating function for 2-regular graphs .[5]

There is a discontinuity or "jump" along the real axis from 1 to .

We can still apply Cauchy-Hadamard (with radius of convergence 1 in our example) or more sophisticated techniques from Darboux, Tauber and singularity analysis to say that the coefficients are approximately .

Functions with singularities only at infinity

The generating function has no singularity for any complex number other than at infinity. It is an entire function.

Our strategy is derived from Cauchy's coefficient formula and involves the function , drawing a circle on its surface and integrating around it.

There are two ways of estimating this integral:

  1. Cauchy's inequality a simple formula giving us an upper-bound by integrating around the orange circle below, or
  2. the Saddle-point method where we concentrate on the highest part of the circle (in red below).

Notes

  1. Flajolet and Sedgewick 2009, pp. 297.
  2. Sloane, N. J. A. (ed.). "Sequence A007840".
  3. Flajolet and Sedgewick 2009, pp. 256.
  4. Flajolet and Sedgewick 2009, pp. 245.
  5. Flajolet and Sedgewick 2009, pp. 133.

References

Category:Book:Analytic Combinatorics#Shape%20of%20Functions%20
Category:Book:Analytic Combinatorics