For real , deformation into the upper half-plane separates a logarithmically singular endpoint at zero from the smooth endpoint at one. The first contributes the exact logarithmic term displayed. The second yields its factorial asymptotic expansion by Watson's lemma. The two endpoints must both be retained; repeated integration by parts without treating the logarithmic singularity loses its leading contribution.
The Gamma reflection formula gives , analytic at zero with value one. A finite-parameter Watson's lemma representation of Ramanujan's function therefore gives the displayed coefficients. In particular , and , with Euler's constant. Obtaining this representation requires taking an imaginary part before sending its Mellin exponent to zero; the original complex integral is divergent at that boundary.
For with positive and , differentiation cancels the logarithmic denominator and gives . Integrating this derivative expresses as a finite parameter-Laplace integral plus . The elementary lower bound gives the displayed remainder, smaller than every logarithmic term at fixed . Watson's lemma then determines all coefficients from the finite integral's endpoint Taylor series.
Fix a small , for example , independently of . Taking imaginary parts of the identity in part (a) gives
The parameter-shift remainder bound for a logarithmic Laplace integral makes the last term , smaller than for every fixed .
The endpoint function is analytic near zero. For any fixed , its Taylor expansion is
Integrating this expansion against uses
while the error is and the extension from to infinity contributes an exponentially small tail. This is Watson's lemma, and gives
Equivalently the coefficients have the stated exponential generating function . In particular,
Thus the apparent term vanishes: the first nonzero terms are . The derivatives of the gamma function supply the successive logarithmic coefficients.
The relevant boundary values are and , but the original complex integral defining requires . Substituting zero into it is invalid: its real part has a nonintegrable singularity near zero. Its imaginary part is different, since for positive
This has a finite limit as . On , , whose displayed logarithmic denominator makes the integral finite; at infinity, a fixed upper bound on and exponential damping provide an integrable dominator. Thus dominated convergence gives .
For the asymptotics, take the imaginary-part parameter identity before passing to that limit, with a fixed . Its endpoint factor converges to
by the Gamma reflection formula. Near zero, is bounded uniformly for small , because the sine zero compensates the gamma pole. At , the remainder integral itself remains absolutely convergent at and is . Consequently
The endpoint function is analytic with value one, so Watson's lemma proves the logarithmic expansion of Ramanujan's function
In particular, with Euler's constant,
This use of imaginary-part regularization at a zero Mellin exponent matters: the positive- coefficient in part (b) is always zero, whereas the boundary endpoint function has . The fixed-positive-parameter expansion is not uniform as , so its coefficients cannot simply be sent to that boundary term by term.
There are two contributing regions: an endpoint of width near , and a very narrow peak near . Both must be retained in the asymptotic expansion.
For the peak, set and . At fixed , and , so the integrand times approaches . This is the Lorentzian contribution from shrinking regularization. Its total contribution is
For example, cut off this region at : its scaled endpoints tend to infinity, while the changes in the exponential and logarithm inside the peak are exponentially small. The matched tails outside it are also exponentially small compared with the endpoint terms below.
At the endpoint, put and . To algebraic orders in , the regularizing denominator term is negligible there, giving the Laplace endpoint expansion with a logarithmic denominator
This integral represents the endpoint expansion only; it is cut off before the original peak when making the argument precise. Since , with the Euler--Mascheroni constant, the first two contributions to the original integral are
The endpoint correction refines to , using derivatives of the gamma function. An application of Watson's lemma confined to would omit the leading peak contribution .
First take . Set in the tail integral. This puts it in the endpoint form needed for Watson's lemma:
The binomial coefficients are , where is the rising factorial. Integrating each endpoint term gives
Also, scaling the complete positive-ray integral gives . Hence
The endpoint term is exponentially small on this positive ray but must be retained for continuation to other sectors.
For complex , use so . Put and . The complete steepest descent contours from the cubic saddle are the rays , whose integrals are . Deform the finite contour onto one of these rays followed by the endpoint contour. The cubic exponential integral Stokes sectors give
For , take below , between and , between and , and above . The corresponding algebraic coefficients are . A negative-real provides a useful sign check: is real and positive, so its two lateral algebraic coefficients must be complex conjugates.
The subdominant algebraic term switches across the Stokes lines
There is negative real and the endpoint exponential is dominant. The intervening anti-Stokes lines are , where and the exponential changes from growth to decay. The naming convention here distinguishes switching from equal exponential magnitude.
To resolve the jump near , optimally truncate the endpoint series at with , where . Let denote that truncated endpoint contribution. The Borel remainder for a cubic exponential integral derived in solution, together with the Gaussian pole transition for a large gamma parameter in solution, gives
This estimate is on the transition scale after optimal truncation. The error-function smoothing of a Stokes multiplier has width . Before the line and the coefficient is ; after it and the coefficient is , agreeing with the sector expansions. On the line the leading coefficient is their average. The original is an entire function; only its asymptotic decomposition has these sector-dependent coefficients.
Take the principal complex logarithm and deform the interval upwards, where decays for . The small indentation at zero contributes nothing because ; the distant horizontal segment vanishes exponentially. The two vertical edges therefore give the exact representation
This is an endpoint steepest descent contour, with distinct contributions from the singular endpoint and the smooth endpoint. Setting in the first integral and using the given logarithmic moment gives
For the second edge, the Taylor series at is . Watson's lemma integrates it term by term as an asymptotic expansion, using . Consequently
Here is the Euler--Mascheroni constant. The first smooth-endpoint terms are
For every fixed , retaining leaves . The factorial series is an asymptotic series, not a convergent sum. Treating the logarithmic endpoint by an ordinary smooth-endpoint integration formula would lose the leading logarithm; this is the logarithmic endpoint Fourier asymptotics mechanism.
Under local integrability and suitable bounds away from zero, Watson's lemma gives
Each term follows by and the Gamma function integral; a finite local remainder is bounded in the same way, and the region away from zero is exponentially small.
For Laplace's method, assume an isolated nondegenerate global minimum of , with and suitable tail bounds. Expand near and set . The leading term is ; successive terms come from Gaussian moments of the Taylor expansions. Several equally low minima contribute additively, while degenerate minima need a different scale.
Here the integrand is entire in , so deform the contour to the line at imaginary part , the vertical segment from to , and the line at imaginary part . The two horizontal tails sum to . The vertical segment contributes . Its maximum is at zero; putting and using gives
The fourth Gaussian moment is three times the zeroth, so
Since , this has the required normalization.
Watson's lemma gives, under integrability away from zero and the stated endpoint asymptotic expansion,
Indeed each power integrates over the positive half-line to ; replacing a fixed upper endpoint by infinity has exponentially small error. A remainder near zero gives after splitting off a small endpoint neighbourhood and rescaling .
For Laplace's method, assume the phase and amplitude are smooth near the nondegenerate maximum, as required for a full expansion. Localize to a small neighbourhood of : outside it the unique maximum and continuity make the exponential smaller by a factor . Set
Near this is a smooth increasing coordinate, with . It need not be monotonic on the entire integration interval. In the localized integral put . Extending its Gaussian integration to both infinite endpoints incurs exponentially small error. Taylor expansion of and integration of even Gaussian moments gives
Here , giving the leading term . The asymptotic-equivalence notation for that term presumes ; if it vanishes the series determines the first nonzero term. The maximum condition alone, without amplitude regularity, would not imply a full expansion.
For the Gamma function, set :
The phase has unique maximum at , with second derivative . To obtain the correction, put . Expansion gives
and hence a Gaussian multiplier
The odd term integrates to zero. The normalized Gaussian fourth and sixth moments are 3 and 15, so the correction is . Localization near one, with the exponentially suppressed endpoint tails, justifies termwise expansion. Thus Stirling's formula is
One convenient version of Watson's lemma is the following. Suppose is integrable away from zero and has, as , an asymptotic expansion , where . On a finite interval, or on an infinite interval with suitable exponential growth control,
To prove a finite truncation, split the integral at a fixed small . The part away from zero is exponentially small. On subtract the first local terms and bound the remainder by ; its integral is . Extending each polynomial integral to infinity changes it only exponentially, and the substitution produces the Gamma integral. A little-o local remainder gives the corresponding little-o asymptotic remainder. This is a proof by localization and remainder bounds, rather than merely formal integration of a series.
For the monotone-phase integral, assume the derivatives needed below exist and are bounded near , and the rest of the integral is controlled. Put . Since , this is a regular endpoint coordinate and
Differentiating with gives and . Watson's lemma therefore gives the two-term monotone-endpoint Laplace expansion
An remainder follows, for example, from a sufficiently smooth transformed amplitude with bounded second derivative near zero. The displayed second coefficient can vanish for special amplitudes without changing the expansion.
The unheaded transition request concerns a cubic endpoint-to-saddle transition. Near its exponent has the expansion
At the cubic endpoint has size . Requiring the linear term to contribute on the same scale gives . Thus the distinguished limit and its uniform leading integral are
For fixed , the substitution makes the omitted exponent terms on bounded intervals. Cubic decay controls the remaining tail, while the original interval away from zero is exponentially negligible. The estimate is uniform for in compact sets. In the printed range , ; the same transition integral also makes sense for negative fixed .
At , the Gamma integral gives , recovering the cubic endpoint regime. For , scale and expand to obtain . Its leading term gives , recovering the ordinary endpoint regime in their overlap. Both matching limits are therefore checked explicitly.
Watson's lemma applies to Laplace-type endpoint integrals such as as , when has a local algebraic expansion with and suitable integrability or exponential-growth control away from the endpoint. Each term contributes . The exponential selects a neighborhood of .
Laplace method instead treats by locating the dominant maxima of a real phase . A smooth nondegenerate interior maximum produces a neighborhood governed by a Gaussian function of width ; endpoint or degenerate maxima require their corresponding local scaling. Contributions away from a strict dominant maximum must be smaller. These methods overlap after suitable changes of variable, but their usual starting forms emphasize an endpoint amplitude expansion and an exponential maximum, respectively.
For the Gamma function, put . Then
The phase has its unique maximum at , with value and second derivative . Set . Near this maximum,
Combining the amplitude and exponential expansions in Laplace method gives
Localization near justifies extending the limits for the Gaussian integral; the distant endpoint is not being expanded uniformly by this local series. Odd terms integrate to zero. The moments of the Gaussian integral satisfy , , , so the relative correction is
The two terms of the Stirling formula, obtained by the Stirling correction by Gaussian moments, are therefore
Use the principal complex logarithm in the upper half-plane. Deform the interval upward into a half-strip: the vertical side at zero is traversed upward, and the side at one downward. The top side vanishes exponentially; a small indentation at zero contributes and vanishes. Thus the contour deformation gives the exact representation, for ,
Since , scaling and using the integral defining Euler's constant gives
For the second endpoint, . Watson's lemma, or integration of these powers against with an exponentially small tail, yields
In particular the required first terms are
The two different endpoint scales come from the logarithmic singularity at zero and the simple zero of the amplitude at one.
Near zero, write the amplitude as . The large parameter localizes the integral at . Termwise integration of the local expansion gives
Consequently
Here is the rising factorial. This is an asymptotic series, not an assertion that the full integrated Taylor series converges.
The needed result is Watson's lemma: if a locally integrable amplitude has an expansion as , with increasing and suitable growth at infinity so its Laplace integral converges, then , with the corresponding finite-order remainder bounds. Apply it after , when and . The tail is exponentially small after any fixed positive cutoff.