Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to find the value of the integral $\int_{-4}^{-2}e^{-x}\,dx$ but I just couldn't solve it.

Actually I found in a List of integrals that $\int e^x\,dx=e^x+C$ so I concluded:

$$ \int e^{-x}\,dx=\int\frac{1}{e^x}\,dx=\ln|e^x|$$


I know the solution is wrong, but how can I solve this integral or any another integral like this?

share|cite|improve this question
Substitute $y = -x$ if you don't see the primitive of $e^{-x}$. – Daniel Fischer Aug 23 '13 at 23:23
Careful! It is true that $$\int u^{-1}du=\log u$$ but in order to let $u$ be any function, you need to incorporate the $f'(u) du$ term, that is $$\int \frac{f'(u)}{f(u)}du=\log |f(u)|$$ Note that by what you wrote, you're saying that $e^{-x}=\frac d{dx} x=1$ for all $x$. This is certainly not the case! – Pedro Tamaroff Aug 23 '13 at 23:25
@PeterTamaroff Don't forget the constant of integration. – Fly by Night Aug 23 '13 at 23:38
You are probably pretty good at differentiation. For a while at least, whenever you have calculated an indefinite integral (aka antiderivative, aka primitive), it is a good idea to check by differentiating whether you are right. – André Nicolas Aug 23 '13 at 23:41
@FlybyNight: the matter of a constant of integration is tangential to Peter's description of what is wrong with the OP's solution. Since it is was too late for Peter to add the constant when you commented, I will add the constants to his answer, but I will remove them if he requests. It was so requested, but let's avoid a thread about it here. If this needs discussion, take it to chat, please. – robjohn Aug 24 '13 at 10:23
up vote 4 down vote accepted

$$ \int_{-4}^{-2} e^{-x} dx = \left . \left ( -e^{-x}\right ) \right |_{-4}^{-2} = -e^2+e^4 = e^2 \left ( e^2-1\right ) $$

share|cite|improve this answer
Can you just explain to me how does $\int e^{-x}\,dx=(-e^{-x})$ – Mohammad Fakhrey Aug 24 '13 at 0:12
@MohammadFakhrey see my answer. Also, take the derivative of $-e^{-x}$ and you'll confirm that it's the anti-derivative of $e^{-x}$. – Ataraxia Aug 24 '13 at 0:28
Thanks a lot :) – Mohammad Fakhrey Aug 24 '13 at 0:49




Can you figure out what to do from here?

share|cite|improve this answer
Ataraxia I'm sure that your answer (hint) is very helpful but because of my limited knowing about integrals and derivatives I just couldn't "figure out what to do from here?". – Mohammad Fakhrey Aug 24 '13 at 10:36
@MohammadFakhrey Replace $-x$ with $u$ and $dx$ with $-du$ in the integral. Then the integral will look like something more familiar. Do you still need help? – Ataraxia Aug 24 '13 at 12:02
Thank you Ataraxia this was helpful. – Mohammad Fakhrey Aug 24 '13 at 12:12

Isn't easy to see (think to the derivative) that if $\alpha\neq 0$ $$\int e^{\alpha x}=\frac{1}{\alpha} e^{\alpha x}+C \ ?$$

share|cite|improve this answer
That's not a very constructive explanation, to say the least. – nbubis Aug 24 '13 at 0:50
Why? If we know that $(e^{\alpha x})'=\alpha (e^{\alpha x})$ then we can see the result, ditto if we know that $(x^n)'=n x^{n-1}$ we can see that $\int x^n dx=\frac{1}{n+1} x^{n+1}$ etc I want say that this is a very common method: think to the correspondance between derivative and anti derivative. Isn't it? – user63181 Aug 24 '13 at 1:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.