∫₀^π/2 log(sin x) dx — Famous Definite Integral

hard JEE-MAIN JEE-ADVANCED JEE Advanced 2024 3 min read

Question

Evaluate the definite integral:

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

This is a JEE Advanced favourite — it appears almost every 3-4 years in some form. The trick is not computation; it’s recognizing which property to apply.


Solution — Step by Step

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

We use the reflection property: 0af(x)dx=0af(ax)dx\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx. With a=π/2a = \pi/2, replacing xx with (π/2x)(\pi/2 - x):

I=0π/2log ⁣(sin ⁣(π2x))dx=0π/2log(cosx)dxI = \int_0^{\pi/2} \log\!\left(\sin\!\left(\tfrac{\pi}{2} - x\right)\right) dx = \int_0^{\pi/2} \log(\cos x)\, dx

We now have two equal-looking integrals. Adding them:

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

Write sinxcosx=sin2x2\sin x \cos x = \frac{\sin 2x}{2}. The log splits:

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 trivial: 0π/2log2dx=π2log2\int_0^{\pi/2} \log 2\, dx = \frac{\pi}{2}\log 2.

For J=0π/2log(sin2x)dxJ = \int_0^{\pi/2} \log(\sin 2x)\, dx, substitute t=2xt = 2x, so dt=2dxdt = 2\,dx:

J=120πlog(sint)dtJ = \frac{1}{2}\int_0^{\pi} \log(\sin t)\, dt

Now use the property 0πlog(sint)dt=20π/2log(sint)dt\int_0^{\pi} \log(\sin t)\, dt = 2\int_0^{\pi/2} \log(\sin t)\, dt. (This follows because sin(πt)=sint\sin(\pi - t) = \sin t, so the function is symmetric about π/2\pi/2.)

J=122I=IJ = \frac{1}{2} \cdot 2I = I

Substituting back:

2I=Iπ2log22I = I - \frac{\pi}{2}\log 2 I=π2log2I = -\frac{\pi}{2}\log 2 0π/2log(sinx)dx=π2log2\boxed{\int_0^{\pi/2} \log(\sin x)\, dx = -\frac{\pi}{2}\log 2}

Why This Works

The reflection property 0af(x)dx=0af(ax)dx\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx doesn’t change the value of the integral — it just relabels where we’re integrating from. For a=π/2a = \pi/2, it converts sinx\sin x to cosx\cos x, which is the key move here.

Adding the two forms lets us combine logsin+logcos\log \sin + \log \cos into log(sin2x/2)\log(\sin 2x/2), which creates a self-referential equation: the new integral JJ turns out to equal II itself after a substitution. This “I appears on both sides” technique is the hallmark of this entire class of problems.

The result is negative because log(sinx)<0\log(\sin x) < 0 for all x(0,π/2)x \in (0, \pi/2)sinx\sin x lives strictly between 0 and 1 there, and log\log of a number less than 1 is negative. So a negative answer is physically expected.


Alternative Method

For NEET or board-level: this integral can also be remembered as a standard result — 0π/2log(sinx)dx=0π/2log(cosx)dx=π2log2\int_0^{\pi/2} \log(\sin x)\, dx = \int_0^{\pi/2} \log(\cos x)\, dx = -\frac{\pi}{2}\log 2. Both integrals give the same value (which Step 1 proves directly).

Some JEE problems present this in disguise by asking 0π/2log(cosx)dx\int_0^{\pi/2} \log(\cos x)\, dx or even 0πlog(sinx)dx\int_0^{\pi} \log(\sin x)\, dx. For the latter, use the symmetry argument from Step 4: 0πlog(sinx)dx=2I=πlog2\int_0^{\pi} \log(\sin x)\, dx = 2I = -\pi \log 2.


Common Mistake

The most frequent error is misapplying the symmetry in Step 4. Students write 0πlog(sint)dt=0π/2log(sint)dt\int_0^{\pi} \log(\sin t)\, dt = \int_0^{\pi/2} \log(\sin t)\, dt (forgetting the factor of 2). The function sint\sin t is symmetric about t=π/2t = \pi/2 on [0,π][0, \pi], which means the integral over [0,π][0, \pi] is twice the integral over [0,π/2][0, \pi/2]. Missing this factor of 2 gives I=π4log2I = -\frac{\pi}{4}\log 2 — half the correct answer.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next