Evaluate ∫(0 to π/2) log(sin x) dx — JEE Advanced level definite integral

hard JEE-ADVANCED JEE Advanced 2019 3 min read

Question

Evaluate the definite integral:

0π/2log(sinx)dx\int_0^{\pi/2} \log(\sin x) \, dx

(JEE Advanced 2019, similar pattern)


Solution — Step by Step

We know the classic property: 0af(x)dx=0af(ax)dx\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx.

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

Replace xx with π/2x\pi/2 - x:

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

So II equals both 0π/2log(sinx)dx\int_0^{\pi/2} \log(\sin x)\,dx and 0π/2log(cosx)dx\int_0^{\pi/2} \log(\cos x)\,dx. This symmetry is the key.

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

Using the identity sinxcosx=sin2x2\sin x \cos x = \frac{\sin 2x}{2}:

2I=0π/2log(sin2x2)dx2I = \int_0^{\pi/2} \log\left(\frac{\sin 2x}{2}\right)dx
2I=0π/2log(sin2x)dx0π/2log2dx2I = \int_0^{\pi/2} \log(\sin 2x)\,dx - \int_0^{\pi/2} \log 2\,dx

The second integral is straightforward:

0π/2log2dx=π2log2\int_0^{\pi/2} \log 2\,dx = \frac{\pi}{2}\log 2

For the first integral, substitute t=2xt = 2x, so dt=2dxdt = 2\,dx:

0π/2log(sin2x)dx=120πlog(sint)dt\int_0^{\pi/2} \log(\sin 2x)\,dx = \frac{1}{2}\int_0^{\pi} \log(\sin t)\,dt

Since sin(πt)=sint\sin(\pi - t) = \sin t, the function log(sint)\log(\sin t) is symmetric about t=π/2t = \pi/2 on [0,π][0, \pi].

120πlog(sint)dt=1220π/2log(sint)dt=I\frac{1}{2}\int_0^{\pi} \log(\sin t)\,dt = \frac{1}{2} \cdot 2\int_0^{\pi/2} \log(\sin t)\,dt = I

So we get: 2I=Iπ2log22I = I - \frac{\pi}{2}\log 2

2II=π2log22I - I = -\frac{\pi}{2}\log 2 I=π2log2\boxed{I = -\frac{\pi}{2}\log 2}

The negative sign makes sense — sinx1\sin x \leq 1 on [0,π/2][0, \pi/2], so log(sinx)0\log(\sin x) \leq 0 throughout the interval.


Why This Works

The entire solution hinges on a symmetry trick: replacing xx with π/2x\pi/2 - x converts sin\sin to cos\cos, giving us two forms of the same integral. Adding them brings in the double-angle identity, which introduces a substitution that loops back to the original integral II.

This “self-referencing” technique — where manipulating II produces an equation in II itself — is a hallmark of definite integral problems at the JEE Advanced level. The integral cannot be computed by finding an antiderivative (there is no closed-form antiderivative of log(sinx)\log(\sin x)), so these symmetry-based tricks are the only way forward.


Alternative Method — Using Fourier Series

For those comfortable with series, log(sinx)\log(\sin x) has the Fourier expansion:

log(sinx)=log2k=1cos2kxk\log(\sin x) = -\log 2 - \sum_{k=1}^{\infty} \frac{\cos 2kx}{k}

Integrating term by term from 00 to π/2\pi/2:

I=π2log2k=11k0π/2cos2kxdxI = -\frac{\pi}{2}\log 2 - \sum_{k=1}^{\infty} \frac{1}{k}\int_0^{\pi/2}\cos 2kx\,dx

Each integral 0π/2cos2kxdx=sin(kπ)2k=0\int_0^{\pi/2}\cos 2kx\,dx = \frac{\sin(k\pi)}{2k} = 0 for all positive integers kk.

So I=π2log2I = -\frac{\pi}{2}\log 2. Same answer, confirmed.

This integral is a standard result that appears frequently in JEE Advanced. Memorise the answer: 0π/2log(sinx)dx=π2ln2\int_0^{\pi/2} \log(\sin x)\,dx = -\frac{\pi}{2}\ln 2. It also shows up as a sub-step in harder integrals involving log(sinx+cosx)\log(\sin x + \cos x) or log(tanx)\log(\tan x).


Common Mistake

Students often try to find an antiderivative of log(sinx)\log(\sin x) using integration by parts. This leads to cotxdx\int \cot x\,dx nested inside further integrals, creating an endless loop. The function log(sinx)\log(\sin x) does not have a closed-form antiderivative — you must use the definite integral properties (symmetry, King’s rule) to evaluate it. If you find yourself doing IBP on this problem, stop and switch strategy.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next