The value of the integral \(\int_{0}^{\frac{\pi}{4}}\displaystyle\log_e (1+\tan x)\,dx\) is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(\displaystyle\frac{\pi}{16}\log_e4\)
Let
\( \displaystyle I = \int_0^{\pi/4}\log_e(1+\tan x)\,dx \qquad (1) \)
By the property \(\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx\), replace x by \(\frac{\pi}{4} - x\):
\( \displaystyle I = \int_0^{\pi/4}\log_e\left(1+\tan\left(\frac{\pi}{4}-x\right)\right)dx \)
Using \(\tan(A - B)\) with \(\tan\frac{\pi}{4} = 1\):
\( \displaystyle 1+\tan\left(\frac{\pi}{4}-x\right) = 1+\frac{1-\tan x}{1+\tan x} \)
\( \displaystyle = \frac{2}{1+\tan x} \)
So
\( \displaystyle I = \int_0^{\pi/4}\left(\log_e 2 - \log_e(1+\tan x)\right)dx \)
\( \displaystyle = \frac{\pi}{4}\log_e 2 - I \qquad \text{by (1)} \)
Hence
\( \displaystyle 2I = \frac{\pi}{4}\log_e 2 \)
\( \displaystyle I = \frac{\pi}{8}\log_e 2 \)
The options are written with \(\log_e 4 = 2\log_e 2\):
\( \displaystyle \frac{\pi}{8}\log_e 2 = \frac{\pi}{16}\times 2\log_e 2 = \frac{\pi}{16}\log_e 4 \)
NCERT (2026-27 edition):
Some Properties of Definite Integrals
