Derivatives Of Logarithmic Functions: Rules & Proof

#Calculus
TL;DR
The derivatives of logarithmic functions come down to three formulas: ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x}, ddxlog⁡ax=1xln⁡a\frac{d}{dx}\log_a x = \frac{1}{x\ln a}, and the chain-rule form ddxln⁡u=u′u\frac{d}{dx}\ln u = \frac{u'}{u}. Each follows from the derivative of exe^x by implicit differentiation, and each reads geometrically as the slope of a logarithm curve, always positive and shrinking as xx grows.
BT
Bhanzu TeamLast updated on September 30, 202612 min read

What Are The Derivatives Of Logarithmic Functions?

The derivatives of logarithmic functions are the rules for differentiating ln⁡x\ln x, log⁡ax\log_a x, and any logarithm of a function. There are three you need, and the last two are built from the first.

ddxln⁡x=1x,ddxlog⁡ax=1xln⁡a,ddxln⁡(u(x))=u′(x)u(x)\frac{d}{dx}\ln x = \frac{1}{x}, \qquad \frac{d}{dx}\log_a x = \frac{1}{x\ln a}, \qquad \frac{d}{dx}\ln\big(u(x)\big) = \frac{u'(x)}{u(x)}

Read them in plain words. The natural logarithm ln⁡x\ln x (base ee) has the cleanest derivative in all of calculus: 1x\frac{1}{x}. A logarithm to any other base aa carries one extra constant factor, 1ln⁡a\frac{1}{\ln a}. And when the logarithm wraps a whole function u(x)u(x), the chain rule divides the derivative of the inside by the inside itself.

Two conditions keep the formulas honest. The argument of a real logarithm must be positive, so ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} holds for x>0x > 0; the base aa must satisfy a>0a > 0 and a≠1a \neq 1, so that ln⁡a≠0\ln a \neq 0 and the division is defined. For a refresher on the function itself before differentiating it, see the natural logarithm page and the algebra recap of logarithm rules.

How Do You Prove The Derivative Of The Natural Logarithm?

The shortest proof runs backward through the exponential. It uses the fact that ln⁡x\ln x is the inverse of exe^x, so it pairs naturally with implicit differentiation and the derivative of the exponential function.

Let y=ln⁡xy = \ln x. By the definition of the natural logarithm, this is the same statement as

ey=x.e^{y} = x.

Differentiate both sides with respect to xx. The left side needs the chain rule because yy is a function of xx:

ey,dydx=1.e^{y},\frac{dy}{dx} = 1.

Solve for dydx\frac{dy}{dx} and replace eye^{y} with xx:

dydx=1ey=1x.\frac{dy}{dx} = \frac{1}{e^{y}} = \frac{1}{x}.

That is the whole proof. Because ey=xe^{y} = x is only true for x>0x > 0, the derivative 1x\frac{1}{x} inherits the same domain.

The first-principle route reaches the same place from the limit definition of the derivative. For f(x)=ln⁡xf(x) = \ln x,

f′(x)=lim⁡h→0ln⁡(x+h)−ln⁡xh=lim⁡h→01hln⁡(1+hx)=1xlim⁡h→0ln⁡(1+hx)x/h.f'(x) = \lim_{h \to 0}\frac{\ln(x+h) - \ln x}{h} = \lim_{h \to 0}\frac{1}{h}\ln\left(1 + \frac{h}{x}\right) = \frac{1}{x}\lim_{h \to 0}\ln\left(1 + \frac{h}{x}\right)^{x/h}.

As h→0h \to 0, the inside quantity (1+hx)x/h\left(1 + \frac{h}{x}\right)^{x/h} approaches ee, so the limit is 1xln⁡e=1x\frac{1}{x}\ln e = \frac{1}{x}. Both proofs agree, and both explain why ee is the base that makes the derivative simplest.

What Is The Derivative Of Log Base A?

A logarithm to base aa is just the natural logarithm rescaled, so its derivative needs no new proof. Use the change-of-base identity:

log⁡ax=ln⁡xln⁡a.\log_a x = \frac{\ln x}{\ln a}.

Here ln⁡a\ln a is a constant, so differentiating pulls it straight out:

ddxlog⁡ax=1ln⁡a⋅ddxln⁡x=1ln⁡a⋅1x=1xln⁡a.\frac{d}{dx}\log_a x = \frac{1}{\ln a}\cdot\frac{d}{dx}\ln x = \frac{1}{\ln a}\cdot\frac{1}{x} = \frac{1}{x\ln a}.

Two special cases are worth fixing in memory. When a=ea = e, ln⁡a=ln⁡e=1\ln a = \ln e = 1, and the formula collapses back to 1x\frac{1}{x}. When a=10a = 10, the common logarithm written plainly as log⁡x\log x has derivative

ddxlog⁡10x=1xln⁡10≈12.3026,x.\frac{d}{dx}\log_{10} x = \frac{1}{x\ln 10} \approx \frac{1}{2.3026,x}.

That extra ln⁡10≈2.3026\ln 10 \approx 2.3026 is exactly why ddxln⁡x\frac{d}{dx}\ln x and ddxlog⁡x\frac{d}{dx}\log x are not the same number, a distinction the mistakes section returns to.

How Does The Chain Rule Extend The Derivatives Of Logarithmic Functions?

Most real problems ask for the logarithm of a function, not a bare xx. Write y=ln⁡(u(x))y = \ln\big(u(x)\big) and apply the chain rule: the outside derivative is 1u\frac{1}{u}, and you multiply by the inside derivative u′(x)u'(x).

ddxln⁡(u(x))=1u(x)⋅u′(x)=u′(x)u(x)\frac{d}{dx}\ln\big(u(x)\big) = \frac{1}{u(x)}\cdot u'(x) = \frac{u'(x)}{u(x)}

The pattern is worth memorising as a sentence: the derivative of a log is the derivative of the inside over the inside. For a general base, the same reasoning gives ddxlog⁡a(u(x))=u′(x)u(x)ln⁡a\frac{d}{dx}\log_a\big(u(x)\big) = \frac{u'(x)}{u(x)\ln a}.

One domain refinement matters in practice. The function ln⁡∣x∣\ln|x| is defined for every x≠0x \neq 0, and its derivative is still 1x\frac{1}{x}:

ddxln⁡∣x∣=1x,x≠0.\frac{d}{dx}\ln|x| = \frac{1}{x}, \qquad x \neq 0.

This is why integral tables write ∫1x,dx=ln⁡∣x∣+C\int \frac{1}{x},dx = \ln|x| + C with the absolute value, covering negative xx as well as positive. A fuller list of these standard results lives in the table of derivatives.

How Do The Derivatives Of Logarithmic Functions Power Logarithmic Differentiation?

The chain-rule form is the engine behind a technique for differentiating awkward products, quotients, and variable exponents. The idea: take the natural logarithm of both sides first, so multiplication becomes addition, then differentiate.

If y=f(x)y = f(x), taking logs and differentiating gives y′y=ddxln⁡f(x)\frac{y'}{y} = \frac{d}{dx}\ln f(x), so

y′=y⋅ddxln⁡f(x)=f(x)⋅ddxln⁡f(x).y' = y\cdot\frac{d}{dx}\ln f(x) = f(x)\cdot\frac{d}{dx}\ln f(x).

That single step turns a nested product into a sum of simple u′u\frac{u'}{u} pieces. It is the only clean way to handle a variable raised to a variable power, such as xxx^{x}, where neither the power rule nor the exponential rule applies on its own. The dedicated method, with more cases, is covered in logarithmic differentiation; the quantity f′f\frac{f'}{f} it produces has its own name and page, the logarithmic derivative.

How Do You Differentiate Logarithmic Functions? Worked Examples

Each example is fully stepped, and each answer is checked by re-reading the chain-rule pattern u′u\frac{u'}{u} or by differentiating an equivalent expanded form.

Example 1: A logarithm of a polynomial (chain rule).

Differentiate y=ln⁡(x2+1)y = \ln(x^{2} + 1).

Here u=x2+1u = x^{2} + 1, so u′=2xu' = 2x. Apply u′u\frac{u'}{u}:

dydx=2xx2+1\frac{dy}{dx} = \frac{2x}{x^{2} + 1}

Check: the inside x2+1x^{2} + 1 is always positive, so the log is defined everywhere, and the denominator never vanishes. The sign of the derivative matches the graph, negative for x<0x < 0, zero at x=0x = 0, positive for x>0x > 0.

Final answer: dydx=2xx2+1\dfrac{dy}{dx} = \dfrac{2x}{x^{2} + 1}.

Example 2: A general base with the chain rule.

Differentiate y=log⁡2(3x+1)y = \log_{2}(3x + 1).

Combine the base formula with the chain rule: divide u′=3u' = 3 by uln⁡a=(3x+1)ln⁡2u\ln a = (3x + 1)\ln 2.

dydx=3(3x+1)ln⁡2\frac{dy}{dx} = \frac{3}{(3x + 1)\ln 2}

Check at x=1x = 1: the slope is 34ln⁡2≈32.7726≈1.0821\frac{3}{4\ln 2} \approx \frac{3}{2.7726} \approx 1.0821, a positive value, consistent with the increasing curve.

Final answer: dydx=3(3x+1)ln⁡2\dfrac{dy}{dx} = \dfrac{3}{(3x + 1)\ln 2}.

Example 3: A variable exponent (logarithmic differentiation).

Differentiate y=xxy = x^{x} for x>0x > 0.

Take the natural logarithm of both sides, then use ln⁡(xx)=xln⁡x\ln(x^{x}) = x\ln x:

ln⁡y=xln⁡x\ln y = x\ln x

Differentiate both sides. The right side needs the product rule (ddx[xln⁡x]=ln⁡x+x⋅1x\frac{d}{dx}[x\ln x] = \ln x + x\cdot\frac{1}{x}):

y′y=ln⁡x+1\frac{y'}{y} = \ln x + 1

Multiply through by y=xxy = x^{x}:

y′=xx(ln⁡x+1)y' = x^{x}\big(\ln x + 1\big)

Check at x=1x = 1: y′=11(ln⁡1+1)=1⋅(0+1)=1y' = 1^{1}(\ln 1 + 1) = 1\cdot(0 + 1) = 1, which matches the known slope of xxx^{x} at x=1x = 1.

Final answer: y′=xx(ln⁡x+1)y' = x^{x}\big(\ln x + 1\big).

Example 4: Expand before differentiating.

Differentiate y=ln⁡(x2sin⁡x2x+1)y = \ln\left(\dfrac{x^{2}\sin x}{2x + 1}\right).

Rather than fight one large chain rule, use log rules to split the expression first:

y=2ln⁡x+ln⁡(sin⁡x)−ln⁡(2x+1)y = 2\ln x + \ln(\sin x) - \ln(2x + 1)

Now differentiate term by term, each a simple u′u\frac{u'}{u}:

dydx=2x+cos⁡xsin⁡x−22x+1=2x+cot⁡x−22x+1\frac{dy}{dx} = \frac{2}{x} + \frac{\cos x}{\sin x} - \frac{2}{2x + 1} = \frac{2}{x} + \cot x - \frac{2}{2x + 1}

The middle term uses the derivatives of trigonometric functions, where ddxln⁡(sin⁡x)=cos⁡xsin⁡x\frac{d}{dx}\ln(\sin x) = \frac{\cos x}{\sin x}.

Final answer: dydx=2x+cot⁡x−22x+1\dfrac{dy}{dx} = \dfrac{2}{x} + \cot x - \dfrac{2}{2x + 1}.

What Are The Standard Derivatives Of Logarithmic Functions?

These are the results worth knowing on sight. Every one follows from ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} plus the chain rule or change of base.

Table: Standard derivatives of logarithmic functions and their conditions.

Function

Derivative

Condition

ln⁡x\ln x

1x\dfrac{1}{x}

x>0x > 0

$\ln

x

$

log⁡ax\log_a x

1xln⁡a\dfrac{1}{x\ln a}

x>0,;a>0,;a≠1x > 0,; a > 0,; a \neq 1

log⁡10x\log_{10} x

1xln⁡10\dfrac{1}{x\ln 10}

x>0x > 0

ln⁡(u(x))\ln\big(u(x)\big)

u′(x)u(x)\dfrac{u'(x)}{u(x)}

u(x)>0u(x) > 0

log⁡a(u(x))\log_a\big(u(x)\big)

u′(x)u(x)ln⁡a\dfrac{u'(x)}{u(x)\ln a}

u(x)>0,;a≠1u(x) > 0,; a \neq 1

For where these sit among the power, product, and quotient rules.

Why Do The Derivatives Of Logarithmic Functions Work?

The formula 1x\frac{1}{x} can feel like a coincidence until you read it as a slope and as a rate.

  • The slope shrinks because the curve slows. The graph of y=ln⁡xy = \ln x rises steeply just past x=0x = 0 and flattens as xx grows. A tangent drawn at x=1x = 1 has slope 11; at x=4x = 4 it has slope 14\frac{1}{4}; at x=100x = 100 it is nearly flat. The derivative 1x\frac{1}{x} is precisely that shrinking positive slope, which is why the logarithm keeps rising forever yet never levels off.

  • It is the inverse of exponential growth. Because ln⁡x\ln x undoes exe^{x}, its rate of change is the reciprocal of the exponential's rate. Where exe^{x} climbs faster and faster, its mirror image climbs slower and slower, and the reciprocal 1x\frac{1}{x} captures that reflection exactly.

  • The chain-rule form is a relative rate. The quantity u′u\frac{u'}{u} is a change measured against the current size. Growing by 33 units matters more when you have 1010 than when you have 10001000, and u′u\frac{u'}{u} is what expresses that proportional view, the reason logarithms model percentage growth so well.

Seen together, the algebra (1x\frac{1}{x}) and the geometry (a positive, shrinking tangent slope) are two readings of one fact: the logarithm accumulates change at a rate inversely proportional to where it already is.

Who Discovered The Derivatives Of Logarithmic Functions?

Logarithms were a calculation tool for decades before calculus existed to differentiate them, and the link ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} was first spotted as a fact about areas, not slopes.

Two more figures shaped the story:

  • John Napier (1550–1617, Scotland) invented logarithms in 1614 as a device for turning multiplication into addition, decades before anyone asked about their rate of change.

  • Leonhard Euler (1707–1783, Switzerland) placed the constant ee at the centre of the subject and made the natural logarithm the default, which is what makes ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} the base case every other logarithm is measured against.

Where Are The Derivatives Of Logarithmic Functions Used In The Real World?

Because the chain-rule form u′u\frac{u'}{u} is a proportional rate of change, logarithmic derivatives appear wherever quantities are measured on a ratio or percentage scale.

  • Chemistry: pH is defined as −log⁡10[H+]-\log_{10}[\text{H}^{+}], so the rate a solution acidifies as ion concentration changes is a logarithmic derivative.

  • Acoustics and seismology: decibels and the Richter scale are logarithmic, and how loudness or magnitude responds to a change in energy is exactly a 1xln⁡a\frac{1}{x\ln a} relationship.

  • Economics and finance: the derivative of ln⁡(price)\ln(\text{price}) is the continuously compounded return, and f′f\frac{f'}{f} measures elasticity, how a percentage change in one quantity drives a percentage change in another.

  • Information theory: entropy is built from log⁡\log terms, and differentiating them is how compression and coding limits are optimised.

  • Biology and physics: solving growth and decay models, from populations to radioactive half-lives, needs the natural logarithm, and its 1x\frac{1}{x} derivative is what lets those equations be inverted.

One derivative rule, read as a proportional rate, ties together acidity, loudness, money, and information, fields that share nothing except a logarithmic scale.

What Are The Most Common Mistakes With Derivatives Of Logarithmic Functions?

These four errors account for most lost marks on this topic, and each matches a question real students ask on r/calculus, r/learnmath, and university error handouts.

Dropping the inner derivative in the chain rule.

Where it slips in:

A student writes ddxln⁡(x2+1)=1x2+1\dfrac{d}{dx}\ln(x^{2} + 1) = \dfrac{1}{x^{2} + 1} and stops, treating the inside as if it were a bare xx.

Don't do this:

Do not forget the u′(x)u'(x) factor. The derivative of a log is not simply one over the inside.

The correct way:

Multiply by the derivative of the inside: u′u=2xx2+1\dfrac{u'}{u} = \dfrac{2x}{x^{2} + 1}.

Confusing the derivative of ln⁡x\ln x with the derivative of log⁡x\log x.

Where it slips in:

A student assumes ddxlog⁡10x=1x\dfrac{d}{dx}\log_{10} x = \dfrac{1}{x}, copying the natural-log result onto a base-1010 logarithm.

Don't do this:

Do not drop the ln⁡a\ln a factor. Only the natural logarithm has the clean 1x\frac{1}{x} derivative.

The correct way:

Keep the base constant: ddxlog⁡10x=1xln⁡10\dfrac{d}{dx}\log_{10} x = \dfrac{1}{x\ln 10}, and in general 1xln⁡a\dfrac{1}{x\ln a}.

Ignoring the domain and the absolute value.

Where it slips in:

A student differentiates ln⁡(negative expression)\ln(\text{negative expression}) without noticing the log is undefined there, or writes ∫1x,dx=ln⁡x+C\int \frac{1}{x},dx = \ln x + C and misses negative xx.

Don't do this:

Do not apply 1x\frac{1}{x} blindly. The real logarithm needs a positive argument.

The correct way:

State the domain first. Use ln⁡∣x∣\ln|x| when negative inputs are in play, since ddxln⁡∣x∣=1x\dfrac{d}{dx}\ln|x| = \dfrac{1}{x} for x≠0x \neq 0.

Fighting a big product instead of expanding first.

Where it slips in:

Faced with ln⁡(x2sin⁡x2x+1)\ln\left(\frac{x^{2}\sin x}{2x + 1}\right), a student launches a single tangled chain rule and loses track of terms.

Don't do this:

Do not differentiate the whole product at once. It multiplies the chances of a slip.

The correct way:

Use log rules to expand into a sum first: 2ln⁡x+ln⁡(sin⁡x)−ln⁡(2x+1)2\ln x + \ln(\sin x) - \ln(2x + 1), then differentiate each simple piece.

Practice Problems On Derivatives Of Logarithmic Functions

Work each one, then check against the answer. Answers are verified.

  1. Differentiate y=ln⁡(5x)y = \ln(5x).
    (Answer: ln⁡(5x)=ln⁡5+ln⁡x\ln(5x) = \ln 5 + \ln x, so y′=1xy' = \frac{1}{x}; equivalently 55x=1x\frac{5}{5x} = \frac{1}{x}.)

  2. Differentiate y=log⁡10xy = \log_{10} x.
    (Answer: y′=1xln⁡10y' = \frac{1}{x\ln 10}.)

  3. Differentiate y=ln⁡(x3+2x)y = \ln(x^{3} + 2x).
    (Answer: y′=3x2+2x3+2xy' = \frac{3x^{2} + 2}{x^{3} + 2x}.)

  4. Differentiate y=log⁡3(x2)y = \log_{3}(x^{2}).
    (Answer: y′=2xx2ln⁡3=2xln⁡3y' = \frac{2x}{x^{2}\ln 3} = \frac{2}{x\ln 3}.)

  5. Differentiate y=ln⁡(cos⁡x)y = \ln(\cos x).
    (Answer: y′=−sin⁡xcos⁡x=−tan⁡xy' = \frac{-\sin x}{\cos x} = -\tan x.)

  6. Differentiate y=xln⁡xy = x^{\ln x} for x>0x > 0.
    (Answer: ln⁡y=(ln⁡x)2\ln y = (\ln x)^{2}, so y′y=2ln⁡xx\frac{y'}{y} = \frac{2\ln x}{x} and y′=xln⁡x⋅2ln⁡xxy' = x^{\ln x}\cdot\frac{2\ln x}{x}.)

Where Should You Go Next After Derivatives Of Logarithmic Functions?

The log derivatives sit inside a small family of results, and several natural doors open from here.

  1. Logarithmic differentiation. The full technique for products, quotients, and variable exponents that the chain-rule form powers.

  2. Derivatives of exponential functions. The mirror topic, since ln⁡x\ln x is the inverse of exe^{x} and each proof leans on the other.

  3. The natural logarithm. Go back to the function itself, its base ee, and the properties the derivative depends on.

If your child is meeting these derivatives for the first time, a live Bhanzu trainer teaches them from the tangent-slope picture up, so the rules feel earned, in the Bhanzu math program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What are the derivatives of logarithmic functions in one line?
They are ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x}, ddxlog⁡ax=1xln⁡a\frac{d}{dx}\log_a x = \frac{1}{x\ln a}, and ddxln⁡u=u′u\frac{d}{dx}\ln u = \frac{u'}{u}. The natural-log case is the base result; the other two add a constant factor or the chain rule.
Is the derivative of ln⁡x\ln x the same as the derivative of log⁡x\log x?
No. The natural logarithm gives 1x\frac{1}{x}, but the common logarithm (base 1010) gives 1xln⁡10≈12.3026,x\frac{1}{x\ln 10} \approx \frac{1}{2.3026,x}. They differ by the constant factor ln⁡10\ln 10.
Why do you divide by the inside function?
Because differentiating ln⁡(u(x))\ln\big(u(x)\big) uses the chain rule: the outside derivative of ln⁡\ln is 1u\frac{1}{u}, and you multiply by the inside derivative u′u', giving u′u\frac{u'}{u}.
What is the derivative of ln⁡∣x∣\ln|x|?
It is 1x\frac{1}{x} for all x≠0x \neq 0. The absolute value extends the natural logarithm to negative inputs, which is why ∫1x,dx=ln⁡∣x∣+C\int \frac{1}{x},dx = \ln|x| + C.
How do the derivatives of logarithmic functions help with xxx^x?
Take the natural logarithm of both sides so ln⁡y=xln⁡x\ln y = x\ln x, differentiate to get y′y=ln⁡x+1\frac{y'}{y} = \ln x + 1, then multiply by yy. This gives y′=xx(ln⁡x+1)y' = x^{x}(\ln x + 1), an answer no ordinary rule reaches directly.
Do I need the function to be positive?
For a real logarithm, yes. The argument must be positive for ln⁡x\ln x or log⁡ax\log_a x to be defined, and the derivative formulas hold on that same domain.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →