PDF download Download Article PDF download Download Article

The Gaussian function is one of the most important functions in mathematics and the sciences. Its characteristic bell-shaped graph comes up everywhere from the normal distribution in statistics to position wave packets of a particle in quantum mechanics.

Integrating this function over all of is an extremely common task, but it resists the techniques of elementary calculus. No amount of change of variables, integration by parts, trigonometric substitution, etc. will simplify the integral. In fact, the antiderivative of the Gaussian, the error function, cannot be written in terms of elementary functions. Nevertheless, there exists an exact solution for the definite integral, which we find in this article. We also generalize the Gaussian integral to obtain some more interesting results. These generalizations require some more techniques such as differentiating under the integral and knowledge of the Gamma function.

Part 1
Part 1 of 3:

Gaussian Integral

PDF download Download Article
  1. 1
    Begin with the integral.
  2. 2
    Consider the square of the integral. We are expanding this integral into the plane. The idea here is to turn this problem into a double integral for which we can easily solve, and then take the square root.
    Advertisement
  3. 3
    Convert to polar coordinates. Recall that the area integral of a polar rectangle is of the form with the extra there in order to scale the angle to units of length. This extra makes the integrals trivial since we can identify
  4. 4
    Evaluate by means of a u-substitution. Let Then the differential will cancel out the extra that we got from changing to polar. Since the integrand has no dependence, we can evaluate the integral immediately.
  5. 5
    Arrive at the integral of a Gaussian. Since we were evaluating the square of the integral, we take the square root of our result.
    • Importantly, the Gaussian function is even.
  6. 6
    Consider the integral of the general Gaussian function. This function is determined by the parameters and where is a (normalization) constant that determines the height of the bell curve, and is the standard deviation, which determines the curve's width.
    • Follow the steps shown above to verify this integral.
    • Another way to formulate the problem is if we have a Gaussian in the form Verify this integral as well.
  7. 7
    (Optional) Normalize the area to find the normalization constant . In many applications, it is desired that the area of the Gaussian be set to unity. In this case, we set and solve for
    • Here, we arrive at the normalized Gaussian, so desired in such applications as probability theory and quantum mechanics.
  8. Advertisement
Part 2
Part 2 of 3:

Generalizations

PDF download Download Article
  1. 1
    Consider the integral below. The Gaussian integral is a result that can be used to find numerous related integrals. The ones below are called moments of the Gaussian. Below, is a positive number.
  2. 2
    If is even, consider the related integral (written below) and differentiate under the integral . The result from differentiating under the integral is that even powers of get brought down. Notice that as the integral gets negated, the result on the right also gets negated because of the negative power in so the answers remain positive. Since differentiation is much easier than integration, we could do this all day, making sure to set at a convenient time. We list some of these integrals below. Make sure to verify them for yourself.
  3. 3
    If is not even, use the u-sub . Then we can use the Gamma function to easily evaluate. Below, we choose and as examples.
    • It is interesting to note that we could've used the Gamma function for even as well. It is a more general method of evaluating these types of integrals that typically is no more involved than differentiating under the integral.
  4. 4
    Set to obtain three integrals. The result is general enough such that can even take on complex values, as long as Recall Euler's formula relating the complex exponential function to the trigonometric functions. If we take the real and imaginary parts of our result, we obtain two integrals for free. Neither of the two real integrals have antiderivatives that can be written in closed form.
    • These two integrals are special cases of the Fresnel integrals, where they are important in the study of optics.
    • If you are not very familiar with complex numbers, the number can be rewritten in polar form as because imaginary exponents are rotations in the complex plane - in this case, by an angle of Polar form simplifies almost everything associated with complex numbers, so we can easily take the square root.
  5. 5
    Calculate the Fourier transform of the Gaussian function by completing the square. Calculating the Fourier transform is computationally very simple, but it requires a slight modification. We opt to complete the square because we recognize the property that the integral is independent of the shift (see the discussion). Since we have to add 0 in order to not change the integrand, we have to compensate by adding a term. Watch the signs - they can be tricky.
    • Interestingly, the Fourier transform of a Gaussian is another (scaled) Gaussian, a property that few other functions have (the hyperbolic secant, whose function is also shaped like a bell curve, is also its own Fourier transform).
    • This technique of completing the square can also be used to find integrals like the ones below. Verify this by considering the "complexified" expression and then taking the real part of the result.
  6. Advertisement
Part 3
Part 3 of 3:

Error Function

PDF download Download Article
  1. 1
    Define the error function. It is often the case that the Gaussian integral needs to be evaluated across the real line. However, many other applications, such as in diffusion and statistics, require a more general relationship.
    • Because the Gaussian function does not have an antiderivative that can be written in terms of elementary functions, we define the error function as the antiderivative of the Gaussian. It is a special function conventionally defined with a normalization factor ensuring a range of It has a sigmoid shape similar in form to the logistic function.
    • It is also convenient to define the complementary error function as well.
    • It should be noted that the act of defining this special function does not give new insights or fundamental forays into mathematics. It is merely a definition of a function that happens to be encountered often enough to be given its own name.
  2. 2
    Solve the one-dimensional heat equation given initial conditions. As an example of an application requiring the use of the error function, we solve the heat equation using Fourier transforms with the initial conditions being the rectangular function. Below, is known as the diffusion coefficient.
  3. 3
    Find the fundamental solution. The fundamental solution is the solution to the heat equation given initial conditions of a point source, the Dirac delta function. The fundamental solution in this context is also known as the heat kernel.
    • We perform a Fourier transform to convert from real space to space to obtain an ordinary differential equation in Then we simply solve for The useful property of the Fourier transform that we take advantage of here is that the Fourier transform of a derivative of order corresponds to multiplication of in space.
    • The additional constant simply corresponds to initial conditions.
    • Now we have to transform back into real space. This is convenient for us because multiplication in space corresponds to convolution in real space. The fundamental solution is then simply the inverse Fourier transform of the exponential term, shown below. It is deemed the fundamental solution because the delta function is the identity operator of convolution:
    • We have already seen how to calculate the Fourier transform of a Gaussian function. We apply the technique of completing the square here too.
  4. 4
    Solve for given initial conditions. Now that we have our fundamental solution we can take the convolution of with
    • In the last step, we make use of the fact that
    • A plot of this function over time above shows that the "sharpness" of the function diminishes over time, eventually tending towards an equilibrium solution. The initial conditions are plotted in blue, while is being plotted for values and for orange, green, and red plots, respectively.
    • We see from the graph that the function is sharply sloped near which the error function takes care of. However, the error function is still a continuous, well-behaved function, so this solution cannot exist at the moment when the argument inside the error function becomes singular and when the function approaches the discontinuous defined earlier.
  5. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      Discussion

      • It turns out that the Gaussian as defined in step 6 of part 1 is not the most general form. As seen in the diagram, one can also shift the Gaussian some units so that the turns into a in the exponent. However, it is obvious that the translation does not matter when we are integrating over all which is why completing the square while calculating the Fourier transform works. Nevertheless, the general form of the normalized Gaussian looks like this.


      About This Article

      Thanks to all authors for creating a page that has been read 89,967 times.

      Did this article help you?

      Advertisement