How to Integrate x^2 e^(-|x|/b) from -Infinity to Infinity?

  • Thread starter Thread starter Morto
  • Start date Start date
  • Tags Tags
    Integrating
Morto
Messages
12
Reaction score
0
Hello!

I need to calculate \int_{-\infty}^{\infty} x^{2} e^{-\frac{|x|}{b} dx and I know the answer should involve \pi.
I've tried splitting the integral for x and -x with limits from 0 to infty and -infinty to 0, which gives me the answer of 2b. But I don't think this is correct. Does anyone have any hints or tips on what to do?
 
Physics news on Phys.org
Morto said:
I've tried splitting the integral for x and -x with limits from 0 to infty and -infinty to 0,
That's a correct way to approach this.

which gives me the answer of 2b. But I don't think this is correct. Does anyone have any hints or tips on what to do?

Post your work here, and we'll try to help you.

Oh, BTW, the answer does not involve pi, unless you want to write it as answer*pi/pi or something. :wink:
 
Note that your integrand is even. Thus, you may simplify your problem as follows:
\int_{-\infty}^{\infty}x^{2}e^{-\frac{|x|}{b}}dx=2\int_{0}^{\infty}x^{2}e^{-\frac{x}{b}}
where I've omitted the absolute value sign about x, since for x>=0, we have |x|=x.
 
Here is a continuation of arildno post. Let t=-x/b (assuming b>0) and preform substitution. Then do integration by parts twice.
 
Wouldn't it just be simpler to let t=x/b so that we don't need to change our limits to 0 and and negative infinity?
 
Why do a normal substitution?

It looks like one should use integration by parts twice.
 
One more hint, there are two answers. The reason is that you don't know what the value of b is.
 
You don't need to do integration by parts. Just substitute b ---> 1/p
so that the exponential becomes exp(-p x) . Integrate exp(p x) and differentiate twice w.r.t. p to bring down a factor x^2 in the integrand.

The integral is thus 1/p. Differentiating twice w.r.t. p gives 2/p^3. Multiply by 2 and put back b to obtain the answer: 4 b^3.
 
I don't understand what method you are using. Is this some sort of DE trick? I would appreciate learning this method. Please post the full solution.

(Note: If b is negative, the integral diverges.)
 
Last edited:
  • #10
It is explained in detail http://en.wikipedia.org/wiki/Differentiation_under_the_integral_sign" .

E.g.

\int_{0}^{\infty}\exp(-p x)dx=\frac{1}{p}

Differentiate both sides w.r.t. p:

\frac{d}{dp}\int_{0}^{\infty}\exp(-p x)dx=-\frac{1}{p^2}

Interchange the order of integration and differentiation to obtain:

\int_{0}^{\infty}x\exp(-p x)dx=\frac{1}{p^2}
 
Last edited by a moderator:
Back
Top