\(\displaystyle \int \frac{e^x+1}{e^x-1}dx\)
\(\displaystyle =\int \frac{e^x-1+2}{e^x-1}dx=\int 1+\frac{2}{e^x-1}dx=x+\frac{2}{e^x}\log|e^x+1|+C\)
Official solution: \(\displaystyle 2\log|e^x+1|-x+C\)
I've checked it all over, and I must be missing something rather obvious. Why is there \(\displaystyle -x\), plus, why isn't there \(\displaystyle \frac{1}{e^x}\) added at log (when you differentiate \(\displaystyle \log|e^x+1|\) don't you get \(\displaystyle \frac{1}{e^x+1}e^x\))?
\(\displaystyle =\int \frac{e^x-1+2}{e^x-1}dx=\int 1+\frac{2}{e^x-1}dx=x+\frac{2}{e^x}\log|e^x+1|+C\)
Official solution: \(\displaystyle 2\log|e^x+1|-x+C\)
I've checked it all over, and I must be missing something rather obvious. Why is there \(\displaystyle -x\), plus, why isn't there \(\displaystyle \frac{1}{e^x}\) added at log (when you differentiate \(\displaystyle \log|e^x+1|\) don't you get \(\displaystyle \frac{1}{e^x+1}e^x\))?