Derivative of ln x
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.
How to find the derivative of ln x
Method: implicit differentiation.
- 1Let y = ln x, so eʸ = x.
- 2Differentiate both sides with respect to x, using the chain rule on the left: eʸ · dy/dx = 1.
- 3Solve: dy/dx = 1/eʸ.
- 4Since 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.
| x | ln x | 1/x | Slope, measured |
|---|---|---|---|
| 1/2 | −ln 2 | 2 | 2 |
| 1 | 0 | 1 | 1 |
| 2 | ln 2 | 1/2 | 1/2 |
| e | 1 | 0.367879 | 0.367879 |
| 5 | 1.60944 | 1/5 | 1/5 |
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 |
|---|---|
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?
What is the second derivative of ln x?
What is the derivative of ln(u)?
What is the derivative of ln|x|?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.