The Gaussian Function
The function \(e^{-x^2}\) is called the Gaussian function. Its graph is smooth, positive, symmetric about the vertical axis, and approaches zero as \(|x|\) grows. It appears throughout mathematics and applications, including probability and models of measurement error.
Its formula looks simple, but its antiderivative does not have an expression in elementary functions. That fact does not mean the function cannot be integrated. It means we must distinguish two questions: whether an elementary formula exists for an antiderivative, and whether a definite integral has a value that can be represented or approximated.
Why the Familiar Substitution Does Not Finish the Job
For an exponential composite \(e^{g(x)}\), the chain rule gives \(\frac{d}{dx}e^{g(x)}=g'(x)e^{g(x)}\). This readily produces an antiderivative when the integrand includes the factor \(g'(x)\). For the Gaussian function, the inner function is \(-x^2\), whose derivative is \(-2x\). That factor is absent.
Worked Example: Checking the direct exponential guess
A tempting guess for an antiderivative of \(e^{-x^2}\) is a constant multiple of \(e^{-x^2}\). Differentiate the exponential first:
For a constant \(c\), the derivative of \(c e^{-x^2}\) is \(-2cx e^{-x^2}\). To make this equal to \(e^{-x^2}\) for all \(x\), we would need \(-2cx=1\) for every \(x\), which no constant \(c\) can satisfy.
The related integrand \(x e^{-x^2}\) does have a simple antiderivative:
because differentiating the expression on the right gives \(-\frac12(-2x)e^{-x^2}=x e^{-x^2}\). The missing factor is the obstacle to this particular substitution. It does not, by itself, prove that no other elementary expression could work.
Proving There Is No Elementary Antiderivative
The distinction between “this substitution does not work” and “no elementary antiderivative exists” matters. The latter is a stronger claim and requires a result about elementary functions. Here, an elementary function means one built from rational functions using finitely many algebraic operations, exponentials, logarithms, and compositions of these functions.
We use a specialized form of Liouville’s theorem for an exponential of a polynomial. For a polynomial \(g(x)\), an elementary antiderivative of \(e^{g(x)}\) can exist only if there is a rational function \(R(x)\) satisfying \(R'(x)+g'(x)R(x)=1\). In fact, under the usual setting of elementary functions over the complex numbers, this condition is also sufficient: if it holds, then \((R(x)e^{g(x)})'=e^{g(x)}\).
To verify the last claim, first suppose \(R\) has a pole at a finite complex number \(a\). If the pole has order \(m\geq 1\), then \(R'\) has a pole of order \(m+1\). The term \(-2xR(x)\) has a pole of order at most \(m\), including when \(a=0\), where multiplication by \(x\) lowers the pole order by one. Thus the highest-order pole in \(R'-2xR\) cannot cancel. But the right side, \(1\), has no pole. This is a contradiction. A rational function without finite poles must be a polynomial.
Now suppose \(R\) is a nonzero polynomial of degree \(n\), with leading term \(c x^n\), where \(c\neq 0\). Then \(-2xR(x)\) has leading term \(-2c x^{n+1}\), while \(R'(x)\) has degree at most \(n-1\). The degree-\((n+1)\) term cannot cancel, so \(R'-2xR\) cannot equal the constant \(1\). The zero polynomial also fails, since it makes the left side zero. There is no rational solution, and the criterion therefore rules out an elementary antiderivative.
Worked Example: Applying the criterion to the Gaussian
Set \(g(x)=-x^2\). Then \(g'(x)=-2x\), so the criterion’s equation is \(R'-2xR=1\). Check the possible rational functions systematically.
- If \(R\) has a finite pole of order \(m\), \(R'\) has a pole of order \(m+1\), which cannot be canceled by \(-2xR\). Therefore \(R\) has no finite poles.
- A rational function with no finite poles is a polynomial. If its degree is \(n\) and its leading coefficient is \(c\neq 0\), then \(-2xR\) has a nonzero degree-\((n+1)\) term.
- The derivative \(R'\) has degree at most \(n-1\), so it cannot cancel that degree-\((n+1)\) term. The left side cannot equal \(1\).
Thus no rational \(R\) meets the criterion. The conclusion is not merely that a particular guess failed: \(e^{-x^2}\) has no elementary antiderivative.
As a check on the criterion’s equation, if \(R'-2xR=1\) did hold, then
This confirms why a rational solution would produce an elementary antiderivative.
A Definite Integral Still Defines an Antiderivative
The Fundamental Theorem of Calculus gives a direct way to define a primitive even when no elementary formula is available. Define
Because \(e^{-t^2}\) is continuous, the first part of the Fundamental Theorem of Calculus gives \(F'(x)=e^{-x^2}\). So \(F\) is an antiderivative, but the result above shows it is not an elementary one. The integral definition is a precise representation, not an elementary closed form.
For any real numbers \(a\) and \(b\), the same theorem gives
This identity holds for either orientation of the endpoints; when \(b<a\), the definite integral has the usual reversed orientation. Since \(e^{-x^2}\) is even, \(F\) is odd: for \(a\geq 0\), changing variables \(t=-u\) shows \(F(-a)=-F(a)\). Consequently, integrals over symmetric intervals satisfy \(\int_{-a}^{a}e^{-x^2}\,dx=2F(a)\).
Worked Example: Using symmetry on a symmetric interval
Consider the integral from \(-1\) to \(1\). Because the integrand is even, its values at \(x\) and \(-x\) agree. Therefore,
This is an exact representation of the definite integral even though \(F\) has no elementary formula. It also provides a check on the sign and size: the integrand is positive, so the integral is positive, and its value is twice the area on \([0,1]\).
The symmetry identity itself can be checked by splitting the interval and substituting \(x=-u\) in the negative half:
A Series Representation for a Definite Integral
A definite integral can also be represented by a convergent series. The exponential series gives \(e^{-x^2}=\sum_{n=0}^{\infty}(-1)^n x^{2n}/n!\). On \([0,1]\), this series converges uniformly: the absolute value of its \(n\)th term is at most \(1/n!\), and \(\sum_{n=0}^{\infty}1/n!\) converges. Uniform convergence permits integration term by term on this interval. Since \(\int_0^1 x^{2n}\,dx=1/(2n+1)\), we obtain
This is an exact value in series form. It is not an elementary antiderivative, and it does not turn the integral into a finite combination of elementary functions. It does, however, give a practical approximation with a rigorous error bound.
Worked Example: Approximating the integral from 0 to 1
The first terms of the series are
The magnitudes decrease to zero, since each term has magnitude \(a_n=1/(n!(2n+1))\) and
The alternating-series estimate says that the sum lies between consecutive partial sums. Through the \(n=4\) term, the partial sum is
Adding the \(n=5\) term gives \(S_5=S_4-\frac1{1320}\approx 0.74672920\). Adding the \(n=6\) term gives \(S_6=S_5+\frac1{9360}\approx 0.74683604\). Hence the value lies between \(S_5\) and \(S_6\), so it rounds to \(0.747\) to three decimal places. This is a definite integral evaluation by a convergent series, not by an elementary antiderivative.
A Common Mistake
A frequent error is to infer that the definite integral cannot be evaluated because no elementary antiderivative exists. That conclusion confuses two different tasks. An elementary antiderivative is one possible tool for evaluating a definite integral through the Fundamental Theorem of Calculus; its absence does not prevent other exact representations, bounds, or numerical approximations.
The Gaussian function is a useful example precisely because both statements are true: its antiderivative is non-elementary, while its definite integrals remain well-defined and amenable to exact or approximate study. These are not competing conclusions; they address different meanings of integration.
Check Your Understanding
Answer these questions using the definitions, criterion, and representations developed above.
- Why does differentiating \(e^{-x^2}\) not produce a constant multiple of \(e^{-x^2}\)?
- What rational-function equation would need a solution for \(e^{-x^2}\) to have an elementary antiderivative?
- Why can a rational solution to that equation have no finite poles?
- How does defining \(F(x)=\int_0^x e^{-t^2}\,dt\) give an antiderivative?
- What does the alternating-series estimate tell you about the error after a partial sum?