A curious identity in connection with saddle-point method and Stirling’s formula
Abstract.
We prove the curious identity in the sense of formal power series:
for , where denotes the coefficient of in the Taylor expansion of . The generality of this identity from the perspective of saddle-point method is also examined.
1. Introduction
The following unusual identity was discovered through different manipulations of the saddle-point method in order to derive Stirling’s formula, which has a huge literature since de Moivre’s and Stirling’s pioneering analysis in the early eighteenth century; see for example the survey [1] (and the references therein) and the book [9] for five different analytic proofs. While the identity can be deduced from known expansions for (e.g., [3, 23]), the formulation, as well as the proof given here, is of independent interest per se. Denote by the coefficient of in the Taylor expansion of .
Theorem 1.1.
Let
(1) |
and
(2) |
Then
(3) |
When is odd, because the coefficient of contains only odd powers of . When is even, the identity (3) can be written explicitly as follows:
In particular,
which are modulo sign the coefficients appearing in the asymptotic expansion of Stirling’s formula; see [8, §1.18] or [22, A001163, A001164]:
(4) |
These Stirling coefficients have been extensively studied in the literature; see, e.g., [6, §8.2], and [2, 15, 23, 18], and the references cited there.
On the other hand, the integral in (1) without the coefficient-extraction operator is divergent for due to periodicity:
while that in (2) is absolutely convergent for real :
Proof of Theorem 1.1.
For convenience, we write
for some generic whose value is immaterial.
The standard asymptotic expansion
We begin with the Cauchy integral representation for :
where the integration contour is the circle with radius . The standard application of the saddle-point method (see [9, p. 555]) proceeds by first making the change of variables , giving
(5) |
Now by the change of variables , we have
If we choose , say, then and for , so that the series on the right-hand side is small on the integration path; we can then expand the exponential of this series in decreasing powers of , and then extending the integration limits to infinity, yielding the expansion (4) with expressed in the formal power series form (1). See [9, Ex. VIII.3; p. 555 et seq.] for technical details.
On the other hand, a more effective means of computing is to make first the change of variables in the rightmost integral in (5), where is positive when is and is analytic in ; see [26, § 3.6.3]. Then
where is analytic in . By Lagrange inversion formula (see [9, p. 732]),
(6) |
Then a direct application of Watson’s Lemma (see [28, §1.5]) gives the asymptotic expansion
(7) |
where
We then obtain the relation
(8) |
Second asymptotic expansion
It is well known that has the alternative Laplace integral representation (see [27, p. 246]):
so that, by the change of variables , where ,
Now by the change of variables , we have
By a similar procedure described above, we then deduce the asymptotic expansion
(9) |
On the other hand, by the change of variables ( when ), we have
where is analytic in . Again, by Lagrange inversion formula,
(10) |
Although the definition of looks very different from that of (see (6)), their numerical values coincide except for :
We thus deduce the relation
which is easily computable by (10).
Equality of the two expansions
We next prove that
(11) |
where and are defined in (6) and (10), respectively. Note that for
(12) |
by a direct change of variables . Thus we show that
for , or, equivalently,
(13) |
Since are easily checked, we assume . By the relation
we have
Now
which proves (13), and in turn (11). Consequently, for , implying (3). ∎
2. Asymptotic expansions by saddle-point method
Quoted from [9, p. 551]
Saddle-point method Choice of contour Laplace’s method. Similar to its real-variable counterpart, the saddle-point method is a general strategy rather than a completely deterministic algorithm, since many choices are left open in the implementation of the method concerning details of the contour and choices of its splitting into pieces.
2.1. or ?
The two uses above (with or ) of the saddle-point method for coefficient integrals of the form
for some contour are standard in the combinatorial literature and are reminiscent of the difference between moments and factorial moments in probability; the corresponding saddle-point equations are given by
(14) |
respectively. Often the question is which one to choose and is better (numerically or in some other sense)? For example, take (Bell numbers [22, A000110]); then we found both uses in the literature:
In particular, Knuth [14, pp. 422–423] considers first and then changed to after deriving the corresponding asymptotic approximation.
The question of whether to use or in (14) is partly answered in [9, p. 555, footnote]: “the choice being often suggested by computational convenience.” Odlyzko in [20, p. 1184] also commented that the use of is slightly preferred because the manipulation of the other version is less elegant.
Apart from computational convenience, the numerical advantages of the expansion (9) over (7) are visible because they have the same sequence of coefficients and is always smaller than ; see also [4] for Stirling’s original expansion in decreasing powers of . Although the numerical difference is minor for most practical uses, the same question can naturally be raised more generally for functions whose Taylor coefficients are amenable to saddle-point method (for example, exponential of Hayman admissible functions; see [21]). Indeed, such a numerical difference was already observed in the 1960s by Harris and Schoenfeld in their study of idempotent elements in symmetric semigroups [10] where . Based on numerical calculations, they found that the saddle-point approximation
(15) |
is “considerably better than the approximation”
(16) |
Surprisingly, this is the only paper we found where such a numerical comparison between the two versions of saddle-point method was made.
In the same paper [10], Harris and Schoenfeld also argued that the reason that (15) outperforms (16) is (we change their notations to ours) “because the derivation of (15) uses a contour which passes through the saddle point of a certain integral for . However, Hayman’s proof of the formula yielding (16) employs a contour passing through and it therefore misses the saddle point at by .”
However, such a comparison is not quite right. In fact, the use of or in each case, after the change of variables, is optimally guided by the saddle-point principle, and thus different choices of integration contour will result in different expansions with different asymptotic scales. As we will see below in § 2.3, while the dominant term in (15) is better than that in (16) under the absolute difference measure, the use of more terms in the corresponding asymptotic expansions may change the scenario, and which expansion is numerically more precise depends on the number of terms used.
In this section, we first consider the two versions of the saddle-point method for general , and then give succinct expressions for the coefficients in the corresponding asymptotic expansions. Then we discuss some examples, highlighting briefly their numerical differences.
2.2. Two asymptotic expansions by saddle-point method
Consider
where is analytic at zero. For simplicity we will simply assume that asymptotic expansions can be derived by the saddle-point method, instead of formulating general theorems for asymptotic expansions whose conditions are often very messy to the extent that in many practical cases, their justifications are not much different from working out the saddle-point method from scratch; see e.g. [11, 17, 21, 29]. In this way, we focus on the formal aspects of the coefficients and the differences between the two expansions, referring all technical details or justification to standard references such as [11, 17, 29] or [9, § VIII.5]. Then we have the following two different asymptotic expansions.
-
•
The change of variables (integration on a circle): let
where or . Also . Then under proper conditions
where
Alternatively, by the same analysis as above for Stirling’s formula, we also have
(17) where
In particular (with ),
-
•
The change of variables (integration on a vertical line): let
where . Note that . Then under proper conditions
where
Alternatively, we also have
(18) where
In particular, (with )
the expressions differing from and by replacing all by .
2.3. Examples.
We begin with Harris and Schoenfeld’s example [10] and let , the number of idempotent mappings from a set of elements into itself; see also [22, A000248]. Asymptotic expansions by saddle-point method can be justified either by checking the Harris-Schoenfeld admissibility conditions as in [10] or by showing that is a Hayman admissible function (see [12, 21, 9]). We then compute the absolute differences between the true values and the two asymptotic expansions with varying number of terms:
(19) |
where solves , solves , and and the coefficients and can be computed by (17) and (18), respectively, with . Note that grows in the order for .
![]() |
![]() |
![]() |
![]() |
![]() |
From Figure 1, we see that while (15) is numerically better than its circular counterpart (16) (or . as already observed in [10]), more terms in the asymptotic expansions show that both expansions are indeed comparable, and their numerical performance depends on the number of terms used.
![]() |
![]() |
![]() |
![]() |
![]() |
In the case of , enumerates the number of partitions of into any number of ordered subsets; see [22, A000262]. Justification of an asymptotic expansion is straightforward and similar to integer partition problems.
![]() |
![]() |
![]() |
![]() |
![]() |
One sees that the circular version is numerically better except for .
Finally, consider the case , whose coefficients (times ) enumerate the number of self-inverse permutations on elements; see [22, A000085]. Since all coefficients of are positive, an asymptotic expansion by saddle-point method is possible by known results of Moser and Wyman in the 1950s [17]; see also [20]. In this case, we plot the difference because the two curves are too close to be distinguishable.
![]() |
![]() |
![]() |
![]() |
In summary, we clarified here the often unclear situation of which version of the saddle-point contour to choose, and provided concrete examples for a more detailed comparison, from both analytic and numerical viewpoints. Such a clarification will be of instructional value, in addition to its own methodological interests.
3. A Lagrangean framework
Consider now the Lagrangean form
where . By Lagrange inversion relation, the Taylor coefficients satisfy
(20) |
This is one of the rare classes of functions for which both the singularity analysis and the saddle-point method apply well (see [9, p. 590] and [13]) because of (20). Under the following sub-criticality conditions:
(21) |
it is proved in [13] via singularity analysis that
where with solving the equation .
Here we examine this framework from the saddle-point method viewpoint. It turns out that the two asymptotic expressions we obtained above via two different contours are the same in this framework, and they are related to each other by a direct change of variables.
Theorem 3.1.
The expression for the coefficients in the expansion (22) is much simpler than that given in [13, Theorem 2].
Proof.
We work out the asymptotic expansion in the circular case, the vertical line case then following from a change of variables. As an asymptotic expansion of the form (22) can either be justified by singularity analysis as in [13] or by standard saddle-point analysis as in [7], we focus here on the (formal) calculation of the coefficients. By (20)
where , , , and
We then deduce that
(24) |
where
(25) |
By the change of variables , we obtain the expression (23), which can also be obtained directly by beginning with the coefficient integral with the change of variables . ∎
In particular, if or , then
and we obtain the same expressions as derived above for Stirling’s formula.
3.1. Catalan numbers
For simplicity, we consider only Catalan numbers for which or , so that
Then the positive solution of the equation is given by , and from either of the two equations (23) and (23), we have the asymptotic expansion ()
and the identity
for , which follows simply by the change of variables . Note particularly that for .
On the other hand, by singularity analysis (see [9])
where . Now by the relation
we then get
(26) |
It follows that , which can also be proved directly by a change of variables.
For large , it is known (see [19, p. 39]) that
implying that the expansion (26) is divergent for . Since the right-hand side is zero when is even, we can refine the approximation by the same singularity analysis and obtain
On the other hand, we can improve the asymptotic expansion by noting that
thus, by the same singularity analysis
an expansion containing only even terms.
Yet another way to derive an asymptotic expansion for Catalan numbers is as follows. Let . Then
and we have
where
By a direct change of variables, we have
References
- [1] J. M. Borwein and R. M. Corless. Gamma and factorial in the monthly. The American Mathematical Monthly, 125(5):400–424, 2018.
- [2] W. C. Boyd. Gamma function asymptotics by an extension of the method of steepest descents. Proceedings of the Royal Society of London. Series A: Mathematical and Physical Sciences, 447(1931):609–630, 1994.
- [3] S. Brassesco and M. A. Méndez. The asymptotic expansion for and the Lagrange inversion formula. The Ramanujan Journal, 24(2):219–234, 2011.
- [4] R. M. Corless and L. Rafiee Sevyeri. Stirling’s original asymptotic series from a formula like one of Binet’s and its evaluation by sequence acceleration. Experimental Mathematics, pages 1–8, 2019.
- [5] N. G. de Bruijn. Asymptotic methods in analysis. Dover Publications Inc., New York, third edition, 1981.
- [6] R. B. Dingle. Asymptotic expansions: their derivation and interpretation. Academic Press, 1973.
- [7] M. Drmota. A bivariate asymptotic expansion of coefficients of powers of generating functions. European Journal of Combinatorics, 15(2):139–152, 1994.
- [8] A. Erdélyi, W. Magnus, F. Oberhettinger, and F. Tricomi. Higher transcendental functions. Vol. I. McGraw-Hill (New York), 1953.
- [9] P. Flajolet and R. Sedgewick. Analytic combinatorics. Cambridge University Press, Cambridge, 2009.
- [10] B. Harris and L. Schoenfeld. The number of idempotent elements in symmetric semigroups. Journal of Combinatorial Theory, 3(2):122–135, 1967.
- [11] B. Harris and L. Schoenfeld. Asymptotic expansions for the coefficients of analytic functions. Illinois Journal of Mathematics, 12(2):264–277, 1968.
- [12] W. K. Hayman. A generalisation of Stirling’s formula. Journal für die reine und angewandte Mathematik, 196:67–95, 1956.
- [13] H.-K. Hwang, M. Kang, and G.-H. Duh. Asymptotic expansions for sub-critical lagrangean forms. In 29th International Conference on Probabilistic, Combinatorial and Asymptotic Methods for the Analysis of Algorithms (AofA 2018), pages 29:1–29–13. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2018.
- [14] D. E. Knuth. The art of computer programming. Vol. 4A. Combinatorial algorithms. Part 1. Addison-Wesley, Upper Saddle River, NJ, 2011.
- [15] C. Mortici. The asymptotic series of the generalized Stirling formula. Computers & Mathematics with Applications, 60(3):786–791, 2010.
- [16] L. Moser and M. Wyman. An asymptotic formula for the Bell numbers. Trans. Roy. Soc. Canada Sect. III, 49:49–54, 1955.
- [17] L. Moser and M. Wyman. Asymptotic expansions II. Canadian Journal of Mathematics, 9:194–209, 1957.
- [18] G. Nemes. The role of resurgence in the theory of asymptotic expansions. PhD thesis, Central European University Budapest, Hungary, 2015.
- [19] N. E. Nørlund. Sur les valeurs asymptotiques des nombres et des polynômes de Bernoulli. Rendiconti del Circolo Matematico di Palermo, 10(1):27–44, 1961.
- [20] A. M. Odlyzko. Asymptotic enumeration methods. Handbook of combinatorics, 2(1063):1229, 1995.
- [21] A. M. Odlyzko and L. B. Richmond. Asymptotic expansions for the coefficients of analytic generating functions. Aequationes Mathematicae, 28(1):50–63, 1985.
- [22] OEIS Foundation Inc. The On-Line Encyclopedia of Integer Sequences.
- [23] R. Paris. On the asymptotic expansion of , Lagrange’s inversion theorem and the Stirling coefficients. arXiv preprint arXiv:1405.3423, 2014.
- [24] V. N. Sachkov. Combinatorial methods in discrete mathematics. Cambridge University Press, 1996.
- [25] G. Szekeres and F. E. Binet. On Borel fields over finite sets. Ann. Math. Statist., 28:494–498, 1957.
- [26] N. M. Temme. Special functions: An introduction to the classical functions of mathematical physics. John Wiley & Sons, 1996.
- [27] E. T. Whittaker and G. N. Watson. A course of modern analysis. Cambridge University Press, Cambridge, fourth edition, 1927.
- [28] R. Wong. Asymptotic approximations of integrals. SIAM, 2001.
- [29] M. Wyman. The asymptotic behaviour of the Laurent coefficients. Canadian Journal of Mathematics, 11:534–555, 1959.