Skip to content
ihateDesmos

Integral of log x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of log x
∫
log(x)
dx =
xln(x)−xln(10)+C

The integral of log x (base 10) is (x ln x − x)/ln 10 + C. Convert to natural logs first, and the rest is the integral of ln x.

24624
Open in calculator
y=log(x)
in blue and its integral
y=xln(x)−xln(10)
(with C = 0) in red. Defined for x > 0.

How to integrate log x

Method: change of base.

  1. 1
    Change the base: log₁₀ x = ln x / ln 10.
  2. 2
    Take the constant outside: (1/ln 10) ∫ln x dx.
  3. 3
    The integral of ln x, by parts, is x ln x − x.
  4. 4
    So the result is (x ln x − x)/ln 10 + C.

What it means

A base 10 log is a natural log scaled by 1/ln 10 ≈ 0.4343, so its integral is scaled the same way.

The integral from 1 to 10

Using the antiderivative: F(10) − F(1) = 10 − 9/ln 10, which is about 6.09135. A direct numerical integration of log x gives 6.09135, which agrees.

12345678−2−112345

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
xlog xSlope of the answer
1/2−0.30103−0.30103
10−0
20.301030.30103
50.698970.69897
80.903090.90309

Common mistakes

  • Using the natural log’s answer without dividing by ln 10.

Frequently asked questions

What is the integral of log x?
The integral of log x is (x ln x − x)/ln 10 + C, for x > 0.
What is the integral of log x from 1 to 10?
10 − 9/ln 10, which is about 6.09135.

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