Integrate the rational functions in Exercises 1 to 21.
Integrate the rational function: \(\frac{1}{(e^x - 1)}\) [Hint : Put \(e^x = t\)]Show solutionHide solution
Let \(t=e^x\). Then \(dt=e^x\,dx=t\,dx\), so \(dx=\frac{dt}{t}\). Since \(t=e^x>0\), we have \(t\neq0\). The integrand is defined when \(e^x-1\neq0\), i.e. \(x\neq0\); the answer below is valid on either interval \(x<0\) or \(x>0\).
Thus \[ \int \frac{1}{e^x-1}\,dx=\int \frac{1}{t(t-1)}\,dt. \] For \(t\neq0,1\), partial fractions give \[ \frac{1}{t(t-1)}=\frac{1}{t-1}-\frac{1}{t}. \] Hence \[ \int \frac{1}{t(t-1)}\,dt=\int\left(\frac{1}{t-1}-\frac{1}{t}\right)dt=\ln|t-1|-\ln|t|+C. \] Substituting back \(t=e^x\), \[ \int \frac{1}{e^x-1}\,dx=\ln|e^x-1|-\ln(e^x)+C=\ln|e^x-1|-x+C. \] Equivalently, since \(e^x>0\), \[ \ln|e^x-1|-\ln e^x=\ln\left|\frac{e^x-1}{e^x}\right|=\ln|1-e^{-x}|. \] Therefore \[ \boxed{\int \frac{1}{e^x-1}\,dx=\ln|1-e^{-x}|+C} \] (equivalently \(\ln|e^x-1|-x+C\)), valid on intervals not containing \(x=0\).
Check: \(\frac{d}{dx}\bigl(\ln|1-e^{-x}|\bigr)=\frac{e^{-x}}{1-e^{-x}}=\frac{1}{e^x-1}\).