# Some Useful Integrals of Exponential Functions

*Michael Fowler*

We’ve shown that differentiating the exponential function just multiplies it by the constant in the exponent, that is to say,

$\frac{d}{dx}{e}^{ax}=a{e}^{ax}.$

Integrating the exponential function, of course, has the
opposite effect: it *divides* by the
constant in the exponent:

$\int {e}^{ax}dx=\frac{1}{a}{e}^{ax}},$

as you can easily check by differentiating both sides of the equation.

An important *definite*
integral (one with limits) is

$\underset{0}{\overset{\infty}{\int}}{e}^{-ax}dx\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}\frac{1}{a}}\text{\hspace{0.17em}}.$

Notice the minus sign in the exponent: we need an integrand that decreases as $x$ goes towards infinity, otherwise the integral will itself be infinite.

To visualize this result, we plot below ${e}^{-x}$ and ${e}^{-3x}.$ Note that the green line forms the hypotenuse of a right-angled triangle of area 1, and it is very plausible from the graph that the total area under the ${e}^{-x}$ curve is the same, that is, 1, as it must be. The ${e}^{-3x}$ curve has area 1/3 under it, ( $a=3$ ).

Now for something a bit more challenging: how do we evaluate the integral

$I\left(a\right)={\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}dx}?$

( $a$ has to be positive, of course.) The integral will definitely not be infinite: it falls off equally fast in both positive and negative directions, and in the positive direction for $x$ greater than 1, it’s smaller than ${e}^{-ax},$ which we know converges.

To see better what this function looks like, we plot it below for $a=1$ and $a=4$:

Notice first how much faster than the ordinary exponential ${e}^{-x}$ this function falls away. Then note that the blue curve, $a=4,$ has about half the total area of the $a=1$ curve. In fact, the area goes as $1/\sqrt{a}.$ The green lines help see that the area under the red curve (positive plus negative) is somewhat less than 2, in fact it’s $\sqrt{\pi}=1.77$ approximately.

But$\u2014$it’s not so easy to evaluate! There is a trick: square it. That is to say, write

${\left(I\left(a\right)\right)}^{2}={\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}dx}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{y}^{2}}dy}$

Now, this product of two integrals along *lines*, the $x$-integral and the $y$ -integral, is exactly the same as an integral
over a *plane*, the $\left(x,y\right)$ plane, stretching to infinity in all
directions. We can rewrite it

$\underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}dx}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{y}^{2}}dy}={\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}{e}^{-a{y}^{2}}dxdy}}={\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{r}^{2}}dxdy}$,

$r$ is just the distance from the origin $\left(0,0\right)$ in the $\left(x,y\right)$ plane. The plane is divided up into tiny squares of area $dxdy,$ and doing the integral amounts to finding the value of ${e}^{-a{r}^{2}}$ for each tiny square, multiplying by the area of that square, and adding the contributions from every square in the plane.

At first glance, this approach is no easier than the
original problem—but then we see that the integrand ${e}^{-a{r}^{2}}$ has a *circular
symmetry*: for any circle centered at the origin (0, 0), it has the *same value anywhere on the circle*. To exploit this, we shouldn’t be dividing the
(*x*, *y*) plane up into little squares at all, we should be dividing it
into regions having all points the same distance from the origin.

These are called “annular” regions: the area between two
circles, both centered at the origin, the inner one of radius $r,$ the slightly bigger outer one having radius $r+dr.$ We take
$dr$ to be very small, so this is a *thin* circular strip, of length $2\pi r$ (the circumference of the circle) and breadth $dr,$ and therefore its total area is $2\pi rdr$ (neglecting terms like $d{r}^{2},$ which become negligible for $dr$ small enough).

So, the contribution from one of these annular regions is ${e}^{-a{r}^{2}}2\pi rdr,$ and the complete integral over the whole plane is:

${\left(I\left(a\right)\right)}^{2}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\pi {\displaystyle \underset{0}{\overset{\infty}{\int}}{e}^{-a{r}^{2}}2rdr}.$

*This* integral is
easy to evaluate: make the change of variable to $u={r}^{2},\text{\hspace{0.17em}}\text{\hspace{0.17em}}du=2rdr,$ giving

${\left(I\left(a\right)\right)}^{2}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}\pi {\displaystyle \underset{0}{\overset{\infty}{\int}}{e}^{-au}du}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\frac{\pi}{a},$

so taking square roots

$I\left(a\right)\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}dx}\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}\sqrt{\frac{\pi}{a}}\text{\hspace{0.17em}}.$

### Some Integrals Useful in the Kinetic Theory of Gases

We can easily generate more results by differentiating *I*(*a*)
above with respect to the constant *a*!

Differentiating once:

$$\frac{d}{da}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}dx}\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\text{\hspace{0.17em}}-{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{x}^{2}{e}^{-a{x}^{2}}dx}\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\frac{d}{da}\sqrt{\frac{\pi}{a}}=-\frac{1}{2a}\sqrt{\frac{\pi}{a}}$$

and differentiating *this*
result with respect to *a* gives

$$\underset{-\infty}{\overset{\infty}{\int}}{x}^{4}{e}^{-a{x}^{2}}dx}\text{\hspace{0.17em}}\text{\hspace{0.17em}}=\frac{3}{4{a}^{2}}\sqrt{\frac{\pi}{a}}\text{\hspace{0.17em}}.$$

The ratio of these two integrals comes up in the kinetic theory of gases in finding the average kinetic energy of a molecule with Maxwell’s velocity distribution.

$$\frac{{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{x}^{4}{e}^{-a{x}^{2}}dx}}{{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{x}^{2}{e}^{-a{x}^{2}}dx}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{1em}}=\text{\hspace{1em}}\frac{\frac{3}{4{a}^{2}}\sqrt{\frac{\pi}{a}}}{\frac{1}{2a}\sqrt{\frac{\pi}{a}}}\text{\hspace{1em}}=\text{\hspace{1em}}\frac{3}{2a}\text{\hspace{0.17em}}.$$

**Finding this ratio without doing the integrals:**
It is interesting to note that this ratio could have been found with much less work, in fact without evaluating the integrals fully, as follows:
Make the change of variable ${y}^{2}=a{x}^{2}$,
so $dy=\sqrt{a}dx$

and

$\underset{-\infty}{\overset{\infty}{\int}}{x}^{2}{e}^{-a{x}^{2}}dx}\text{\hspace{0.17em}}\text{\hspace{0.17em}}={\left(a\right)}^{-3/2}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{y}^{2}{e}^{-{y}^{2}}dy}\text{\hspace{0.17em}}\text{\hspace{0.17em}}=C{a}^{-3/2$

where $C$ is a constant *independent* of $a,$ because $a$ has completely disappeared in the integral
over $y.$ (Of course, we know $C=\sqrt{\pi}/2,$ but that took a lot of work.) Now, the integral with ${x}^{4}$ for the leading term in place of ${x}^{2}$ is given by differentiating the ${x}^{2}$ integral with respect to $a,$ and multiplying by $-1,$ as discussed above, so, differentiating the
right hand side of the above equation, the ${x}^{4}$ integral is just $\left(3/2\right)C{a}^{-5/2},$ and the $C$ cancels out in the ratio of the integrals.

However, we *do*
need to do the integrals at one point in the kinetic theory: the overall
normalization of the velocity distribution function is given by requiring that

$1={\displaystyle \underset{0}{\overset{\infty}{\int}}f(v)dv}={\displaystyle \underset{0}{\overset{\infty}{\int}}4\pi {A}^{3}{v}^{2}{e}^{-m{v}^{2}/2kT}}$

using the results we found above, giving

$$f(v)=4\pi {\left(\frac{m}{2\pi kT}\right)}^{3/2}{v}^{2}{e}^{-m{v}^{2}/2kT}.$$

### One last trick…

We didn’t need this in the kinetic theory lecture, but is seems a pity to review exponential integrals without mentioning it.

It’s easy to do the integral

$I\left(a,b\right)={\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}{e}^{bx}dx}.$

It can be written

$I\left(a,b\right)={\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{\left(x-b/2a\right)}^{2}}{e}^{{b}^{2}/4a}dx}={e}^{{b}^{2}/4a}{\displaystyle \underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{\left(x-b/2a\right)}^{2}}dx}={e}^{{b}^{2}/4a}\sqrt{\pi /a}$

where to do the last step just change variables from $x$ to $y=x-b/2a.$

This can even be used to evaluate for example

$\underset{-\infty}{\overset{\infty}{\int}}{e}^{-a{x}^{2}}\mathrm{cos}bx\text{\hspace{0.17em}}dx$

by writing the cosine as a sum of exponentials.