Integrate e to the x squared: a thorough look to understanding, techniques, and applications of the integral ∫ e^(x^2) dx.
Understanding the Integral
What is e^(x^2)?
The function e^(x^2) is a composition of the exponential function e raised to the power of x squared. Unlike the familiar e^x, where the exponent is linear, the exponent x^2 grows quadratically, making the function increase much more rapidly as |x| becomes large Simple, but easy to overlook..
Why it’s non‑elementary
In elementary calculus, many integrals have closed‑form antiderivatives expressible using algebraic, trigonometric, or logarithmic functions. Still, ∫ e^(x^2) dx does not belong to this class. The derivative of any elementary function composed with e will always involve the original function multiplied by a polynomial factor, which cannot reproduce e^(x^2) alone. So naturally, mathematicians classify this integral as non‑elementary and turn to special functions or series representations for its evaluation.
Attempting Basic Techniques
Substitution
A common first step is to try a substitution such as u = x^2, which gives du = 2x dx or dx = du/(2√u). This introduces a square‑root term and does not simplify the integral; instead, it transforms ∫ e^(x^2) dx into ∫ e^u / (2√u) du, which is even more complicated Worth knowing..
Integration by Parts
Applying integration by parts, where ∫ u dv = uv – ∫ v du, typically requires choosing u and dv wisely. For ∫ e^(x^2) dx, any choice leads to a new integral that is not simpler, often resulting in a recursive loop that never terminates Surprisingly effective..
Direct Differentiation Check
One might wonder whether the derivative of x e^(x^2) or ½ e^(x^2) yields the integrand. Differentiating ½ e^(x^2) gives x e^(x^2), not e^(x^2). Hence, no elementary combination of basic functions reproduces the original integrand.
Series Expansion Approach
Taylor Series of e^(x^2)
The exponential function can be expanded as a power series:
[ e^{x^2}= \sum_{n=0}^{\infty} \frac{(x^2)^n}{n!}= \sum_{n=0}^{\infty} \frac{x^{2n}}{n!}. ]
Because this series converges for all real x, we can integrate term‑by‑term within the indefinite integral:
[ \int e^{x^2},dx = \int \left(\sum_{n=0}^{\infty} \frac{x^{2n}}{n!Worth adding: }\int x^{2n},dx = \sum_{n=0}^{\infty} \frac{x^{2n+1}}{(2n+1)n! }\right)dx = \sum_{n=0}^{\infty} \frac{1}{n!}+C.
This series provides a formal antiderivative, but it does not simplify to a familiar elementary function. Still, it is valuable for approximations when x is small.
Truncating the Series
If we truncate after a few terms, we obtain a polynomial approximation:
[ \int e^{x^2}dx \approx x + \frac{x^3}{3} + \frac{x^5}{10} + \frac{x^7}{42} + \cdots + C. ]
The accuracy improves as more terms are included, and this method is especially handy for computational purposes where a numeric value is required And that's really what it comes down to..
Connection to the Error Function
Definition of the Error Function
The error function, denoted erf(x), is defined as
[ \text{erf}(x)=\frac{2}{\sqrt{\pi}}\int_{0}^{x} e^{-t^2},dt. ]
Notice the negative exponent –t^2, which contrasts with our integrand e^(x^2). Even so, by performing a substitution t = i x (where i is the imaginary unit), we can relate the two integrals through complex analysis.
Imaginary Error Function
The imaginary error function, erfi(x), is defined as
[ \text{erfi}(x)=\frac{2}{\sqrt{\pi}}\int_{0}^{x} e^{t^2},dt. ]
Thus, our integral can be expressed directly in terms of erfi:
[ \int e^{x^2},dx = \frac{\sqrt{\pi}}{2},\text{erfi}(x) + C. ]
The function erfi(x) is non‑elementary and is implemented in many mathematical software packages Still holds up..
Properties of erfi(x)
- Odd function: erfi(–x) = –erfi(x).
- Series representation:
[ \text{erfi}(x)=\frac{2}{\sqrt{\pi}}\sum_{n=0}^{\infty}\frac{x^{2n+1}}{n!(2n+1)}. ]
- Asymptotic growth: For large |x|, erfi(x) grows faster than any exponential,