Skip to content
ihateDesmos

Integral of x e^(x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of x e^(x²)
∫
xex2
dx =
ex22+C

The integral of x e^(x²) is e^(x²)/2 + C. The x out front is what makes it possible, because it is nearly the derivative of x².

−1.5−1.0−0.50.51.01.5−550
Open in calculator
y=xex2
in blue and its integral
y=ex22
(with C = 0) in red.

How to integrate x e^(x²)

Method: u-substitution.

  1. 1
    Let u = x², so du = 2x dx, which means x dx = du/2.
  2. 2
    The integral becomes (1/2) ∫eᵘ du = eᵘ/2.
  3. 3
    Substitute back: e^(x²)/2 + C.
  4. 4
    Check: the derivative of e^(x²)/2 is 2x e^(x²)/2 = x e^(x²).

What it means

Take away the x and this integral has no elementary formula at all. That single factor changes everything, and spotting it is what u-substitution is all about.

The integral from 0 to 1

Using the antiderivative: F(1) − F(0) = (e − 1)/2, which is about 0.859141. A direct numerical integration of x e^(x²) gives 0.859141, which agrees.

−1.5−1−0.50.511.5−8−6−4−22468

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xx e^(x²)Slope of the answer
−1−e−e
−1/2−0.642013−0.642013
000
1/20.6420130.642013
1ee

Common mistakes

  • Forgetting to divide by 2.

Frequently asked questions

What is the integral of x e^(x²)?
The integral of x e^(x²) is e^(x²)/2 + C.
What is the integral of x e^(x²) from 0 to 1?
(e − 1)/2, which is about 0.859141.

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