2

$$ \int e^x \, \left(1 + \frac{e^{-x}}{x} \right) \,dx $$ I got three different integrals from this one, which are integral of $e^x$, integral of $1/x$ and the third one is integral of $e^{-x}/x$ but I'm not sure how to solve the third one? Thanks in advnace.

Voliar
  • 1,651
  • How you got the third integral? – Voliar Apr 09 '14 at 18:44
  • @Voliar well, I made 1 to 1/x and the other part stays as it is, so I just splitted it to two integrals? Is it wrong? – user133022 Apr 09 '14 at 18:46
  • @user133022: You can't split over multiplication, just over sum (algebraic sum, which include subtraction as well). See my answer for more details. – rubik Apr 09 '14 at 18:56

5 Answers5

8

It should come out as $ \int (e^x + \frac{1}{x} ) \,dx $ since the powers cancel out.

7

Hint: After distributing multiplication, use the fact that: $$\displaystyle\int \left [ kf(x) + hg(x) \right ] dx = k\int f(x) dx + h\int g(x) dx$$

Complete spoiler (mouseover to reveal):

$$\displaystyle\int e^x \left ( 1 + \dfrac{e^{-x}}{x} \right ) dx = \int \left ( e^x + \dfrac{e^x \cdot e^{-x}}{x} \right ) dx = \int e^x dx + \int \dfrac{1}{x} dx = e^x + \ln |x| + C$$

rubik
  • 9,344
5

$$\int e^x \bigg(1+ \frac{e^{-x}}{x} \bigg) dx = \int e^x + \frac{1}{x} dx = \int e^xdx + \int \frac{1}{x} dx $$

Can you take it from here?

4

Simplify first; integrate afterwards: $$ e^x\left( 1+ \frac{e^{-x}}{x} \right) = e^x + \frac 1 x. $$

4

We have$$\int e^x\left(1+\frac{e^{-x}}{x}\right)dx=\int \left(e^x+\frac{e^{x}e^{-x}}{x}\right)dx=\int e^xdx +\int\frac{1}{x}dx$$

I suppose you can do the rest..

Alijah Ahmed
  • 11,609