\documentclass[11pt,letterpaper,twoside,reqno]{amsart} \usepackage[T1]{fontenc} \usepackage{lmodern,amsmath,amssymb,booktabs,graphicx} \usepackage[margin=1in]{geometry} \usepackage[hidelinks,unicode]{hyperref} \hypersetup{pdftitle={Character coefficients for integrals of odd products of hyperbolic tangents}, pdfauthor={Will Howe, Grant Huffman, Jensen Kohlmeyer, Liam Kruer}, pdfsubject={Mathematical research note},pdfkeywords={Mellin transform, Dirichlet character, hyperbolic tangent integral}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newcommand{\topic}[2]{\section{#2}\label{r#1}} \newcommand{\src}[2]{\href{#1}{#2}} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\ord}{\operatorname{ord}} \newcommand{\dd}{\mathop{}\!\mathrm d} \newcommand{\stir}[2]{\genfrac{[}{]}{0pt}{}{#1}{#2}} \title[Odd products of hyperbolic tangents]{Character coefficients for integrals of odd products of hyperbolic tangents} \author[W. Howe]{Will Howe} \author[G. Huffman]{Grant Huffman} \author[J. Kohlmeyer]{Jensen Kohlmeyer} \author[L. Kruer]{Liam Kruer} \date{November 19, 2026} \subjclass[2020]{11M06} \keywords{Mellin transform, Dirichlet character, hyperbolic tangent integral} \thanks{The authors acknowledge assistance from OpenAI Codex in mathematical exploration, checking, and manuscript preparation. OpenAI Codex drafted the proof and ran the accompanying checks.} \begin{document} \begin{abstract} For odd \(n\ge3\), we express the integral of \(x^{-2}\prod_{k=1}^{n}\tanh(kx)\) on the positive half-line in terms of derivatives of primitive even Dirichlet \(L\)-functions at \(-1\) and logarithms of integers. Finite character sums determine all coefficients, including the rational coefficient of each logarithm. \end{abstract} \maketitle \section{Reduction to primitive characters} Michael Smith asked for the coefficients in a reduction of \(I_n=\int_0^\infty x^{-2}\prod_{k=1}^n\tanh(kx)\dd x\) for odd \(n\ge3\). The following finite formula gives every primitive-character and logarithmic coefficient. Smith supplied the Mellin representation, parity observation, and low-order evaluations \cite{smith}. \begin{theorem}For every odd \(n\ge3\), formula~\eqref{eq:odd} expresses \(I_n\) as a sum of primitive even Dirichlet \(L\)-derivatives at \(-1\) and logarithms of positive integers. Its logarithmic coefficients are rational. The following finite character sums specify every coefficient.\end{theorem} \begin{proof}Let \(L=2\operatorname{lcm}(1,\ldots,n)\) and \(P(z)=\prod_{k=1}^n(1-z^k)/(1+z^k)=1+\sum_{m\ge1}c(m)z^m\). At a primitive \(2j\)-th root the excess of denominator zeros over numerator zeros is either zero or one, by counting odd and even multiples of \(j\). Odd-order roots give no poles. Thus \(F(z)=(1-z^L)P(z)\) is a polynomial of degree at most \(L\), and \(c(m)\) is \(L\)-periodic for \(m\ge1\). For odd \(n\), \(z^LF(1/z)=F(z)\), so \(c(-m)=c(m)\) on residue classes. For \(q\mid L\), let \(d=L/q\). For each character \(\chi\bmod q\), set \[ b_{q,\chi}=\frac{1}{\varphi(q)} \sum_{u\in(\Z/q\Z)^\times} c(du)\overline{\chi(u)} . \] Use \(u=1\) for \(q=1\). Only even characters survive. Splitting \(m\) by \(\gcd(m,L)\) and using character orthogonality gives, for \(\Re s>1\), \[ D(s)=\sum_{m\ge1}c(m)m^{-s}=\sum_{q\mid L}\sum_{\chi\bmod q} b_{q,\chi}(L/q)^{-s}L(s,\chi)=\sum_{\psi}H_\psi(s)L(s,\psi). \] The final sum runs over primitive even characters, including the trivial conductor-one character. Compute \(H_\psi(s)=\sum_t h_{\psi,t}t^{-s}\) by adding, for each \(\chi\bmod q\) induced by \(\psi\) of conductor \(f\), the polynomial \[ b_{q,\chi}(L/q)^{-s} \prod_{\substack{p\mid q\\p\nmid f}}\bigl(1-\psi(p)p^{-s}\bigr). \] \newpage This also gives a test for which primitive derivative coefficients vanish. The result is \begin{equation}\label{eq:odd} \boxed{\displaystyle I_n=-2\sum_\psi H_\psi(-1)L'(-1,\psi) +2\sum_t t\log(t)\sum_\psi h_{\psi,t}L(-1,\psi).} \end{equation} The coefficient of each \(\log t\) is rational. All factors lie in a common cyclotomic field, and its Galois group permutes the terms indexed by \(\psi\), as follows for \(L(-1,\psi)\) from \(-\tfrac f2\sum_{a=1}^f\psi(a)B_2(a/f)\) with \(B_2(x)=x^2-x+1/6\). Derivative coefficients can be algebraic and combine in conjugate pairs. To justify evaluation at \(-1\), put \(G(x)=P(e^{-2x})\). For \(\Re s>1\), the Mellin transform of \(G-1\) is \(2^{-s}\Gamma(s)D(s)\). Its continuation to \(\Re s>-n\) is \(\int_0^1 x^{s-1}G(x)\dd x+\int_1^\infty x^{s-1}(G(x)-1)\dd x-1/s\). At \(s=-1\) this equals \(I_n\). The residue of \(\Gamma\) there is \(-1\), so \(D(-1)=0\) and \(I_n=-2D'(-1)\), giving the formula. At \(n=3\), \(D(s)/\zeta(s)=-2+2\,2^{-s}+2\,3^{-s}+4\,4^{-s}-4\,6^{-s}\). This recovers \(I_3=\log(27/4)\). \end{proof} \begin{thebibliography}{9}\small \bibitem{smith} M. Smith, \emph{Closed form of an integral of products of hyperbolic tangents}, Mathematics Stack Exchange, \src{https://math.stackexchange.com/questions/5150767}{question 5150767}. \end{thebibliography} \end{document}