Derivative of ln x Equation Solver with Worked Examples

The derivative of is . Type “differentiate ln(x)” and the solver differentiates it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Derivative of ln x means

The natural logarithm is the inverse of . If , then , so and .

For , the derivative is , which is the reverse of the standard integral .

The derivative of is also , because . Its integral counterpart is the integral of 1 over x, and ln x is the inverse of the exponential whose derivative is the derivative of e to the power kx.

This page is part of Differentiation in Calculus. Topics that work alongside it: Integral of 1/x, Chain rule, Derivative of e^{kx}, Derivative of sec, cosec, cot, Derivative of sin kx, Derivative of tan kx and Derivative of a^x.

What is it used for?

The derivative of ln x is 1/x. It links the natural logarithm to the reciprocal function.

How to use derivative of ln x

  1. Identify the function inside the log.
  2. Differentiate it.
  3. Divide by the original inside function.
  4. Simplify.

Graph

y = ln x and its gradient 1/x0.511.522.533.544.55-3-2-101234y = ln x and its gradient 1/xxyy = ln xdy/dx = 1/xGraph with x from 0.1 to 5 and y from -3 to 4. Shows the curve y = ln x; the curve dy/dx = 1/x.

Near x = 0 the curve is very steep (large gradient); as x grows the curve flattens and 1/x falls towards 0.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: differentiate ln x

Differentiate .

Derivative
Answer
1x\frac{1}{x}
  1. Differentiate with respect to
  2. Combine the terms

Example 2: differentiate ln(3x+1)

Differentiate .

Derivative
Answer
33x+1\frac{3}{3 x+1}
  1. Differentiate with respect to
  2. Rules used
    chain rule
  3. Combine the terms

Example 3: ln of a multiple

Differentiate ln(5x).

Derivative
Answer
1x\frac{1}{x}
  1. Differentiate with respect to
  2. Combine the terms

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

ln x

d/dx ln x = 1/x

At x = 4 it is 0.25.

ln(3x + 1)

d/dx ln(3x + 1) = 3 ÷ (3x + 1)

At x = 1 it is 0.75.

ln(x²)

d/dx ln(x²) = 2/x

At x = 2 it is 1.

ln(kx)

d/dx ln(kx) = 1/x

The constant cancels.

Word problems

d/dx ln x = 1/x, and for a function inside, d/dx ln f(x) = f′(x) ÷ f(x).

ln x

Find the gradient of y = ln x at x = 4.

  1. Derivative1/x
  2. Substitute0.25
  3. Check: gentle slope ✓0.25.

ln(3x + 1)

Differentiate ln(3x + 1) and find the value at x = 1.

  1. f′ ÷ f3 ÷ (3x + 1)
  2. Substitute3 ÷ 4 = 0.75
  3. Check: ✓0.75.

ln(x²) Higher

Differentiate ln(x²) and find the value at x = 2.

  1. f′ ÷ f2x ÷ x² = 2/x
  2. Substitute1
  3. Check: ln(x²) = 2 ln x ✓1.

Gradient at a point Higher

Find the gradient of y = ln(2x + 3) at x = 1.

  1. f′ ÷ f2 ÷ (2x + 3)
  2. Substitute2 ÷ 5 = 0.4
  3. Check: ✓0.4.

Common mistakes

Forgetting the chain rule

d/dx ln(3x + 1) = 1/(3x + 1) ✗

3/(3x + 1) ✓

Multiply by the inner derivative.

Writing ln x

d/dx ln x = ln x ✗

1/x ✓

The derivative is a reciprocal.

Cancelling wrongly

d/dx ln(3x + 1) = 3/(3x) ✗

3/(3x + 1) ✓

Do not cancel terms.

Confusing with log

d/dx log x = 1/x ✗

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

ln is base e.

Exam tips

  1. d/dx ln x = 1/x.
  2. f′ ÷ f for a function.
  3. Chain rule.
  4. ln(kx): constant cancels.
  5. Substitute last.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Gradient of ln x at x = 2 Foundation

0.5

2. Gradient of ln x at x = 5 Foundation

0.2

3. Gradient of ln(2x) at x = 4 Foundation

0.25

4. Gradient of ln(4x + 1) at x = 2 Higher

0.4444

5. Gradient of ln(x² + 1) at x = 1 Higher

1

6. Gradient of 3 ln x at x = 6 Higher

0.5

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Natural logarithm
ln x, base e.
Reciprocal
1/x.
Chain rule
Multiply by the inner derivative.
Derivative
Gradient function.
Argument
The expression inside ln.
Domain
x > 0 for ln x.

Frequently asked questions

What is the derivative of ln x?

1/x.

What is the derivative of ln f(x)?

f′(x) ÷ f(x).

Why is the domain x > 0?

ln is only defined for positive numbers.

What is ln(kx)?

It differentiates to 1/x.

Which page covers aˣ?

derivative of aˣ.

Which page covers the chain rule?

chain rule.

More in Calculus and the formula sheets.