$$\int_{1}^{\infty}\frac{e^{x}+e^{3x}}{e^{x}-e^{5x}}dx$$
Marking e^x as t I get: $$\int \frac{t+t^{3}}{t-t^{5}}$$
Dividing this integral: $$\int 1+\int \frac{-1}{t^{4}}+\int t^{2}+\int \frac{-1}{t^2}$$ which in term equals to:$$t-\frac{1}{3t^{3}}+\frac{t^{3}}{3}-\frac{1}{t}$$
It's clear that after substituing infinity and 1 I get infinity, but the answer is $$-1+\frac{1}{2}\ln (e^{2}-1)$$
Where is my mistake?
Since $dx=dt/t$, you need to divide the whole integrand by $t$.