Skip to content
ihateDesmos

Integral of e^(x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of e^(x²)
(√π/2) erfi(x) + C

The integral of e^(x²) has no elementary formula. It is written using the imaginary error function: (√π/2) erfi(x) + C. Its derivative, by contrast, is easy.

−1.5−1.0−0.50.51.01.55100
Open in calculator
y=ex2
in blue.

How to integrate e^(x²)

Method: imaginary error function.

  1. 1
    No elementary function has e^(x²) as its derivative. Substitution with u = x² fails, as there is no x to pair with du.
  2. 2
    Define the imaginary error function: erfi(x) = (2/√π) ∫₀ˣ e^(t²) dt.
  3. 3
    That gives ∫e^(x²) dx = (√π/2) erfi(x) + C.
  4. 4
    For a number, use numerical integration or a series: e^(x²) = 1 + x² + x⁴/2! + x⁶/3! + …, which integrates term by term.

What it means

The function grows extremely fast, so even modest bounds give large values. The series form lets you integrate it to any accuracy you need.

The integral from 0 to 1

Computed numerically: about 1.46265. A direct numerical integration of e^(x²) gives 1.46265, which agrees.

−1.5−1−0.50.511.524681012

Table of values

The running total of area from 0 to x, computed numerically.

Running integral from 0
xe^(x²)∫ from 0 to x
−1e−1.46265
−1/21.28403−0.544987
010
1/21.284030.544987
1e1.46265

Common mistakes

  • Writing e^(x²)/(2x). Differentiating that doesn’t give e^(x²), so it can’t be right.

Frequently asked questions

What is the integral of e^(x²)?
It has no formula in elementary functions. It can be written as (√π/2) erfi(x) + C, and any definite integral can be computed numerically.
What is the integral of e^(x²) from 0 to 1?
about 1.46265, which is about 1.46265.
So what is the integral of x e^(x²)?
e^(x²)/2 + C. With the extra factor of x, substitution works immediately.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator