Integrate \frac{1}{x}-\frac{1}{x^2}e^x

  • Thread starter Thread starter Matuku
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 1K views
Matuku
Messages
12
Reaction score
0

Homework Statement


Find,
[tex]\int \left( \frac{1}{x} - \frac{1}{x^2} \right)e^x ~dx[/tex]

Homework Equations


None

The Attempt at a Solution


I tried integrating by parts,
[tex]\]\int \left( \frac{1}{x} - \frac{1}{x^2} \right)e^x ~dx\\<br /> Let ~\frac{dv}{dx}=\left( \frac{1}{x} - \frac{1}{x^2} \right), and ~u=e^x.\\<br /> \therefore v=\ln{x} + \frac{1}{x}, and ~\frac{du}{dx}=e^x\\<br /> \therefore \int \left( \frac{1}{x} - \frac{1}{x^2} \right)e^x ~dx<br /> = e^x(\ln{x} + \frac{1}{x}) - \int{ e^x(\ln{x} + \frac{1}{x})}~dx\[[/tex]

But I can't see what to do now; the next integral is even messier than the first!
 
Physics news on Phys.org
First break the integral apart thus:

[tex]\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[/tex]

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