MHB How Is the Integral of the Square of Log-Sine Calculated?

  • Thread starter Thread starter The Lord
  • Start date Start date
  • Tags Tags
    Integrate Square
AI Thread Summary
The integral of the square of the logarithm of the sine function, given by $$\int_0^{\pi/2} (\log \sin x)^2 dx$$, is evaluated using differentiation of the sine integral in terms of the gamma function. The result is shown to be $$\frac{1}{24} \left(\pi^3 + 12 \pi \log^2(2)\right)$$. The discussion highlights the tedious nature of differentiating gamma and digamma functions to arrive at the solution. An alternative method involving the Beta function is suggested, which simplifies the process by differentiating the Beta function twice with respect to its parameters. The conversation emphasizes the complexity of the integral and the potential for more elegant solutions.
The Lord
Messages
4
Reaction score
0
Prove that

$$\int_0^{\pi/2} (\log \sin x )^2 dx = \frac{1}{24} \left(\pi ^3+12 \pi \log^2(2)\right)$$
 
Mathematics news on Phys.org
Hi! :D
I think I know how to solve this integral but my method is a little tedious. Anyway I will post my solution.

Let $\displaystyle I(n) = \int_0^{\pi/2}\sin ^n (x)dx$

$I(n)$ can be evaluated in terms of gamma function.

$$ I(n)= \int_0^{\pi/2}\sin ^n (x)dx = \frac{\sqrt{\pi} \Gamma \left( \frac{1+n}{2}\right)}{2\Gamma \left( 1+\frac{n}{2}\right)}$$

Differentiating with respect to n

$$ I'(n) = \int_0^{\pi/2}\sin^n (x) \log(\sin x) dx = \\ \frac{\sqrt{\pi} \Gamma \left( \frac{1+n}{2}\right)}{4\Gamma \left( 1+\frac{n}{2}\right)} \left( \psi \left( \frac{1+n}{2}\right) -\psi\left( 1+\frac{n}{2}\right)\right) \tag{1}$$

Let n=0

$$ I'(0) = \int_0^{\pi/2}\log(\sin x)dx = \frac{\sqrt{\pi} \sqrt{\pi}}{4} \left( \gamma -\gamma -2\ln(2)\right) = \frac{-\pi}{2}\ln(2)$$

$\gamma$ is the Euler-Mascheroni Constant. For the Square of Log-Sine we must differentiate (1) again.

$$I''(n)=\int_0^{\pi/2}\sin^n(x) (\log(\sin x))^2 dx = \frac{\sqrt{\pi } \Gamma\left(\frac{1+n}{2}\right) \psi\left(1+\frac{n}{2}\right)^2}{8 \Gamma\left(1+\frac{n}{2}\right)}- \\ \frac{\sqrt{\pi } \Gamma\left(\frac{1+n}{2}\right) \psi\left(1+\frac{n}{2}\right) \psi\left(\frac{1+n}{2}\right)}{4 \Gamma\left(1+\frac{n}{2}\right)}+ \frac{\sqrt{\pi } \Gamma\left(\frac{1+n}{2}\right) \psi\left(\frac{1+n}{2}\right)^2}{8 \Gamma\left(1+\frac{n}{2}\right)}- \\ \frac{\sqrt{\pi } \Gamma\left(\frac{1+n}{2}\right) \psi_1 \left(1+\frac{n}{2}\right)}{8 \Gamma \left(1+\frac{n}{2}\right)} + \frac{\sqrt{\pi } \Gamma\left(\frac{1+n}{2}\right)\psi_1\left(\frac{1+n}{2}\right)}{8 \Gamma\left(1+\frac{n}{2}\right)} \tag{2}$$

$\psi_1(z)$ is the PolyGamma Function. Put n=0.

$$I''(0) =\int_0^{\pi/2}\left( \log \sin x\right)^2 dx = \frac{1}{24}\left( \pi^3 +2\pi \log^2(2)\right)$$

Here, I have used

$\psi_1 \left( \frac{1}{2}\right)=\frac{\pi^2}{2}$

$\psi_1 \left( 1\right) = \frac{\pi^2}{6}$

$\psi \left( \frac{1}{2}\right) = -\gamma -2\ln(2)$

$\psi(1) = -\gamma$

and $\Gamma \left( \frac{1}{2}\right)=\sqrt{\pi}$

As I mentioned before, differentiating all the gamma and digamma can be tedious. Maybe Mr.Lord has a more elegant method in mind?
 
Last edited:
sbhatnagar said:
As I mentioned before, differentiating all the gamma and digamma can be tedious. Maybe Mr.Lord has a more elegant method in mind?

Great! This was my approach as well. (Yes)
 
Interesting problem...

The thing to do here is to consider the Beta function:

$$B(p,q)=2\int_0^{\pi/2}\sin^{2p-1}x\cos^{2q-1}\,dx\equiv \frac{2\Gamma(p)\Gamma(q)}{\Gamma(p+q)}$$Now differentiate $$\frac{2\Gamma(p)\Gamma(q)}{\Gamma(p+q)}$$ twice w.r.t $$p$$, which will give an expression in terms of the Beta function, Digamma, and Trigamma functions. Then set $$q=p=1/2$$, since:

$$\frac{d^2}{dp^2} B(p,q)\, \Bigg|_{p=q=1/2}\equiv\int_0^{\pi/2}\log^2(\sin x)\,dx$$
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Back
Top