Home›Study Resources›Maths›
What is the derivative of ln x?
Maths
A-Level

What is the derivative of ln x?

The derivative of ln x is 1/x, for x > 0. In Cambridge International AS & A Level Mathematics 9709, you use it with the chain rule: the derivative of ln(f(x)) is f′(x) ÷ f(x). Example: Differentiate y = ln(3x + 1). f(x) = 3x + 1, so f′(x) = 3. dy/dx = 3 ÷ (3x + 1). Answer: dy/dx = 3/(3x + 1)

Quick answer: d/dx(ln x) = 1/x. For a function inside the logarithm, use the chain rule: d/dx(ln f(x)) = f′(x) ÷ f(x).

What the specification expects

This is in Differentiation (2.4 in Pure Mathematics 2 and 3.4 in Pure Mathematics 3) of the Cambridge International AS & A Level Mathematics 9709 syllabus for 2026 and 2027. You need to:

  • use the derivatives of ex, ln x, sin x, cos x and tan x
  • differentiate constant multiples, sums, differences and composites
  • differentiate products and quotients

Method

  1. Identify the function inside ln.
  2. Differentiate that inner function.
  3. Divide the derivative of the inner function by the inner function.
  4. For a product, apply the product rule first.

Worked example 1: a linear inner function

Differentiate y = ln(3x + 1).

  1. Inner function: 3x + 1, with derivative 3.
  2. dy/dx = 3 ÷ (3x + 1).

Answer: dy/dx = 3/(3x + 1)

Worked example 2: a tangent

Find the tangent to y = ln x at x = e.

  1. Gradient = 1/e.
  2. At x = e, y = 1.
  3. y − 1 = (1/e)(x − e), so y = x/e.

Answer: y = x/e

Worked example 3: a product

Differentiate y = x2 ln x and find the gradient at x = 1.

  1. Product rule: dy/dx = 2x ln x + x2 × (1/x).
  2. dy/dx = 2x ln x + x.
  3. At x = 1, ln 1 = 0, so dy/dx = 0 + 1.

Answer: dy/dx = 2x ln x + x; gradient 1

Worked example 4: a check using logarithm laws

Differentiate y = ln(x2).

  1. Chain rule: 2x ÷ x2 = 2/x.
  2. Check: ln(x2) = 2 ln x, which differentiates to 2/x.

Answer: dy/dx = 2/x

Common mistakes

  • Writing the derivative of ln(3x + 1) as 1/(3x + 1) and forgetting the factor 3.
  • Differentiating ln x as ln x ÷ x.
  • Forgetting that ln x is defined only for x > 0.
  • Missing the product rule for x2 ln x.

FAQs

Is the derivative of ln x the same as log10 x?

No. This result is for the natural logarithm, ln x.

Do I need this in Paper 1?

No. Differentiating ln x is in Pure Mathematics 2 and 3.

Want one-to-one help? Find an online Maths tutor with ExpertTutor.

Reviewed by

Want one-to-one support?

One-to-one online tuition can help you build confidence in your subject. Find a tutor who teaches your course.

Find a Tutor

Learn face to face in Glasgow

Prefer in-person lessons? Visit the ExpertTutor Glasgow Southside centre.

See the centre