The natural logarithm differentiates to the reciprocal of its argument.
\[\frac{d}{dx}\ln x = \frac{1}{x}\]
What it says
\(\ln x\) is the inverse of \(e^{x}\), and inverting a function reciprocates its slope. Since \(e^{x}\) has slope \(e^{x} = y\) at height \(y\), its inverse has slope \(\frac{1}{y}\) — at the point \(x\), that is \(\frac{1}{x}\).
This is the one derivative that fills the gap left by the power rule. Every power \(x^{n}\) integrates to another power except \(n = -1\); \(\ln x\) is what \(\frac{1}{x}\) integrates to.
Composed with something else, the pattern is \(\frac{u'}{u}\): derivative of the inside over the inside. That form is worth recognising on sight, because it appears everywhere in integration too.
When it applies
The natural logarithm of the variable or of an expression in it.
\(\log(x)\) in this calculator means the natural logarithm, matching most mathematical writing.
Any \(\frac{u'}{u}\) pattern, read backwards.
Five worked examples
Every line is the step the calculator would show, in the order it applies them. Each graph
is live: hover it to read both curves and see the tangent whose slope is the derivative,
drag to pan, scroll to zoom.
1
Example 1
\[\frac{d}{dx}\left[\ln\left(x\right)\right]\]
Straight from the rule.
\[\frac{d}{dx}\left[\ln x\right] = \frac{1}{x}\]
Answer
\[\frac{1}{x}\]
f rises without bound but ever more slowly, and f′ falls away toward zero. Near the origin the roles reverse: f dives toward \(-\infty\) while f′ climbs, both consequences of the same vertical tangent.
Defined only for \(x > 0\), where the derivative is positive and shrinking.
Arches between the zeros of \(\sin x\), each plunging toward \(-\infty\) at both ends, with f′ running from \(+\infty\) to \(-\infty\) across every one.
A tidy example of the \(\frac{u'}{u}\) shape producing a familiar function.
Derivative Calculator would like your consent to use your data
Store and read cookies and similar identifiers on your device
Measure how the site is used, and — only if you allow it — personalise advertising
Learn more
How can I change my choice?
Open Privacy settings at the bottom of any page. Your answer can be changed or withdrawn at any time, and takes effect straight away.
What if I do not consent?
Everything still works. The calculator, the graph and every rule page run entirely in your browser, so refusing costs you nothing but the optional cookies.
Do I have to consent to everything?
No. Manage options lets you allow one category and refuse another, and nothing optional is switched on until you switch it on.
Necessary cookies keep the site working and are always on. Anything else — measurement and advertising — runs only with your permission, and no profile is built about you before you give it. Read the privacy policy
Data preferences
Choose what you allow
Each category is described below. Your choice is stored on this device and applies the moment you save it.
Strictly necessary
Keeps the site working: your light or dark theme, your recent expressions and the record of this consent choice. Nothing here identifies you, and it cannot be switched off.
Preferences
Remembers optional settings across visits, such as your language and the way you like results laid out.
Measurement
Counts visits and which rules people look up, so we know what to improve. Aggregated — never used to build a profile about you.
Advertising
Lets advertising partners use cookies to select and measure ads, including personalised ones. Refuse this and any ads shown stay non-personalised.