Derivative of ln x

The derivative of ln x is 1/x, giving you the rate of change of the natural logarithm — essential for calculus problems involving logarithmic functions.

ddxlnx=1x\frac{d}{dx}\ln x = \frac{1}{x}

Solve a problem with Derivative of ln x

Type the problem. The solver will use Derivative of ln x where Derivative of ln x is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Derivative of ln x takes
xx
Derivative of ln x
SymbolMeaning
xxx represents the input to the natural logarithm; it must always be positive (x > 0), because the logarithm is undefined for zero or negative values. If you confuse x with the logarithm itself or think x can be any real number, the result will be wrong.

When to use it

Use this when you need to find the rate of change of a natural logarithmic function or simplify derivatives of expressions involving ln x.

Level

Usually taught in: Calculus I

Worked examples

1. Find the derivative of a simple logarithm

Problem

Find ddxln(3x)\frac{d}{dx} \ln(3x)
  1. ddxln(3x)=13xddx(3x)\frac{d}{dx} \ln(3x) = \frac{1}{3x} \cdot \frac{d}{dx}(3x)

    Apply the chain rule: the derivative of ln(u)\ln(u) is 1u\frac{1}{u} times the derivative of uu.

  2. ddx(3x)=3\frac{d}{dx}(3x) = 3

    The derivative of 3x3x is 33.

  3. 13x3=33x\frac{1}{3x} \cdot 3 = \frac{3}{3x}

    Multiply the parts together.

  4. 33x=1x\frac{3}{3x} = \frac{1}{x}

    Simplify by canceling the 33 in numerator and denominator.

Answer: 1x\frac{1}{x}

This shows the chain rule in action — we found the derivative of the outer function (ln) and multiplied by the derivative of the inner function (3x3x). Even though we started with ln(3x)\ln(3x), the coefficient of xx cancels when we simplify.

2. Find the derivative of a logarithm with a polynomial

Problem

Find ddxln(x24)\frac{d}{dx} \ln(x^2 - 4) and evaluate at x=3x = 3
  1. ddxln(x24)=1x24ddx(x24)\frac{d}{dx} \ln(x^2 - 4) = \frac{1}{x^2 - 4} \cdot \frac{d}{dx}(x^2 - 4)

    Use the chain rule with u=x24u = x^2 - 4.

  2. ddx(x24)=2x\frac{d}{dx}(x^2 - 4) = 2x

    Apply the power rule to find the derivative of the polynomial.

  3. 1x242x=2xx24\frac{1}{x^2 - 4} \cdot 2x = \frac{2x}{x^2 - 4}

    Multiply the results together.

  4. 2(3)324=694=65\frac{2(3)}{3^2 - 4} = \frac{6}{9 - 4} = \frac{6}{5}

    Substitute x=3x = 3 and simplify: 94=59 - 4 = 5.

Answer: f(3)=65f'(3) = \frac{6}{5}

This example shows that the chain rule is essential when the argument to ln is more complex than just kxkx. We must be careful with the algebra — the (x24)(x^2 - 4) in the denominator doesn't simplify with the 2x2x in the numerator, so we leave it as a fraction.

3. Analyze productivity growth in a construction schedule

Problem

A supervisor tracks crew productivity according to P(t)=12ln(t+1)P(t) = 12 \ln(t + 1) units per day, where tt is months of the project. How fast is productivity increasing at month 5?
  1. dPdt=12ddtln(t+1)\frac{dP}{dt} = 12 \cdot \frac{d}{dt} \ln(t+1)

    Factor out the constant 1212.

  2. ddtln(t+1)=1t+1ddt(t+1)\frac{d}{dt} \ln(t+1) = \frac{1}{t+1} \cdot \frac{d}{dt}(t+1)

    Apply the chain rule to the logarithm.

  3. ddt(t+1)=1\frac{d}{dt}(t+1) = 1

    The derivative of (t+1)(t+1) is 11.

  4. dPdt=121t+1=12t+1\frac{dP}{dt} = 12 \cdot \frac{1}{t+1} = \frac{12}{t+1}

    Combine the results.

  5. dPdt=125+1=126=2\frac{dP}{dt} = \frac{12}{5+1} = \frac{12}{6} = 2

    Substitute t=5t = 5 and simplify: 5+1=65 + 1 = 6 and 126=2\frac{12}{6} = 2.

Answer: dPdtt=5=2 units per day per month\frac{dP}{dt}\bigg|_{t=5} = 2 \text{ units per day per month}

This shows how the derivative of ln helps us measure the rate of change in real situations. The result tells us that at the 5-month mark, productivity is increasing by 2 units per day for each additional month of the project — a concrete rate of change.

Common mistakes

Where Derivative of ln x usually goes wrong
Answer came out wrong
ddxln(2x)=12x\frac{d}{dx}\ln(2x) = \frac{1}{2x}
ddxln(2x)=12x2=1x\frac{d}{dx}\ln(2x) = \frac{1}{2x} \cdot 2 = \frac{1}{x}
ddxln(x2)=1x2\frac{d}{dx}\ln(x^2) = \frac{1}{x^2}
ddxln(x2)=1x22x=2x\frac{d}{dx}\ln(x^2) = \frac{1}{x^2} \cdot 2x = \frac{2}{x}
ddx(lnx)2=21x\frac{d}{dx}(\ln x)^2 = 2 \cdot \frac{1}{x}
ddx(lnx)2=2(lnx)1x=2lnxx\frac{d}{dx}(\ln x)^2 = 2(\ln x) \cdot \frac{1}{x} = \frac{2\ln x}{x}
The mistakeWhy it is wrongThe fix
ddxln(2x)=12x\frac{d}{dx}\ln(2x) = \frac{1}{2x}You applied the basic logarithm derivative rule but forgot to apply the chain rule; the chain rule requires multiplying by the derivative of 2x2x, which is 22.ddxln(2x)=12x2=1x\frac{d}{dx}\ln(2x) = \frac{1}{2x} \cdot 2 = \frac{1}{x}
ddxln(x2)=1x2\frac{d}{dx}\ln(x^2) = \frac{1}{x^2}You forgot the chain rule; you must multiply by the derivative of x2x^2, which is 2x2x.ddxln(x2)=1x22x=2x\frac{d}{dx}\ln(x^2) = \frac{1}{x^2} \cdot 2x = \frac{2}{x}
ddx(lnx)2=21x\frac{d}{dx}(\ln x)^2 = 2 \cdot \frac{1}{x}You confused (lnx)2(\ln x)^2 (the square of the logarithm) with ln(x2)\ln(x^2) (the logarithm of the square); (lnx)2(\ln x)^2 is a composition requiring the chain rule applied to both functions, giving 2(lnx)1x2(\ln x) \cdot \frac{1}{x}.ddx(lnx)2=2(lnx)1x=2lnxx\frac{d}{dx}(\ln x)^2 = 2(\ln x) \cdot \frac{1}{x} = \frac{2\ln x}{x}

Tips and when to use something else

  • Always check if you need the chain rule: if the argument to ln is not just xx, multiply by the derivative of that argument.
  • Remember that lnx\ln x is only defined for x>0x > 0; if your problem involves negative values, use lnx\ln|x| and remember the domain restriction.
  • For more complex expressions, consider using Logarithmic Differentiation instead — it sometimes simplifies products or quotients before taking the derivative.
  • Watch out for the difference between ln(x2)\ln(x^2) and (lnx)2(\ln x)^2; they have different derivatives and require different applications of the chain rule.

Frequently asked questions

What is the derivative of ln5\ln 5 or other constants?
The derivative of any constant (including ln5\ln 5) is zero, because constants don't change. The formula ddxlnx=1x\frac{d}{dx}\ln x = \frac{1}{x} applies when xx is the variable; if the argument is constant, there's nothing to differentiate with respect to xx.
Why is the derivative of lnx\ln x equal to 1x\frac{1}{x}?
This comes from the definition of the derivative and the fact that the exponential function exe^x is the inverse of lnx\ln x. Since the derivatives of inverse functions are reciprocals, and ddxex=ex\frac{d}{dx}e^x = e^x, we get ddxlnx=1elnx=1x\frac{d}{dx}\ln x = \frac{1}{e^{\ln x}} = \frac{1}{x}. The intuition is that as xx grows larger, the logarithm grows more slowly, so its rate of change 1x\frac{1}{x} decreases.
What's the difference between the derivative of lnx\ln x and the derivative of logx\log x (base 10)?
The derivative of lnx\ln x is 1x\frac{1}{x}, while the derivative of log10x\log_{10} x is 1xln10\frac{1}{x \ln 10}. The difference comes from the change of base formula: any logarithm with base aa has derivative 1xlna\frac{1}{x \ln a}. Natural log is special because the ln\ln in the denominator equals 11 (since lne=1\ln e = 1), making the derivative especially clean.
Can you take the derivative of lnx\ln x where xx is negative?
No, the natural logarithm is only defined for positive xx, so the derivative does not exist for x0x \leq 0. If you need to work with logarithms of negative numbers, use lnx\ln|x|, which has derivative 1x\frac{1}{x} for all x0x \neq 0. The absolute value lets the function 'see' both positive and negative inputs, though you must still exclude zero.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18