Derivative of x ln x
The derivative of x ln x is ln x + 1, for x > 0. It is a standard product rule example, and the result turns up often in integration.
How to find the derivative of x ln x
Method: product rule.
- 1Use the product rule: (fg)′ = f′g + fg′, with f = x and g = ln x.
- 2f′ = 1 and g′ = 1/x.
- 3So the derivative is 1 · ln x + x · (1/x).
- 4Simplify: ln x + 1.
What it means on the graph
The derivative is zero where ln x = −1, at x = 1/e ≈ 0.368. That is the minimum of x ln x, with a value of −1/e. This same fact explains why the integral of ln x is x ln x − x.
In the window shown, the derivative is zero at x = 0.367879. Those are the points where the graph of x ln x has a horizontal tangent.
Table of values
The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.
| x | x ln x | ln x + 1 | Slope, measured |
|---|---|---|---|
| 1/4 | −ln 2/2 | −0.386294 | −0.386294 |
| 0.367879 | −0.367879 | 0 | −0 |
| 1 | 0 | 1 | 1 |
| 2 | 2ln 2 | 1.69315 | 1.69315 |
| 3 | 3.29584 | 2.09861 | 2.09861 |
Second derivative
Differentiating once more gives:
The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.
Related derivatives
The same result with the chain or product rule. Each of these is checked numerically too.
| Function | Derivative |
|---|---|
xln(2x) | ln(2x)+1 |
x2ln(x) | 2xln(x)+x |
Common mistakes
- Writing 1/x, by differentiating each factor and multiplying. The derivative of a product isn’t the product of the derivatives.
Frequently asked questions
What is the derivative of x ln x?
What is the second derivative of x ln x?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.