{"id":349,"date":"2020-07-05T19:55:22","date_gmt":"2020-07-05T19:55:22","guid":{"rendered":"https:\/\/integralsandseries.in\/?p=349"},"modified":"2025-11-16T11:21:51","modified_gmt":"2025-11-16T11:21:51","slug":"an-alternating-euler-sum","status":"publish","type":"post","link":"https:\/\/integralsandseries.in\/?p=349","title":{"rendered":"An alternating Euler Sum"},"content":{"rendered":"\n<p>\nIn this post, we will evaluate the famous Euler sum:\n$$\\sum_{n=1}^\\infty (-1)^{n+1}\\frac{H_n}{n^3}\\quad \\color{blue}{\\cdots (*)} $$\nwhere $H_n = \\sum_{k=1}^n \\frac{1}{k}=\\int_0^1 \\frac{1-t^n}{1-t}dt$ is the $n$-th harmonic number. This series resists contour integration techniques which makes it&#8217;s computation quite challenging. We will start with the following well known generating function identity:\n$$\\sum_{n=1}^\\infty H_n t^n = -\\frac{\\log(1-t)}{1-t} ,\\quad -1 \\leq t &lt; 1 $$\nDividing the above equation by $t$ and integrating both sides, gives us:\n$$\n\\begin{aligned}\n\\sum_{n=1}^\\infty H_n \\frac{x^n}{n} &amp;= -\\int_0^x\\frac{\\log(1-t)}{t(1-t)}dt \\\\\n&amp;= -\\int_0^x \\left(\\frac{1}{t} + \\frac{1}{1-t} \\right)\\log(1-t) \\; dt \\\\\n&amp;= \\text{Li}_2(x) + \\frac{1}{2}\\log^2(1-x) \n\\end{aligned}\n$$\nwhere $-1\\leq x &lt; 1$.<\/p>\n<h2>1. Computation of $\\sum_{n=1}^\\infty \\frac{H_n}{n^2}x^n$<\/h2>\n<p>\nNow, we will use the same process to evaluate $\\sum_{n=1}^\\infty \\frac{H_n}{n^2}x^n$ but we&#8217;ll have to divide the evaluation into two parts.\n<\/p>\n\n\n\n<p>\n<b>(I)<\/b> First consider the case when $0 \\leq x &lt; 1$. We don&#8217;t need this for evaluating (*) but I&#8217;ll do it anyway for completeness. We have:\n$$\n\\begin{aligned}\n\\sum_{n=1}^\\infty \\frac{H_n}{n^2} x^n &amp;= \\int_0^x\\left(\\frac{\\text{Li}_2(t)}{t} + \\frac{1}{2}\\frac{\\log^2(1-t)}{t}\\right)dt \\\\\n&amp;= \\text{Li}_3(x) + \\frac{1}{2}\\int_0^x \\frac{\\log^2(1-t)}{t} dt \\\\\n&amp;= \\text{Li}_3(x) + \\frac{1}{2}\\int_{\\log(1-x)}^0 \\frac{t^2 e^t}{1-e^t}dt \\quad (t\\mapsto 1-e^t) \\\\\n&amp;= \\text{Li}_3(x) + \\frac{1}{2}\\sum_{n=1}^\\infty \\int_{\\log(1-x)}^0 t^2 e^{nt} \\; dt \\\\\n&amp;= \\text{Li}_3(x) + \\frac{1}{2}\\sum_{n=1}^\\infty \\left(\\frac{2}{n^3} -\\frac{\\log^2(1-x)}{n}(1-x)^n+\\frac{2\\log(1-x)}{n^2}(1-x)^n-2\\frac{(1-x)^n}{n^3}\\right) \\\\\n&amp;= \\text{Li}_3(x) + \\frac{\\log^2(1-x)\\log(x)}{2} + \\log(1-x)\\text{Li}_2(1-x) &#8211; \\text{Li}_3(1-x) + \\zeta(3) \\quad\\color{blue}{\\cdots (1)}\n\\end{aligned}\n$$\n<b>(II)<\/b> Similarly, for the case $-1\\leq x &lt; 0$, we obtain:\n<\/p>\n<p style=\"font-size:0.87em\">\n$$\n\\begin{aligned}\n\\sum_{n=1}^\\infty \\frac{H_n}{n^2}x^n &amp;= \\text{Li}_3(x) -\\frac{1}{2}\\int_x^0 \\frac{\\log^2(1-t)}{t}dt \\\\\n&amp;= \\text{Li}_3(x) +\\frac{1}{2}\\int_{0}^{-x} \\frac{\\log^2(1+t)}{t}dt \\quad (t\\mapsto -t) \\\\\n&amp;= \\text{Li}_3(x) +\\frac{1}{2}\\int_{0}^{\\log(1-x)} \\frac{t^2 e^t}{e^t-1}dt \\quad (t\\mapsto e^t-1) \\\\\n&amp;= \\text{Li}_3(x) +\\frac{1}{2} \\sum_{n=0}^\\infty \\int_0^{\\log(1-x)} t^2 e^{-nt} dt \\\\\n&amp;= \\text{Li}_3(x) +\\frac{\\log^3(1-x)}{6} + \\frac{1}{2}\\sum_{n=1}^\\infty \\int_0^{\\log(1-x)} t^2 e^{-nt} dt \\\\\n&amp;= \\text{Li}_3(x) +\\frac{\\log^3(1-x)}{6} + \\frac{1}{2}\\sum_{n=1}^\\infty \\left(\\frac{2}{n^3} -\\log^2(1-x)\\frac{(1-x)^{-n}}{n}-2\\log(1-x)\\frac{(1-x)^{-n}}{n^2}-2\\frac{(1-x)^{-n}}{n^3}\\right) \\\\\n&amp;= \\text{Li}_3(x) -\\frac{\\log^3(1-x)}{3} +\\frac{\\log^2(1-x)\\log(-x)}{2} -\\log(1-x)\\text{Li}_2\\left( \\frac{1}{1-x}\\right)-\\text{Li}_3\\left(\\frac{1}{1-x}\\right)+\\zeta(3) \\\\\n&amp;\\quad\\color{blue}{\\cdots (2)}\n\\end{aligned}\n$$\n<\/p>\n\n\n\n<h2>2. Evaluation of $\\sum_{n=1}^\\infty \\frac{H_n}{n^3}x^n$<\/h2>\n<p>\nThis is the hardest step in the evaluation. Once again, we will divide the evaluation into two parts. <\/p>\n<p>\n<b>(I)<\/b> Similar to section 1, we&#8217;ll first consider the case when $0\\leq x &lt; 1$.  \n<\/p>\n<p>Using integration by parts, we obtain:\n$$\n\\begin{aligned}\n\\int_0^x \\frac{\\zeta(3)-\\text{Li}_3(1-t)}{t}dt &amp;= \\log(t)\\left(\\zeta(3)-\\text{Li}_3(1-t) \\right) \\Big|_{0}^x &#8211; \\int_0^x \\frac{\\log(t)\\text{Li}_2(1-t)}{1-t}dt \\\\\n&amp;= \\log(x)\\left(\\zeta(3)-\\text{Li}_3(1-x) \\right) &#8211; \\frac{1}{2}\\text{Li}_2^2 (1-x) + \\frac{\\zeta^2 (2)}{2} \\quad \\color{blue}{\\cdots (3)}\n\\end{aligned}\n$$\n<\/p>\n\n<p style=\"font-size:0.87em\">\n$$\n\\begin{aligned}\n\\int_0^x \\frac{\\log(1-t)\\text{Li}_2(1-t)}{t}dt &amp;= \\log(t)\\log(1-t)\\text{Li}_2(1-t) \\Big|_0^x &#8211; \\int_0^x \\log(t) \\left(\\frac{-\\text{Li}_2(1-t)}{1-t} + \\frac{\\log(1-t)\\log(t)}{1-t}\\right)dt \\\\\n&amp;= \\log(x)\\log(1-x)\\text{Li}_2(1-x) + \\frac{1}{2}\\text{Li}_2^2(1-x)-\\frac{\\zeta^2(2)}{2} &#8211; \\int_0^x \\frac{\\log^2(t) \\log(1-t)}{1-t}dt \\\\\n&amp;\\quad \\color{blue}{\\cdots (4)}\n\\end{aligned}\n$$\n<\/p>\n<p>\n$$\n\\begin{aligned}\n\\int_0^x \\frac{\\log(t)\\log^2(1-t)}{2t}dt &amp;= \\frac{1}{4}\\log^2(t)\\log^2(1-t)\\Big|_0^x +\\frac{1}{2}\\int_0^x \\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\\\\n&amp;= \\frac{1}{4}\\log^2(x)\\log^2(1-x) +\\frac{1}{2}\\int_0^x \\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\quad \\color{blue}{\\cdots (5)}\n\\end{aligned}\n$$\n<\/p>\n<p>\nPutting together the results of equations (3), (4) and (5) gives us:\n$$\n\\begin{aligned}\n\\sum_{n=1}^\\infty \\frac{H_n}{n^3}x^n &amp;= \\text{Li}_4(x) +\\frac{1}{4}\\log^2(x)\\log^2(1-x) + \\log(x)\\log(1-x)\\text{Li}_2(1-x)\\\\ &amp;\\quad + \\log(x)\\left(\\zeta(3)-\\text{Li}_3(1-x) \\right) -\\frac{1}{2}\\int_0^x \\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\quad \\color{blue}{\\cdots (6)}\n\\end{aligned}\n$$\n<\/p>\n<p>\n<b>(II)<\/b> Now, let $-1\\leq x &lt; 0$. We have:\n$$\n\\begin{aligned}\n-\\int_x^0 \\frac{\\zeta(3)-\\text{Li}_3\\left(\\frac{1}{1-t}\\right)}{t}dt &amp;= \\int_0^{\\frac{-x}{1-x}}\\frac{\\zeta(3)-\\text{Li}_3(1-t)}{t(1-t)}dt \\quad \\left(t\\mapsto\\frac{-t}{1-t} \\right)\\\\\n&amp;= \\int_0^{\\frac{-x}{1-x}}\\frac{\\zeta(3)-\\text{Li}_3(1-t)}{t}dt + \\int_0^{\\frac{-x}{1-x}}\\frac{\\zeta(3)-\\text{Li}_3(1-t)}{1-t}dt \\\\\n&amp;= \\log\\left(\\frac{-x}{1-x}\\right)\\left(\\zeta(3) &#8211; \\text{Li}_3\\left(\\frac{1}{1-x}\\right) \\right) &#8211; \\frac{1}{2}\\text{Li}_2^2\\left(\\frac{1}{1-x}\\right) + \\frac{\\zeta^2(2)}{2} \\\\\n&amp;\\quad + \\zeta(3)\\log(1-x) + \\text{Li}_4\\left(\\frac{1}{1-x} \\right) &#8211; \\zeta(4) \\quad \\color{blue}{\\cdots (7)}\n\\end{aligned}\n$$\nHere, we used equation (3) to simplify the integral after the transformation. Similarly, we obtain:\n$$\n\\begin{aligned}\n\\int_x^0 \\frac{\\log(1-t)\\text{Li}_2\\left(\\frac{1}{1-t}\\right)}{t}dt &amp;= \\int_0^{\\frac{-x}{1-x}}\\frac{\\log(1-t)\\text{Li}_2(1-t)}{t(1-t)}dt \\\\\n&amp;= \\int_0^{\\frac{-x}{1-x}}\\frac{\\log(1-t)\\text{Li}_2(1-t)}{t}dt + \\int_0^{\\frac{-x}{1-x}}\\frac{\\log(1-t)\\text{Li}_2(1-t)}{1-t}dt \\\\\n&amp;= -\\log\\left(\\frac{-x}{1-x} \\right)\\log(1-x)\\text{Li}_2\\left(\\frac{1}{1-x}\\right)+\\frac{1}{2}\\text{Li}_2^2\\left(\\frac{1}{1-x}\\right)-\\frac{\\zeta^2(2)}{2} \\\\\n&amp;\\quad +\\text{Li}_4\\left(\\frac{1}{1-x}\\right)+\\log(1-x)\\text{Li}_3\\left(\\frac{1}{1-x}\\right) -\\zeta(4) \\\\\n&amp;\\quad -\\int_0^{\\frac{-x}{1-x}}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt \n \\quad \\color{blue}{\\cdots (8)}\n\\end{aligned}\n$$\n<\/p>\n<p style=\"font-size:0.87em\">\n$$\n\\begin{aligned}\n\\int_x^0 \\left( \\frac{\\log^3(1-t)}{3t} &#8211; \\frac{\\log^2(1-t)\\log(-t)}{2t}\\right) dt &amp;= \\frac{1}{6}\\log^3(1-x)\\log\\left(\\frac{-x}{1-x}\\right) + \\frac{1}{24}\\log^4(1-x) \\\\\n&amp;\\quad +\\frac{1}{4}\\log^2\\left(\\frac{-x}{1-x}\\right)\\log^2(1-x) + \\frac{1}{2}\\int_0^{\\frac{-x}{1-x}}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\\\ &amp;\\quad \\color{blue}{\\cdots (9)}\n\\end{aligned}\n$$\n<\/p>\n<p>Finally, putting these results together gives:<\/p>\n<p style=\"font-size:0.87em\">\n$$\n\\begin{aligned}\n\\sum_{n=1}^\\infty \\frac{H_n}{n^3}x^n &amp;= \\text{Li}_4(x) + 2\\text{Li}_4\\left( \\frac{1}{1-x}\\right) + \\log\\left(\\frac{-x}{1-x} \\right)\\left(-\\text{Li}_3\\left(\\frac{1}{1-x}\\right) +\\frac{\\log^3(1-x)}{6}-\\log(1-x)\\text{Li}_2\\left(\\frac{1}{1-x} \\right)\\right) \\\\\n&amp;\\quad + \\log(1-x)\\text{Li}_3\\left(\\frac{1}{1-x}\\right) + \\frac{\\log^4(1-x)}{24} +\\frac{1}{4}\\log^2 \\left(\\frac{-x}{1-x}\\right)\\log^2(1-x) +\\zeta(3) \\log(-x)- 2\\zeta(4) \\\\\n&amp;\\quad -\\frac{1}{2}\\int_0^{\\frac{-x}{1-x}}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\quad \\color{blue}{\\cdots (10)}\n\\end{aligned}\n$$\n<\/p>\n<p>\nThe integral $\\int \\frac{\\log^2(t)\\log(1-t)}{1-t}dt$ can be evaluated in terms of Polylogarithms (refer to section 7.6 of &#8220;Polylogarithms and Associated Functions&#8221; by Leonard Lewin). Luckily for us, there is a much simpler was to evaluate this integral between the limits $0$ and $\\frac{1}{2}$. \n<\/p>\n\n\n\n<h2>3. Evaluation of $\\int_0^{\\frac{1}{2}}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt$<\/h2>\n<p>\nLet $I=\\int_0^{1}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt$ and $J=\\int_0^{\\frac{1}{2}}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt$. The integral, $I$, can be evaluated by the differentiation under the integral technique.\n$$\n\\begin{aligned}\nI &amp;= \\lim_{y\\to 0^+}\\lim_{x\\to 1}\\frac{\\partial^2 }{\\partial x^2} \\frac{\\partial }{\\partial y} \\int_0^1 t^{x-1} (1-t)^{y-1} dt \\\\\n&amp;= \\lim_{y\\to 0^+}\\lim_{x\\to 1}\\frac{\\partial^2 }{\\partial x^2} \\frac{\\partial }{\\partial y} \\left\\{\\frac{\\Gamma(x)\\Gamma(y)}{\\Gamma(x+y)} \\right\\}\n\\end{aligned}\n$$\nIt takes a bit of effort to compute the derivatives in terms of Polygamma functions so I won&#8217;t write the details here. One can easily verify that the end result is:\n$$I = -\\frac{\\pi^4}{180}$$\nNext, apply integration by parts to the integral $J$:\n$$\n\\begin{aligned}\nJ &amp;= \\int_0^{\\frac{1}{2}}\\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\\\\n&amp;= -\\frac{\\log^2(t)\\log^2(1-t)}{2}\\Big|_0^{\\frac{1}{2}} + \\int_0^{\\frac{1}{2}} \\frac{\\log(t)\\log^2(1-t)}{t}dt \\\\\n&amp;= -\\frac{\\log^4(2)}{2} + \\int_{\\frac{1}{2}}^1 \\frac{\\log^2(t)\\log(1-t)}{1-t}dt \\quad (t\\mapsto 1-t)\\\\\n&amp;= -\\frac{\\log^4(4)}{2} + I-J\n\\end{aligned}\n$$\nNow, one can solve the above equation for $J$ to get:\n$$\n\\begin{aligned}\nJ &amp;= -\\frac{\\log^4(2)}{4}+\\frac{I}{2} \\\\\n&amp;= -\\frac{\\log^4(2)}{4}-\\frac{\\pi^4}{360}\n\\end{aligned}\n$$\n<\/p>\n\n\n\n<p>\nFinally, we have every thing needed to evaluate (*). Plugging in $x=-1$ in equation (10) and performing some simplifications gives us the beautiful result:\n$$\n\\boxed{\\sum_{n=1}^\\infty \\frac{H_n}{n^3}(-1)^{n+1} = \\frac{11\\pi^4}{360}+\\frac{\\pi^2}{12}\\log^2(2)-\\frac{\\log^4(2)}{12}-\\frac{7}{4}\\log(2)\\zeta(3) -2\\text{Li}_4\\left(\\frac{1}{2}\\right)}\n$$\nA similar result is obtained by plugging $x=\\frac{1}{2}$ into equation (6):\n$$\n\\boxed{\\sum_{n=1}^\\infty \\frac{H_n}{n^3 2^n}= \\frac{\\pi^4}{720}+\\frac{\\log^4(2)}{24}-\\frac{1}{8}\\log(2)\\zeta(3) +\\text{Li}_4\\left(\\frac{1}{2}\\right)}\n$$\n<\/p>\n\n\n\n<h2>4. Further Results<\/h2>\n<p>\nLet $H_n^{(2)} = \\zeta(2) &#8211; \\psi_1(n+1) = \\sum_{k=1}^n \\frac{1}{k^2}$. Then, it is easy to verify that:\n$$\n\\sum_{n=1}^\\infty t^n H_n^{(2)} = \\frac{\\text{Li}_2(t)}{1-t}, \\quad -1\\leq t &lt; 1\n$$\nNow, dividing the above equation by $t$ and integrating both sides, gives us:\n$$\\begin{aligned}\n\\sum_{n=1}^\\infty \\frac{H_n^{(2)}}{n}x^n &amp;= \\int_0^x \\text{Li}_2(t)\\left( \\frac{1}{t}+\\frac{1}{1-t}\\right) \\\\\n&amp;= \\text{Li}_3(x) + \\int_0^x \\frac{\\text{Li}_2(t)}{1-t} dt \\\\\n&amp;= \\text{Li}_3(x) -\\log(1-x)\\text{Li}_2(x) &#8211; \\int_0^x \\frac{\\log^2(1-t)}{t}dt \\end{aligned}\n$$\nFrom our previous calculation, we know that\n$$\n\\int_0^x \\frac{\\log^2(1-t)}{t}dt = 2\\sum_{n=1}^\\infty \\frac{H_n}{n^2}x^n -2\\text{Li}_3(x)\n$$\nHence, we obtain the following relation:\n$$\\sum_{n=1}^\\infty \\frac{H_n^{(2)}}{n}x^n =3\\text{Li}_3(x)-\\log(1-x)\\text{Li}_2(x) &#8211; 2\\sum_{n=1}^\\infty \\frac{H_n}{n^2}x^n \\quad \\color{blue}{\\cdots (11)}$$\nOnce again, divide the above equation by $x$ and integrate both sides to get:\n$$\n\\sum_{n=1}^\\infty \\frac{H_n^{(2)}}{n^2}x^n = 3\\text{Li}_4(x) + \\frac{1}{2}\\text{Li}_2^2(x) &#8211; 2\\sum_{n=1}^\\infty \\frac{H_n}{n^3}x^n \\quad \\color{blue}{\\cdots (12)}\n$$\nEquations (11) and (12) are valid for $-1\\leq x &lt; 1$. Plugging in $x=\\frac{1}{2}$ in equation (12) and using the known closed form for $\\sum_{n=1}^\\infty \\frac{H_n}{n^3 2^n}$ gives us:\n$$\n\\boxed{ \\sum_{n=1}^\\infty \\frac{H_n^{(2)}}{n^2 2^n} = \\frac{\\pi^4}{1440}-\\frac{\\pi^2}{24}\\log^2(2) + \\frac{\\log^4(2)}{24}+ \\frac{1}{4}\\log(2)\\zeta(3) + \\text{Li}_4\\left(\\frac{1}{2}\\right) }\n$$\n<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we will evaluate the famous Euler sum: $$\\sum_{n=1}^\\infty (-1)^{n+1}\\frac{H_n}{n^3}\\quad \\color{blue}{\\cdots (*)} $$ where $H_n = \\sum_{k=1}^n \\frac{1}{k}=\\int_0^1 \\frac{1-t^n}{1-t}dt$ is the $n$-th harmonic number. This series resists contour integration techniques which makes it&#8217;s computation quite challenging. We will &hellip; <a href=\"https:\/\/integralsandseries.in\/?p=349\">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":[4,5],"class_list":["post-349","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-euler-sums","tag-polylogarithm"],"_links":{"self":[{"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts\/349","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=349"}],"version-history":[{"count":39,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":1186,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions\/1186"}],"wp:attachment":[{"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/integralsandseries.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}