When the base of a logarithm contains the variable, change to base \(e\) and use the quotient rule.
\[\log_{a} b = \frac{\ln b}{\ln a}\]
What it says
The base-\(a\) rule assumes the base is a fixed number. If the base moves with \(x\) — as in \(\log_{x}2\) — that assumption fails, and there is no separate rule to learn.
Instead, apply the change-of-base identity to turn the expression into a ratio of natural logarithms. Both parts are then ordinary functions of \(x\), and the quotient rule finishes the job.
This is a rewriting step rather than a differentiation rule, which is why the calculator lists it as its own line in the working: it records the moment the expression changed form.
When it applies
The base of a logarithm contains the differentiation variable.
Expressions such as \(\log_{x}2\) or \(\log_{x}(x + 1)\).
Any time base-\(e\) form would be easier to work with.
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.
The pole at \(x = 1\) splits the graph into two branches that both fall. On the right the curve sinks toward zero from above; on the left it approaches zero from below, and f′ dives sharply near the pole on either side.
Negative for \(x > 1\): as the base grows, \(\log_{x}2\) falls.