Natural logarithms
Derivative of ln(x): Formula, Proof, and Examples
The natural logarithm is the inverse of the exponential function. Its derivative is reciprocal because equal multiplicative changes in x become equal additive changes in ln(x).

Direct answer
For real-valued ln(x), x > 0.
Proof by inverse differentiation
Let y = ln(x). The inverse relationship is x = exp(y). Differentiate both sides with respect to x.
The chain rule gives 1 = exp(y) · dy/dx. Since exp(y) = x, divide by x to obtain dy/dx = 1/x.
For ln|x|, the same derivative holds on any real interval that does not cross zero. This is why the antiderivative of 1/x is ln|x| + C, not merely ln(x) + C.
Worked examples
The constant 5 cancels after the chain rule.
Differentiate the inner expression and divide by it.
Apply the outer power rule, then the logarithm rule.
Common mistakes
- • Writing ln(x) on x < 0 in real calculus; ln|x| is a different function with a larger domain.
- • Assuming every calculator button labeled log has base 10. In CalculusMate, ln and log both parse as the natural logarithm, base e.
- • Forgetting the inner derivative in ln(g(x)): the result is g′(x)/g(x).
Try the worked examples in the calculator
Each link opens the matching calculator with the expression, variable and required conditions already filled in.
Open the calculator without a preset: Derivatives