Integral of log x
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.
How to integrate log x
Method: change of base.
- 1Change the base: log₁₀ x = ln x / ln 10.
- 2Take the constant outside: (1/ln 10) ∫ln x dx.
- 3The integral of ln x, by parts, is x ln x − x.
- 4So 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.
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 | log x | Slope of the answer |
|---|---|---|
| 1/2 | −0.30103 | −0.30103 |
| 1 | 0 | −0 |
| 2 | 0.30103 | 0.30103 |
| 5 | 0.69897 | 0.69897 |
| 8 | 0.90309 | 0.90309 |
Common mistakes
- Using the natural log’s answer without dividing by ln 10.
Frequently asked questions
What is the integral of log x?
What is the integral of log x from 1 to 10?
Keep going
It is 1/(x ln 10).
Base 10: through (1, 0) and (10, 1); every log graph has this shape.
It is x ln x − x + C.
It is 2x ln|x| − 2x + C.
It is x² ln x/2 − x²/4 + C.
Every standard integral and technique, with examples.
Type your own function into the integral calculator for the steps, the answer and a graph.