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.
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.
- 1Choose u = x and dv = eˣ dx.
- 2Then du = dx and v = eˣ.
- 3Integration by parts gives x eˣ − ∫eˣ dx.
- 4The remaining integral is eˣ.
- 5So 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.
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.
| x | x eˣ | Slope of the answer |
|---|---|---|
| −3 | −0.149361 | −0.149361 |
| −1 | −0.367879 | −0.367879 |
| 0 | 0 | 0 |
| 1 | e | e |
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.