5

$\int_{-2}^{2} \frac{x^2}{1+5^x}dx$

I am stuck at the first step and have tried replacing $5^x$ with $e^{\ln(5^x)}$ but nothing simplifies out in the end.

Any hints how I should proceed?

PiBoye
  • 135
  • 5

2 Answers2

15

$$I=\int_{-2}^{2} \frac{x^2}{1+5^x}dx$$

Let $y=-x$, then:

$$I=\int_{-2}^{2} \frac{y^2}{1+5^{-y}}dy=\int_{-2}^{2} \frac{y^25^y}{1+5^y}dy=\int_{-2}^{2} \frac{x^25^x}{1+5^x}dx$$

So:

$$I+I=\int_{-2}^{2} \frac{x^2}{1+5^x}dx+\int_{-2}^{2} \frac{x^25^x}{1+5^x}dx=\int_{-2}^2x^2\,dx=2\int_0^2x^2\,dx=2\left(\frac{2^3}{3}\right)=\frac{16}{3}$$

So, the integral is equal to $\dfrac{8}{3}$.

Edit: A clarification on the changing of limits under $y=-x$:

$$\int_{x=-2}^{x=2}f(x)\,dx=\int_{-y=-2}^{-y=2}f(-y)(-\,dy)=-\int_{y=2}^{y=-2}f(-y)\,dy=\int_{y=-2}^{y=2}f(-y)\,dy$$

$$=\int_{-2}^{2}f(-y)\,dy$$

πr8
  • 10,800
  • With $y = -x$, $dy = -dx$, wouldn't this change the integral function as negative sign will be multiplied? – PiBoye Jan 05 '17 at 23:38
  • @lulu Can you explain a bit more on how this works? Thanks! – PiBoye Jan 05 '17 at 23:53
  • @Gauz Actually, what I said was incorrect (and I will delete my comment in a minute). The point is that the sign changes from the differential, as you point out, but the limits are also inverted and those two sign corrections cancel. Thus, what's posted here is correct. – lulu Jan 05 '17 at 23:59
  • Why not -ve sign. And no limit changing when putting y=-x? – Kanwaljit Singh Jan 06 '17 at 02:45
7

$$ \int_{-2}^{2}\frac{x^2}{1+5^x}\,dx = \int_{-2}^{0}\frac{t^2}{1+5^t}\,dt + \int_{0}^{2}\frac{x^2}{1+5^x}\,dx $$ Substitute $t=-x$ in the first integral to get $$ \int_{0}^{2}\frac{x^25^x}{1+5^x}\,dx $$

egreg
  • 238,574
  • why are we allowed to change the variable for only 1st part of the integral? I've never seen this actually. – PiBoye Jan 05 '17 at 23:56
  • @Gauz They're two distinct integrals, why shouldn't you be allowed to do it? – egreg Jan 06 '17 at 00:03