Answer: The Integral That Squares Its Sine
Key Idea / Intuition
The integrand x/tanx=xcosx/sinx 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 x with αx and differentiate with respect to α, reducing the derivative to a familiar form.
Formal Proof / Solution
Step 1: Parameterize.
Define
I(α)=∫0π/2sinxsin(αx)dx,α≥0.
Notice that
I′(α)=∫0π/2x⋅sinxcos(αx)dx.
At α=1 this is exactly our integral I=I′(1).
Step 2: Compute I′(α) directly.
Differentiate I(α) again with respect to α:
I′′(α)=−∫0π/2x2sinxsin(α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⋅sinxcosxdx. Let u=x, dv=sinxcosxdx, so du=dx, v=ln(sinx). Then
I=[xln(sinx)]0π/2−∫0π/2ln(sinx)dx.
Step 4: Evaluate the boundary term.
At x=π/2: (π/2)ln(sin(π/2))=(π/2)ln1=0.
At x=0: we need limx→0+xln(sinx). Since sinx∼x, we get xln(x)→0.
So the boundary term vanishes.
Step 5: Recall the classic log-sine integral.
∫0π/2ln(sinx)dx=−2πln2.
(This is a standard result, provable by the doubling argument using sin(2x)=2sinxcosx.)
Step 6: Conclude.
I=0−(−2πln2)=2πln2.
Verification of the log-sine result (sketch): Let J=∫0π/2ln(sinx)dx. By symmetry J=∫0π/2ln(cosx)dx, so 2J=∫0π/2ln(sinxcosx)dx=∫0π/2ln(21sin2x)dx=−2πln2+J, giving J=−2πln2. ✓