Mathwords logoMathwords

Nonelementary Integral — Definition, Formula & Example

A nonelementary integral is an integral whose antiderivative exists but cannot be written as a finite formula built from polynomials, roots, exponentials, logarithms, and trig functions. The classic example is ∫e−x2 dx\int e^{-x^2}\,dx. No combination of the usual integration rules will ever produce a closed-form answer for it.

Call a function elementary if you can build it from constants and xx in finitely many steps. Each step may use arithmetic operations, roots, compositions, exe^x, ln⁡x\ln x, and the trigonometric functions and their inverses. A continuous function ff has a nonelementary integral if no elementary function FF satisfies F′(x)=f(x)F'(x) = f(x). Liouville's theorem (1830s) gives a way to prove this for specific functions, including e−x2e^{-x^2}, sin⁡xx\frac{\sin x}{x}, sin⁡(x2)\sin(x^2), exx\frac{e^x}{x}, and 1ln⁡x\frac{1}{\ln x}.

Key Formula

∫−∞∞e−x2 dx=πerf⁡(x)=2π∫0xe−t2 dt\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi} \qquad \operatorname{erf}(x) = \frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2}\,dt
Where:
  • e−x2e^{-x^2} = The Gaussian function, whose antiderivative is nonelementary
  • π\sqrt{\pi} = Exact value of the Gaussian integral over the whole real line, found with polar coordinates rather than an antiderivative
  • erf⁡(x)\operatorname{erf}(x) = The error function, a new named function defined by the integral itself
  • tt = Dummy variable of integration

Worked Example

Problem: No elementary antiderivative of e−x2e^{-x^2} exists. Estimate ∫01e−x2 dx\int_0^1 e^{-x^2}\,dx using the first five terms of a power series, and bound the error.
Step 1: Start from the Maclaurin series eu=1+u+u22!+u33!+⋯e^u = 1 + u + \frac{u^2}{2!} + \frac{u^3}{3!} + \cdots and substitute u=−x2u = -x^2. You now have an infinite polynomial in place of the integrand.
e−x2=1−x2+x42−x66+x824−⋯e^{-x^2} = 1 - x^2 + \frac{x^4}{2} - \frac{x^6}{6} + \frac{x^8}{24} - \cdots
Step 2: Integrate each term from 0 to 1 with the power rule. The general term gives ∫01x2nn! dx=1(2n+1) n!\int_0^1 \frac{x^{2n}}{n!}\,dx = \frac{1}{(2n+1)\,n!}.
∫01e−x2 dx≈1−13+110−142+1216=56517560≈0.7475\int_0^1 e^{-x^2}\,dx \approx 1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \frac{1}{216} = \frac{5651}{7560} \approx 0.7475
Step 3: The series alternates and its terms shrink toward 0. By the alternating series error bound, the error is less than the first omitted term.
∣error∣<∫01x10120 dx=11320≈0.00076|\text{error}| < \int_0^1 \frac{x^{10}}{120}\,dx = \frac{1}{1320} \approx 0.00076
Answer: ∫01e−x2 dx≈0.7475\int_0^1 e^{-x^2}\,dx \approx 0.7475, accurate to within 0.00076. The exact value is π2erf⁡(1)≈0.7468\frac{\sqrt{\pi}}{2}\operatorname{erf}(1) \approx 0.7468. You can only state it exactly by naming a new function.

Why It Matters

In statistics, the normal distribution's density is a scaled e−z2/2e^{-z^2/2}, which has no elementary antiderivative. That is why you look up probabilities in z-tables or use a calculator's normalcdf. In Calculus 2 and in physics (Fresnel integrals of sin⁡(x2)\sin(x^2) in optics), these integrals are handled with power series and numerical methods such as Simpson's rule.

Common Mistakes

Mistake: Concluding that e−x2e^{-x^2} has no antiderivative at all, or forcing a substitution like u=x2u = x^2 that leaves a stray xx with no dudu to absorb it.
Correction: The antiderivative exists. By the Fundamental Theorem of Calculus, every continuous function has an antiderivative; here F(x)=∫0xe−t2 dtF(x) = \int_0^x e^{-t^2}\,dt is one. It just is not elementary. Recognize the integrand early, then switch to series, numerical approximation, or a special function such as erf⁡\operatorname{erf}.

Related Terms