Homework Help: Problematic Integral

1. Jan 13, 2009

Matuku

1. The problem statement, all variables and given/known data
Find,
$$\int \left( \frac{1}{x} - \frac{1}{x^2} \right)e^x ~dx$$

2. Relevant equations
None

3. The attempt at a solution
I tried integrating by parts,
$$\]\int \left( \frac{1}{x} - \frac{1}{x^2} \right)e^x ~dx\\ Let ~\frac{dv}{dx}=\left( \frac{1}{x} - \frac{1}{x^2} \right), and ~u=e^x.\\ \therefore v=\ln{x} + \frac{1}{x}, and ~\frac{du}{dx}=e^x\\ \therefore \int \left( \frac{1}{x} - \frac{1}{x^2} \right)e^x ~dx = e^x(\ln{x} + \frac{1}{x}) - \int{ e^x(\ln{x} + \frac{1}{x})}~dx\[$$

But I can't see what to do now; the next integral is even messier than the first!

2. Jan 13, 2009

MathematicalPhysicist

I think that it won't work here, you need to develop e^x power series expansion.

3. Jan 13, 2009

Citan Uzuki

First break the integral apart thus:

$$\int \left( \frac{1}{x} - \frac{1}{x^2} \right) e^x\ \text{d}x = \int \frac{1}{x} e^x \ \text{d}x - \int \frac{1}{x^2} e^x \ \text{d}x$$

Now, integrate the first of the two resulting integrals by parts, letting $u=\frac{1}{x}$ and $\text{d}v=e^x\ \text{d}x$. You should get a very convenient cancellation.

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook