Skip to content
ihateDesmos

Derivative of log x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of log x
ddx(log(x))=1xln(10)

The derivative of log x (base 10) is 1/(x ln 10), which is about 0.4343/x. In general, the derivative of a log in base b is 1/(x ln b).

2468−112
Open in calculator
y=log(x)
in blue and its derivative
y=1xln(10)
in red. Defined for x > 0.

How to find the derivative of log x

Method: change of base.

  1. 1
    Change to natural logs: log₁₀ x = ln x / ln 10.
  2. 2
    ln 10 is a constant, so it stays as a multiplier.
  3. 3
    The derivative of ln x is 1/x.
  4. 4
    So the derivative is (1/ln 10) · (1/x) = 1/(x ln 10).

What it means on the graph

Base 10 logs rise more slowly than natural logs, by a constant factor of ln 10 ≈ 2.303. That same factor appears in the slope. Natural logs have the tidiest derivative, which is why calculus prefers them.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of log x and its derivative
xlog x1/(x ln 10)Slope, measured
1/2−0.301030.8685890.868589
100.4342940.434294
20.301030.2171470.217147
50.698970.08685890.0868589
1010.04342940.0434294

Second derivative

Differentiating once more gives:

d2dx2(log(x))=−1x2ln(10)

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.

Related derivatives
FunctionDerivative
log(2x)
1xln(10)
log(x2+1)
2x(x2+1)ln(10)

Common mistakes

  • Writing 1/x, which is the derivative of ln x, not log x.
  • Forgetting which base your course uses: some subjects write log for the natural log.

Frequently asked questions

What is the derivative of log x?
The derivative of log x is 1/(x ln 10), for x > 0.
What is the second derivative of log x?
Differentiate 1/(x ln 10) again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the derivative of log base 2 of x?
1/(x ln 2). For any base b, the derivative is 1/(x ln b).

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator