1 Introduction
The Dirichlet L-functions are ubiquitous objects in analytic number theory. They arise in the study of primes in arithmetic progressions, class numbers of number fields, and many other problems. For a primitive Dirichlet character
$\chi $
of modulus q, the associated Dirichlet L-function is defined initially for
$\Re (s)>1$
by the absolutely convergent Dirichlet series
$$\begin{align*}L(s,\chi)=\sum_{n\ge 1} \frac{\chi(n)}{n^s} \end{align*}$$
and then by analytic continuation to the rest of
$\mathbb {C}$
. The behavior of
$L(s,\chi )$
within the critical strip
$0\le s\le 1$
is the most important and mysterious. An important area of research is to try to understand these L-functions at the center of the critical strip by evaluating the moments
for
$k\in \mathbb {N}$
, as
$q\to \infty $
. Unfortunately, our knowledge of these moments is very limited, with
$k=2$
being the largest value for which an asymptotic formula is known. We specialize to the important case of q an odd prime to describe these results. Heath-Brown [Reference Heath-Brown10] proved an asymptotic formula for the fourth moment (
$k=2$
), as follows:
$$ \begin{align} \sum_{\chi\bmod q } |L(\tfrac{1}{2}, \chi)|^{4} = \frac{q-1}{2\pi^2} \log^4 q +O(\log^3 q). \end{align} $$
Subsequently, there was great interest in refining this asymptotic. Young [Reference Young18] obtained an asymptotic formula which additionally includes all lower order main terms up to a much sharper error term: one that saves a power of q over the main term, unlike (1.1) which only saves a power of
$\log q$
. This error term was then improved in other works, the best result [Reference Blomer, Fouvry, Kowalski, Michel and Milićević2] currently being
for some degree four polynomial
$P_4(x)$
and any
$\epsilon>0$
. For the second moment (
$k=1)$
, Heath-Brown [Reference Heath-Brown9] proved an asymptotic formula with arbitrarily high precision. That is, he obtained all main terms up to an error term that saves as large a power of q as desired. Since then, different proofs of Heath-Brown’s asymptotic expansion (and generalizations in various directions) have been given in [Reference Bettin1, Reference Egami and Matsumoto6, Reference Katsurada and Matsumoto11, Reference Nordentoft14]. Our first contribution is another proof of Heath-Brown’s result, using the principle of analytic continuation and stationary phase analysis. We then use our method to obtain a new asymptotic expansion for a cuspidal analog of the second moment of Dirichlet L-functions, which improves on Corollary 1.7 of Drappeau and Nordentoft [Reference Drappeau and Nordentoft5].
Theorem 1 [Reference Heath-Brown9, cf. Equation (5)]
Let q be an odd prime. For any integer
$N\ge 1,$
we have
$$ \begin{align} \mathop{{\sum}^{+}}_{\chi\bmod q } |L(\tfrac{1}{2}, \chi)|^2 &= \frac{q-1}{2} \Big( \log \frac{q}{8\pi} + \gamma -\frac{\pi}{2} \Big) + 2 \zeta^2(\tfrac{1}{2}) q^{\frac{1}{2}} - 2\zeta^2(\tfrac{1}{2})\nonumber\\& \quad + \sum_{n=1 }^{N} c_n q^{-\frac{n}{2}}+O_N\Big(q^{\frac{-(N+1)}{2}}\Big), \end{align} $$
$$ \begin{align} \mathop{{\sum}^{-}}_{\chi\bmod q } |L(\tfrac{1}{2}, \chi)|^2 &= \frac{q-1}{2} \Big( \log \frac{q}{8\pi} + \gamma + \frac{\pi}{2} \Big) + \sum_{n=1 }^{N} c_n' q^{-\frac{n}{2}}+O_N\Big(q^{\frac{-(N+1)}{2}}\Big), \end{align} $$
for some constants
$c_n, c_n'$
, where
$\mathop {{\sum }^{+}}$
denotes the sum over the even primitive Dirichlet characters,
$\mathop {{\sum }^{-}}$
denotes the sum over the odd primitive Dirichlet characters, and
$\gamma $
is Euler’s constant.
One may also include the trivial character in the first sum – this would contribute
$|\zeta (\frac {1}{2}) (1-q^{-\frac {1}{2}})|^2$
.
Let f be a Hecke–Maass cusp form for
$SL_2(\mathbb {Z})$
with Laplacian eigenvalue
$\frac 14+t_f^2$
and Hecke eigenvalues
$\lambda _f(n)$
. For
$\chi $
a primitive Dirichlet character mod q, let
$L(s,f\times \chi )$
denote the L-function of f twisted by
$\chi $
. For
$\Re (s)>1$
, this is given by
$$\begin{align*}L(s,f\times \chi) = \sum_{n\ge 1} \frac{\lambda_f(n) \chi(n)}{n^s}, \end{align*}$$
and elsewhere by analytic continuation. We have the following.
Theorem 2 Let f be a Hecke–Maass cusp form for
$SL_2(\mathbb {Z})$
and let q be an odd prime. For any integer
$N\ge 1,$
we have
$$ \begin{align} &\mathop{{\sum}^{+}}_{\chi\bmod q } \frac{\tau(\chi)}{q^{\frac{1}{2}}} L(\tfrac{1}{2}, f\times \overline{\chi}) = 2 L(\tfrac{1}{2}, f) q^{\frac{1}{2}} - \lambda_f(q) L(\tfrac{1}{2}, f) + \sum_{n=1 }^{N} c_{n,f} q^{-\frac{n}{2}}+O_{N,f}\Big(q^{\frac{-(N+1)}{2}}\Big),\nonumber\\\nonumber &\mathop{{\sum}^{-}}_{\chi\bmod q } \frac{\tau(\chi)}{q^{\frac{1}{2}}} L(\tfrac{1}{2}, f\times \overline{\chi}) = \sum_{n=1 }^{N} c_{n,f}' q^{-\frac{n}{2}}+O_{N,f}\Big(q^{\frac{-(N+1)}{2}}\Big),\\ \end{align} $$
for some constants
$c_{n,f}, c_{n,f}'$
, where
$\mathop {{\sum }^{+}}$
denotes the sum over the even primitive Dirichlet characters,
$\mathop {{\sum }^{-}}$
denotes the sum over the odd primitive Dirichlet characters, and
$\tau (\chi )$
denotes the Gauss sum.
We have that
$L(\frac {1}{2},f)=0$
when f is an odd Hecke–Maass cusp form, and
$\lambda _f(q)\ll q^{\frac {7}{64}+\epsilon }$
by [Reference Kim12, Appendix 2].
We will give a detailed proof of Theorem 1. The proof of Theorem 2 is very similar, so we will just sketch the differences to the proof of Theorem 1.
1.1 Connections to reciprocity relations
The moments above can be generalized to twisted moments, which are found to obey certain reciprocity relations. This phenomenon was first observed by Conrey [Reference Conrey4], who discovered an identity between the twisted moments
up to a modest error term. Conrey’s result was improved by Young [Reference Young19] and then extended to a full asymptotic series by Bettin [Reference Conrey4], which gives Heath-Brown’s asymptotic series as a special case. Similarly, reciprocity relations have been considered for the twisted moments
where f is either a holomorphic Hecke cusp form or non-holomorphic Hecke–Maass cusp form for
$SL_2(\mathbb {Z})$
(or other congruence groups). Nordentoft [Reference Nordentoft13, Theorem 4.4] established an exact reciprocity formula in the holomorphic case, from which follows exact formulas for the moments considered in Theorem 2, such that the series
$\sum c_{n,f} q^{-n}$
has only finitely many terms and there is no error term. For Hecke–Maass cusp forms, Drappeau and Nordentoft [Reference Drappeau and Nordentoft5, Corollary 1.7] have established a reciprocity formula up to a modest error term. This does not yield our Theorem 2, which allows for an arbitrarily strong error term. The proofs of the reciprocity formulas in [Reference Bettin1, Reference Drappeau and Nordentoft5, Reference Nordentoft13] can all be seen in the light of a special property known as quantum modularity for additive twists of the respective L-functions. This works out very elegantly especially in the case of holomorphic Hecke cusp forms, but is more complicated for Hecke–Maass cusp forms. On the other hand, we believe that our proof has the advantage of being simpler, because besides the analytic techniques, the only arithmetic input required is the functional equation and analytic continuation of the L-functions. Our method can also be extended to establish reciprocity relations for twisted moments. This will be addressed in forthcoming work of Agniva Dasgupta and the second and third authors.
Analytic Continuation.

Figure 1 Long description
The diagram shows two perpendicular axes intersecting at the origin. The horizontal axis is labeled R of s and the vertical axis is labeled I of s. Starting at the origin, a blue rectangle labeled S sub 2 extends rightward, enclosing the origin. Adjacent to its right edge, a smaller red rectangle labeled S sub 1 is nested within the blue rectangle, also extending rightward along the real axis. Both rectangles are aligned horizontally, with S sub 1 entirely inside S sub 2. All labels use italic script.
2 Sketch
In this section, we describe the main ideas of the proof of (1.2) in Theorem 1. Fix an odd prime q. Define for
$s\in \mathbb {C}$
the entire function
Our strategy is to derive a broader statement of the form
$F(s,q) = G(s,q)$
, where
$G(s,q)$
is a function that is holomorphic on some open neighborhood of
$s=0$
, and then to recover Theorem 1 as the specialization at
$s=0$
. To this end, we begin by restricting
$F(s,q)$
to
$s\in \mathcal {S}_1$
, an open set positioned far to the right in
$\mathbb {C}$
, as pictured in Figure 1, and calling the restriction
$H(s,q)$
. After an application of the functional equation of
$L(\tfrac {1}{2} - s, \chi )$
, we obtain
$$ \begin{align} H(s,q) = \frac{\Gamma\left(\tfrac{1}{4}+\tfrac{s}{2}\right)}{\Gamma\left(\tfrac{1}{4}-\tfrac{s}{2}\right) \pi^s q^{\frac{1}{2}-s}} \mathop{{\sum}^{+}}_{\chi\bmod q} \tau(\chi) L(\tfrac{1}{2} + s,\overline{\chi})^2. \end{align} $$
Expanding the L-functions as absolutely convergent Dirichlet series, opening the Gauss sum, and executing the character sum using character orthogonality shows that
$H(s,q)$
essentially equals
$$\begin{align*}\sum_{n\ge 1} \frac{\cos(\frac{2\pi n}{q})d(n)}{n^{\frac{1}{2}+s}}, \end{align*}$$
where
$d(n)$
is the divisor function. Writing
$\cos (\frac {2\pi n}{q})$
as a Mellin transform, we recast this sum in terms of the integral
$$ \begin{align} \frac{1}{2\pi i} \int\limits_{(-\frac34)} \Gamma(w)\cos(\tfrac{\pi w}{2}) \Big(\frac{q}{2\pi}\Big)^w \zeta^2 (\tfrac{1}{2}+s+w) \ dw. \end{align} $$
We then move the line of integration far to the left, picking up residues that contribute to the main terms on the right-hand side of (1.2), with the leading main term arising from the double pole of
$\zeta ^2(\tfrac {1}{2}+s+w)$
at
$w=\tfrac {1}{2}-s$
. However, the shifted integral (now positioned far to the left at
$\Re (w)=-c$
for
$c>0$
large) does not converge absolutely near
$s=0$
, and so we need additional ideas to obtain meromorphic continuation near
$s=0$
. Keeping in mind that w is far to the left in the shifted integral, we apply the functional equation of
$\zeta ^2(\tfrac {1}{2}+s+w)$
to obtain
$\zeta ^2(\tfrac {1}{2}-s-w)$
, which we can expand into an absolutely convergent Dirichlet series since
$-w$
is far to the right. Interchanging the order of integration and summation, we get
$$ \begin{align} \sum_{n\ge 1} \frac{d(n)}{n^{\frac{1}{2}-s}} \bigg(\frac{1}{2\pi i} \int\limits_{(-c)} \Gamma(w)\cos(\tfrac{\pi w}{2}) \Big(\frac{nq}{2\pi}\Big)^w \frac{\pi^{-\frac12+s+w} \Gamma^2(\frac14-\frac{s}{2}-\frac{w}{2}) }{\pi^{-\frac12-s-w} \Gamma^2(\frac14+\frac{s}{2}+\frac{w}{2})} dw\bigg). \end{align} $$
Evaluating the inner integral is a purely analytic problem (it’s the inverse Mellin transform of a product of special functions). We approach this problem using Stirling’s estimates and techniques of stationary phase analysis. We find that the integrand has an oscillation given by
$$ \begin{align} \exp\left(-it \log \frac{|t|}{2\pi e n q}\right), \end{align} $$
for large
$|t|=|\Im (w)|$
. There are stationary points at
$t=\pm 2\pi n q$
, and at these points, the oscillatory factor (2.4) is independent of n. It is interesting to note that this step is special to the second moment, for such a simplification does not happen if we were trying to apply our method to evaluate higher moments. It turns out that the leading term of the integral is essentially
$(nq)^{-2s}$
, which is especially simple, and from this, the leading term of the sum (2.3) is
$$\begin{align*}q^{-2s} \sum_{n\ge 1} \frac{d(n)}{n^{\frac{1}{2}+s}}= q^{-2s} \zeta^2(\tfrac{1}{2}+s). \end{align*}$$
Thus, we recover the Riemann Zeta function and we are able to use its meromorphic continuation from
$\mathcal {S}_1$
to
$\mathcal {S}_2$
, and in particular evaluate at
$s=0$
. The lower order terms arising from the stationary phase analysis are of a similar shape, their values at
$s=0$
decreasing by factors of
$q^{-1}$
, and thus contribute to the lower order main terms on the right-hand side of (1.2). We denote by
$G(s,q)$
the sum of all these terms plus the residues obtained above, and get that
$F(0,q)=G(0,q)$
.
For the proof of (1.4) in Theorem 2, we observe that the left-hand side is the value at
$s=0$
of
which is analogous to (2.1). We take the Dirichlet series expansion of
$L(\tfrac {1}{2} + s,f\times \overline {\chi })=\sum _{n\ge 1} \frac {\lambda _f(n)\overline {\chi }(n)}{n^{\frac {1}{2}+s}}$
for
$s\in \mathcal {S}_1$
, which is analogous to
$L(\tfrac {1}{2} + s, \overline {\chi })^2=\sum _{n\ge 1} \frac {d(n)\overline {\chi }(n)}{n^{\frac {1}{2}+s}}$
, except that
$d(n)$
is replaced with
$\lambda _f(n)$
. The proof proceeds as for Theorem 1, except for a few changes. In (2.2), we get the function
$L(\frac {1}{2} +s+w,f)$
, which is entire on
$\mathbb {C}$
, instead of
$\zeta ^2(\frac {1}{2} +s +w)$
. As a result, when we shift contours to the left, there is no pole at
$s=\frac {1}{2}-w$
, unlike the case was for
$\zeta ^2(\frac {1}{2} +s+w)$
, and therefore the leading main term present in (1.2) does not arise. When the functional equation [Reference Goldfeld7, Proposition 3.13.5] is applied to
$L(\frac {1}{2} +s+w,f)$
, we obtain the ratio of Gamma functions
$$\begin{align*}(-1)^{\kappa_f} \frac{\Gamma(\frac14+ \frac{\kappa_f}{2} + \frac{it_f}{2} -\frac{s}{2}-\frac{w}{2} )\Gamma(\frac14 + \frac{\kappa_f}{2} - \frac{it_f}{2} -\frac{s}{2}-\frac{w}{2} ) }{ \Gamma(\frac14 + \frac{\kappa_f}{2} + \frac{it_f}{2} + \frac{s}{2}+\frac{w}{2} )\Gamma(\frac14 + \frac{\kappa_f}{2} - \frac{it_f}{2} +\frac{s}{2}+\frac{w}{2} ) } \end{align*}$$
instead of what is seen in (2.3), where
$\kappa _f= 0$
if f is an even Hecke–Maass form and
$\kappa _f= 1$
if f is an odd Hecke–Maass form. However, this difference is immaterial as the oscillatory behavior (2.4) remains the same after Stirling’s estimates are applied. In the end, we do not get main terms of size
$q\log q$
and q in (1.4), and we have the lower order main term
$ L(\frac {1}{2}, f) (2q^{\frac {1}{2}} -\lambda _f(q))$
instead of the
$\zeta ^2(\frac {1}{2}) (2q^{\frac {1}{2}} -d(q))$
term that is present in (1.2).
3 Preliminaries
We recall here fundamental facts about Dirichlet characters, Dirichlet L-functions, and the Mellin transform. Throughout, q is an odd prime. Recall that a Dirichlet character
$\chi $
of modulus q satisfies
$\chi (-1)=\pm 1$
, and it is called even if
$\chi (-1)=1$
and odd otherwise. Since q is prime,
$\chi $
is primitive if and only if
$\chi $
is not the principal character (which satisfies
$\chi (n)=1$
for all n coprime to q). We write
$e(x)$
for the additive character
$e^{2\pi i x}$
.
Lemma 3 (Functional equation)
Let
$\chi $
be a primitive Dirichlet character of modulus q. Let
$\delta =0$
if
$\chi $
is even and
$\delta =1$
if
$\chi $
is odd. Let
$ \tau (\chi )=\sum \limits _{k=1}^{q-1} e(\tfrac {k}{q}) \chi (k)$
denote the Gauss sum. Then, for all
$s \in \mathbb {C,}$
we have
$$\begin{align*}L(s,\chi) =\frac{\tau(\chi)}{i^\delta} \frac{\pi^{s-\frac{1}{2}}}{q^s} \frac{\Gamma(\tfrac{1-s+\delta}{2})}{\Gamma(\tfrac{s+\delta}{2})} L(1-s,\overline{\chi}).\end{align*}$$
For the Riemann Zeta function, we have
$$ \begin{align} \zeta(s) = \pi^{s-\frac{1}{2}} \frac{\Gamma(\tfrac{1-s}{2})}{\Gamma(\tfrac{s}{2})} \zeta(1-s) = \pi^s 2^{s-1} \cos(\tfrac{\pi}{2}(1-s)) \Gamma(1-s) \zeta(1-s). \end{align} $$
Equation (3.1) uses the reflection formula
$\Gamma (1-z)\Gamma (z)\sin (\pi z) = \pi $
and duplication formula
$2^{2z-1} \Gamma (z) \Gamma (z+\tfrac {1}{2})=\sqrt {\pi } \Gamma (2z).$
Lemma 4 (Orthogonality relations)
Suppose
$(nm,q) = 1$
. Let
$\mathop {{\sum }^{+}}$
(respectively,
$\mathop {{\sum }^{-}}$
) denote the sum over the even (respectively, odd) primitive Dirichlet characters. Then,
$$\begin{align*}\mathop{{\sum}^{+}}_{\chi\bmod q} \chi(n)\overline{\chi}(m) &= \begin{cases}\frac{q-3}{2}&\text{if } n \equiv \pm m \bmod q, \\-1&\text{otherwise,}\end{cases},\\\mathop{{\sum}^{-}}_{\chi\bmod q} \chi(n)\overline{\chi}(m) &= \begin{cases} \pm \frac{q-1}{2}&\text{if } n \equiv \pm m \bmod q, \\ 0 &\text{otherwise.}\end{cases}\end{align*}$$
Proof The Dirichlet characters of modulus q satisfy the following orthogonality property:
$$\begin{align*}\sum_{\chi\bmod q} \chi(n)\overline{\chi}(m) = \begin{cases} q-1&\text{if } n \equiv m \bmod q,\\0&\text{otherwise.}\end{cases}\end{align*}$$
The result for the sum over even primitive characters then follows from the equation
$$\begin{align*}\mathop{{\sum}^{+}}_{\chi\bmod q} \chi(n)\overline{\chi}(m) = -1+ \sum_{\substack{\chi\bmod q\\ \chi(-1)=1}} \chi(n)\overline{\chi}(m) = -1 + \sum_{\chi\bmod q} \left(\frac{1 + \chi(-1)}{2}\right) \chi(n)\overline{\chi}(m), \end{align*}$$
where the
$-1$
term serves to subtract the contribution of the trivial character and the
$\frac {1 + \chi (-1)}{2}$
factor serves to pick out the condition
$\chi (-1)=1$
for the primitive characters. The result for the sum over odd primitive characters follows from the equation
$$\begin{align*}\mathop{{\sum}^{-}}_{\chi\bmod q} \chi(n)\overline{\chi}(m) = \sum_{\substack{\chi\bmod q\\ \chi(-1)=-1}} \chi(n)\overline{\chi}(m) = \sum_{\chi\bmod q} \left(\frac{1 - \chi(-1)}{2}\right) \chi(n)\overline{\chi}(m).\\[-51pt] \end{align*}$$
Corollary 5 Suppose
$(n,q) = 1$
. Then,
$$ \begin{align*} \mathop{{\sum}^{+}}_{\chi\bmod q} \tau(\chi)\overline{\chi}(n) = (q-1) \cos(\tfrac{2 \pi n}{q}) + 1, \ \ \ \ \ \ \mathop{{\sum}^{-}}_{\chi\bmod q} \frac{\tau(\chi)}{i} \overline{\chi}(n) = (q-1) \sin(\tfrac{2 \pi n}{q}). \end{align*} $$
Proof We only give the proof for the sum over the even primitive characters (as the proof for the sum over the odd primitive characters is similar). We have
$$\begin{align*}\mathop{{\sum}^{+}}_{\chi\bmod q} \tau(\chi)\overline{\chi}(n) = \sum_{k=1}^{q-1} e\Big(\frac{k}{q}\Big) \mathop{{\sum}^{+}}_{\chi\bmod q} \chi(k) \overline{\chi}(n) = \sum_{k=1}^{q-1} e\Big(\frac{kn}{q}\Big) \mathop{{\sum}^{+}}_{\chi\bmod q} \chi(kn) \overline{\chi}(n). \end{align*}$$
We separate out the first
$(k=1)$
and last (
$k=q-1\equiv -1 \bmod q$
) terms of the k-sum, to get
$$ \begin{align*} \sum_{k=1}^{q-1} e(\tfrac{kn}{q}) &\mathop{{\sum}^{+}}_{\chi\bmod q} \chi(kn)\overline{\chi}(n) \\= e(\tfrac{n}{q}) &\!\mathop{{\sum}^{+}}_{\chi\bmod q} \chi(n)\overline{\chi}(n) + e(\tfrac{-n}{q}) \!\mathop{{\sum}^{+}}_{\chi\bmod q} \chi(-n)\overline{\chi}(n) + \!\sum_{k=2}^{q-2} e(\tfrac{kn}{q}) \mathop{{\sum}^{+}}_{\chi\bmod q} \chi(kn)\overline{\chi}(n). \end{align*} $$
Now, we see that each sum in the last line corresponds to exactly one of the cases in the previous lemma, so executing the character sums yields
$$\begin{align*}\sum_{k=1}^{q-1} e(\tfrac{kn}{q}) \mathop{{\sum}^{+}}_{\chi\bmod q} \chi(kn)\overline{\chi}(n) = \frac{q-3}{2} \left( e(\tfrac{n}{q}) + e(-\tfrac{n}{q}) \right) - \sum_{k=2}^{q-2} e(\tfrac{kn}{q})\end{align*}$$
and we note that
$$\begin{align*}\sum_{k=2}^{q-2} e(\tfrac{kn}{q}) = -\left( e(\tfrac{n}{q}) + e(-\tfrac{n}{q}) \right) + \sum_{k=1}^{q-1} e(\tfrac{kn}{q}) = -\left( e(\tfrac{n}{q}) + e(-\tfrac{n}{q}) \right) - 1.\\[-41pt] \end{align*}$$
Lemma 6 (Mellin inversion) [Reference Wong17, Chapter III, Theorem 2]
Suppose that
${f: (0, \infty ) {\kern-1pt}\to{\kern-1pt} \mathbb {R}}$
is continuous and the integral
is absolutely convergent for
$a < \Re (w) < b$
. Then,
for
$c \in (a,b)$
.
Lemma 7 (An integral representation)
Let
$x> 0$
. For
$d \in (-1,0)$
, we have
Further, this representation is absolutely convergent if
$d \in (-1,-\frac {1}{2})$
.
Proof Let
$f(x) = \cos (x) - e^{-x}$
and define
for
$-1<\Re (w)<1$
. This is well defined because we have
$f(x)= x + O(x^2)$
for
${|x|\le \pi }$
and
$f(x)=\cos (x) + O(e^{-x})$
for
$|x|> \pi $
, so that
$\tilde {f}(w)$
converges absolutely for
${-1< \Re (w) <0}$
and converges conditionally for
$0\le \Re (w) <1$
(by integration by parts, as in (3.3)). We claim moreover that
$\tilde {f}(w)$
is holomorphic for
$-1<\Re (w)<1$
. For
$-1<\Re (w)<0$
, we can differentiate under the integral sign by absolute convergence. For
$0\le \Re (w) <1$
, we have that
$\tilde {f}(w)$
equals the sum of a holomorphic function and
$\int _\pi ^\infty x^{w-1} \cos x \ dx$
. But by integration by parts,
which is absolutely convergent, and hence analytic.
For
$0<\Re (w)<1$
, we have by [Reference Gradshteyn and Ryzhik8, Equations (17.43.1) and (17.43.3)] that
By analytic continuation, we get that
for
$-1<\Re (w)<1$
. Then, by Lemma 6, we have
for
$d \in (-1,0)$
. Also by Mellin inversion, since
$\int _0^\infty e^{-x} x^{w-1} dx$
converges absolutely for
$\Re (w)>0$
, we have
for
$d\in (0,1)$
. We move the line of integration to the left, crossing a simple pole of
$\Gamma (w)$
at
$w=0$
, to obtain
for
$d \in (-1,0)$
. Adding together (3.4) and (3.5) gives (3.2).
Finally, we have by Stirling’s approximation (equation (3.13)) that
$$\begin{align*}\Gamma(d+it) \cos\left(\frac{\pi (d+it)}{2}\right)\ll |t|^{d-\frac{1}{2}}. \end{align*}$$
Thus, the integral in (3.2) converges absolutely for
$d\in (-1,-\frac {1}{2})$
.
Lemma 8 (A residue calculation)
Define
for
$s \in \mathbb {C}$
such that
$\tfrac {1}{2} - s \not \in \mathbb {Z}$
. Then, f has simple poles at
$w = -2n$
for
$n \in \mathbb {N}\cup \{0\}$
, and a double pole at
$w = \tfrac {1}{2} - s$
. The residues at these poles are
$$\begin{align*}R_0(n,s,q):=\underset{w=-2n}{\mathrm{Res}} f(s,w,q) = \frac{(-1)^n}{(2n)!} \left(\frac{2\pi}{q}\right)^{2n} \zeta^2(\tfrac{1}{2} + s-2n)\end{align*}$$
and
$$ \begin{align} \nonumber &R_1(s,q):=\underset{w=\frac{1}{2}-s}{\mathrm{Res}} f(s,w,q) \\ &= \Gamma(\tfrac{1}{2} - s) \cos\left(\tfrac{\pi }{4}-\tfrac{\pi s }{2}\right) \left(\tfrac{q}{2\pi}\right)^{\frac{1}{2}-\frac{s}{2}} \Big( \tfrac{ \Gamma'(\frac{1}{2} - s)}{ \Gamma(\frac{1}{2} - s)} - \tfrac{\pi}{2} \tan\left(\tfrac{\pi }{4}-\tfrac{\pi s }{2}\right) + \log \left(\tfrac{q}{2\pi}\right) + 2\gamma \Big). \end{align} $$
These residues are meromorphic functions of s which are analytic at
$s=0$
.
Proof The assumption that
$\tfrac {1}{2} - s \not \in \mathbb {Z}$
ensures that the poles under discussion do not coincide. Recall that
$\Gamma (w)$
has simple poles at the non-positive integers, but
$\cos (\tfrac {\pi w}{2})$
vanishes at the negative odd integers, so
$\Gamma (w) \cos (\tfrac {\pi w}{2})$
only has simple poles at the non-positive even integers
$w=-2n$
. We have the Laurent expansion
about
$w=-2n$
, from which we get that
for any function
$g(w)$
that is holomorphic in a neighborhood of
$w=-2n$
. This leads to the calculation of
$R_0(n,s,q)$
.
Recall that
$\zeta ^2(\tfrac {1}{2} + s+w)$
has a double pole at
$w=\tfrac {1}{2} - s$
, and
$\cos (\frac {\pi (\frac {1}{2}-s)}{2}) \neq 0$
as
$\tfrac {1}{2} - s \not \in \mathbb {Z}$
. We have the Laurent expansion
about
$w=\frac {1}{2}-s$
, where
$\gamma $
is Euler’s constant. From this, we have that if
$g(w)$
is holomorphic in a neighborhood of
$w=\frac {1}{2}-s$
, then
This leads to the calculation of
$R_1(s,q)$
.
For future reference, using the values
$\Gamma (\frac {1}{2})=\pi ^{\frac {1}{2}}, \frac {\Gamma '(\frac {1}{2})}{\Gamma (\frac {1}{2})}=\log (\frac 14)-\gamma , \cos (\frac {\pi }{4})=2^{-\frac {1}{2}}, \tan (\frac {\pi }{4}) =1 $
, we note that
Lemma 9 (The convexity bound for the Riemann Zeta function) [Reference Titchmarsh16, Chapter V]
Let
$\sigma \in \mathbb {R}$
and
$\epsilon>0$
. For
$t\in \mathbb {R}$
with
$|t|\ge 1$
, we have
where
$\alpha =0$
for
$\sigma>1$
,
$\alpha =\frac {1}{2} (1 - \sigma )$
for
$\sigma \in [0,1]$
, and
$\alpha = \tfrac {1}{2} - \sigma $
for
$\sigma <0$
. The implied constant depends on
$\sigma $
and
$\epsilon $
.
The result above will be used when bounding vertical integrals on fixed lines. But when these lines are shifted left or right in order to apply Cauchy’s residue theorem, the argument will implicitly involve integrals over horizontal lines. Bounding such horizontal integrals will require some control over the implicit constant in (3.8), and this may be found in [Reference Rademacher15, Theorem 4].
Lemma 10 (Stirling’s expansion)
Let
$\mathcal {C}\subset \{z: \Re (z)>0\} $
be a fixed compact set. For
$z\in \mathcal {C}$
and
$t\in \mathbb {R}$
with
$|t|>\frac {1}{2}$
, we have
$$ \begin{align} \Gamma(z+it)\cos(\tfrac{\pi}{2}(z+it)) = |t|^{(z-\frac{1}{2})} \exp\Big( it \log|t| -it \Big)\Big(\sum_{m=0}^M a_m(z) t^{-m} + E_M(z,t) \Big)\nonumber\\ \end{align} $$
for any
$M\ge 0$
, where
$a_m(z)$
and
$E_M(z,t)$
are holomorphic functions of
$z\in \mathcal {C}$
that depend on
$\mathrm {sgn}(t)$
such that
$a_m(z)$
is a polynomial in z of degree at most
$2m$
,
Proof We work with the principal branch of the complex logarithm. Throughout the proof, M will denote a natural number,
$a_m(z)$
and
$E_M(z,t)$
will denote functions as described in the lemma, but all of these quantities may not be the same from one occurrence to the next, and
$a_m$
will denote some constants. By [Reference Gradshteyn and Ryzhik8, Equation (8.344)], we have
$$ \begin{align} \log \Gamma(z+it){\kern-1pt}={\kern-1pt}(z-\tfrac{1}{2}+it)\log(z+it)-(z+it) + \tfrac{1}{2} \log 2\pi+\!\sum_{r=1}^{R} \frac{a_r}{(z+it)^r} + E_R(z,t).\nonumber\\ \end{align} $$
Although [Reference Gradshteyn and Ryzhik8, Equation (8.344)] just gives a bound for
$E_R(z,t)$
, we can infer that it is holomorphic for
$z\in \mathcal {C}$
since every other term in (3.12) is. Using Taylor’s theorem, we write
$$ \begin{align*} \log (z+it) = \log(it)+\log \Big(1+\frac{z}{it}\Big) = \log|t| +i \frac{\pi}{2} \mathrm{sgn}(t) + \sum_{m=1}^M \frac{(-1)^{m+1}}{m}\Big(\frac{z}{it}\Big)^m + E_M(z,t) \end{align*} $$
and
$$\begin{align*}\frac{a_r}{(z+it)^r}=\frac{a_r}{(it)^r} \frac{1}{(1+\frac{z}{it})^r}= \frac{a_r}{(it)^r}\bigg( 1+ \sum_{m=1}^M \Bigl(\begin{array}{@{}c@{}}-r\\m\end{array}\Bigr)\Big(\frac{z}{it}\Big)^m+ E_M(z,t) \bigg). \end{align*}$$
Plugging back into (3.12), the
$-z$
term cancels with
$it \cdot \frac {z}{it}$
, and we get
$$ \begin{align*} \log \Gamma(z+it)&=(z-\tfrac{1}{2}+it) \log |t| - \tfrac{\pi}{2} |t| -it + i(z-\tfrac{1}{2}) \tfrac{\pi}{2} \mathrm{sgn}(t) +\tfrac{1}{2}\log 2\pi\\& \quad + \sum_{m=1}^M a_m(z) t^{-m} + E_M(z,t). \end{align*} $$
Taking the exponential of both sides, we get
$$ \begin{align*} \Gamma(z+it) &=\sqrt{2\pi} e^{-i \frac{\pi}{4} \mathrm{sgn}(t) } |t|^{(z-\frac{1}{2})} \exp\Big( -\tfrac{\pi}{2}|t| +it\log|t| -it + iz \tfrac{\pi}{2} \mathrm{sgn}(t) \Big)\\& \quad \times \prod_{m=1}^M \exp(a_m(z) t^{-m} ) \cdot \exp(E_M(z,t)). \end{align*} $$
Next, we take a Taylor polynomial for
$\exp (x)$
to get
$$ \begin{align} &\Gamma(z+it) =\sqrt{2\pi} e^{-i \frac{\pi}{4} \mathrm{sgn}(t) } |t|^{(z-\frac{1}{2})}\nonumber\\& \quad \times \exp\Big( -\tfrac{\pi}{2}|t| +it\log|t| -it + iz \tfrac{\pi}{2} \mathrm{sgn}(t) \Big)\Big(1+\sum_{m=1}^M a_m(z) t^{-m} + E_M(z,t) \Big).\nonumber\\[-22pt] \end{align} $$
To obtain (3.9), we write
and then multiply with (3.13).
4 Obtaining the leading main term in Theorem 1
We focus on (1.2). Fix any constant
$c \in \tfrac {1}{2} + \mathbb {Z}$
satisfying
$c> 10$
. This parameter determines the length of our asymptotic expansion: we will see that the larger c is, the more terms we may take on the right-hand side of (1.2). Define the sets
$$ \begin{align*} &\mathcal{S}_1 := \{s \in \mathbb{C} \,:\, -1 < \Im(s) < 1, \ c-\tfrac32 < \Re(s) < c-\tfrac{1}{2}\},\\ &\mathcal{S}_2 := \{s \in \mathbb{C} \,:\, -1 < \Im(s) < 1, \ -\tfrac{1}{10} < \Re(s)< c-\tfrac{1}{2}\}. \end{align*} $$
Define for
$s \in \mathbb {C}$
and an odd prime q,
where the sum is taken over the even primitive Dirichlet characters of modulus q. Let
$H(s,q)$
denote the restriction of
$F(s,q)$
to the set
$\mathcal {S}_1$
. By the functional equation given in Lemma 3, we have that
$$ \begin{align*} H(s,q) = \frac{\Gamma\left(\tfrac{1}{4}+\tfrac{s}{2}\right)}{\Gamma\left(\tfrac{1}{4}-\tfrac{s}{2}\right) \pi^s q^{\frac{1}{2}-s}} \mathop{{\sum}^{+}}_{\chi\bmod q} \tau(\chi) L(\tfrac{1}{2} + s,\overline{\chi})^2 := \frac{\Gamma\left(\tfrac{1}{4}+\tfrac{s}{2}\right)}{\Gamma\left(\tfrac{1}{4}-\tfrac{s}{2}\right) \pi^s q^{\frac{1}{2}-s}} H_1(s,q). \end{align*} $$
Now, since in
$\mathcal {S}_1$
, we have
$\Re (s)> \tfrac {1}{2}$
, the Dirichlet series representation of
$L(\tfrac {1}{2} + s, \overline {\chi })$
is absolutely convergent, and hence it follows that
$$ \begin{align*} H_1(s,q) = & \mathop{{\sum}^{+}}_{\chi\bmod q} \ \sum_{n,m \geq 1} \frac{\tau(\chi) \overline{\chi}(nm)}{(nm)^{\frac{1}{2}+s}} = \sum_{\substack{n\ge 1 \\ (n,q)=1}} \ \mathop{{\sum}^{+}}_{\chi\bmod q} \frac{\tau(\chi) d(n) \overline{\chi}(n) }{n^{\frac{1}{2}+s}}. \end{align*} $$
The last equality follows by exchanging the order of summation, using the total multiplicativity of the Dirichlet characters, and using the fact that
$\chi (n)=0$
if
$q|n$
. We apply Corollary 5 to get
$$ \begin{align*} H_1(s,q) = \sum_{\substack{n \geq 1\\ (n,q)=1}} \frac{((q-1) \cos(\tfrac{2 \pi n}{q}) + 1)d(n)}{n^{\frac{1}{2}+s}}. \end{align*} $$
The sum may be extended to all natural numbers as follows:
$$ \begin{align*} H_1(s,q) &= \sum_{\substack{n \geq 1}} \frac{((q-1) \cos(\tfrac{2 \pi n}{q}) + 1)d(n)}{n^{\frac{1}{2}+s}}- \sum_{\substack{n \geq 1\\ q|n}} \frac{((q-1) \cos(\tfrac{2 \pi n}{q}) + 1)d(n)}{n^{\frac{1}{2}+s}}\\ &= \sum_{\substack{n \geq 1}} \frac{((q-1) \cos(\tfrac{2 \pi n}{q}) + 1)d(n)}{n^{\frac{1}{2}+s}}- q\sum_{\substack{m \geq 1}} \frac{ d(mq)}{(mq)^{\frac{1}{2}+s}}, \end{align*} $$
where we wrote
$n=qm$
to get the last expression. By the Hecke multiplicative property of the divisor function (which is also satisfied by
$\lambda _f(n)$
),
$$\begin{align*}d(mq)= \begin{cases} d(m)d(q) &\text{ if } (m,q)=1,\\ d(m)d(q)-d(\frac{m}{q}) &\text{ if } q|m, \end{cases} \end{align*}$$
we get
$$ \begin{align} H_1(s,q) &= (q-1) \sum_{\substack{n \geq 1}} \frac{ \cos(\tfrac{2 \pi n}{q}) d(n)}{n^{\frac{1}{2}+s}} + (1 + q^{-2s} - d(q) q^{\frac{1}{2}-s}) \zeta^2(\tfrac{1}{2} + s)\\ \nonumber &:= (q-1)H_2(s,q)+ (1 + q^{-2s} - 2q^{\frac{1}{2}-s}) \zeta^2(\tfrac{1}{2} + s), \end{align} $$
where we used
$d(q)=2$
in the last line. Note that for Theorem 2, we get
$\lambda _f(q)$
instead of
$d(q)$
.
Inserting the integral representation of
$\cos (\tfrac {2\pi n}{q})$
given in Lemma 7, we have
$$\begin{align*}H_2(s,q) = \sum_{n\ge 1} \frac{d(n)}{n^{\frac{1}{2}+s}} \frac{1}{2\pi i} \int_{(-\frac{3}{4})} \Gamma(w) \cos\left(\tfrac{\pi w}{2}\right) \left(\frac{q}{2\pi n}\right)^w dw + \zeta^2(\tfrac{1}{2}+s). \end{align*}$$
The integral converges absolutely:
$$ \begin{align} \int_{(-\frac34)} \left| \Gamma(w) \cos\left(\frac{\pi w}{2}\right) \frac{q^w}{(2\pi n)^w} dw\right| \ll \frac{n^{\frac34}}{q^{\frac34}}, \end{align} $$
and
$\Re (\tfrac {1}{2} + s - \tfrac {3}{4})> 1$
for
$s\in \mathcal {S}_1$
, so we can interchange summation and integration to get
$$ \begin{align} H_2(s,q) &= \frac{1}{2\pi i} \int_{(-\frac{3}{4})} \Gamma(w) \cos\left(\tfrac{\pi w}{2}\right) \left(\frac{q}{2\pi}\right)^w\zeta^2(\tfrac{1}{2} + s+w) dw + \zeta^2(\tfrac{1}{2} + s) \\ \nonumber &:= H_3(s,q) + \zeta^2(\tfrac{1}{2} + s). \end{align} $$
Moving the line of integration to
$\Re (w)=-c$
, we pick up the residues calculated in Lemma 8, and get
$$\begin{align*}H_3(s,q)= R_1(s,q) + \sum_{n=1}^{\lfloor c/2 \rfloor} R_0(n,s,q) + I(s,q),\end{align*}$$
where
$\lfloor x\rfloor $
denotes the greatest integer less than or equal to x, and
Note that this integral converges absolutely, since by Lemma 9, we have
for
$w = -c + it$
with
$|t| \to \infty $
.
Retracing our steps and inserting the final expressions for
$H_1(s,q),H_2(s,q), H_3(s,q)$
back into
$H(s,q)$
, we obtain the formula
$$ \begin{align} H(s,q)=\frac{\Gamma(\tfrac{1}{4}+\tfrac{s}{2})}{\Gamma(\tfrac{1}{4}-\tfrac{s}{2}) \pi^s q^{\frac{1}{2}-s}} & ((q-1)R_1(s,q) + (q-1)\sum_{n=1}^{\lfloor c/2 \rfloor} R_0(n,s,q)\nonumber \\ & \quad+ (q-1)I(s,q) + (q + q^{-2s} - 2q^{\frac{1}{2}-s}) \zeta^2(\tfrac{1}{2} + s)). \end{align} $$
From this expression, it follows that
$$\begin{align*}H(s,q)-\frac{\Gamma\left(\tfrac{1}{4}+\tfrac{s}{2}\right)(q-1)}{\Gamma\left(\tfrac{1}{4}-\tfrac{s}{2}\right) \pi^s q^{\frac{1}{2}-s}}I(s,q)\end{align*}$$
continues to a meromorphic function on
$\mathcal {S}_2$
, with value at
$s=0$
equal to
$$ \begin{align} \frac{q-1}{2} \left( \gamma +\log(\tfrac{q}{8\pi}) - \tfrac{\pi}{2} \right) + \frac{(q-1)}{q^{\frac{1}{2}}}\sum_{n=1}^{\lfloor c/2 \rfloor} \frac{(-1)^n}{(2n)!}\Big(\frac{2\pi}{q}\Big)^{2n} \zeta^2(\tfrac{1}{2}-2n) +\frac{(q +1- 2q^{\frac{1}{2}})}{q^{\frac{1}{2}}} \zeta^2(\tfrac{1}{2}),\nonumber\\ \end{align} $$
using (3.7). We see here some of the main terms claimed in equation (1.2) of Theorem 1: namely, the leading main term
$ \frac {q-1}{2} ( \log (\frac {q}{8\pi })+\gamma - \frac {\pi }{2} )$
, half of the second main term
$2 \zeta ^2(\frac {1}{2}) q^{\frac {1}{2}}$
, and the third main term
$-2\zeta ^2(\frac {1}{2})$
, while the rest of the right-hand side of (4.5) is
$O(q^{-\frac {1}{2}})$
and contributes to the lower order main terms in Theorem 1. However, it still remains to study the shifted integral
$I(s,q)$
, and this is the purpose of the next section.
We will show in the next section that as a function of s,
$$\begin{align*}\frac{\Gamma(\frac{1}{4}+\frac{s}{2})(q-1)}{\Gamma(\frac{1}{4}-\frac{s}{2}) \pi^s q^{\frac{1}{2}-s}}I(s,q) \end{align*}$$
continues to a meromorphic function on
$\mathcal {S}_2$
, with value at
$s=0$
equal to
$\zeta ^2(\frac {1}{2}) q^{\frac {1}{2}}$
plus addition lower order main terms of size
$O(q^{-\frac {1}{2}})$
. This recovers the other half of the second main term
$2 \zeta ^2(\frac {1}{2}) q^{\frac {1}{2}}$
in (1.2).
To frame this in terms of the strategy laid out in the sketch, we let
$\mathcal {I}(s,q)$
denote the meromorphic continuation of
$I(s,q)$
to
$\mathcal {S}_2$
. Then,
$$ \begin{align*} G(s,q):=\frac{\Gamma(\tfrac{1}{4}+\tfrac{s}{2})}{\Gamma(\tfrac{1}{4}-\tfrac{s}{2}) \pi^s q^{\frac{1}{2}-s}} & ((q-1)R_1(s,q) + (q-1)\sum_{n=1}^{\lfloor c/2 \rfloor} R_0(n,s,q) \\ & \qquad\quad + (q-1)\mathcal{I}(s,q) + (q + q^{-2s} - 2q^{\frac{1}{2}-s}) \zeta^2(\tfrac{1}{2} + s)) \end{align*} $$
is meromorphic for
$s\in \mathcal {S}_2$
, with
$G(s,q)=H(s,q)$
on
$\mathcal {S}_1$
. Since also
$F(s,q)=H(s,q)$
on
$\mathcal {S}_1$
, we get that
$F(s,q)=G(s,q)$
on
$\mathcal {S}_2$
by the principle of analytic continuation.
The sum over the odd characters. Before moving on, we note that deriving (1.3) would entail similar calculations, except for a couple of important differences as follows. Our main object of study would be
$$\begin{align*}(q-1) \sum_{\substack{n \geq 1}} \frac{ \sin(\tfrac{2 \pi n}{q}) d(n)}{n^{\frac{1}{2}+s}}. \end{align*}$$
Initially, this sum would be restricted to
$(n,q)=1$
but would extend to all
$n\ge 1$
for free since
$\sin (\frac {2 \pi n}{q})=0$
for
$q|n$
. Thus, there would be no additional terms as there are in (4.1). We would use the Mellin inverse transform
for
$d\in (-1,0)$
instead of (3.2). Note that unlike (3.2), there is no additional
$+1$
term here (since
$\Gamma (w)\sin (\frac {\pi w}{2})$
has no pole at
$w=0$
). Thus, we would need to study the integral
instead of the integral in (4.3), with no additional terms (thus no main terms appear so far). Moving the line of integration left to
$\Re (w)=-c$
crosses poles at the negative odd integers and at
$\frac {1}{2}-s$
. The residue at
$w=\frac {1}{2}-s$
is
instead of (3.6). Evaluating at
$s=0$
yields the leading main term in (1.3) and explains the
$+\frac {\pi }{2}$
term there instead of
$-\frac {\pi }{2}$
as in (1.2). The residues at the negative odd integers contribute lower main terms of size
$O(q^{-\frac {1}{2}})$
to (1.3). The shifted integral positioned at
$\Re (w)=-c$
will be discussed at the end of the next section.
5 The shifted integral
The goal of this section is to show that:
Lemma 11 There exists a meromorphic function
$\mathcal {I}(s,q)$
defined for
$s\in \mathcal {S}_2$
such that
$\mathcal {I}(s,q)= I(s,q)$
for
$s\in \mathcal {S}_1$
. At
$s=0$
, we have
$$ \begin{align} \mathcal{I}(0,q)= \zeta^2(\tfrac{1}{2})+ \sum_{n=1 }^{N} r_n q^{-n}+O_N(q^{-N-1}) \end{align} $$
for any integer
$N\ge 1$
and some constants
$r_n$
.
We now embark on the proof of Lemma 11. Let
$s\in \mathcal {S}_1$
. Applying the functional equation (3.1) to
$\zeta ^2(\frac {1}{2}+s+w)$
and the reflection formula to
$\Gamma (w)$
, we get
$$ \begin{align*} I(s,q) &= \frac{1}{2\pi i} \int\limits_{(-c)} \frac{ (\frac{q}{2\pi})^w (2\pi)^{2(s+w)} }{ \Gamma(1-w) \cos(\tfrac{\pi}{2} (1-w))}\\& \quad \times \cos^2 (\tfrac{\pi}{2}( \tfrac{1}{2}-s-w) ) \Gamma^2 (\tfrac{1}{2}-s-w) \zeta^2 (\tfrac{1}{2}-s-w) dw\\&= \int_{-\infty}^{\infty} \frac{ (\frac{q}{2\pi})^{-c+it} (2\pi)^{2(s-c+it)-1} }{ \Gamma(1+c-it) \cos(\tfrac{\pi}{2} (1+c-it))}\\& \quad \times \cos^2 (\tfrac{\pi}{2}( \tfrac{1}{2}-s+c-it) ) \Gamma^2 (\tfrac{1}{2}-s+c-it) \zeta^2 (\tfrac{1}{2}-s+c-it) dt. \end{align*} $$
Since
$\tfrac {1}{2}-\Re (s)+c>1$
, we can expand
$$\begin{align*}\zeta^2 (\tfrac{1}{2}-s+c-it) = \sum_{n\ge 1} \frac{d(n)}{n^{\frac{1}{2}-s+c-it}} \end{align*}$$
into an absolutely convergent sum. Exchanging the order of summation and integration, we get
where
$$ \begin{align*} I(s,q,n) &=\int_{-\infty}^{\infty} \frac{ (\frac{q}{2\pi})^{-c+it} (2\pi)^{2(s-c+it)-1} }{ \Gamma(1+c-it) \cos(\tfrac{\pi}{2} (1+c-it))}\\& \quad \times \cos^2 (\tfrac{\pi}{2}( \tfrac{1}{2}-s+c-it) ) \Gamma^2 (\tfrac{1}{2}-s+c-it) \frac{d(n)}{n^{\frac{1}{2}-s+c-it}} dt. \end{align*} $$
The idea now is to understand the oscillatory and stationary behavior of the integrand, and use that information to determine the integral. Such stationary phase analysis can be found in the literature to determine the integral up to a suitable error term (see, for example, [Reference Blomer, Khan and Young3, Proposition 8.2]). However, we cannot simply quote the literature because we need to first establish meromorphic continuation to a neighborhood of
$s=0$
, after which we are permitted to determine the value at
$s=0$
up to a suitable error term. Therefore, we proceed by revisiting the steps of the stationary phase analysis, being careful to obtain meromorphic continuation.
We study the integral
$I(s,q,n)$
over finite dyadic intervals, as follows. Note that for each
$n\in \mathbb {N}$
, the union
forms an open cover of
$(-\infty ,\infty )$
. Thus, there exists a partition of unity of
$(-\infty ,\infty )$
by a collection of smooth functions of the form
$W(\frac {t}{T})$
, where
$T=T(n)$
assumes one of the values below, and
$W(x)$
is supported on
$$ \begin{align} \tfrac58 &< x <\tfrac32 \ \ \ \ \text{ for } \ \ T=(2\pi qn)2^k, \ k\in\mathbb{Z}, \ k\ge -\log_2(2\pi qn), \\ \nonumber -20 &< x < 20 \ \ \ \text{ for } \ \ T=\tfrac{1}{2}, \\ \nonumber -\tfrac32 &< x < -\tfrac58 \ \ \text{ for } \ \ T=(2\pi qn)2^k, \ k\in\mathbb{Z}, \ k\ge -\log_2(2\pi qn), \end{align} $$
with
$W^{(j)}(x)\ll _j 1$
for any
$j\ge 0$
. Then, we have that
where
$$ \begin{align*} I_T(s,q)&= \int_{-\infty}^{\infty} W\Big(\frac{t}{T}\Big) \frac{ (\frac{q}{2\pi})^{-c+it} (2\pi)^{2(s-c+it)-1} }{ \Gamma(1+c-it) \cos(\tfrac{\pi}{2} (1+c-it))} \\& \quad\times \cos^2 (\tfrac{\pi}{2}( \tfrac{1}{2}-s+c-it) ) \Gamma^2 (\tfrac{1}{2}-s+c-it) \frac{d(n)}{n^{\frac{1}{2}-s+c-it}} dt. \end{align*} $$
We first consider the contribution of
$T=\frac 12$
to
$I(s,q)$
. The integral
$I_{\frac {1}{2}}(s,q)$
is of bounded length, the integrand is holomorphic for
$s\in \mathcal {S}_2$
, and the sum
$\sum _{n\ge 1} \frac {d(n)}{n^{\frac {1}{2}-\Re (s)+c}}$
is absolutely bounded for
$s\in \mathcal {S}_2$
. Thus,
$ \sum _{n\ge 1} I_{\frac {1}{2}} (s,q)$
analytically continues to
$\mathcal {S}_2$
, with
Now, we restrict to the case
$T\neq \frac {1}{2}$
(so that
$T\ge 1$
). We apply Lemma 10 with
$M=2c$
for
$\Gamma (1+c-it) \cos (\tfrac {\pi }{2} (1+c-it))$
and
$\cos (\tfrac {\pi }{2}( \tfrac {1}{2}-s+c-it) ) \Gamma (\tfrac {1}{2}-s+ c-it)$
, which is permissible since
$1+c>1$
,
$ \tfrac {1}{2}-\Re (s)+c>1$
, and
$|t|> \frac 58$
. These conditions hold for s in the wider set
$\mathcal {S}_2$
too. Thus, we get
$$ \begin{align*} I_T(s,q)= (2\pi q)^{-c} \frac{d(n)}{n^{\frac{1}{2}-s+c}} \int_{-\infty}^{\infty} W\Big(\frac{t}{T}\Big) \Big(\sum_{0\le m\le {2c}} a_m(s) t^{-m} + E(s,t) \Big) |t|^{c-2s-\frac{1}{2}} \exp(i\Phi(t))dt, \end{align*} $$
where
$$\begin{align*}\Phi(t)=-t\log \left( \frac{|t|}{2\pi e qn }\right), \end{align*}$$
and
$a_m(s)$
and
$E(s,t)$
are holomorphic functions of
$s\in \mathcal {S}_2$
such that
We point out here that since we applied Stirling’s approximation to
$\Gamma (z-it) \cos (\frac {\pi }{2}(z-it))$
, we get by (3.10) that
$a_0(s)$
has the factor
$e^{-i \frac {\pi }{4}\mathrm {sgn}(-t)}=e^{i \frac {\pi }{4}\mathrm {sgn}(t)}$
.
First, we address the contribution of
$E(s,t)$
to
$I(s,q)$
. This equals
$$ \begin{align} \sum_{n\ge 1} \sum_{T \ge 1} (2\pi q)^{-c} \frac{d(n)}{n^{\frac{1}{2}-s+c}} \int_{-\infty}^{\infty} W\Big(\frac{t}{T}\Big) E(s,t) |t|^{c-2s-\frac{1}{2}} \exp(i\Phi(t))dt, \end{align} $$
which is bounded for
$s\in \mathcal {S}_2$
by the absolutely convergent sum
$$ \begin{align*} \sum_{n\ge 1} \sum_{T \ge 1} q^{-c} \frac{d(n)}{n^{\frac{1}{2}-\Re(s)+c}} T \cdot T^{-2c-1} T^{c-2\Re(s)-\frac{1}{2}} \ll q^{-c} \sum_{n\ge 1} \frac{d(n)}{n^{\frac{1}{2}-\Re(s)+c}} \sum_{T \ge 1} T^{-c} \ll q^{-c}.\end{align*} $$
Thus, (5.4) has analytic continuation to
$\mathcal {S}_2$
with value at
$s=0$
bounded by
$O(q^{-c})$
.
It remains to consider
where we define
$$ \begin{align} \nonumber I_{T,m}(s,q)&:= (2\pi q)^{-c} \frac{d(n)}{n^{\frac{1}{2}-s+c}} \int_{-\infty}^{\infty} W\Big(\frac{t}{T}\Big) t^{-m} |t|^{c-2s-\frac{1}{2}} \exp(i\Phi(t))dt\\ &= (2\pi q)^{-c} \frac{d(n)}{n^{\frac{1}{2}-s+c}} T \int_{-\infty}^{\infty} W(x) (xT)^{-m} |xT|^{c-2s-\frac{1}{2}} \exp(i\Phi(xT) )dx. \end{align} $$
The last equality follows by the substitution
$x=\frac {t}{T}$
. We now assume that
$W(x)$
is supported on the positive real axis because the negative case is treated similarly. Thus,
$W(x)$
is supported on
$(\frac 58, \frac 32)$
.
Case I.
$T\neq 2\pi q n$
. In this case, we have
$ \frac {T}{2\pi qn } \ge 2$
or
$ \frac {T}{2\pi qn } \le \frac {1}{2}$
by definition (5.2). So
$$\begin{align*}\Big| \frac{d}{dx} i \Phi(xT) \Big| = \Big| \frac{d}{dx} \Big(-i x T \log \left( \frac{xT}{2\pi e qn }\right)\Big) \Big| = \Big| - i T \log \Big( x \frac{T}{2\pi qn }\Big) \Big| \gg T \end{align*}$$
for
$x\in (\frac 58, \frac 32)$
and
$$\begin{align*}\frac{d^j}{dx^j} \Big( - i \log \Big( x \frac{T}{2\pi qn }\Big) \Big) = i (j-1)! (-x)^{-j} \asymp 1 \ \ \text{ for } j\ge 1. \end{align*}$$
We can write
$$ \begin{align*} &\int_{-\infty}^{\infty} W(x) x^{-m+c-2s-\frac{1}{2}} \exp(i\Phi(xT) )dx\\& \quad = \int_{-\infty}^{\infty} W(x) x^{-m+c-2s-\frac{1}{2}} \frac{ - i T \log ( x \frac{T}{2\pi qn })}{ - i T \log ( x \frac{T}{2\pi qn })} \exp(i\Phi(xT) )dx \end{align*} $$
and then repeatedly integrate by parts to get
$$ \begin{align*} &\int_{-\infty}^{\infty} W(x) x^{-m+c-2s-\frac{1}{2}} \exp(i\Phi(xT) )dx\\& \quad = \frac{1}{T} \int_{-\infty}^{\infty} \frac{d}{dx}\Big( \frac{W(x) x^{-m+c-2s-\frac{1}{2}} } { i \log ( x \frac{T}{2\pi qn }) } \Big) \exp(i\Phi(xT) )dx\\& \quad = \frac{1}{T^2} \int_{-\infty}^{\infty} \frac{d}{dx} \Bigg( \frac{ \frac{d}{dx}\Big( \frac{W(x) x^{-m+c-2s-\frac{1}{2}} } { i \log ( x \frac{T}{2\pi qn }) } \Big) }{ i \log ( x \frac{T}{2\pi qn }) } \Bigg) \exp(i\Phi(xT) )dx, \end{align*} $$
and so on, with each of these successive integrals an entire function of s. In this way, we see that for
$s\in \mathcal {S}_2$
, we have
for any
$k\ge 0$
. This ensures the absolute convergence of the sum
$$ \begin{align*} \sum_{n\ge 1} \ \sum_{0\le m\le 2c} \sum_{\substack{T \ge 1 \\ T\neq 2\pi q n}} a_m(s) I_{T,m}(s,q) \end{align*} $$
for
$s\in \mathcal {S}_2$
and therefore its analytic continuation to
$\mathcal {S}_2$
with value at
$s=0$
bounded by
$O(q^{-c})$
.
Case II.
$T= 2\pi n q$
. By construction (5.2), we are considering the unique function
$W(\frac {t}{2\pi n q})$
in this partition which contains a neighborhood of
$2\pi n q$
in its support. We have, using definition (5.5),
$$ \begin{align*} I_{2\pi n q,m}(s,q)&= (2\pi q)^{-c} \frac{d(n)}{n^{\frac{1}{2}-s+c}} 2\pi n q \int_{-\infty}^{\infty} W(x) (x2\pi n q)^{-m+c-2s-\frac{1}{2}} \exp(i\Phi(x2\pi n q ) )dx\\ &= (2\pi q)^{\frac{1}{2}-m-2s} \frac{d(n)}{n^{s+m}} \int_{-\infty}^{\infty} W(x) x^{-m+c-2s-\frac{1}{2}} \exp(i\phi(x ) )dx, \end{align*} $$
where
We have
Note that
$\phi '(1)=0$
(so that
$x=1$
is a stationary point). Taking a Taylor series expansion about
$x=1$
, we get
for
$x\in (\frac 58, \frac 32)$
, so that
This uses the nice simplification
$e^{2\pi i nq}=1$
.
We will evaluate
$I_{2\pi n q,m}(s,q)$
by stationary phase analysis. As is the usual technique, we first isolate
$x=1$
further. Let
$w(x)$
be a smooth function such that
$$ \begin{align*} &w(x) = 1 \ \ \text{ for } 1-(nq)^{-\frac{5}{12}}< x < 1+(nq)^{-\frac{5}{12}},\\ &w(x) = 0 \ \ \text{ for } x< 1-2(nq)^{-\frac{5}{12}} \ \text{ or } x> 1+2(nq)^{-\frac{5}{12}},\\ &w^{(j)}(1) = 0 \ \ \text{ for } j\ge 1, \ \ \ w^{(j)}(x) \ll_j ((nq)^{\frac{5}{12}})^j \ \ \text{ for } j\ge 0. \end{align*} $$
We split up the integral as
$I_{2\pi n q,m}(s,q)= I_{2\pi n q,m}^w(s,q)+ I_{2\pi n q,m}^{1-w}(s,q)$
, where
$$ \begin{align*} & I_{2\pi n q,m}^w(s,q):= (2\pi q) ^{\frac{1}{2}-m-2s} \frac{d(n)}{n^{s+m}} \int_{-\infty}^{\infty} W(x) w(x) x^{-m+c-2s-\frac{1}{2}} \exp(i\phi(x ) )dx,\\ & I_{2\pi n q,m}^{1-w}(s,q):= (2\pi q)^{\frac{1}{2}-m-2s} \frac{d(n)}{n^{s+m}} \int_{-\infty}^{\infty} W(x) (1-w(x)) x^{-m+c-2s-\frac{1}{2}} \exp(i\phi(x ) )dx. \end{align*} $$
Thus, the integrand in
$I_{2\pi n q,m}^w(s,q)$
is supported very close to
$x=1$
while the integrand in
$I_{2\pi n q,m}^{1-w}(s,q)$
is supported some distance away from
$x=1$
.
Repeatedly integrating by parts in
$I_{2\pi n q,m}^{1-w}(s,q)$
, and using (5.6), we get
$$ \begin{align*} &\int_{-\infty}^{\infty} W(x) (1-w(x)) (2\pi x )^{-m+c-2s-\frac{1}{2}} \exp(i\phi(x ) ) dx \\&\quad = \frac{1}{2\pi i n q}\int_{-\infty}^{\infty} \frac{d}{dx} ( \frac{W(x) (1-w(x)) (2\pi x )^{-m+c-2s-\frac{1}{2}}}{ - (x-1) + \frac{(x-1)^2}{2}-\cdots } ) \exp(i\phi(x ) ) dx \\&\quad = \frac{1}{(2\pi i n q)^2}\int_{-\infty}^{\infty} \frac{d}{dx} ( \frac{\frac{d}{dx} ( \frac{W(x) (1-w(x)) (2\pi x )^{-m+c-2s-\frac{1}{2}}}{ - (x-1) + \frac{(x-1)^2}{2}-\cdots }}{{ - (x-1) + \frac{(x-1)^2}{2}-\cdots }} ) \exp(i\phi(x ) ) dx, \end{align*} $$
and so on, with each of these successive integrals an entire function of s. Since
$ (nq)^{-\frac {5}{12}}\ll |x-1|\le \frac 12$
in the support of
$W(x)(1-w(x))$
, and
$w^{(j)}(x) \ll _j (nq)^{\frac {5}{12}j}$
for
$j\ge 0$
, we see that for
$s\in \mathcal {S}_2$
, after integrating by parts
$k\ge 0$
times, we have
$$\begin{align*}\sum_{\substack{n\ge 1}} \ \sum_{0\le m\le 2c} a_m(s) I_{2\pi n q,m}^{1-w}(s,q) \ll_k \sum_{n\ge 1} \ \sum_{0\le m\le 2c} q^{\frac{1}{2}-m-2\Re(s)} \frac{d(n)}{n^{\Re(s)+m}} \Big(\frac{(nq)^{\frac{5}{6}}}{nq }\Big)^k \ll q^{-\frac{7c}{6}+1}, \end{align*}$$
where the last bound follows by taking
$k=7c$
. This ensures the absolute convergence of the sum above and therefore its analytic continuation to
$\mathcal {S}_2$
with value at
$s=0$
bounded by
$O(q^{-c})$
.
It remains to consider
$I_{2\pi n q,m}^{w}(s)$
, which we write as, using (5.6),
where
Let
denote the Fourier transform of h. Integrating by parts
$k\ge 0$
times, we have for
$s\in \mathcal {S}_2$
and
$|y|>1$
,
$$ \begin{align} \hat{h}(s,y) = \hat{h}_k(s,y) := \int_{-\infty}^{\infty} \Big( \frac{\partial^k}{\partial x^k} h(s,x) \Big) \frac{e^{-2\pi i yx} }{(2\pi i y)^k } dx \ll_k \Big (\frac{(nq)^{\frac{5}{12}}}{|y|}\Big)^{k}. \end{align} $$
This uses
$w^{(j)}(x) \ll _j (nq)^{\frac {5}{12}j}$
for
$j\ge 0$
and
$n q |x-1|^2\ll (nq)^{\frac {5}{12}}$
in the support of
$w(x)$
. For
$|y|\le 1$
, we have the trivial bound
$\hat {h}(s,y) \ll 1$
. Also note that
$\hat {h}(s,y)$
(for
$|y|\le 1$
) and
$\hat {h}_k(s,y) $
(for
$|y|> 1$
) are entire functions of s. By Fourier inversion, we have
$$ \begin{align*} \int_{-\infty}^{\infty} h(s, x) e^{ -i \pi n q (x-1)^2 } dx &= \lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} h(s,x) e^{ -i \pi n q (x-1)^2 } dx \\& =\lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} \Big( \int_{-\infty}^{\infty} \hat{h}(s,y) e^{2\pi i x y} dy\Big) e^{-i \pi n q (x-1)^2 } dx\\& =\lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} \Big( \int_{-\alpha}^{\alpha} \hat{h}(s,y) e^{2\pi i x y}dy \Big) e^{-i \pi n q (x-1)^2 } dx, \end{align*} $$
where the last line uses the upper bound for
$\hat {h}(s,y)$
given in (5.9). We can exchange the order of integration to get
$$ \begin{align*} & \lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} \hat{h}(s,y) \int_{-\alpha}^{\alpha} e^{2\pi i y x} e^{-i \pi n q (x-1)^2 }dx \ dy\\& \quad = \lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} \hat{h}(s,y) \int_{-\infty}^{\infty} e^{2\pi i y x} e^{ -i \pi n q (x-1)^2 } dx \ dy, \end{align*} $$
where the inner integral was extended to infinity because for
$|y|\le \alpha $
,
by completing the square, and this equals
$$ \begin{align*} \lim_{\beta\to\infty} e^{2\pi i y + i \pi \frac{y^2}{nq} } \Bigg( \frac{e^{-i\pi nq (x-1- \frac{y}{nq})^2}}{-2i\pi nq (x-1- \frac{y}{nq})} \Bigg|_{x=\alpha}^{x=\beta} - \int_{\alpha}^{\beta} \frac{e^{-i\pi nq (x-1- \frac{y}{nq})^2}}{2i\pi nq (x-1- \frac{y}{nq})^2} dx\Bigg) \ll \alpha^{-1} \end{align*} $$
by integrating by parts. Now,
$$ \begin{align*} &\lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} \hat{h}(s,y) \int_{-\infty}^{\infty} e^{2\pi i y x} e^{ -i \pi n q (x-1)^2 } dx \ dy \\& \quad = \lim_{\alpha\to\infty} \int_{-\alpha}^{\alpha} \hat{h}(s,y) \frac{ e^{i \pi ( 2 y+ \frac{y^2}{nq}-\frac{1}{4}) }}{\sqrt{nq}} \ dy =\frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{-\infty}^{\infty} \hat{h}(s,y) e^{ 2 \pi y i } e^{i \pi \frac{y^2}{nq} }\ dy. \end{align*} $$
by evaluating the Gaussian x-integral using [Reference Gradshteyn and Ryzhik8, Equations (17.23.16) and (17.23.17)] and then extending the y-integral to infinity using (5.9). Writing
$$\begin{align*}E(y) =\sum_{j=0}^{6c} \frac{1}{j!}\Big( \frac{i\pi y^2}{nq} \Big)^j, \end{align*}$$
we have
$$ \begin{align} \frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{-\infty}^{\infty} \hat{h}(s,y) e^{ 2 \pi y i } e^{i \pi \frac{y^2}{nq} }\ dy& = \frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{-\infty}^{\infty} \hat{h}(s,y) e^{ 2 \pi y i } E(y) dy \nonumber\\& \quad + \frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{-1}^{1}\! \hat{h}(s,y) e^{ 2 \pi y i } \Big(e^{i \pi \frac{y^2}{nq} } - E(y)\Big) dy\nonumber\\& \quad + \frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{|y|>1}\! \hat{h}_{k}(s,y) e^{ 2 \pi y i } \Big(e^{i \pi \frac{y^2}{nq} } - E(y)\Big) \ dy, \end{align} $$
where we used (5.9) for the last integral. All the integrals on the right-hand side of (5.10) are absolutely convergent, so they are entire functions of s. For the second and third integrals, by Taylor’s theorem applied to the function
$e^{ix}$
, we have the following bounds for
$s\in \mathcal {S}_2$
:
$$ \begin{align} &\frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{-1}^{1} \hat{h}(s,y) e^{ 2 \pi y i } \Big(e^{i \pi \frac{y^2}{nq} } - E(y)\Big) dy \ll \frac{1}{\sqrt{nq}} \Big(\frac{1}{nq}\Big)^{6c+1} \ll \Big(\frac{1}{nq}\Big)^{6c+\frac32} , \nonumber\\& \quad \frac{ e^{-\frac{i\pi}{4}}}{\sqrt{nq}} \int_{|y|>1} \hat{h}_{k}(s,y) e^{ 2 \pi y i } \Big(e^{i \pi \frac{y^2}{nq} } - E(y)\Big) \ dy \nonumber\\& \quad \ll \frac{1}{\sqrt{nq}} \int_{|y|>1} \Big (\frac{(nq)^{\frac{5}{12}}}{|y|}\Big)^{12c+4} \Big(\frac{|y|^{2}}{nq}\Big)^{6c+1} dy \ll \Big(\frac{1}{nq}\Big)^{c+\frac16}, \end{align} $$
where we used (5.9) with
$k=12c+4$
. Plugging back (5.10) into (5.7), we get that
$$ \begin{align} &\sum_{\substack{n\ge 1\\0\le m\le 2c }} a_m(s) I_{2\pi n q,m}^w(s) \nonumber\\& \quad =\sum_{\substack{n\ge 1\\ 0\le m\le 2c}} a_m(s) \sqrt{2\pi} e^{-\frac{i\pi}{4}} (2\pi q)^{-m-2s} \frac{d(n)}{n^{\frac{1}{2}+s+m}} \int_{-\infty}^{\infty} \hat{h}(s,y) e^{ 2 \pi y i } E(y) dy \nonumber\\& \qquad + \sum_{\substack{n\ge 1\\0\le m\le 2c }}\!\! a_m(s) \sqrt{2\pi} e^{-\frac{i\pi}{4}} (2\pi q)^{-m-2s} \frac{d(n)}{n^{\frac{1}{2}+s+m}} \int_{-\infty}^{\infty}\! \hat{h}(s,y) e^{ 2 \pi y i } \Big(e^{i \pi \frac{y^2}{nq} } - E(y)\Big) dy.\nonumber\\ \end{align} $$
In light of the bounds (5.11), the second sum on the right-hand side of (5.12) analytically continues to
$\mathcal {S}_2$
, with value at
$s=0$
being bounded by
$O(q^{-c+1})$
.
It remains to obtain the meromorphic continuation from
$\mathcal {S}_1$
to
$\mathcal {S}_2$
of
where
$$ \begin{align*} I_{2\pi n q,m,j}^w (s,q) :=& \sqrt{2\pi} e^{-\frac{i\pi}{4}} (2\pi q)^{-m-2s}\frac{d(n)}{n^{\frac{1}{2}+s+m}} \int_{-\infty}^{\infty} \hat{h}(s,y) e^{ 2 \pi i y } \frac{1}{j!}\Big( \frac{i\pi y^2}{nq} \Big)^j dy. \end{align*} $$
By Fourier inversion, we have
$$\begin{align*}\int_{-\infty}^{\infty} \hat{h}(s,y) e^{ 2 \pi i y } y^{2j} dy = \frac{1}{(2\pi i )^{2j}} \frac{\partial^{2j}}{\partial x^{2j}} h(s,x)\bigg|_{x=1}. \end{align*}$$
Thus keeping in mind definition (5.8), we have
$$\begin{align*}I_{2\pi n q,m,j}^w (s,q) = \sqrt{2\pi} e^{-\frac{i\pi}{4}} (2\pi q)^{-m-2s} \frac{d(n)}{n^{\frac{1}{2}+s+m}} P_{m,j}\Big(s,\frac{1}{nq}\Big), \end{align*}$$
where
$P_{m,j}(s,\frac {1}{nq})$
is entire in s and polynomial in
$\frac {1}{nq}$
, and the degree of this polynomial is strictly greater than
$0$
for
$j>0$
. For
$j=0$
, we note that
$P_{m,0}(s,\frac {1}{nq})=h(s,1)=1$
. We get that (5.13) equals
$$\begin{align*}\sum_{0\le m\le 2c} \ \sum_{0\le j \le 6c} a_m(s) \sqrt{2\pi} e^{-\frac{i\pi}{4}} (2\pi q)^{-m-2s} \sum_{n\ge 1} \frac{d(n)}{n^{\frac12+s+m}} P_{m,j}\Big(s, \frac{1}{nq}\Big). \end{align*}$$
This expression continues to a meromorphic function on
$\mathcal {S}_2$
(because innermost sum is a linear combination of values of the square of the Riemann Zeta function) and we have that its value at
$s=0$
equals, using (5.3),
$$ \begin{align} a_0(0) \sqrt{2\pi} e^{-\frac{i\pi}{4}} \zeta^2(\tfrac{1}{2}) + \sum_{n=1 }^{N} r_n' q^{-n}+O_N(q^{-N-1})= \frac{1}{2} \zeta^2(\tfrac{1}{2}) + \sum_{n=1 }^{N} r_n' q^{-n}+O_N(q^{-N-1}), \end{align} $$
for some constants
$r_n'$
and any
$N\ge 1$
, by taking c large enough.
Recall that for this calculation, we have been assuming that
$W(x)$
is supported on the positive real axis. In the case that the support of
$W(x)$
is on the negative real axis, there is a stationary point at
$x=-1$
. In this case, the leading term from stationary phase is
$a_0(0) \sqrt {2\pi } e^{\frac {i\pi }{4}} \zeta ^2(\tfrac {1}{2})$
, where
$a_0(0)=(2\pi )^{-1}(\frac {\pi }{2})^{\frac {1}{2}} e^{-\frac {i\pi }{4}} $
by (5.3), so that we obtain
$$ \begin{align} \frac{1}{2} \zeta^2(\tfrac{1}{2}) + \sum_{n=1 }^{N} r_n" q^{-n}+O_N(q^{-N-1}) \end{align} $$
for some constants
$r_n"$
. Adding together (5.14) and (5.15), we get (5.1).
The sum over the odd characters. The treatment of the integral
required to obtain (1.3), follows similar calculations, but we highlight some important differences with the treatment of the integral
$I(s,q)$
. Instead of (3.14), we have
$$ \begin{align*} \sin(\tfrac{\pi}{2}(z+it)) &= \tfrac{1}{2i} \big( e^{i(\frac{\pi}{2}(z+it))} - e^{-i(\frac{\pi}{2}(z+it))}\big)\\& = i \mathrm{sgn}(t) \tfrac{1 }{2} e^{-i z\tfrac{\pi}{2} \mathrm{sgn}(t) + \tfrac{\pi}{2} |t|} \big(1 - e^{iz \pi \mathrm{sgn}(t) -\pi |t|} \big). \end{align*} $$
Thus, the leading terms in Stirling’s estimates for
$ \Gamma (w) \sin \left (\tfrac {\pi w}{2}\right )$
and
$ \Gamma (w) \cos \left (\tfrac {\pi w}{2}\right )$
differ only by a factor of
$i \mathrm {sgn}(t) $
, and this extra factor is carried through the entire calculation. In the end, we get that the value at
$s=0$
of the leading term in the meromorphic continuation of the integral (5.16) equals
$$ \begin{align} i \frac{ \zeta^2(\tfrac{1}{2})}{2} -i \frac{ \zeta^2(\tfrac{1}{2})}{2} = 0, \end{align} $$
from the two stationary points (one positive and one negative).
Acknowledgements
We are grateful to the anonymous referee for many insightful suggestions that helped to improve the manuscript – in particular for comments regarding reciprocity formulas and for pointing out a mistake in the previous version of the manuscript. We also thank Agniva Dasgupta for a careful reading and valuable remarks.
