🧮 Brain Teaser

The Integral That Squares Its Sine

Evaluate the definite integral

I=∫0π/2xtan⁡x dx.I = \int_0^{\pi/2} \frac{x}{\tan x}\, dx.

integration by partslog-sine integralFeynman trickdefinite integral

Answer: The Integral That Squares Its Sine

Key Idea / Intuition

The integrand x/tan⁡x=xcos⁡x/sin⁡xx/\tan x = x \cos x / \sin x looks unpleasant to integrate directly. The key insight is to introduce a parameter and differentiate under the integral sign (Feynman's trick), turning the problem into one we can handle via a known log-sine integral. Concretely, replace xx with αx\alpha x and differentiate with respect to α\alpha, reducing the derivative to a familiar form.


Formal Proof / Solution

Step 1: Parameterize.

Define I(α)=∫0π/2sin⁡(αx)sin⁡x dx,α≥0.I(\alpha) = \int_0^{\pi/2} \frac{\sin(\alpha x)}{\sin x}\, dx, \quad \alpha \geq 0.

Notice that I′(α)=∫0π/2x⋅cos⁡(αx)sin⁡x dx.I'(\alpha) = \int_0^{\pi/2} x \cdot \frac{\cos(\alpha x)}{\sin x}\, dx.

At α=1\alpha = 1 this is exactly our integral I=I′(1)I = I'(1).

Step 2: Compute I′(α)I'(\alpha) directly.

Differentiate I(α)I(\alpha) again with respect to α\alpha: I′′(α)=−∫0π/2x2sin⁡(αx)sin⁡x dx.I''(\alpha) = -\int_0^{\pi/2} x^2 \frac{\sin(\alpha x)}{\sin x}\, dx.

That's getting harder. Let's try a different route.

Step 3: Use integration by parts on the original integral.

Write I=∫0π/2x⋅cos⁡xsin⁡x dxI = \int_0^{\pi/2} x \cdot \frac{\cos x}{\sin x}\, dx. Let u=xu = x, dv=cos⁡xsin⁡x dxdv = \frac{\cos x}{\sin x}\,dx, so du=dxdu = dx, v=ln⁡(sin⁡x)v = \ln(\sin x). Then

I=[xln⁡(sin⁡x)]0π/2−∫0π/2ln⁡(sin⁡x) dx.I = \Big[x \ln(\sin x)\Big]_0^{\pi/2} - \int_0^{\pi/2} \ln(\sin x)\, dx.

Step 4: Evaluate the boundary term.

At x=π/2x = \pi/2: (π/2)ln⁡(sin⁡(π/2))=(π/2)ln⁡1=0(\pi/2)\ln(\sin(\pi/2)) = (\pi/2)\ln 1 = 0.

At x=0x = 0: we need lim⁡x→0+xln⁡(sin⁡x)\lim_{x\to 0^+} x\ln(\sin x). Since sin⁡x∼x\sin x \sim x, we get xln⁡(x)→0x \ln(x) \to 0.

So the boundary term vanishes.

Step 5: Recall the classic log-sine integral.

∫0π/2ln⁡(sin⁡x) dx=−π2ln⁡2.\int_0^{\pi/2} \ln(\sin x)\, dx = -\frac{\pi}{2}\ln 2.

(This is a standard result, provable by the doubling argument using sin⁡(2x)=2sin⁡xcos⁡x\sin(2x) = 2\sin x\cos x.)

Step 6: Conclude.

I=0−(−π2ln⁡2)=πln⁡22.I = 0 - \left(-\frac{\pi}{2}\ln 2\right) = \boxed{\dfrac{\pi\ln 2}{2}}.


Verification of the log-sine result (sketch): Let J=∫0π/2ln⁡(sin⁡x) dxJ = \int_0^{\pi/2}\ln(\sin x)\,dx. By symmetry J=∫0π/2ln⁡(cos⁡x) dxJ = \int_0^{\pi/2}\ln(\cos x)\,dx, so 2J=∫0π/2ln⁡(sin⁡xcos⁡x) dx=∫0π/2ln⁡ ⁣(12sin⁡2x)dx=−π2ln⁡2+J2J = \int_0^{\pi/2}\ln(\sin x \cos x)\,dx = \int_0^{\pi/2}\ln\!\left(\tfrac{1}{2}\sin 2x\right)dx = -\tfrac{\pi}{2}\ln 2 + J, giving J=−π2ln⁡2J = -\tfrac{\pi}{2}\ln 2. ✓

Type: IntegrationEdit on GitHub ↗