Can the exponential integral $\int e^{x^2}dx$ be evaluated exactly?

In summary, the conversation focused on the evaluation of the integral $\int e^{x^2}dx$. It was discussed that this integral does not have a closed form solution in terms of elementary functions, but it can be defined in terms of the Error function. Different methods were proposed, including using a series solution and showing that the derivative of a certain function gives $e^{x^2}$. It was also mentioned that the Error function has some useful properties, such as being able to be written in terms of complex numbers. Additionally, the conversation touched on the concept of definite integrals and showed that while the Gaussian Function $e^{-x^2}$ does not have an elementary antiderivative, it can be exactly integrated over the
  • #1
mathworker
111
0
I am trying to evaluate the following integral. Any help would be appreciated.
$$\int e^{x^2}dx$$
i tried the following,
$$x^2=t$$
$$2xdx=dt$$
$$\int\frac{e^t}{2\sqrt{t}}dt$$
i tried doing by parts but it didn't work
 
Physics news on Phys.org
  • #2
Re: an exponential integral

Unfortunately this integral has no closed form , we can define the integral in terms of the Error function

Let the following

\(\displaystyle \int^x_0 e^{t^2} \, dt \)

Now use the sub \(\displaystyle t=iu \)

\(\displaystyle i\int^{-ix }_0 e^{-u^2} \, du = i \frac{\sqrt{\pi}}{2}\, \text{erf}(-ix) =- i \frac{\sqrt{\pi}}{2}\, \text{erf}(ix) = \frac{\sqrt{\pi}}{2} \, \text{erfi}(x) \)
 
  • #3
Re: an exponential integral

I agree with ZaidAlyafey. If you want, you can try to show that differentiating $\frac{1}{2} \sqrt{\pi} \text{erfi}(x)$ gives $e^{x^2}$. To do this, use the power series representation of $\text{erfi}(x)$. Differentiate using the properties of derivatives, and equate it to the power series of $e^{x^2}$ :)

That would be a valid proof thanks to the FTC (somewhat uninsightful, though, since $\text{erf}(x)$ and variants are defined in terms of the Gaussian integral).​
 
  • #4
Re: an exponential integral

What is so nice about the Error function is the following properties

  • \(\displaystyle \text{erf}(\bar{z}) = \overline { \text{erf}(z) }\\\)
  • \(\displaystyle \text{erf}(-z) = - \text{erf(z) }\)

where the bar represents the complex conjugate .
 
  • #5
Re: an exponential integral

mathworker said:
how to find the following integral,help would be appreciated
$$\int e^{x^2}dx$$
i tried,
$$x^2=t$$
$$2xdx=dt$$
$$\int\frac{e^t}{2\sqrt{t}}dt$$
i tried doing by parts but it didn't work

It doesn't have a closed form solution in terms of the elementary functions, but if you want, you can get a series solution.

\(\displaystyle \displaystyle \begin{align*} e^X &= \sum_{n = 0}^{\infty} { \frac{X^n}{n!} } \\ \textrm{ so } e^{x^2} &= \sum_{n = 0}^{\infty} { \frac{\left( x^2 \right) ^n }{n!} } \\ &= \sum_{n = 0}^{\infty} { \frac{x^{2n}}{n!} } \\ \int{ e^{x^2}\,dx} &= \int{ \sum_{n = 0}^{\infty} {\frac{x^{2n}}{n!}} \, dx } \\ &= \sum_{n = 0}^{\infty} { \frac{x^{2n+1}}{\left( 2n + 1 \right) \, n!} } + C \end{align*}\)
 
  • #6
Just because the OP might find this interesting, even though this function does not have an elementary antiderivative, a similar function, the Gaussian Function \(\displaystyle \displaystyle \begin{align*} e^{-x^2} \end{align*}\) also does not have an elementary antiderivative, and so in general can not be exactly integrated over two values, but DOES have an exact definite integral over the entire real number line, \(\displaystyle \displaystyle \begin{align*} \int_{-\infty}^{\infty}{e^{-x^2}\,dx} = \sqrt{\pi} \end{align*}\)

Proof: Consider integrating over the real plane \(\displaystyle \displaystyle \begin{align*} \int{ \int_{\mathbf{R}^2}{e^{-\left( x^2 + y^2 \right) }} \, dA } \end{align*}\). If we convert to polars, since we are integrating over the entire plane, the radii can extend out indefinitely and all angles can be swept out. So

\(\displaystyle \displaystyle \begin{align*} \int{ \int_{\mathbf{R}^2} {e^{-\left( x^2 + y^2 \right) } }\,dA } &= \int_{-\infty}^{\infty}{\int_{-\infty}^{\infty}{ e^{-\left( x^2 + y^2 \right) } \,dx}\,dy} \\ &= \int_0^{2\pi}{\int_0^{\infty}{e^{-r^2}\,r\,dr}\,d\theta} \\ &= -\frac{1}{2}\int_0^{2\pi}{\int_0^{\infty}{e^{-r^2} \left( -2r \right) \, dr}\,d\theta} \\ &= -\frac{1}{2}\int_0^{2\pi}{\int_0^{-\infty}{e^u\,du}\,d\theta} \textrm{ after substituting } u = -r^2 \\ &= \frac{1}{2}\int_0^{2\pi}{\int_{-\infty}^0{e^u\,du}\,d\theta} \\ &= \frac{1}{2}\int_0^{2\pi}{\lim_{\epsilon \to -\infty}\int_{\epsilon}^0{e^u\,du}\,d\theta} \\ &= \frac{1}{2}\int_0^{2\pi}{\lim_{\epsilon \to -\infty} \left[ e^u \right]_{\epsilon}^0 \,d\theta} \\ &= \frac{1}{2}\int_0^{2\pi}{e^0 - \lim_{\epsilon \to -\infty}e^{\epsilon}\,d\theta} \\ &= \frac{1}{2}\int_0^{2\pi}{1 - 0\,d\theta} \\ &= \frac{1}{2}\int_0^{2\pi}{1\,d\theta} \\ &= \frac{1}{2} \left[ \theta \right] _0^{2\pi} \\ &= \frac{1}{2} \left( 2\pi - 0 \right) \\ &= \frac{1}{2} \left( 2\pi \right) \\ &= \pi \end{align*}\)

But if we attempt to integrate using Cartesians

\(\displaystyle \displaystyle \begin{align*} \int{\int_{\mathbf{R}^2}{e^{-\left( x^2 + y^2 \right) }}\,dA} &= \int_{-\infty}^{\infty}{\int_{-\infty}^{\infty}{e^{-\left( x^2 + y^2 \right) }\,dx}\,dy} \\ &= \int_{-\infty}^{\infty}{\int_{-\infty}^{\infty}{e^{-x^2 - y^2}\,dx}\,dy} \\ &= \int_{-\infty}^{\infty}{\int_{-\infty}^{\infty}{e^{-x^2}e^{-y^2}\,dx}\,dy} \\ &= \left( \int_{-\infty}^{\infty}{e^{-x^2}\,dx} \right) \left( \int_{-\infty}^{\infty}{e^{-y^2}} \, dy \right) \\ &= \left( \int_{-\infty}^{\infty}{e^{-x^2}\,dx} \right) ^2 \textrm{ as the two integrals are identical and so are numerically equal} \end{align*}\)

Equating the two results, we find

\(\displaystyle \displaystyle \begin{align*} \left( \int_{-\infty}^{\infty}{e^{-x^2}\,dx} \right) ^2 &= \pi \\ \int_{-\infty}^{\infty}{e^{-x^2}\,dx} &= \sqrt{\pi} \end{align*}\)

Q.E.D.
 

FAQ: Can the exponential integral $\int e^{x^2}dx$ be evaluated exactly?

What is an Exponential Integral?

An Exponential Integral is a mathematical function that is defined as the integral of the exponential function. It is commonly denoted as Ei(x) and is used to solve various problems in physics, engineering, and other scientific fields.

How is an Exponential Integral calculated?

An Exponential Integral can be calculated using various methods, such as numerical integration or series expansion. It is a complex function and cannot be expressed in terms of elementary functions, hence it is usually calculated using specialized software or tables.

What is the significance of an Exponential Integral?

An Exponential Integral has many applications in physics and engineering, such as in solving differential equations, evaluating complex integrals, and modeling various physical phenomena. It also has connections to other important functions, such as the error function and the logarithmic integral.

Can an Exponential Integral have complex values?

Yes, an Exponential Integral can have complex values for certain values of the argument x. In fact, the function has a branch point at x = 0, which leads to different values for Ei(x) depending on the path taken in the complex plane. Therefore, it is important to specify which branch of the function is being used when working with complex values.

Are there any real-life examples of the use of an Exponential Integral?

Yes, there are many real-life examples where an Exponential Integral is used. For instance, it is used in the calculation of the electric potential of a point charge, the analysis of thermal radiation, and the modeling of population growth. It is also used in various engineering applications, such as in the design of electronic circuits and control systems.

Similar threads

Replies
6
Views
546
Replies
5
Views
2K
Replies
3
Views
2K
Replies
5
Views
908
Replies
6
Views
2K
Back
Top