# Thread: Weird integral of e

1. ## Weird integral of e

Hi there, I'm hoping someone can help me out. My textbook gives 1 example of this then the exercise gives a more complicated one so I'm not sure how to do it. Here goes..

$\displaystyle \int (2x+1)e^{x^2+x} = \int_{0}^{x}e^{t^2+t} dt + ce^{-x^2-x}$ ?

Thanks!

2. ## Re: Weird integral of e

Originally Posted by iva
Hi there, I'm hoping someone can help me out. My textbook gives 1 example of this then the exercise gives a more complicated one so I'm not sure how to do it. Here goes..

$\displaystyle \int (2x+1)e^{x^2+x} = \int_{0}^{x}e^{t^2+t} dt + ce^{-x^2-x}$ ?

Thanks!
Let me give you a hint, in general what is $\displaystyle \displaystyle \int u'(x) e^{u(x)}\;dx$ for a function $\displaystyle u(x)$?

3. ## Re: Weird integral of e

Is it $\displaystyle e^u(x) + c$ ?

4. ## Re: Weird integral of e

Originally Posted by iva
Is it $\displaystyle e^{u(x)} + c$ ?
Look at the latex correction.
[TEX]e^{u(x)} + c[/TEX] is $\displaystyle e^{u(x)} + c$
correct.

5. ## Re: Weird integral of e

But what if it is not that simple that u'(x) is featured so perfectly on the left. For example what if they don't match up and you get something like

$\displaystyle \int (x+1)e^{-2x}$

Then I can't use that kind of reasoning can i?

6. ## Re: Weird integral of e

Originally Posted by iva
But what if it is not that simple that u'(x) is featured so perfectly on the left. For example what if they don't match up and you get something like

$\displaystyle \int (x+1)e^{-2x}$

Then I can't use that kind of reasoning can i?
Well, in that case you need to try other methods--sometimes they aren't expressible in elementary terms (i.e. $\displaystyle \displaystyle \int e^{x^2}\;dx$). But, for this one it is that case, so it is that simple.

7. ## Re: Weird integral of e

Originally Posted by iva
But what if it is not that simple that u'(x) is featured so perfectly on the left. For example what if they don't match up and you get something like $\displaystyle \int (x+1)e^{-2x}$
Then I can't use that kind of reasoning can i?
That requires a completely different approach.
You need integration by parts. That should come in about four additional sections in your textbook. Look it up.

8. ## Re: Weird integral of e

ok so this is one of the erf functions then right? But how do i combine it with doing integration by parts, as I think this is wrong as i ignored the (x+1) and copied the way the textbook example did a simpler example i.e.:

$\displaystyle \int (x+1)e^{-2x} = \int_{0}^{x} e^{-2t} dt + ce^{2x}$

9. ## Re: Weird integral of e

Originally Posted by iva
ok so this is one of the erf functions then right? But how do i combine it with doing integration by parts, as I think this is wrong as i ignored the (x+1) and copied the way the textbook example did a simpler example i.e.: $\displaystyle \int (x+1)e^{-2x} = \int_{0}^{x} e^{-2t} dt + ce^{2x}$
Either you copied incorrectly or your textbook means something else.
$\displaystyle \int (x+1)e^{-2x} = \frac{-x}{2}e^{-2x}-\frac{3}{4}e^{-2x}+c$

10. ## Re: Weird integral of e

Originally Posted by Plato
Either you copied incorrectly or your textbook means something else.
$\displaystyle \int (x+1)e^{-2x} = \frac{-x}{2}e^{-2x}-\frac{3}{4}e^{-2x}+c$
Crikey, ok so it was simply integration by parts.

Thanks a mill