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

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

Evaluate the definite integral

I=∫0π/2ln⁡(sin⁡x) 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↦π/2−xx \mapsto \pi/2 - x to get I=∫0π/2ln⁡(cos⁡x) 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 sin⁡xcos⁡x=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↦π2−xx \mapsto \tfrac{\pi}{2} - x,

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

Step 2: Add the two copies.

2I=∫0π/2ln⁡(sin⁡x) dx+∫0π/2ln⁡(cos⁡x) dx=∫0π/2ln⁡(sin⁡xcos⁡x) 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 sin⁡xcos⁡x=sin⁡2x2\sin x \cos x = \dfrac{\sin 2x}{2}:

2I=∫0π/2ln⁡ ⁣(sin⁡2x2)dx=∫0π/2ln⁡(sin⁡2x) dx−∫0π/2ln⁡2 dx.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⁡(sin⁡2x) dx=12∫0πln⁡(sin⁡u) 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⁡(sin⁡u) du=2∫0π/2ln⁡(sin⁡u) du=2I.\int_0^{\pi} \ln(\sin u)\, du = 2\int_0^{\pi/2} \ln(\sin u)\, du = 2I.

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

Step 4: Solve for II.

2I=I−π2ln⁡22I = I - \frac{\pi}{2}\ln 2

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

Result:

∫0π/2ln⁡(sin⁡x) dx=−π2ln⁡2.\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 ln⁡2\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 ↗