Answer: The Integral That Loves a Log-Sine Cousin
Key Idea / Intuition
This integral looks intimidating, but integration by parts converts it into something we already know: the beloved ∫0π/2ln(sinx)dx=−2πln2. The boundary term vanishes by a well-known limit, and what remains is a clean classical value. The key insight is that cotx is the derivative of ln(sinx), so IBP naturally hands the problem back to the log-sine world.
Formal Proof / Solution
Step 1: Integration by Parts
Set u=x and dv=cotxdx=dxd[lnsinx]dx. Then:
du=dx,v=ln(sinx).
I=[xln(sinx)]0π/2−∫0π/2ln(sinx)dx.
Step 2: 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 near 0, we have xln(sinx)≈xlnx→0 as x→0+.
So the boundary term =0−0=0.
Step 3: Use the Classical Log-Sine Integral
∫0π/2ln(sinx)dx=−2πln2.
(This is a classical result, provable by the duplication trick: write the integral as half of ∫0πln(sinx)dx, then use the identity sinx=2sin(x/2)cos(x/2).)
Step 4: Combine
I=0−(−2πln2)=2πln2.
Why this is satisfying: The integral ∫0π/2xcotxdx naively seems harder than the log-sine integral, but IBP shows it is exactly the negative of it (up to a vanishing boundary term). One classical integral unlocks another.