The integral \(\mathrm{I} = \int e^x\left(\displaystyle\frac{1 + \sin x}{1 + \cos x}\right)dx\) is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(e^x\tan\left(\displaystyle\frac{x}{2}\right) + C\), where C is a constant
Using the half-angle formulas \(1 + \cos x = 2\cos^2\frac{x}{2}\) and \(\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2}\):
\( \displaystyle \frac{1 + \sin x}{1 + \cos x} = \frac{1}{2\cos^2\frac{x}{2}} + \frac{2\sin\frac{x}{2}\cos\frac{x}{2}}{2\cos^2\frac{x}{2}} \)
\( \displaystyle = \frac{1}{2}\sec^2\frac{x}{2} + \tan\frac{x}{2} \)
Let \(f(x) = \tan\frac{x}{2}\). Then
\( \displaystyle f'(x) = \frac{1}{2}\sec^2\frac{x}{2} \)
so the integrand is \(e^x\left(f(x) + f'(x)\right)\). By the standard result \(\int e^x\left(f(x) + f'(x)\right)dx = e^x f(x) + C\):
\( \displaystyle \mathrm{I} = e^x\tan\frac{x}{2} + C \)
NCERT (2026-27 edition):
Integration by Parts

