๐Ÿงฎ Brain Teaser

The Wallis-Type Product Integral

Evaluate the integral

I=โˆซ0ฯ€/2lnโก(sinโกx+cosโกx)โ€‰dx.I = \int_0^{\pi/2} \ln(\sin x + \cos x)\, dx.

logarithmic integralCatalan's constantsymmetryamplitude-phase formln(sin)

Answer: Wallis-Type Product Integral

Key Idea / Intuition

The key trick is to rewrite sinโกx+cosโกx\sin x + \cos x as a single sinusoidal function using the amplitude-phase form: sinโกx+cosโกx=2sinโก(x+ฯ€/4)\sin x + \cos x = \sqrt{2}\sin(x + \pi/4). This converts the integral into a known form involving lnโก(sinโก)\ln(\sin) over a shifted interval โ€” and the classic result โˆซ0ฯ€/2lnโก(sinโกx)โ€‰dx=โˆ’ฯ€2lnโก2\int_0^{\pi/2} \ln(\sin x)\,dx = -\frac{\pi}{2}\ln 2 does all the heavy lifting. The shift of the interval can be handled by symmetry and periodicity.


Formal Proof / Solution

Step 1: Rewrite the argument.

Use the identity: sinโกx+cosโกx=2โ€‰sinโกโ€‰โฃ(x+ฯ€4).\sin x + \cos x = \sqrt{2}\,\sin\!\left(x + \frac{\pi}{4}\right).

So: I=โˆซ0ฯ€/2lnโกโ€‰โฃ(2โ€‰sinโกโ€‰โฃ(x+ฯ€4))dx=โˆซ0ฯ€/212lnโก2โ€‰dx+โˆซ0ฯ€/2lnโกโ€‰โฃ(sinโกโ€‰โฃ(x+ฯ€4))dx.I = \int_0^{\pi/2} \ln\!\left(\sqrt{2}\,\sin\!\left(x + \frac{\pi}{4}\right)\right) dx = \int_0^{\pi/2} \frac{1}{2}\ln 2\, dx + \int_0^{\pi/2} \ln\!\left(\sin\!\left(x + \frac{\pi}{4}\right)\right) dx.

The first part gives: 12lnโก2โ‹…ฯ€2=ฯ€lnโก24.\frac{1}{2}\ln 2 \cdot \frac{\pi}{2} = \frac{\pi \ln 2}{4}.

Step 2: Evaluate the shifted integral.

Let u=x+ฯ€/4u = x + \pi/4, so du=dxdu = dx and xโˆˆ[0,ฯ€/2]x \in [0, \pi/2] maps to uโˆˆ[ฯ€/4,โ€‰3ฯ€/4]u \in [\pi/4, \, 3\pi/4]:

โˆซ0ฯ€/2lnโกโ€‰โฃ(sinโกโ€‰โฃ(x+ฯ€4))dx=โˆซฯ€/43ฯ€/4lnโก(sinโกu)โ€‰du.\int_0^{\pi/2} \ln\!\left(\sin\!\left(x + \frac{\pi}{4}\right)\right) dx = \int_{\pi/4}^{3\pi/4} \ln(\sin u)\, du.

Step 3: Use the symmetry of lnโก(sinโกu)\ln(\sin u).

Since lnโก(sinโกu)\ln(\sin u) is symmetric about u=ฯ€/2u = \pi/2 (i.e., sinโก(ฯ€โˆ’u)=sinโกu\sin(\pi - u) = \sin u), the integral over [ฯ€/4,3ฯ€/4][\pi/4, 3\pi/4] can be related to the full integral over [0,ฯ€][0, \pi].

The full interval symmetry gives: โˆซ0ฯ€lnโก(sinโกu)โ€‰du=2โˆซ0ฯ€/2lnโก(sinโกu)โ€‰du=2โ‹…(โˆ’ฯ€2lnโก2)=โˆ’ฯ€lnโก2.\int_0^{\pi} \ln(\sin u)\, du = 2\int_0^{\pi/2} \ln(\sin u)\, du = 2 \cdot \left(-\frac{\pi}{2}\ln 2\right) = -\pi \ln 2.

Now split: โˆซ0ฯ€lnโก(sinโกu)โ€‰du=โˆซ0ฯ€/4lnโก(sinโกu)โ€‰du+โˆซฯ€/43ฯ€/4lnโก(sinโกu)โ€‰du+โˆซ3ฯ€/4ฯ€lnโก(sinโกu)โ€‰du.\int_0^{\pi} \ln(\sin u)\,du = \int_0^{\pi/4} \ln(\sin u)\,du + \int_{\pi/4}^{3\pi/4} \ln(\sin u)\,du + \int_{3\pi/4}^{\pi} \ln(\sin u)\,du.

By the substitution uโ†ฆฯ€โˆ’uu \mapsto \pi - u, the first and last pieces are equal: โˆซ3ฯ€/4ฯ€lnโก(sinโกu)โ€‰du=โˆซ0ฯ€/4lnโก(sinโกu)โ€‰du.\int_{3\pi/4}^{\pi} \ln(\sin u)\,du = \int_0^{\pi/4} \ln(\sin u)\,du.

So: โˆซฯ€/43ฯ€/4lnโก(sinโกu)โ€‰du=โˆ’ฯ€lnโก2โˆ’2โˆซ0ฯ€/4lnโก(sinโกu)โ€‰du.\int_{\pi/4}^{3\pi/4} \ln(\sin u)\,du = -\pi\ln 2 - 2\int_0^{\pi/4} \ln(\sin u)\,du.

Step 4: Evaluate โˆซ0ฯ€/4lnโก(sinโกu)โ€‰du\int_0^{\pi/4} \ln(\sin u)\,du.

Use the known result (derivable from the reflection formula or the Fourier series of lnโกsinโก\ln \sin): โˆซ0ฯ€/4lnโก(sinโกu)โ€‰du=โˆ’ฯ€4lnโก2โˆ’G2,\int_0^{\pi/4} \ln(\sin u)\,du = -\frac{\pi}{4}\ln 2 - \frac{G}{2}, where G=โˆ‘n=0โˆž(โˆ’1)n(2n+1)2G = \sum_{n=0}^\infty \frac{(-1)^n}{(2n+1)^2} is Catalan's constant.

Therefore: โˆซฯ€/43ฯ€/4lnโก(sinโกu)โ€‰du=โˆ’ฯ€lnโก2โˆ’2โ€‰โฃ(โˆ’ฯ€4lnโก2โˆ’G2)=โˆ’ฯ€lnโก2+ฯ€2lnโก2+G=โˆ’ฯ€2lnโก2+G.\int_{\pi/4}^{3\pi/4} \ln(\sin u)\,du = -\pi\ln 2 - 2\!\left(-\frac{\pi}{4}\ln 2 - \frac{G}{2}\right) = -\pi\ln 2 + \frac{\pi}{2}\ln 2 + G = -\frac{\pi}{2}\ln 2 + G.

Step 5: Combine.

I=ฯ€lnโก24+(โˆ’ฯ€2lnโก2+G)=ฯ€lnโก24โˆ’ฯ€lnโก22+G=โˆ’ฯ€lnโก24+G.I = \frac{\pi\ln 2}{4} + \left(-\frac{\pi}{2}\ln 2 + G\right) = \frac{\pi\ln 2}{4} - \frac{\pi\ln 2}{2} + G = -\frac{\pi \ln 2}{4} + G.

I=Gโˆ’ฯ€4lnโก2,\boxed{I = G - \frac{\pi}{4}\ln 2,}

where Gโ‰ˆ0.9159โ€ฆG \approx 0.9159\ldots is Catalan's constant.

Sanity check: Numerically, Gโˆ’ฯ€4lnโก2โ‰ˆ0.9159โˆ’0.5440=0.3719G - \frac{\pi}{4}\ln 2 \approx 0.9159 - 0.5440 = 0.3719, and direct numerical integration of โˆซ0ฯ€/2lnโก(sinโกx+cosโกx)โ€‰dxโ‰ˆ0.3719\int_0^{\pi/2}\ln(\sin x + \cos x)\,dx \approx 0.3719. โœ“

Type: IntegrationEdit on GitHub โ†—