$\int\left[\log (1+\cos x)-x \tan \left(\frac{x}{2}\right)\right] d x=$

$\int\left[\log (1+\cos x)-x \tan \left(\frac{x}{2}\right)\right] d x=$
  1. $x \log |x|+c$
  2. $x \log |1+\sin x|+c$
  3. $x \log \left|\tan \frac{x}{2}\right|+c$
  4. $x \log |1+\cos x|+c$

Solution

$\begin{aligned} I &=\int\left[\log (1+\cos x)-x \tan \left(\frac{x}{2}\right)\right] d x \\ I &=\int \log (1+\cos x) \cdot 1 d x-\int x \tan \frac{x}{2} d x \\ &=x \log (1+\cos x)-\int \frac{(-\sin x)(x)}{1+\cos x} d x-\int x \tan \frac{x}{2} \end{aligned}$ $=x \log (1+\cos x)+\int \frac{x\left(2 \sin \frac{x}{2} \cos \frac{x}{2}\right)}{2 \cos ^{2} \frac{x}{2}} d x-\int x \tan \frac{x}{2} d x$ $=x \log (1+\cos x)+\int x \tan \frac{x}{2} d x-\int x \tan \frac{x}{2} d x$ $=x \log (1+\cos x)+c$

Asked in: MHT CET 2020 (14 Oct Shift 2)

Practice more Indefinite Integration questions on Aicharya