# Closed-form of an integral involving a Jacobi theta function, $\int_0^{\infty} \frac{\theta_4^{n}\left(e^{-\pi x}\right)}{1+x^2} dx$

The Jacobi theta function $\theta_4$ is defined by $$\displaystyle \theta_4(q)=\sum_{n \in \mathbb{Z}} (-1)^n q^{n^2} \tag{1}$$ For this question, set $q=\large e^{-\pi x}$ and $\theta_4 \equiv \theta_4(q)$. Define $\theta_3(q)=\theta_4(-q)$.

Using Lambert-Series representation for powers of $\theta_4$ (which I will describe in a moment) and integrating term by term, I have obtained a family of neat identites: $$\int_0^{\infty} \frac{\theta_4^2}{1+x^2} dx=1 \tag{2}$$ $$\int_0^{\infty} \frac{\theta_4^4}{1+x^2} dx=\frac{4 \ln2}{\pi} \tag{3}$$ $$\int_0^{\infty} \frac{\theta_4^6}{1+x^2} dx=\frac{16 G}{\pi^2}-\frac23 \tag{4}$$ $$\int_0^{\infty} \frac{\theta_4^8}{1+x^2} dx=\frac{20 \zeta(3)}{\pi^3} \tag{5}$$ Here, $G$ is Catalan's constant. These identities check out to a lot of digits, according to Mathematica.

As I mentioned, in order to drive these identities I used Lambert series representations for powers of $\theta_4$ which I have found online. For instance:

$$\theta_4^2 = 1+4\sum_{n=1}^{\infty} \frac{(-1)^n q^n}{1+q^{2n}} \tag{6}$$ (See e.g. , or use $r_2(n)=4\sum_{d \mid n} \sin(\frac{\pi}{2} d)$ (), and switch order of summation)

$$\theta_4^6=1+16\sum_{n=0}^{\infty}\frac{(-1)^n n^2 q^n}{1+q^{2n}}+4\sum_{n=0}^{\infty} \frac{(-1)^n (2n+1)^2 q^{2n+1}}{1+q^{2n+1}} \tag{7}$$ (A proof is given in , together with proofs for similar formulas for the $4$th power of $\theta_4$, and the $8$th power.)

I am interested in a closed form for the integral $$I(n)= \int_0^{\infty} \frac{\theta_4(e^{-\pi x})^n}{1+x^2} dx.\tag{8}$$

1st Question

I have searched the web for a similar Lambert series combination for $\theta_4^{10}$, but all my efforts remain fruitless. Also, I wasn't able to derive one using the approach taken in . Can we find a formula, possibly in the form of $(6)$ or $(7)$, for $\theta_4^{10}(q)$? Such a formula may be used to find the closed form of $I(10)$.

2nd Question

Can we find closed forms for $I(n)$ for other values of $n$?

In general, can we find a Lambert series representation of $\theta_4^n$ for each even $n$? If not, for which $n$ we can find one and for which we cannot?

References

: Proving $\left(\sum_{n=-\infty}^\infty q^{n^2} \right)^2 = \sum_{n=-\infty}^\infty \frac{1}{\cos(n \pi \tau)}$ ,(Note that $\theta_4(q)=\theta_3(-q)$)

: Eric W. Weisstein, Sum of Squares Function,Mathworld.(25),(The line below references proofs). Link

: George E. Andrews, Richard Lewis and Zhi-Guo Liu, An identity relating a theta function to a sum of Lambert series, (7)-(9).

This question has been edited. For more information about how I obtained these results, check the original version of this post.

$\displaystyle \large \mathbf{Progress}\,\mathbf{Report}$

Thanks to Paramanand Singh (see his answer below) I've been able to make some progress. Again, we set $q=e^{-\pi x}$ and $$\theta_2 \equiv \theta_2(q)= \sum_{n \in \mathbb{Z}} q^{(n+\frac12)^2}\\\theta_3\equiv \theta_3(q)=\sum_{n \in \mathbb{Z}} q^{n^2}\\\theta_4\equiv \theta_4(q)=\sum_{n \in \mathbb{Z}}(-1)^n q^{n^2}$$ We also have the relations $$\theta_2^4+\theta_4^4=\theta_3^4 \\ \theta_2(e^{-\pi/x})=\frac1{\sqrt{x}}\theta_4(e^{-\pi x}) \\ \theta_3(e^{-\pi/x})=\frac1{\sqrt{x}}\theta_3(e^{-\pi x})\tag{9}$$ I will omit all the intermediate steps and just state what I've found so far, and also some other related identities which I've not proven, but match numerically. So, using Singh's formulas (changing $q$ to $-q$ and rewriting in terms of hyperbolic functions), I get that $$\int_0^{\infty} \frac{\theta_4^{10}}{1+x^2}dx=\frac{768 \beta(4)}{5 \pi^4}-\frac{32}{75}-2\int_0^{\infty} \frac{\theta_2^4\theta_4^6}{1+x^2}dx\tag{10}$$ $$\int_0^{\infty} \frac{\theta_4^{12}}{1+x^2}dx=\frac{450 \zeta(5)}{\pi^5}-\int_0^{\infty} \frac{\theta_2^4\theta_3^4\theta_4^4}{1+x^2}dx\tag{11}$$ Notice that $(10)$ and $(11)$ are a bit different from the expressions I wrote in the comments on Singh's answer. Numerical evidence suggests that: $$\int_0^{\infty} \frac{\theta_2^4\theta_3^4\theta_4^4}{1+x^2}dx=\frac23\int_0^{\infty} \theta_2^4\theta_3^4\theta_4^4 dx\tag{12}$$ $$\int_0^{\infty} \frac{\theta_2^4\theta_3^4\theta_4^2}{1+x^2}dx=\frac83\int_0^{\infty} \theta_2^2\theta_3^4\theta_4^4 dx\tag{13}$$ $$\int_0^{\infty} \theta_2^4\theta_4^2dx=\int_0^{\infty} \theta_2^2\theta_4^2dx=1\tag{14}$$ $$\int_0^{\infty} \frac{\theta_2^4\theta_4^4}{1+x^2}dx=\frac{8\zeta(3)}{\pi^3}\tag{15}$$ $$\int_0^{\infty} \frac{\theta_2^4\theta_4^2}{1+x^2}dx=\frac23\tag{16}$$ All of these just make me more confident that an ultimate colsed form for both $(10)$ ,$(11)$ and higher power combinations of theta functions exist. As a side note, these integrals identities can be translated into identites about lattice sums, by expanding the theta functions into their series definition.

• Expressing the function $\vartheta_{3}^{k}(q)$ in the form of a Lambert series is related to finding a formula for expressing a positive integer $n$ as sum of $k$ squares in terms of divisor functions of $n$. I checked the book "Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Work" by G. H. Hardy and on page 135 Hardy mentions that Liouville and Eisentein found formulas for sum of $k$ squares for $k = 10$ and $k = 12$ respectively. This means that Lambert series for $\vartheta_{3}^{10}(q), \vartheta_{3}^{12}(q)$ are available. Contd.. May 29, 2016 at 10:55
• And by changing $q$ into $-q$ we can get similar series for powers of $\vartheta_{4}(q)$. Unfortunately Hardy's book gives only the formulas for expressing $n$ as sum of $10$ squares. It does not give the corresponding Lambert series. May 29, 2016 at 10:57
• @ParamanandSingh Thank you, that was very helpful. I assumed that finding these lambert series was the convenient way to prove theorems about the sum of squares functions, and not the other way around. I found this article (MIilne) which includes a very interesting discussion on the sum of sqaures functions and gives explicit closed forms for $\theta_4^{16}$ and $\theta_4^{24}$ (along with dozens other formulas). May 31, 2016 at 14:49
• For example: with $$U_k=\sum_{n=1}^{\infty} \frac{(-1)^{n+1} n^k q^n}{1+q^n},$$ we have $$\theta_4^{16}=1-\frac{32}{3}(U_1+U_3+U_5)+\frac{256}{3}(U_1 U_5 -U_3^2)$$ May 31, 2016 at 14:54
• Thanks man for the link to Milne's article! And yes for general $k$ the problem of representing a number as sum of $k$ squares is solved via Lambert series expression for $\vartheta_{3}^{k}(q)$. For small values of $k$ (for example $k = 2, 4$) there are approaches from elementary number theory without the use of theta functions. May 31, 2016 at 16:28

This is a sequel to my comments to the question which was too long to fit in another comment.

We have the formulas for $\vartheta_{3}^{10}(q), \vartheta_{3}^{12}(q)$ from Topics in Analytic Number Theory by Rademacher (famous for proving an infinite series formula to calculate the number of partitions of a positive integer) on page 198: \begin{align} \vartheta_{3}^{10}(q) &= 1 + \frac{4}{5}\left\{\sum_{n = 1}^{\infty}\frac{2n^{4}q^{n}}{1 + q^{2n}} + \sum_{n = 1}^{\infty}(-1)^{n - 1}\frac{(2n - 1)^{4}q^{2n - 1}}{1 - q^{2n - 1}}\right\} + \frac{2}{5}\vartheta_{3}^{2}(q)\vartheta_{2}^{4}(q)\vartheta_{4}^{4}(q)\tag{1}\\ \vartheta_{3}^{12}(q) &= 1 + 8\sum_{n = 1}^{\infty}\frac{n^{5}q^{n}}{1 - q^{2n}} - 8\sum_{n = 1}^{\infty}(-1)^{n}\frac{n^{5}q^{2n}}{1 - q^{2n}} + \vartheta_{2}^{4}(q)\vartheta_{3}^{4}(q)\vartheta_{4}^{4}(q)\tag{2} \end{align}

Finding a general formula for $\vartheta_{3}^{k}(q)$ for even positive integer $k$ is a difficult problem but using the methods given in Rademacher's book it looks like it is possible to obtain such formulas at the cost of heavy symbolic manipulation for a specific $k$.

Update: I found one pattern in your formulas by using the substitution $x = K'(k)/K(k)$ so that when $x = 0$ then $k = 1$ and when $x = \infty$ then $k = 0$ and moreover $$\frac{dx}{dk} = -\frac{\pi}{2kk'^{2}K^{2}}$$ so that the integral of $\vartheta_{4}^{2n}(e^{-\pi x})/(1 + x^{2})$ is transformed into $$\int_{0}^{1}\left(\frac{2k'K}{\pi}\right)^{n}\frac{1}{K^{2} + K'^{2}}\frac{\pi}{2kk'^{2}}\,dk = \left(\frac{2}{\pi}\right)^{n - 1}\int_{0}^{1}\frac{k^{-1}k^{'(n - 2)}K^{n}}{K^{2} + K'^{2}}\,dk$$ and that explains (at least to some extent) the occurrence of $\dfrac{1}{\pi^{n - 1}}$ in your formulas.

Next it is easy to prove one of the formulas in $(14)$. We have $$\vartheta_{2}^{2}\vartheta_{4}^{2} = kk'(2K/\pi)^{2}$$ and hence $$\int_{0}^{\infty}\vartheta_{2}^{2}\vartheta_{4}^{2}\,dx = \int_{0}^{1}kk'\cdot\frac{4K^{2}}{\pi^{2}}\cdot\frac{\pi}{2kk'^{2}K^{2}}\,dk = \frac{2}{\pi}\int_{0}^{1}\frac{dk}{\sqrt{1 - k^{2}}} = 1$$ I wonder if similar technique can be applied to prove other formulas.

If $q = e^{-\pi x}$ then $dx = -\dfrac{dq}{\pi q}$ and interval $(0, \infty)$ changes to $(0, 1)$ and hence we can express the first integral of $(14)$ as $$\frac{1}{\pi}\int_{0}^{1}\vartheta_{2}^{4}(q)\vartheta_{4}^{2}(q)\,\frac{dq}{q} = \frac{16}{\pi}\int_{0}^{1}\psi^{4}(q^{2})\phi^{2}(-q)\,dq$$ Next $$\psi^{4}(q^{2}) = \sum_{n = 0}^{\infty}\frac{(2n + 1)q^{2n}}{1 - q^{4n + 2}}, \phi^{2}(-q) = 1 + 4\sum_{n = 1}^{\infty}\frac{(-1)^{n}q^{n}}{1 + q^{2n}}$$ I wonder if you can utilize the above Lambert series to prove that the desired integral is equal to $1$. It appears that if we express the integrand as a Lambert series then it can also be expressed as the logarithmic derivative of some product of theta functions and the integral can be evaluated. See this paper regarding some integrals related to theta functions (all of it was given by Ramanujan in his lost notebook).

• Thank you very much for that formula for $\theta_4^{12}$! Using this, I obtained $$\int_0^{\infty} \frac{\theta_4^{12}(e^{-\pi x})}{1+x^2} dx=\frac{450 \zeta(5)}{\pi^5}-\frac23 \int_0^{\infty} \theta_2^4(e^{-\pi x}) \theta_3^4(e^{-\pi x}) \theta_4^4(e^{-\pi x})dx,$$ which kinda reminds me of equation $(4)$ in the OP. A bit stuck on that last integral, but that was certainly helpful, so I am accepting this answer. May 31, 2016 at 19:38
• After some more work and some guesses, using your formula for $\theta_4^{10}$ I obtain $$\int_0^{\infty} \frac{\theta_4^{10}(e^{-\pi x})}{1+x^2} dx=\frac{768 \beta(4)}{5 \pi^4}+\frac{32}{75}-\frac{16}{15} \int_0^{\infty} \theta_2^2(e^{-\pi x}) \theta_3^4(e^{-\pi x}) \theta_4^4(e^{-\pi x})dx,$$ where $\beta$ is Dirichlet's. Jun 1, 2016 at 11:35
• So $\beta(4)/\pi^4$ does appear, just as I expected (see the OP's original version). As an aside, a quick look at these identities suggests that there is some pattern here. In particular, it is nice how nicely terms cancel out at the end when evaluating these integrals. It is also nice how all these identities have "weight" 1. Jun 1, 2016 at 11:43
• Wow! That's such a natural substitution to do and I completely missed it. That certainly sheds some light on this nature of these closed forms. Also, notice that $\theta_4^2(e^{-\pi x}) \theta_2^2(e^{-\pi x}) dx$ is invariant under $x \mapsto 1/x$, so expanding the theta functions into series identity $(14)$ that you've prove can be restated as: $$\sum_{ (a,b,c,d) \in \mathbb{Z}^4} \frac{(-1)^{a+b} e^{-\pi(a^2+b^2+(c+1/2)^2 + (d+1/2)^2)}}{a^2 +b^2 + (c+1/2)^2+(d+1/2)^2} = \frac{ \pi}{2}$$ which is one beautiful series. Jun 2, 2016 at 11:23
• @nospoon: I must say that you have done a remarkable work here in this post. You should perhaps organize all your proofs and publish it somewhere (say a blog or a journal if you have access). And yes you should post these integral identities (the ones whose proof you are still searching) as separate questions on MSE. Maybe some on the giants (you are also one of them) of integrals fame would solve it. Jun 2, 2016 at 15:11

Are you still interested on a solution of that problem. I found a solution for $$\int_0^{\infty} \frac{\theta_4^2}{1+x^2} dx=1 \tag{2}$$ and it seems to be a reasonable way to solve the general problem .
{"ft_lang_label":"__label__en","ft_lang_prob":0.6974342,"math_prob":0.99996233,"size":4788,"snap":"2022-27-2022-33","text_gpt3_token_len":1807,"char_repetition_ratio":0.19627926,"word_repetition_ratio":0.0,"special_character_ratio":0.3964077,"punctuation_ratio":0.06925499,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000013,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-09T10:23:07Z\",\"WARC-Record-ID\":\"<urn:uuid:e522da85-a77c-4f3b-b001-fce6c27ee35f>\",\"Content-Length\":\"256794\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2355ae97-b1ad-4f20-acce-fd4d7144077e>\",\"WARC-Concurrent-To\":\"<urn:uuid:a9ba4097-9804-4093-9afb-5f49daacea2f>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/1760270/closed-form-of-an-integral-involving-a-jacobi-theta-function-int-0-infty\",\"WARC-Payload-Digest\":\"sha1:ZOHUN4AOOPGSD2S52W5MXVFDZ2VDGMYE\",\"WARC-Block-Digest\":\"sha1:6MFUK53I4V7DRSKRDYDCFQ4XLXZFJ634\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882570921.9_warc_CC-MAIN-20220809094531-20220809124531-00359.warc.gz\"}"}