Skip to content
ihateDesmos

Integral of x eˣ

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of x eˣ
∫
xex
dx =
(x−1)ex+C

The integral of x eˣ is eˣ(x − 1) + C. Choose u = x, because differentiating it leaves just 1.

−4−3−2−11240
Open in calculator
y=xex
in blue and its integral
y=(x−1)ex
(with C = 0) in red.

How to integrate x eˣ

Method: integration by parts.

  1. 1
    Choose u = x and dv = eˣ dx.
  2. 2
    Then du = dx and v = eˣ.
  3. 3
    Integration by parts gives x eˣ − ∫eˣ dx.
  4. 4
    The remaining integral is eˣ.
  5. 5
    So the result is x eˣ − eˣ + C = eˣ(x − 1) + C.

What it means

x eˣ is negative for x < 0, with a minimum at x = −1, so its integral falls until x = 0 and then rises very quickly.

The integral from 0 to 1

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

−5−4−3−2−11−2−1123456

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ˣSlope of the answer
−3−0.149361−0.149361
−1−0.367879−0.367879
000
1ee

Common mistakes

  • Choosing u = eˣ and dv = x dx, which makes the second integral harder.

Frequently asked questions

What is the integral of x eˣ?
The integral of x eˣ is eˣ(x − 1) + C.
What is the integral of x eˣ from 0 to 1?
1, which is about 1.

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