How can I integrate e^(-(x^2)/2)?

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

The integration of the function y=e^(-(x^2)/2) does not yield an elementary antiderivative, as confirmed by the discussion participants. Instead, numerical methods such as Simpson's Rule and double integrals are suggested for approximating the integral. The double integral method transforms the problem into polar coordinates, allowing for the evaluation of the definite integral from -infinity to infinity, which results in the value √(2π). Additionally, various approximations for the error function (erf) are available online, providing practical solutions for creating Normal Distribution tables.

PREREQUISITES
  • Understanding of Normal Distribution and its probability density function (pdf).
  • Familiarity with integration techniques, including Integration by Parts and Algebraic Substitution.
  • Knowledge of numerical integration methods, such as Simpson's Rule.
  • Basic concepts of polar coordinates and double integrals.
NEXT STEPS
  • Research the properties and applications of the Error Function (erf).
  • Learn about numerical integration techniques, focusing on Simpson's Rule and Trapezoidal Rule.
  • Study the transformation of Cartesian coordinates to polar coordinates in double integrals.
  • Explore various approximations for the Normal Distribution and their derivations.
USEFUL FOR

Mathematicians, statisticians, data scientists, and anyone involved in statistical analysis or creating Normal Distribution tables will benefit from this discussion.

prasannapakkiam
I fell very silly posting this, but I am making Normal Distribution tables. I tried to Integrate what seems to be quite a simple function:
y=e^(-(x^2)/2)
Well... I can't I have tried Integration by Parts, Algebraic Substitution etc. But I cannot do it! Can somebody help me?
 
Physics news on Phys.org
Ok. But I don't intitutively see why... Can anyone answer this?

So all tables are created as an approximation - e.g. the Simpson's Rule?
 
Yes, they are numerical approximations. I can assure you they weren't calculated via Simpson's Rule.

There is no elementary antiderivative of the pdf. Elementary being sums/products/compositions of 'nice' functions.
 
It can be very hard to prove that a certain function has non-elementary antiderivatives. We know in this case that no known function has its derivative as that integral, so we defined one.
 
prasannapakkiam said:
I fell very silly posting this, but I am making Normal Distribution tables. I tried to Integrate what seems to be quite a simple function:
y=e^(-(x^2)/2)
Well... I can't I have tried Integration by Parts, Algebraic Substitution etc. But I cannot do it! Can somebody help me?
One could do it by numerical integration, but try a double integral, as in

\int_{0}^{x} e^{-x^2} dx\,\int_{0}^{y} e^{-y^2} dy, where I is each integral.

combine the two and use the transformation from Cartesian (x, y) to polar coordinates (r, \theta).

Limits (0,x) and (0, y) become (0, r) and (0, 2\pi)
 
Last edited:
I am not too sure about Astronuc's suggestion. But anyway, can someone give me a reasonable function for an approximation. So far I have only come up with tanh(x), with a precding constant...
 
Astronuc said:
... but try a double integral, as in...

The double integral method is good for evaluating the definite integral of exp(-x^2/2) from -infinty to infinity, but it is of no use for integrating over finite limits.

The double integral method works by transforming the square of the integral into a double integral over a region of the x,y plane. Since the element of area dx dy becomes r \, dr \, d\theta then it follows that the inner of the two dimensional (dr \, d\theta) integral becomes the trivial \int r e^{-r^2/2} dr.

The catch is that the limits of the integration correspond to a square region of the x,y plane, so r is not a constant! Bascially the difficulty just gets tranferred to the outer d\theta integral, so in general this is no solution.

For the specific case of the integral from -infinity to +infinity however the double integral is over the entire x,y plane and therefore the difficulty with the rectangular limits vanishes. This is the standard method of proving that \int_{-\infty}^{+\infty} e^{-x^2/2} dx = \sqrt{2 \pi}
But anyway, can someone give me a reasonable function for an approximation.
Goolging for 'erf approximations' gives several very good approximations in the first few hits. One nice simple one is :\frac{1}{\sqrt{2 \pi}} \int_x^{\infty} e^{-x^2/2} \, \simeq \frac{ e^{-x^2/2} } {1.64 x + \sqrt{0.76 x^2 + 4}}
 
Last edited:
I see...
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K