# Did I do this integral right?

$$\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?

Related Introductory Physics Homework Help News on Phys.org
Galileo
Homework Helper
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 dont 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}$$

dextercioby
Homework Helper
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?

NateTG
Homework Helper
UrbanXrisis said:
Did I do this correctly? Is there a more simplified answer?
Looks good to me.

dextercioby