{"id":210,"date":"2020-06-01T12:11:38","date_gmt":"2020-06-01T12:11:38","guid":{"rendered":"https:\/\/integralsandseries.in\/?p=210"},"modified":"2025-11-16T11:16:03","modified_gmt":"2025-11-16T11:16:03","slug":"fourier-series-of-the-log-gamma-function-and-vardis-integral","status":"publish","type":"post","link":"https:\/\/integralsandseries.in\/?p=210","title":{"rendered":"Fourier Series of the Log-Gamma Function and Vardi&#8217;s Integral"},"content":{"rendered":"\n<p>\nIn this post, we will compute the Fourier series expansion of the Log-Gamma function and use it to prove the beautiful Vardi&#8217;s integral:\n$$\\int_0^1 \\frac{\\log\\log \\left(\\frac{1}{x}\\right)}{1+x^2}dx = \\frac{\\pi}{2}\\log\\left(\\sqrt{2\\pi}\\frac{\\Gamma\\left(\\frac{3}{4}\\right)}{\\Gamma\\left(\\frac{1}{4}\\right)} \\right)$$\n<\/p>\n\n<p><b>Fourier Series of the Log-Gamma Function:<\/b><\/p>\n<p>For $s\\in (0,1)$, we have\n$$\n\\log \\Gamma(s) = \\left(\\frac{1}{2}-s \\right)(\\gamma + \\log 2)-\\frac{1}{2}\\log(\\sin (\\pi s)) + (1-s) \\log(\\pi) + \\frac{1}{\\pi}\\sum_{n=1}^\\infty \\frac{\\sin(2\\pi n s)\\log n}{n} \\quad \\color{blue}{(1)}\n$$\n<\/p>\n\n\n\n<p>\n<b>Proof: <\/b> It suffices to do the following integrals:\n$$\n\\begin{aligned}\n\\int_0^1 \\log \\Gamma (s) \\; ds &amp;= \\frac{1}{2}\\log(2\\pi) \\\\\n\\int_0^1 \\log \\Gamma(s) \\cos(2\\pi n s)\\; ds &amp;= \\frac{1}{4n} \\quad \\forall n\\in \\mathbb{Z}^+ \\\\\n\\int_0^1 \\log \\Gamma(s) \\sin(2\\pi n s)\\; ds &amp;= \\frac{\\gamma + \\log(2n\\pi )}{2n\\pi}\\quad \\forall n\\in \\mathbb{Z}^+\n\\end{aligned}\n$$\n<\/p>\n\n\n\n<p>\nThe first integral can be evaluated with the help of Euler&#8217;s reflection formula:\n$$\n\\begin{aligned}\n\\int_0^1 \\log \\Gamma(s) \\; ds &amp;= \\frac{1}{2} \\int_0^1 \\log \\Gamma(s) \\; ds + \\frac{1}{2}\\int_0^1 \\log \\Gamma(1-s) \\; ds \\\\\n&amp;= \\frac{1}{2}\\int_0^1 \\log\\left(\\frac{\\pi}{\\sin(\\pi s)} \\right)\\; ds \\\\\n&amp;= \\frac{\\log (\\pi)}{2} &#8211; \\frac{1}{2}\\int_0^1 \\log(\\sin(\\pi s))\\; ds \\\\\n&amp;= \\frac{\\log(2\\pi)}{2}\n\\end{aligned}\n$$\n<\/p>\n<p>\nThe second integral can also be dealt in a similar way. We have:\n$$\n\\begin{aligned}\n\\int_0^1 \\log \\Gamma(s) \\cos(2\\pi n s)\\; ds &amp;= \\frac{1}{2}\\int_0^1 \\log \\Gamma(s) \\cos(2\\pi n s)\\; ds + \\frac{1}{2}\\int_0^1 \\log \\Gamma(1-s) \\cos(2\\pi n (1-s))\\; ds \\\\\n&amp;= \\frac{1}{2}\\int_0^1 \\log\\left(\\frac{\\pi}{\\sin(\\pi s)} \\right)\\cos(2\\pi n s)\\; ds \\\\\n&amp;= -\\frac{1}{2}\\int_0^1 \\log(2\\sin(\\pi s))\\cos(2\\pi n s)\\; ds \\\\\n&amp;= \\frac{1}{2}\\int_0^1 \\left(\\sum_{k=1}^\\infty \\frac{\\cos(2\\pi k s)}{k} \\right)\\cos(2\\pi n s)\\; ds \\\\\n&amp;= \\frac{1}{2}\\sum_{k=1}^\\infty \\frac{1}{k}\\int_0^1 \\cos(2\\pi k s)\\cos(2\\pi n s)\\; ds \\\\\n&amp;= \\frac{1}{4n}\n\\end{aligned}\n$$\n\nIn the above calculation, we used the well known Fourier series:\n$$\\log(2\\sin (\\pi s)) = -\\sum_{k=1}^\\infty \\frac{\\cos(2\\pi k s)}{k} \\quad \\forall s\\in (0,1) \\quad\\quad \\color{blue}{(2)}$$\n<\/p>\n\n\n\n<p>\nThe third integral is the most troublesome of all since the trick involving Euler&#8217;s reflection formula does not work. We will instead use the following integral representation of the Log-Gamma function:\n$$\n\\log \\Gamma(s) = \\int_0^\\infty \\left(\\frac{s-1}{t e^t} -\\frac{1-e^{t(1-s)}}{t(e^t-1)}\\right) dt \\quad \\forall s&gt;0\n$$\nOne can easily verify the above equation via the differentiation under the integral technique. Therefore, upon changing the order of integration we get:\n$$\n\\begin{aligned}\n\\int_0^1 \\log \\Gamma(s) \\sin(2\\pi n s)\\; ds &amp;= \\int_0^\\infty \\left(\\frac{1}{t e^t}\\int_0^1 s\\sin(2\\pi ns)\\; ds +\\frac{1}{t(e^t-1)}\\int_0^1e^{t(1-s)}\\sin(2\\pi n s)\\; ds  \\right)dt \\\\\n&amp;= \\int_0^\\infty \\left[\\frac{1}{t e^t}\\left(-\\frac{1}{2\\pi n}\\right) +\\frac{1}{t(e^t-1)}\\left(\\frac{2\\pi n (e^t-1)}{t^2 + (2\\pi n)^2} \\right)  \\right]dt \\\\\n&amp;= \\int_0^\\infty \\left(-\\frac{1}{2\\pi n t e^t} + \\frac{2\\pi n}{t\\left( t^2 + (2\\pi n)^2 \\right)} \\right)dt \\\\\n&amp;= \\frac{1}{2\\pi n}\\int_0^\\infty\\left(-\\frac{1}{te^t} +\\frac{1}{t}-\\frac{t}{t^2 + (2\\pi n)^2} \\right) dt \\\\\n&amp;= \\frac{1}{2\\pi n}\\left(\\gamma + \\left[ \\log t &#8211; \\log (t) e^{-t} &#8211; \\frac{1}{2}\\log\\left( t^2 + (2\\pi n)^2 \\right)\\right]_{t=0}^\\infty  \\right) \\\\\n&amp;= \\frac{\\gamma + \\log(2\\pi n)}{2\\pi n}\n\\end{aligned}\n$$\n<\/p>\n<p>To get equation (1), one needs to piece together all these calculations. Equation (2) along with the result:\n$$\n\\pi \\left(\\frac{1}{2}- s\\right) = \\sum_{k=1}^\\infty \\frac{\\sin(2\\pi k s)}{k} \\quad \\forall s\\in (0,1)\n$$\nare needed to perform simplifications.\n<\/p>\n\n\n\n<p>\nNow, we turn our attention to the Vardi&#8217;s integral:\n$$\n\\begin{aligned}\nI &amp;= \\int_0^1 \\frac{\\log\\log \\left(\\frac{1}{x}\\right)}{1+x^2}dx \\\\ &amp;= \\int_0^\\infty \\frac{\\log(t) e^{-t}}{1 + e^{-2t}}dt \\\\\n&amp;= \\int_0^\\infty \\log(t)\\sum_{n=0}^\\infty (-1)^n e^{-(2n+1)t} \\; dt\\\\\n&amp;= \\sum_{n=0}^\\infty (-1)^n \\int_0^\\infty \\log (t) e^{-(2n+1)t}\\; dt \\\\\n&amp;= -\\sum_{n=0}^\\infty (-1)^n \\left(\\frac{\\log(2n+1)}{2n+1}+\\frac{\\gamma}{2n+1} \\right) \\\\\n&amp;=  -\\frac{\\gamma \\pi}{4}-\\sum_{n=1}^\\infty \\frac{\\sin\\left(\\frac{\\pi n}{2}\\right)\\log n}{n} \\quad \\color{blue}{(3)}\n\\end{aligned}\n$$\nTo get the value of the sum, plug $s=\\frac{1}{4}$ in equation (1). \n$$\n\\sum_{n=1}^\\infty \\frac{\\sin\\left(\\frac{\\pi n}{2}\\right)\\log n}{n} = \\pi \\log \\Gamma\\left(\\frac{1}{4}\\right) &#8211; \\frac{\\gamma \\pi}{4} &#8211; \\frac{\\pi \\log 2}{2}- \\frac{3\\pi}{4}\\log(\\pi)\n$$ \nSubstituting the above into equation (3) and performing some simplifications gives the desired result.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we will compute the Fourier series expansion of the Log-Gamma function and use it to prove the beautiful Vardi&#8217;s integral: $$\\int_0^1 \\frac{\\log\\log \\left(\\frac{1}{x}\\right)}{1+x^2}dx = \\frac{\\pi}{2}\\log\\left(\\sqrt{2\\pi}\\frac{\\Gamma\\left(\\frac{3}{4}\\right)}{\\Gamma\\left(\\frac{1}{4}\\right)} \\right)$$ Fourier Series of the Log-Gamma Function: For $s\\in (0,1)$, we have &hellip; <a href=\"https:\/\/integralsandseries.in\/?p=210\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":51,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":1183,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/1183"}],"wp:attachment":[{"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}