77.32% of parents see better grades in 3 months!

Here is the short answer: d/dx (log x) = 1/(x ln 10) when log means base 10, and d/dx (ln x) = 1/x for the natural log. Same idea, different base, different answer, so always check the base before you start differentiating.

Both appear in IB Maths AA: ln x at SL, where it is paired with the chain, product and quotient rules, and logs with other bases at HL. Below you will find the formulas, three ways to prove them, five worked examples and a practice set.

What Is the Derivative of log x?

Start with the general case, a log whose base is some positive number a:

d/dx (logₐ x) = 1 / (x ln a)

  • a must be positive and cannot equal 1
  • x must be positive, because logs of zero or negative numbers are undefined
  • ln a is a fixed number, so it behaves like any other constant

On IB papers and calculators, a log written with no base is base 10. Put a = 10:

d/dx (log x) = 1 / (x ln 10)

Now put a = e. Since ln e equals 1, the denominator collapses to just x:

d/dx (ln x) = 1 / x

Watch out: examiners see 1/x written as the derivative of log x every year. It only works when the log is natural.

Derivatives of Logarithmic Functions

Two bases dominate calculus questions, plus the general case that covers everything else.

1. Derivative of the Common Logarithm

Base 10 is called the common logarithm. You will see it written as log₁₀ x or simply log x.

d/dx (log₁₀ x) = 1 / (x ln 10)

Because ln 10 is roughly 2.303, the gradient works out at about 0.434 ÷ x, a little under half of 1/x.

2. Derivative of the Natural Logarithm

Base e, where e ≈ 2.71828, gives the natural logarithm, ln x. It has the neatest derivative of all.

d/dx (ln x) = 1 / x

3. Derivative of a Logarithm with Any Base

Any other valid base behaves the same way, with ln a sitting in the denominator:

d/dx (logₐ x) = 1 / (x ln a)

Quick Reference: Log Derivatives

  • log₁₀ x → 1 / (x ln 10)
  • ln x → 1 / x
  • logₐ x → 1 / (x ln a)
  • log₂ x → 1 / (x ln 2)
  • log₅ x → 1 / (x ln 5)

With the Chain Rule

Exam questions rarely ask for log x on its own. When there is an expression u inside the log, bring in the chain rule:

d/dx [logₐ u] = u′ / (u ln a) and d/dx [ln u] = u′ / u

A handy way to say it: differentiate the inside, then divide by the inside. Add ln a underneath for any base other than e.

Proof of the Derivative of log x Using First Principles

This is the proof from scratch, using nothing but the limit definition of a derivative:

f′(x) = lim (h → 0) [f(x + h) − f(x)] / h

Proof:

  • Set f(x) = logₐ x and feed it into the limit: f′(x) = lim (h → 0) [logₐ(x + h) − logₐ x] / h
  • Merge the two logs with the quotient law, so the top becomes logₐ((x + h)/x), which is logₐ(1 + h/x)
  • Swap variables with t = h/x. Then h = xt, and t shrinks to 0 along with h
  • Pull the 1/x outside: f′(x) = (1/x) × lim (t → 0) [logₐ(1 + t)] / t
  • Rewrite the log in base e, logₐ(1 + t) = ln(1 + t) / ln a, so a second constant, 1/ln a, comes out
  • What is left is the well-known limit of ln(1 + t)/t as t → 0, which equals 1

f′(x) = 1 / (x ln a)

Proof Using Implicit Differentiation

Here we undo the log by switching to exponential form, then differentiate both sides.

Proof:

  • Start with y = logₐ x, which says exactly the same thing as aʸ = x
  • Differentiate aʸ = x with respect to x. On the left, the chain rule turns aʸ into aʸ ln a × dy/dx; on the right, x becomes 1
  • Make dy/dx the subject: dy/dx = 1 / (aʸ ln a)
  • Finally, swap aʸ back for x

dy/dx = 1 / (x ln a)

Proof Using the Derivative of ln x

If you already accept that ln x differentiates to 1/x, this proof takes three lines.

Proof:

  • Change of base turns logₐ x into ln x ÷ ln a
  • 1/ln a is just a number, so it waits outside while ln x is differentiated
  • ln x becomes 1/x, and multiplying by 1/ln a gives the result

f′(x) = 1 / (x ln a)

Three very different routes, one answer. In an exam, the change-of-base proof is the one to reach for.

Derivative of log x: Important Notes

  1. General base: d/dx (logₐ x) = 1 / (x ln a).
  2. No base shown usually means base 10 in school maths.
  3. Base 10 therefore gives 1 / (x ln 10).
  4. Base e gives the clean result 1 / x.
  5. Never swap the log x and ln x answers: they differ by a factor of ln 10.
  6. A bracket inside the log is your cue for the chain rule.
  7. Writing |x| stretches the formula to negative x: d/dx (logₐ |x|) = 1 / (x ln a) for any x ≠ 0, with a > 0 and a ≠ 1.

Solved Examples on Derivative of log x

Example 1: Differentiate log(x³ + 2)

Solution:

  • Let f(x) = log(x³ + 2), where log is base 10
  • Chain rule: f′(x) = [1 / ((x³ + 2) ln 10)] × d/dx (x³ + 2)
  • The inside differentiates to 3x²

f′(x) = 3x² / ((x³ + 2) ln 10)

Example 2: Differentiate (log x)/x

Solution:

Use the quotient rule: (u/v)′ = (v u′ − u v′) / v²

  • u = log x, so u′ = 1 / (x ln 10)
  • v = x, so v′ = 1
  • f′(x) = [x × 1/(x ln 10) − log x × 1] / x²
  • The x cancels in the first term

f′(x) = (1/ln 10 − log x) / x²

Example 3: Differentiate log₃ ∛x

Solution:

  • Write the cube root as a power: log₃ ∛x = log₃(x^(1/3))
  • Power law: = (1/3) log₃ x
  • Differentiate: f′(x) = (1/3) × 1/(x ln 3)

f′(x) = 1 / (3x ln 3)

Example 4: Differentiate ln(3x² + 5)

Solution:

  • Let f(x) = ln(3x² + 5)
  • Chain rule: f′(x) = [1 / (3x² + 5)] × 6x

f′(x) = 6x / (3x² + 5)

Example 5: Differentiate log₅(4x + 3)

Solution:

  • Use d/dx (logₐ u) = u′ / (u ln a)
  • Here u = 4x + 3 and u′ = 4, with a = 5

f′(x) = 4 / ((4x + 3) ln 5)

Practice Questions on Derivative of log x

Work these out, then check below.

  1. Differentiate log(3x + 2).
  2. Differentiate ln(x² + 4).
  3. Differentiate log₃(x²).
  4. Differentiate x log x.
  5. Differentiate log₂(5x − 1).
  6. Find the second derivative of ln x.

Answers

  1. 3 / ((3x + 2) ln 10)
  2. 2x / (x² + 4)
  3. 2 / (x ln 3), since log₃(x²) = 2 log₃ x
  4. log x + 1/ln 10 (product rule)
  5. 5 / ((5x − 1) ln 2)
  6. −1 / x²

Real-Life Applications of Logarithmic Differentiation

Logs turn up wherever something grows by multiplying, or is measured on a scale of powers of ten.

  • Biology: a growing bacteria colony is easiest to study on a log scale, where its growth rate becomes a straight-line gradient.
  • Finance: logs answer questions like how many years it takes savings to double.
  • Physics: sound is measured in decibels and earthquakes on the Richter scale, both logarithmic.
  • Chemistry: pH is minus the log of the hydrogen ion concentration.
  • Computing: binary search halves the data at every step, so its run time grows like log n.

Frequently Asked Questions on Derivative of log x

1. What is the derivative of log x with respect to x?

Taking log x as base 10, the derivative is 1 / (x ln 10).

2. Is the derivative of log x equal to 1/x?

Not quite. 1/x belongs to ln x. The base-10 version carries an extra ln 10 underneath, so it is about 0.434 ÷ x.

3. What is the derivative of log x with base a?

It is 1 / (x ln a), which holds for any base a that is positive and not equal to 1.

4. What is the second derivative of log x?

Write the first derivative as (1/ln 10) × x⁻¹ and differentiate once more: f″(x) = −1 / (x² ln 10).

5. What is the nth derivative of log x?

The signs alternate and a factorial builds up: f⁽ⁿ⁾(x) = (−1)ⁿ⁻¹ (n − 1)! / (xⁿ ln 10) for base 10. Remove the ln 10 for ln x.

6. What is the derivative of log(x + 1)?

The inside is x + 1, whose derivative is 1, so the answer is 1 / ((x + 1) ln 10). Don't drop the ln 10.

7. What is the derivative of (log x)²?

Bring down the power 2, keep log x, then multiply by the derivative of log x. Result: 2 log x / (x ln 10).

8. What is the derivative of log base 2 of x?

Set a = 2 in the general rule to get 1 / (x ln 2).

9. What is the derivative of log(x²)?

The fastest route is to simplify first: log(x²) = 2 log x, which differentiates to 2 / (x ln 10) for x > 0. The chain rule lands on the same answer.

10. What is the derivative of log |x|?

It is 1 / (x ln 10) for every x ≠ 0. The absolute value lets the formula handle negative inputs too.

Book Your Free Demo Class with MentorMatch

Log derivatives are short to state but easy to slip on once the chain rule, quotient rule and log laws appear in the same question. A MentorMatch tutor works through IB-style calculus with you, one-on-one, until choosing the right rule becomes automatic.

Book Your Free Demo Class with MentorMatch

Signup to start learning

Please enter a 10-digit phone number
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.