xex is the prototype integration by parts problem — a polynomial times an exponential. The LIATE rule tells you immediately which factor is u and which is dv.
Result
\[ \int x e^x\,dx = (x-1)e^x + C \]
Derivation
LIATE says: Algebraic before Exponential. Set \(u = x\) and \(dv = e^x\,dx\).
Then \(du = dx\) and \(v = e^x\). Apply \(\int u\,dv = uv - \int v\,du\):
\[ \int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + C = (x - 1)e^x + C \]Verification: \(\dfrac{d}{dx}[(x-1)e^x] = e^x + (x-1)e^x = xe^x\) ✓
Definite integral examples
\(\int_0^1 x e^x\,dx\)
\[ \Big[(x-1)e^x\Big]_0^1 = (0)(e) - (-1)(1) = 0 + 1 = 1 \]\(\int_0^2 x e^x\,dx\)
\[ \Big[(x-1)e^x\Big]_0^2 = (1)e^2 - (-1)(1) = e^2 + 1 \approx 8.389 \]Common variants
| Integral | Antiderivative | Notes |
|---|---|---|
| \(\int x^2 e^x\,dx\) | \((x^2 - 2x + 2)e^x + C\) | Apply integration by parts twice. |
| \(\int x e^{ax}\,dx\) | \(\dfrac{(ax-1)e^{ax}}{a^2} + C\) | Chain-rule version. |
Try it in the calculator
Paste any variant below into the step-by-step integral calculator for a full worked solution and graph.
Open in calculator →