Is My Solution to \int \frac {e^x+4}{e^x}dx Correct?

  • Thread starter Thread starter UrbanXrisis
  • Start date Start date
  • Tags Tags
    Integral
AI Thread Summary
The discussion centers on the evaluation of the integral \int \frac {e^x+4}{e^x}dx. The initial approach of rewriting the integrand as 1 + 4e^{-x} was correct, but the final result was incorrect due to a miscalculation in the antiderivative. The correct integral should yield x - 4e^{-x} + C, with the negative arising from the integral of e^{-x}. Additionally, a separate integral \int \frac {e^x}{e^x+4}dx was evaluated correctly using substitution, resulting in ln(e^x+4) plus the constant of integration. The discussion emphasizes the importance of careful differentiation and integration techniques.
UrbanXrisis
Messages
1,192
Reaction score
1
\int \frac {e^x+4}{e^x}dx =?

Here's what I did:
\int \frac {e^x+4}{e^x}dx = \int e^{-x}(e^x+4)dx
\int e^{-x}(e^x+4)dx =\int 1+4e^{-x} = x-\frac {4e^{-x+1}}{x+1}

Did I do this correctly? Is there a more simplified answer?
 
Physics news on Phys.org
Rewriting \frac{e^x+4}{e^x}=1+4e^{-x} was correct.

Check the antiderivative of e^{-x}. Your answer is not correct. You can easily check it by differentiating it.

Mind the difference between x^a where the base is the variable and a^x where the base is constant and the exponent is the variable.
 
since \int e^{x} = e^{x}+C
then...
\int 1+4e^{-x} = x+4e^{-x}+C

is that correct?
 
When you differentiate x + 4e^{-x} + C you get

1 - 4e^{-x} , so the integral is actually

\int 1 + 4e^{-x} dx = x - 4e^{-x} + C
 
I don't understand where the negative came from
 
The integral of e^x dx = {e^x} + C

The integral of e^{-x}dx = -e^{-x} + C.

Differentiating that answer you find that \frac {d}{dx} -e ^{-x} = e^{-x}<br />
 
Think of it as an e^{u} and apply the method of substitution:
-x=u

Daniel.

P.S.That's how u end up with the minus.
 
\int \frac {e^x}{e^x+4}dx =?

Here's what I did:
= \int e^{x}(e^x+4)^{-1}dx
subsitute:
u=e^x+4
du=e^x dx
\int u^{-1}du =ln(e^x+4)

Did I do this correctly? Is there a more simplified answer?
 
UrbanXrisis said:
Did I do this correctly? Is there a more simplified answer?

Looks good to me.
 
  • #10
Don't forget the constant of integration.

Daniel.
 
Back
Top