Skip to content
ihateDesmos

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.

0.51.01.52.02.52
Open in calculator
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.

  1. 1
    Choose u = ln x and dv = x dx.
  2. 2
    Then du = (1/x) dx and v = x²/2.
  3. 3
    Integration by parts gives (x²/2) ln x − ∫(x²/2)(1/x) dx.
  4. 4
    The remaining integral is ∫(x/2) dx = x²/4.
  5. 5
    So 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.

0.511.522.53−11234

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 ln xSlope of the answer
1/2−ln 2/2−ln 2/2
100
3/20.6081980.608198
22ln 22ln 2
33.295843.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.

Open the integral calculator