What are you saying?
The statement "integral of \(\displaystyle \Large\color{red}{e^{\pm\, x}}\)" makes no sense. Does it?
Are you saying \(\displaystyle \displaystyle\int_{-1}^0\, x^{2015}\, e^{x}\, dx+\int_{0}^1\, x^{2015}\, e^{-x}\, dx\) can be rewritten as a single integral?
Is the original question about an odd function?
The "integral from -1 to 1 (1+2x^2015)e^-|x|" can be broken into four parts:
(1)\(\displaystyle \int_{-1}^0\, e^x\, dx\)
(2)\(\displaystyle \int_0^1\, e^{-x}\, dx\)
(3)2 \(\displaystyle \int_{-1}^0\, x^{2015}\, e^x\, dx\)
(4)2 \(\displaystyle \int_0^1\, x^{2015}\, e^{-x}\, dx\)
I got lazy when I said "those are just an integral of \(\displaystyle e^{\pm\, x}\)" What I meant by that was that integrals (1) and (2) are just the integral of either e
x or e
-x which are simple integrals and easy to do.
Take my hint and let u=-x in (3). then dx =-du, x=-1 --> u=1, x=0 --> u=0. Thus
\(\displaystyle \int_{-1}^0\, x^{2015}\, e^x\, dx\) = \(\displaystyle \int_{1}^0\, (-u)^{2015}\, e^{-u}\, (-du)\, =\, \int_{1}^0\, u^{2015}\, e^{-u}\, du\, =\, -\int_0^1\, x^{2015}\, e^{-x}\, dx\)
So, yes, you might say that Equations (3) and (4) can be combined and written as a single integral. Then again, you might just note that they are the negative of one another and their sum adds to zero and what you are left with is (1) and (2).
As far as the questions about the odd and even numbers: It was just a statement to get one to notice that for any odd exponent, the same substitution works whereas for an even number you just end up with basically the same problem again [but without the absolute value sign and with an interval change].