🧮 Brain Teaser
Integration
Integral of ln(sin x)
2026-05-09
✏︎

The Integral of ln(sinx)\ln(\sin x)

Evaluate the definite integral

I=0π/2ln(sinx)dx.I = \int_0^{\pi/2} \ln(\sin x)\, dx.

definite integralsymmetryduplication tricklogarithmic integralclassic

Answer: Integral of ln(sin x)

Key Idea / Intuition

The trick is a beautiful symmetry + duplication argument. Write II using the substitution xπ/2xx \mapsto \pi/2 - x to get I=0π/2ln(cosx)dxI = \int_0^{\pi/2} \ln(\cos x)\,dx as well. Then add the two copies of II together and use the product-to-sum identity sinxcosx=12sin(2x)\sin x \cos x = \frac{1}{2}\sin(2x). A single substitution then reduces the resulting integral back to II itself, giving a clean equation to solve.


Formal Proof / Solution

Step 1: Symmetry.

By the substitution xπ2xx \mapsto \tfrac{\pi}{2} - x,

I=0π/2ln(cosx)dx.I = \int_0^{\pi/2} \ln(\cos x)\, dx.

Step 2: Add the two copies.

2I=0π/2ln(sinx)dx+0π/2ln(cosx)dx=0π/2ln(sinxcosx)dx.2I = \int_0^{\pi/2} \ln(\sin x)\, dx + \int_0^{\pi/2} \ln(\cos x)\, dx = \int_0^{\pi/2} \ln(\sin x \cos x)\, dx.

Use the identity sinxcosx=sin2x2\sin x \cos x = \dfrac{\sin 2x}{2}:

2I=0π/2ln ⁣(sin2x2)dx=0π/2ln(sin2x)dx0π/2ln2dx.2I = \int_0^{\pi/2} \ln\!\left(\frac{\sin 2x}{2}\right) dx = \int_0^{\pi/2} \ln(\sin 2x)\, dx - \int_0^{\pi/2} \ln 2\, dx.

Step 3: Substitute u=2xu = 2x in the first piece.

0π/2ln(sin2x)dx=120πln(sinu)du.\int_0^{\pi/2} \ln(\sin 2x)\, dx = \frac{1}{2}\int_0^{\pi} \ln(\sin u)\, du.

Now use the symmetry of sin\sin about π/2\pi/2:

0πln(sinu)du=20π/2ln(sinu)du=2I.\int_0^{\pi} \ln(\sin u)\, du = 2\int_0^{\pi/2} \ln(\sin u)\, du = 2I.

So 0π/2ln(sin2x)dx=122I=I\displaystyle\int_0^{\pi/2} \ln(\sin 2x)\,dx = \frac{1}{2}\cdot 2I = I.

Step 4: Solve for II.

2I=Iπ2ln22I = I - \frac{\pi}{2}\ln 2

I=π2ln2.I = -\frac{\pi}{2}\ln 2.

Result:

0π/2ln(sinx)dx=π2ln2.\boxed{\int_0^{\pi/2} \ln(\sin x)\, dx = -\frac{\pi}{2}\ln 2.}

Why it's surprising: The integral of a function that diverges to -\infty at the endpoint x=0x=0 gives a clean closed form involving π\pi and ln2\ln 2 — two of the most fundamental constants in mathematics, linked here by a symmetry argument rather than any residue or special-function machinery.


Written to: questions/2025-07-18-PM.md | Answer: questions/2025-07-18-PM-answer.md

Type: IntegrationEdit on GitHub ↗