How can I solve integrals of the form x^n e^(-x^2) by hand?

  • Thread starter Thread starter lol_nl
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary
SUMMARY

This discussion focuses on solving integrals of the form \int x^n e^{-x^2} dx, particularly in the context of quantum mechanics. The integral for n=2 simplifies to \int_{-\infty}^{\infty} x^2 e^{-x^2} dx = \frac{\sqrt{\pi}}{2}, utilizing integration by parts and symmetry arguments. The discussion highlights that odd powers of x^n yield zero due to the odd nature of the integrand, while higher even powers can be computed by reducing the power through integration by parts. Additionally, a method involving differentiation with respect to a parameter \alpha is presented for evaluating these integrals.

PREREQUISITES
  • Understanding of Gaussian integrals and their properties
  • Familiarity with integration techniques, specifically integration by parts
  • Knowledge of symmetry in integrals, particularly even and odd functions
  • Basic calculus concepts, including limits and the application of L'Hôpital's rule
NEXT STEPS
  • Study the properties of Gaussian integrals and their applications in physics
  • Learn advanced integration techniques, including parameter differentiation in integrals
  • Explore the error function and its relationship with Gaussian integrals
  • Investigate numerical methods for evaluating integrals that do not have closed-form solutions
USEFUL FOR

Students and professionals in physics, particularly those working in quantum mechanics, mathematicians dealing with integral calculus, and anyone interested in advanced integration techniques.

lol_nl
Messages
40
Reaction score
0

Homework Statement


Doing calculations for quantum mechanics, I have stumbled upon several integrals which I cannot solve by hand.
All of these have the form:
<br /> \int x^n exp[-x^2] dx<br />
For instance, when calculating the expectation value for x^2, the integral reduces to
<br /> \int_{-\infty}^{\infty} x^2 exp[-x^2] dx<br />
multiplied by some constant factors.

Homework Equations


There is a standard integral given in the back of my book (Griffiths):
<br /> \int_{0}^{\infty} exp[-\frac{x^2}{a^2}] dx = n! a^{n-1}<br />
However, when I apply this to n=2, I arrive at a different answer than when I use Mathematica to compute it.

Also, when I try WolframAlpha, it returns a function that involves the error function without explaining how it got there.

The Attempt at a Solution



There seems to be no way of simplifying or rearranging the integral. Integration by parts only works for taking the derivative of the exponential part, but that leaves higher and higher orders of n. Making substitution for x^2 still leaves a factor x in the denominator since u = x^2 implies du = 2 x dx. The result then would give a square root of u in the integral, which I cannot solve by integration by parts.
Is there any way to find an explicit formula for this integral?
 
Physics news on Phys.org
For the case where n = 2, I would recommend u = x and dv = x * EXP (-x^2) for integration by parts.

IIRC, some of the integrals, like for n = 2, have closed form solutions. Others, however, must be evaluated numerically.
 
Thanks. Hence I arrive at the answer for n=2:
<br /> \int_{-\infty}^{\infty} x^2 exp(-x^2) dx = 1/2 \int_{-\infty}^{\infty} exp(-x^2) dx - 1/2 [exp(-x^2)]_{-\infty}^{\infty} = \sqrt{\pi}/2<br />
 
Integrals of the form you describe are particularly simple when n is odd. You can then use symmetry arguments to solve the integral by inspection. Do you follow me? (Hint: think of the integrand, is it even/odd?)
 
The exponential factor is the gaussian distribution and is even. If n is odd, x^n is odd and therefore the integrand is odd. Integrating from -infinity to infinity will then always give 0.
 
Also, I have noticed that for higher powers of n, in principle you van always use integration by parts to reduce the power by 2 each step, so n=4 is easily computed.
Side question: why is
<br /> [x^n exp(-x^2)]_{-\infty}^{\infty} = 0<br />?
Or with other words, why is
<br /> \lim_{x \rightarrow \infty} x^n exp(-x^2) = 0<br />?
 
The exponential dies off faster than any polynomial grows, so it always wins in the limit. You can show the limit is 0 by simply applying the Hospital rule repeatedly to xn/e-x2. When you differentiate enough times, the numerator will become 0, but the exponential will still be around.
 
By the way, another trick you can use to evaluate integrals like this is to note that
x^{2n}e^{-\alpha x^2} = (-1)^n\frac{d^n}{d\alpha^n}e^{-\alpha x^2}so that
\int_{-\infty}^\infty x^{2n}e^{-\alpha x^2}\,dx = \int_{-\infty}^\infty (-1)^n\frac{d^n}{d\alpha^n}e^{-\alpha x^2}\,dx = (-1)^n\frac{d^n}{d\alpha^n}\int_{-\infty}^\infty e^{-\alpha x^2}\,dxAt the end, set \alpha = 0 to get the result you want.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 47 ·
2
Replies
47
Views
4K
  • · Replies 105 ·
4
Replies
105
Views
7K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K