The integral \(I=\int\displaystyle\frac{e^x}{1-e^{2x}}\,dx\) is equal to:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(\displaystyle\frac{1}{2}\left[-\log|1-e^x|+\log(1+e^x)\right]+C\)
Since \(e^{2x} = (e^x)^2\), the substitution \(t = e^x\) works:
\( dt = e^x\,dx \)
\( \displaystyle I = \int\frac{dt}{1-t^2} \)
Using the standard integral \(\int\frac{dt}{1-t^2} = \frac{1}{2}\log\left|\frac{1+t}{1-t}\right|+C\):
\( \displaystyle I = \frac{1}{2}\left[\log|1+t|-\log|1-t|\right]+C \)
\( \displaystyle = \frac{1}{2}\left[-\log|1-e^x|+\log(1+e^x)\right]+C \)