Solving $\int\frac{\ln(1+e^x)}{e^x} \space dx$ I'm trying to solve this integral.
$$\int\frac{\ln(1+e^x)}{e^x} \space dx$$
I try to solve it using partial integration twice, but then I get to this point (where $t = e^x$ and $dx = \frac{1}{t} dt$):
$$\int\frac{\ln(1+t)}{t^2} \space dt = \frac{1}{t} \cdot \ln(1+t) - \frac{1}{t} \cdot \ln(1+t) + \int\frac{\ln(1+t)}{t^2} \space dt$$
$$\cdots$$
$$0 = 0$$
What am I doing wrong?

Ok, I think I know what you did wrong.  For a particular choice of variable substitutions, doing integration by parts twice will land you back where you started.  Notice that you got a true statement ("0=0", which indeed it does) so you haven't done anything wrong in the sense of doing some step incorrectly, but you haven't made any progress in your answer either.
To illustrate, let me define two functions $f(x)$ and $g(x)$ and consider the integral:
$$ \int f(x) g(x) dx $$
integration by parts tells us:
$$ \int u dv = u v - \int v du $$
which translates to:
$$ \int f(x) g(x) dx = f(x) G(x) - \int G(x) f'(x) dx $$
where $G(x)$ is the anti-derivative of $g(x)$ and $f'(x)$ is the derivative of $f(x)$.  In the above, I used $u=f(x)$ and $dv = g(x) dx$.
Let's do integration by parts again, but this time using the substitution $u = G(x)$ and $dv = f'(x) dx$.  This will yield:
$$ \int G(x) f'(x) dx = G(x) f(x) - \int f(x) g(x) dx$$
substitution back in we find:
$$ \int f(x) g(x) dx = G(x) f(x) - G(x) f(x) + \int f(x) g(x) dx $$
$$ \to \int f(x) g(x) dx = \int f(x) g(x) dx $$
$$ \to 0 = 0 $$
$0=0$!  It sure does!
Integration by parts represents a transformation.  By choosing to do it a second time with the choice of variables above it amounts to doing the inverse of the first transformation, yielding the identity transformation.
In order to get an answer to your integral you have to not apply integration by parts twice in the manner you did.  Since your question is likely homework, I won't go into how to actually solve your integral but I will tell you that I solved your integral by first using integration by parts and then an application of partial fractions.
Hope that helps!
