Evaluate: $$\int \frac{e^x}{e^{2x} + 3e^x + 2} dx$$
My solution: Let $u = e^x$, then $$\int \frac{u}{u^2+3u+2} du=\dots$$
and $\frac{u}{(u+1)(u+2)} = \frac{A}{u+2} + \frac{B}{u+1}$ with $A = 2, B = -1$. So, $$\dots=-2 \ln |u + 2| - \ln |u+1| + C$$ resubstitute: $= 2 \ln |e^x + 2| - \ln |e^x+1| + C$. Apparently the answer is this: $$\ln(1 + e^x) - \ln(2 + e^x) + C$$
