# Thread: Intergration Question (fairly basic)

1. ## Intergration Question (fairly basic)

$\int(e^x - 3)^2 dx$

I think it goes as following, here is my working.

$\int (e^{2x} - 6e^x + 9) dx$

$= \frac{e^{2x}}{2} - e^x + 9x$

Can anyone confirm or tell me where I've gone wrong? Thank you very much.

2. Hi.

Originally Posted by Peleus
$\int(e^x - 3)^2 dx$

I think it goes as following, here is my working.

$\int (e^{2x} - 6e^x + 9) dx$

$= \frac{e^{2x}}{2} - e^x + 9x$

Can anyone confirm or tell me where I've gone wrong? Thank you very much.
Yea, the work seems to be correct, but you made a mistake

$\int - 6e^x dx \not= -e^x$

But I guess you know that

$= \frac{e^{2x}}{2} - 6e^x + 9x + const$

Yours
Rapha

3. Yep, sorry missed that.

$\int 6e^x$

which turns into

$6 \int \frac{1}{6}e^x$

$6 * e^x$

$6e^x$

Thanks, forgot to type in the const as well.

4. Originally Posted by Peleus
Yep, sorry missed that.

$\int 6e^x$

which turns into

$6 \int \frac{1}{6}e^x$
No!!!!

Originally Posted by Peleus
$6 * e^x$
Yes

Originally Posted by Peleus
$6e^x$
Yes

Actually it is $- \int 6e^x dx$ = $-6*\int e^xdx = -6*e^x$

Originally Posted by Peleus
Thanks
You're welcome

5. I have absolutely no idea what I was thinking there, even the working doesn't work.

Yes, you're right and I understand how you got it

Cheers.