$\int \frac{e^x}{\left(2+e^x\right)\left(e^x+1\right)} d x=$ (where $C$ is $a$ constant of integration.)

$\int \frac{e^x}{\left(2+e^x\right)\left(e^x+1\right)} d x=$ (where $C$ is $a$ constant of integration.)
  1. $\frac{e^x+1}{e^x+2}+C$
  2. $\log \left(\frac{e^x+2}{e^x+1}\right)+C$
  3. $\log \left(\frac{e^x+1}{e^x+2}\right)+C$
  4. $\log \left(\frac{e^x}{e^x+2}\right)+C$

Solution

$\begin{aligned} & \int \frac{e^x}{\left(2+e^x\right)\left(e^x+1\right)} d x \\ & =\int \frac{d t}{(t+2)(t+1)}=\int\left(\frac{-1}{t+2}+\frac{1}{t+1}\right) d t \\ & =-\log |t+2|+\log |t+1|+c \\ & =\log \left|\frac{t+1}{t+2}\right|+c \\ & =\log \left|\frac{e^x+1}{e^x+2}\right|+c\end{aligned}$

Asked in: MHT CET 2022 (07 Aug Shift 1)

Practice more Indefinite Integration questions on Aicharya