$$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}\mathrm dx$$
Once I've taken $e^{x/2}$ out from the denominator and the numerator, I thought of applying this property: $$\int\frac{f'(x)}{f(x)}\, \mathrm dx = \ln |f(x)|+C$$ But I am unable to manipulate my obtained expression using this property.
Let's use your approach:
$I=\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}\mathrm dx=2 \int\frac{\frac{e^{x/2}}{2}+\frac{e^{-x/2}}{2}}{e^{x/2}-e^{-x/2}}\mathrm dx =2 \int\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\mathrm dx =2\ln|e^{x/2}-e^{-x/2}|+c$