Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How to evaluate this integral ? $$\int_0^{\frac{\pi}{2}}(\ln(\tan x))^2dx$$ I changed it to $$\int_{-\infty}^{\infty}\frac{x^2e^x}{e^{2x}+1}dx$$ Thanks in advance.

share|cite|improve this question

1 Answer 1

The integral is $$I=\int_{-\infty}^\infty\frac{x^2e^x}{e^{2x}+1}=2J$$Where, $$J=\int_{0}^\infty\frac{x^2e^x}{e^{2x}+1}dx=\int_{0}^{\infty}\frac{x^2e^{-x}}{e^{-2x}+1}dx=\int_{0}^{\infty}x^2e^{-x}\sum_{k=0}^{\infty}(-1)^k e^{-2kx}dx\\=\sum_{k=0}^{\infty}(-1)^k\int_{0}^{\infty}x^2e^{-(2k+1)x}dx\quad(\mbox{Can be justified by Fubini's theorem})\\ =\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k+1)^3}\Gamma(3)$$ The answer provided by RonGordon to this series can be found in the link provided by him. This shows that the integral evaluates to $\frac{\pi^3}{8}$.

share|cite|improve this answer
WolframAlpha spat out an answer of $\frac{\pi^3}{8}$. It would be nice if we could equate your series to that value. My gut tells it's already been demonstrated somewhere on this site. – David H Feb 20 '14 at 15:13
I'm trying to find its value. – Samrat Mukhopadhyay Feb 20 '14 at 15:41
Thanks @RonGordon for the link to the series. – Samrat Mukhopadhyay Feb 20 '14 at 16:53
Thank you very much – kong Feb 20 '14 at 17:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.