Navigation: Wiki Home > Skills > Derivative of General Logarithms
You already know that $\frac{d}{dx}(\ln x) = \frac{1}{x}$. What about logarithms with other bases, like $\log_{10} x$ or $\log_2 x$?
Here's the key insight: every logarithm can be written in terms of natural log. The change of base formula gives us:
$$\log_a x = \frac{\ln x}{\ln a}$$
Since $\ln a$ is just a constant, differentiating $\log_a x$ is nearly identical to differentiating $\ln x$; we just pick up an extra constant factor of $\frac{1}{\ln a}$.
This explains why mathematicians prefer natural logarithms in calculus: base $e$ is the only base where that extra factor equals 1.
Test: Write $\log_2 x$ in terms of natural logarithms.
Answer: $\log_2 x = \frac{\ln x}{\ln 2}$
If this is unfamiliar, recall: for any bases $a$ and $b$, $$\log_a x = \frac{\log_b x}{\log_b a}$$
| Formula | Domain |
|---|---|
| $\displaystyle\frac{d}{dx}(\log_a x) = \frac{1}{x \ln a}$ | $x > 0$, $a > 0$, $a \neq 1$ |
| $\displaystyle\frac{d}{dx}[\log_a(g(x))] = \frac{g'(x)}{g(x) \ln a}$ | $g(x) > 0$ |
Special cases:
$$\boxed{\frac{d}{dx}(\log_a x) = \frac{1}{x \ln a}}$$
Derivation:
Step 1. Use the change of base formula: $$\log_a x = \frac{\ln x}{\ln a}$$
Step 2. Since $\ln a$ is a constant, factor it out: $$\frac{d}{dx}(\log_a x) = \frac{d}{dx}\left(\frac{\ln x}{\ln a}\right) = \frac{1}{\ln a} \cdot \frac{d}{dx}(\ln x)$$
Step 3. Apply the known derivative of $\ln x$: $$= \frac{1}{\ln a} \cdot \frac{1}{x} = \frac{1}{x \ln a}$$
Why $e$ is special: When $a = e$, we have $\ln e = 1$, so the formula simplifies to $\frac{1}{x}$. For any other base, there's an extra factor of $\frac{1}{\ln a}$.
When the argument is a function $g(x)$ instead of just $x$:
$$\boxed{\frac{d}{dx}[\log_a(g(x))] = \frac{g'(x)}{g(x) \ln a}}$$
The pattern: derivative of inside over (inside times $\ln a$).
The function $\log_a x$ requires:
Find $\frac{d}{dx}(\log_5 x)$.
Differentiate $f(x) = \log_{10}(x^2 + 1)$.
Find $\frac{d}{dx}[\log_3(4 - \cos x)]$.
Find $\frac{d}{dx}[x \cdot \log_2 x]$.
Differentiate $y = \log_2(x \log_3 x)$, where $x > 1$.
Explain why the derivative of $\log_a x$ is smaller when $a > e$ and larger when $1 < a < e$.
Specifically: for $x = 10$, compare $\frac{d}{dx}(\log_2 x)$, $\frac{d}{dx}(\ln x)$, and $\frac{d}{dx}(\log_{10} x)$ evaluated at $x = 10$.
| Mistake | Why It's Wrong | Correct Approach |
|---|---|---|
| $\frac{d}{dx}(\log_{10} x) = \frac{1}{x}$ | Forgot the $\ln a$ factor | $\frac{d}{dx}(\log_{10} x) = \frac{1}{x \ln 10}$ |
| Writing $\log x$ without specifying base | Ambiguous (could be base 10 or base $e$) | Always write $\log_{10} x$ or $\ln x$ explicitly |
| $\frac{d}{dx}(\log_a x^2) = \frac{2x}{x^2 \ln a}$ is final | Not wrong, but can simplify | $= \frac{2}{x \ln a}$ (the $x$ cancels) |
Converting to natural log first:
When facing any $\log_a$ derivative, you can always convert:
Or just memorize the formula and remember: it's like $\frac{1}{x}$, but with an extra $\ln a$ in the denominator.
Looking back:
Looking ahead:
| Previous | Up | Next |
|---|---|---|
| Derivative of Natural Log | Section 6.4 | Integrals Yielding ln |
Last updated: 2026-01-23