Skip to content
ihateDesmos

Derivative of ln x

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

The derivative of ln x is 1/x, for x > 0. The natural logarithm always rises, but more and more slowly: its slope at x is exactly 1 divided by x.

12345−224
Open in calculator
y=ln(x)
in blue and its derivative
y=1x
in red. Defined for x > 0. For negative x, ln|x| also has derivative 1/x.

How to find the derivative of ln x

Method: implicit differentiation.

  1. 1
    Let y = ln x, so eʸ = x.
  2. 2
    Differentiate both sides with respect to x, using the chain rule on the left: eʸ · dy/dx = 1.
  3. 3
    Solve: dy/dx = 1/eʸ.
  4. 4
    Since eʸ = x, this is dy/dx = 1/x.

What it means on the graph

At x = 1 the slope is exactly 1. By x = 10 it is 0.1, and by x = 100 only 0.01, which is why logarithmic growth feels so slow. Near x = 0 the slope grows enormous, matching the curve’s plunge down its vertical asymptote.

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 ln x and its derivative
xln x1/xSlope, measured
1/2−ln 222
1011
2ln 21/21/2
e10.3678790.367879
51.609441/51/5

Second derivative

Differentiating once more gives:

d2dx2(ln(x))=−1x2

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
ln(2x)
1x
ln(x2)
2x
ln(sin(x))
cot(x)
ln(x2+1)
2xx2+1

Common mistakes

  • Writing 1/ln x. The derivative is 1/x.
  • Forgetting the chain rule: d/dx ln(u) = u′/u, not 1/u.

Frequently asked questions

What is the derivative of ln x?
The derivative of ln x is 1/x, for x > 0.
What is the second derivative of ln x?
Differentiate 1/x again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the derivative of ln(u)?
u′/u: the derivative of the inside divided by the inside. So d/dx ln(x² + 1) = 2x/(x² + 1).
What is the derivative of ln|x|?
Also 1/x, for all x ≠ 0. This is why the integral of 1/x is written ln|x| + C.

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