Integral of x ln x
Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of x ln x
∫
xln(x)
dx =x2ln(x)2−x24+C
The integral of x ln x is (x²/2) ln x − x²/4 + C. Choose u = ln x, because its derivative is simpler, and dv = x dx.
y=xln(x)
in blue and its integral y=x2ln(x)2−x24
(with C = 0) in red. Defined for x > 0.How to integrate x ln x
Method: integration by parts.
- 1Choose u = ln x and dv = x dx.
- 2Then du = (1/x) dx and v = x²/2.
- 3Integration by parts gives (x²/2) ln x − ∫(x²/2)(1/x) dx.
- 4The remaining integral is ∫(x/2) dx = x²/4.
- 5So the result is (x²/2) ln x − x²/4 + C.
What it means
x ln x dips below the axis between 0 and 1, reaching a minimum at x = 1/e, then grows. So its integral falls at first and rises after x = 1.
The integral from 1 to e
Using the antiderivative: F(e) − F(1) = (e² + 1)/4, which is about 2.09726. A direct numerical integration of x ln x gives 2.09726, 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 ln x | Slope of the answer |
|---|---|---|
| 1/2 | −ln 2/2 | −ln 2/2 |
| 1 | 0 | 0 |
| 3/2 | 0.608198 | 0.608198 |
| 2 | 2ln 2 | 2ln 2 |
| 3 | 3.29584 | 3.29584 |
Common mistakes
- Choosing u = x and dv = ln x dx, which makes things harder, since it needs the integral of ln x first.
Frequently asked questions
What is the integral of x ln x?
The integral of x ln x is x² ln x/2 − x²/4 + C, for x > 0.
What is the integral of x ln x from 1 to e?
(e² + 1)/4, which is about 2.09726.
Keep going
Integrate any function
Type your own function into the integral calculator for the steps, the answer and a graph.