Tutorials › Calculus I › The Gaussian Integrand and Its Antiderivative

Integral Evaluation Strategies · Tutorial 1193 of 1495

The Gaussian Integrand and Its Antiderivative

Learn why exp(-x²) has no elementary antiderivative, and how its definite integrals can still be represented and approximated.

Advanced 10 min read

What You'll Learn

  • Recognize why the usual substitution for an exponential composite does not directly integrate exp(-x²).
  • Apply a criterion for elementary antiderivatives of exponentials of polynomials.
  • Prove that the Gaussian integrand has no elementary antiderivative.
  • Define a non-elementary antiderivative using a definite integral.
  • Derive a convergent series for a Gaussian definite integral and bound its approximation.

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.

Key distinction: The function \(e^{-x^2}\) has no elementary antiderivative, but it is continuous. Therefore its definite integral over every finite interval exists, and the Fundamental Theorem of Calculus provides an antiderivative defined by that integral.

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:

$$ \frac{d}{dx}e^{-x^2} = e^{-x^2}\frac{d}{dx}(-x^2) = -2x e^{-x^2}. $$

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:

$$ \int x e^{-x^2}\,dx = -\frac12 e^{-x^2}+C, $$

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)}\).

Theorem: For \(g(x)=-x^2\), an elementary antiderivative of \(e^{-x^2}\) would require a rational function \(R(x)\) such that $$ R'(x)-2xR(x)=1. $$ No such rational function exists.

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.

  1. 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.
  2. 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.
  3. 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

$$ \frac{d}{dx}\bigl(R(x)e^{-x^2}\bigr) = \bigl(R'(x)-2xR(x)\bigr)e^{-x^2} = e^{-x^2}. $$

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

$$ F(x)=\int_0^x e^{-t^2}\,dt. $$

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

$$ \int_a^b e^{-x^2}\,dx=F(b)-F(a). $$

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,

$$ \int_{-1}^{1}e^{-x^2}\,dx = 2\int_0^1 e^{-x^2}\,dx = 2F(1). $$

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:

$$ \int_{-1}^{0}e^{-x^2}\,dx = \int_{1}^{0}e^{-u^2}(-du) = \int_0^1e^{-u^2}\,du. $$

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

$$ \int_0^1 e^{-x^2}\,dx = \sum_{n=0}^{\infty}\frac{(-1)^n}{n!(2n+1)}. $$

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

$$ 1-\frac13+\frac1{10}-\frac1{42}+\frac1{216}-\frac1{1320}+\frac1{9360}-\cdots. $$

The magnitudes decrease to zero, since each term has magnitude \(a_n=1/(n!(2n+1))\) and

$$ \frac{a_{n+1}}{a_n} = \frac{2n+1}{(n+1)(2n+3)} < 1 \qquad(n\geq 0). $$

The alternating-series estimate says that the sum lies between consecutive partial sums. Through the \(n=4\) term, the partial sum is

$$ S_4 = 1-\frac13+\frac1{10}-\frac1{42}+\frac1{216} = \frac{5651}{7560} \approx 0.74748677. $$

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.

Common mistake: “There is no elementary antiderivative, so \(\int_0^1 e^{-x^2}\,dx\) has no value.” The correction is that continuity guarantees the definite integral exists. It can be represented by \(F(1)\), by the convergent series above, or by a numerical approximation with a controlled error.

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.

  1. Why does differentiating \(e^{-x^2}\) not produce a constant multiple of \(e^{-x^2}\)?
  2. What rational-function equation would need a solution for \(e^{-x^2}\) to have an elementary antiderivative?
  3. Why can a rational solution to that equation have no finite poles?
  4. How does defining \(F(x)=\int_0^x e^{-t^2}\,dt\) give an antiderivative?
  5. What does the alternating-series estimate tell you about the error after a partial sum?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon