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

  • Context: Undergrad 
  • Thread starter Thread starter prasannapakkiam
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around the integration of the function y=e^(-(x^2)/2), particularly in the context of creating Normal Distribution tables. Participants explore various methods of integration, the nature of the function's antiderivative, and numerical approximation techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses difficulty in integrating the function and seeks assistance.
  • Another participant asserts that the integral cannot be expressed in terms of elementary functions and references the error function.
  • A participant questions the intuition behind the non-integrability and suggests that Normal Distribution tables are approximated numerically.
  • It is noted that there is no elementary antiderivative for the probability density function, leading to the definition of the error function.
  • A suggestion is made to use a double integral approach for evaluating the definite integral from -infinity to infinity, although its limitations for finite limits are discussed.
  • Another participant seeks a reasonable function for approximation and mentions tanh(x) as a possibility.
  • Further elaboration on the double integral method indicates that while it can simplify the integral over infinite limits, it does not resolve the challenge for finite limits.
  • Several approximations for the error function are mentioned, including a specific formula involving e^(-x^2/2).

Areas of Agreement / Disagreement

Participants do not reach a consensus on the integration of the function, with multiple competing views on the methods and approximations available. The discussion remains unresolved regarding the best approach to integrate the function.

Contextual Notes

Participants highlight the challenge of proving non-elementary antiderivatives and the dependence on numerical methods for practical applications. The discussion also touches on the limitations of the double integral method when applied to finite limits.

Who May Find This Useful

This discussion may be of interest to those studying probability theory, statistics, or anyone involved in numerical methods for integration, particularly in the context of the Normal Distribution.

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

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

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

Limits (0,x) and (0, y) become (0, r) and (0, 2[itex]\pi[/itex])
 
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 [tex]r \, dr \, d\theta[/tex] then it follows that the inner of the two dimensional ([tex]dr \, d\theta[/tex]) integral becomes the trivial [tex]\int r e^{-r^2/2} dr[/tex].

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 [tex]d\theta[/tex] 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 [tex]\int_{-\infty}^{+\infty} e^{-x^2/2} dx = \sqrt{2 \pi}[/tex]
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 :[tex]\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}}[/tex]
 
Last edited:
I see...
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K