Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
3.1 Chain rule
3.2 Implicit differentiation
3.3 Logarithmic differentiation
3.4 Derivatives of inverse functions
3.5 Inverse trig derivatives
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
3.3 Logarithmic differentiation
Achievable AP Calculus AB
3. Advanced differentiation
Our AP Calculus AB course is currently in development and is a work-in-progress.

Logarithmic differentiation

8 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • Apply log properties and use logarithmic differentiation to simplify expressions.
  • Differentiating functions with variables in both the base and exponent (e.g. y=xx)

Consider the function

y=x3x2+2x​(2x+1)2​

Differentiating this directly can get tedious because you’d need to use several derivative rules (power, product, quotient, and chain), and some of them more than once.

Logarithmic differentiation streamlines the work by taking a logarithm first, then using log properties to rewrite a complicated expression as a sum and difference of simpler terms. After that, differentiation is much more straightforward.

This technique is also useful when the variable appears in both the base and the exponent, such as y=xx.

Here’s how to do this:

Step-by-step process

  1. Take the natural logarithm of both sides (skip if one side is already a single logarithm with a complicated argument)
  2. Expand using log properties.
  3. Differentiate implicitly
  4. Isolate y′ to find the derivative

The log properties to remember are:

Name Formula
Product logb​(xy)=logb​(x)+logb​(y)
Quotient logb​(yx​)=logb​(x)−logb​(y)
Power logb​(xp)=p⋅logb​(x)
Root logb​(rx​)=r1​⋅logb​(x)

Let’s use the function at the start as an example:

Differentiate y=x3x2+2x​(2x+1)2​

1. Take the natural log of both sides

ln(y)=ln(x3x2+2x​(2x+1)2​)

2. Expand using log properties

First use the quotient property to turn the fraction into a difference, and treat the denominator as a product:

ln(y)=ln((2x+1)2)−ln(x3)−ln(x2+2x​)

Now use the power and root properties to bring exponents out front:

ln(y)=2ln(2x+1)−3ln(x)−21​ln(x2+2x)

At this point, each term is a constant multiple of a simple logarithm, which is much easier to differentiate.

3. Differentiate implicitly

Differentiate both sides with respect to x. On the left, use the chain rule: dxd​[ln(y)]=y1​y′.

y1​⋅y′=2(2x+11​)⋅2−3(x1​)−21​⋅x2+2x1​⋅(2x+2)

Simplifying,

y1​⋅y′=2x+14​−x3​−x2+2xx+1​

4. Isolate y′ to find the derivative

Multiply both sides by y, then replace y with the original function so the final answer is written in terms of x.

y′=(2x+14​−x3​−x2+2xx+1​)⋅(x3x2+2x​(2x+1)2​)​

Logarithmic differentiation is also useful when the function appears in an exponent (so the exponent is not a constant).

Here’s a classic example:

  1. Differentiate y=xx

Solution

1. Take the natural log of both sides

ln(y)=ln(xx)

2. Use log properties

Apply the power property ln(ab)=bln(a):

ln(y)=xln(x)

3. Differentiate implicitly

Differentiate both sides. On the right, use the product rule.

y1​⋅y′=x⋅x1​+ln(x)⋅1

y1​⋅y′=1+ln(x)

4. Isolate y′ to find the derivative

Multiply both sides by y, then substitute y=xx.

y′=xx(1+ln(x))​

Let’s increase the difficulty:

Find the derivative of

y=xxx2

Solution

(spoiler)

1. Take the natural log of both sides

ln(y)=ln(xxx2)

2. Use log properties

Use the power property to bring the exponent down:

ln(y)=xx2ln(x)

The right-hand side still contains a variable in an exponent, so take the natural log of both sides again:

ln(ln(y))=ln(xx2ln(x))

Use the product property to separate the right-hand side:

ln(ln(y))=ln(xx2)+ln(ln(x))

Then use the power property again:

ln(ln(y))=x2ln(x)+ln(ln(x))

3. Differentiate implicitly

Differentiate both sides with respect to x.

Left side (chain rule twice):

dxd​[ln(ln(y))]=ln(y)1​⋅y1​⋅y′

Right side: differentiate x2ln(x) using the product rule, and differentiate ln(ln(x)) using the chain rule.

ln(y)1​⋅y1​⋅y′=x2⋅x1​+ln(x)⋅(2x)+ln(x)1​⋅x1​

Simplifying,

yln(y)1​⋅y′=x+2xln(x)+xln(x)1​

4. Isolate y′ to find the derivative

Multiply both sides by yln(y):

y′=(x+2xln(x)+xln(x)1​)⋅yln(y)

Finally, replace y with the original function.

y′=(x+2xln(x)+xln(x)1​)⋅xxx2ln(xxx2)​

Examples

  1. The total resistance in a circuit is modeled by the function

R(V)=(V−2V2+1​)3⋅5x+4​

Find R′(V) (or in other words, dVdR​) using logarithmic differentiation.

Solution

(spoiler)

1. Take the natural log of both sides

ln(R(V))=ln((V−2V2+1​)3⋅5x+4​)

2. Expand using log properties

Use the product property first:

ln(R(V))=ln((V−2V2+1​)3)+ln(5x+4​)

Now use the power and root properties:

ln(R(V))=3ln(V−2V2+1​)+21​ln(5x+4)

Finally, use the quotient property:

ln(R(V))=3ln(V2+1)−3ln(V−2)+21​ln(5x+4)

3. Differentiate implicitly

Differentiate both sides with respect to V.

R(V)1​⋅dVdR​=V2+13​⋅(2V)−V−23​+2(5x+4)1​⋅(5)

Simplifying,

R(V)1​⋅dVdR​=V2+16V​−V−23​+10x+85​

4. Isolate dVdR​ to find the derivative

Multiply both sides by R(V) and substitute the original expression for R(V).

dVdR​=(V2+16V​−V−23​+10x+85​)⋅(V−2V2+1​)3⋅5x+4​​

  1. The population of a bacterial culture is modeled by

P(t)=(t2−t)3⋅e2t⋅ln(t+1)

Find the instantaneous rate of change of the population at time t=1.

Solution

(spoiler)

1. Take the natural log of both sides

ln(P)=ln((t2−t)3⋅e2t⋅ln(t+1))

2. Expand using log properties

Use the product property to split the logarithm into a sum:

ln(P)=ln((t2−t)3)+ln(e2t)+ln(ln(t+1))

Now use the power property on the first two terms:

ln(P)=3ln(t2−t)+2tln(e)+ln(ln(t+1))

Since ln(e)=1, this becomes

ln(P)=3ln(t2−t)+2t+ln(ln(t+1))

3. Differentiate implicitly

Differentiate both sides with respect to t.

P1​⋅P′(t)=3⋅t2−t1​⋅(2t−1)+2+ln(t+1)1​⋅t+11​⋅1

4. Isolate P′ to find the derivative

Multiply both sides by P and substitute the original expression for P(t).

P′(t)=[t2−t6t−3​+2+(t+1)ln(t+1)1​]⋅(t2−t)3⋅e2t⋅ln(t+1)

At t=1, the instantaneous rate of change of the population is

P′(1)=[(1)2−16(1)−3​+2+(1+1)ln(1+1)1​]⋅(12−1)3⋅e2(1)⋅ln(1+1)

=0​

Logarithmic differentiation overview

  • Technique for differentiating complicated functions, especially with variables in both base and exponent
  • Steps:
    • Take natural log of both sides
    • Expand using log properties
    • Differentiate implicitly
    • Isolate derivative and substitute original function

Log properties

  • Product: logb​(xy)=logb​(x)+logb​(y)
  • Quotient: logb​(yx​)=logb​(x)−logb​(y)
  • Power: logb​(xp)=plogb​(x)
  • Root: logb​(rx​)=r1​logb​(x)

Example: Differentiating y=x3x2+2x​(2x+1)2​

  • Expand with logs: 2ln(2x+1)−3ln(x)−21​ln(x2+2x)
  • Differentiate: 2x+14​−x3​−x2+2xx+1​
  • Final derivative: Multiply by original y

Variable in base and exponent: y=xx

  • Take log: ln(y)=xln(x)
  • Differentiate: y1​y′=1+ln(x)
  • Final derivative: y′=xx(1+ln(x))

Advanced example: y=xxx2

  • Take log: ln(y)=xx2ln(x)
  • Take log again: ln(ln(y))=x2ln(x)+ln(ln(x))
  • Differentiate: yln(y)1​y′=x+2xln(x)+xln(x)1​
  • Final derivative: y′=(x+2xln(x)+xln(x)1​)xxx2ln(xxx2)

Example: Circuit resistance R(V)=(V−2V2+1​)35x+4​

  • Log expansion: 3ln(V2+1)−3ln(V−2)+21​ln(5x+4)
  • Differentiate: V2+16V​−V−23​+10x+85​
  • Final derivative: Multiply by original R(V)

Example: Bacterial population P(t)=(t2−t)3e2tln(t+1)

  • Log expansion: 3ln(t2−t)+2t+ln(ln(t+1))
  • Differentiate: t2−t6t−3​+2+(t+1)ln(t+1)1​
  • Final derivative: Multiply by original P(t)
  • At t=1, P′(1)=0

Sign up for free to take 5 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Logarithmic differentiation

What you’ll learn:

  • Apply log properties and use logarithmic differentiation to simplify expressions.
  • Differentiating functions with variables in both the base and exponent (e.g. y=xx)

Consider the function

y=x3x2+2x​(2x+1)2​

Differentiating this directly can get tedious because you’d need to use several derivative rules (power, product, quotient, and chain), and some of them more than once.

Logarithmic differentiation streamlines the work by taking a logarithm first, then using log properties to rewrite a complicated expression as a sum and difference of simpler terms. After that, differentiation is much more straightforward.

This technique is also useful when the variable appears in both the base and the exponent, such as y=xx.

Here’s how to do this:

Step-by-step process

  1. Take the natural logarithm of both sides (skip if one side is already a single logarithm with a complicated argument)
  2. Expand using log properties.
  3. Differentiate implicitly
  4. Isolate y′ to find the derivative

The log properties to remember are:

Name Formula
Product logb​(xy)=logb​(x)+logb​(y)
Quotient logb​(yx​)=logb​(x)−logb​(y)
Power logb​(xp)=p⋅logb​(x)
Root logb​(rx​)=r1​⋅logb​(x)

Let’s use the function at the start as an example:

Differentiate y=x3x2+2x​(2x+1)2​

1. Take the natural log of both sides

ln(y)=ln(x3x2+2x​(2x+1)2​)

2. Expand using log properties

First use the quotient property to turn the fraction into a difference, and treat the denominator as a product:

ln(y)=ln((2x+1)2)−ln(x3)−ln(x2+2x​)

Now use the power and root properties to bring exponents out front:

ln(y)=2ln(2x+1)−3ln(x)−21​ln(x2+2x)

At this point, each term is a constant multiple of a simple logarithm, which is much easier to differentiate.

3. Differentiate implicitly

Differentiate both sides with respect to x. On the left, use the chain rule: dxd​[ln(y)]=y1​y′.

y1​⋅y′=2(2x+11​)⋅2−3(x1​)−21​⋅x2+2x1​⋅(2x+2)

Simplifying,

y1​⋅y′=2x+14​−x3​−x2+2xx+1​

4. Isolate y′ to find the derivative

Multiply both sides by y, then replace y with the original function so the final answer is written in terms of x.

y′=(2x+14​−x3​−x2+2xx+1​)⋅(x3x2+2x​(2x+1)2​)​

Logarithmic differentiation is also useful when the function appears in an exponent (so the exponent is not a constant).

Here’s a classic example:

  1. Differentiate y=xx

Solution

1. Take the natural log of both sides

ln(y)=ln(xx)

2. Use log properties

Apply the power property ln(ab)=bln(a):

ln(y)=xln(x)

3. Differentiate implicitly

Differentiate both sides. On the right, use the product rule.

y1​⋅y′=x⋅x1​+ln(x)⋅1

y1​⋅y′=1+ln(x)

4. Isolate y′ to find the derivative

Multiply both sides by y, then substitute y=xx.

y′=xx(1+ln(x))​

Let’s increase the difficulty:

Find the derivative of

y=xxx2

Solution

(spoiler)

1. Take the natural log of both sides

ln(y)=ln(xxx2)

2. Use log properties

Use the power property to bring the exponent down:

ln(y)=xx2ln(x)

The right-hand side still contains a variable in an exponent, so take the natural log of both sides again:

ln(ln(y))=ln(xx2ln(x))

Use the product property to separate the right-hand side:

ln(ln(y))=ln(xx2)+ln(ln(x))

Then use the power property again:

ln(ln(y))=x2ln(x)+ln(ln(x))

3. Differentiate implicitly

Differentiate both sides with respect to x.

Left side (chain rule twice):

dxd​[ln(ln(y))]=ln(y)1​⋅y1​⋅y′

Right side: differentiate x2ln(x) using the product rule, and differentiate ln(ln(x)) using the chain rule.

ln(y)1​⋅y1​⋅y′=x2⋅x1​+ln(x)⋅(2x)+ln(x)1​⋅x1​

Simplifying,

yln(y)1​⋅y′=x+2xln(x)+xln(x)1​

4. Isolate y′ to find the derivative

Multiply both sides by yln(y):

y′=(x+2xln(x)+xln(x)1​)⋅yln(y)

Finally, replace y with the original function.

y′=(x+2xln(x)+xln(x)1​)⋅xxx2ln(xxx2)​

Examples

  1. The total resistance in a circuit is modeled by the function

R(V)=(V−2V2+1​)3⋅5x+4​

Find R′(V) (or in other words, dVdR​) using logarithmic differentiation.

Solution

(spoiler)

1. Take the natural log of both sides

ln(R(V))=ln((V−2V2+1​)3⋅5x+4​)

2. Expand using log properties

Use the product property first:

ln(R(V))=ln((V−2V2+1​)3)+ln(5x+4​)

Now use the power and root properties:

ln(R(V))=3ln(V−2V2+1​)+21​ln(5x+4)

Finally, use the quotient property:

ln(R(V))=3ln(V2+1)−3ln(V−2)+21​ln(5x+4)

3. Differentiate implicitly

Differentiate both sides with respect to V.

R(V)1​⋅dVdR​=V2+13​⋅(2V)−V−23​+2(5x+4)1​⋅(5)

Simplifying,

R(V)1​⋅dVdR​=V2+16V​−V−23​+10x+85​

4. Isolate dVdR​ to find the derivative

Multiply both sides by R(V) and substitute the original expression for R(V).

dVdR​=(V2+16V​−V−23​+10x+85​)⋅(V−2V2+1​)3⋅5x+4​​

  1. The population of a bacterial culture is modeled by

P(t)=(t2−t)3⋅e2t⋅ln(t+1)

Find the instantaneous rate of change of the population at time t=1.

Solution

(spoiler)

1. Take the natural log of both sides

ln(P)=ln((t2−t)3⋅e2t⋅ln(t+1))

2. Expand using log properties

Use the product property to split the logarithm into a sum:

ln(P)=ln((t2−t)3)+ln(e2t)+ln(ln(t+1))

Now use the power property on the first two terms:

ln(P)=3ln(t2−t)+2tln(e)+ln(ln(t+1))

Since ln(e)=1, this becomes

ln(P)=3ln(t2−t)+2t+ln(ln(t+1))

3. Differentiate implicitly

Differentiate both sides with respect to t.

P1​⋅P′(t)=3⋅t2−t1​⋅(2t−1)+2+ln(t+1)1​⋅t+11​⋅1

4. Isolate P′ to find the derivative

Multiply both sides by P and substitute the original expression for P(t).

P′(t)=[t2−t6t−3​+2+(t+1)ln(t+1)1​]⋅(t2−t)3⋅e2t⋅ln(t+1)

At t=1, the instantaneous rate of change of the population is

P′(1)=[(1)2−16(1)−3​+2+(1+1)ln(1+1)1​]⋅(12−1)3⋅e2(1)⋅ln(1+1)

=0​

Key points

Logarithmic differentiation overview

  • Technique for differentiating complicated functions, especially with variables in both base and exponent
  • Steps:
    • Take natural log of both sides
    • Expand using log properties
    • Differentiate implicitly
    • Isolate derivative and substitute original function

Log properties

  • Product: logb​(xy)=logb​(x)+logb​(y)
  • Quotient: logb​(yx​)=logb​(x)−logb​(y)
  • Power: logb​(xp)=plogb​(x)
  • Root: logb​(rx​)=r1​logb​(x)

Example: Differentiating y=x3x2+2x​(2x+1)2​

  • Expand with logs: 2ln(2x+1)−3ln(x)−21​ln(x2+2x)
  • Differentiate: 2x+14​−x3​−x2+2xx+1​
  • Final derivative: Multiply by original y

Variable in base and exponent: y=xx

  • Take log: ln(y)=xln(x)
  • Differentiate: y1​y′=1+ln(x)
  • Final derivative: y′=xx(1+ln(x))

Advanced example: y=xxx2

  • Take log: ln(y)=xx2ln(x)
  • Take log again: ln(ln(y))=x2ln(x)+ln(ln(x))
  • Differentiate: yln(y)1​y′=x+2xln(x)+xln(x)1​
  • Final derivative: y′=(x+2xln(x)+xln(x)1​)xxx2ln(xxx2)

Example: Circuit resistance R(V)=(V−2V2+1​)35x+4​

  • Log expansion: 3ln(V2+1)−3ln(V−2)+21​ln(5x+4)
  • Differentiate: V2+16V​−V−23​+10x+85​
  • Final derivative: Multiply by original R(V)

Example: Bacterial population P(t)=(t2−t)3e2tln(t+1)

  • Log expansion: 3ln(t2−t)+2t+ln(ln(t+1))
  • Differentiate: t2−t6t−3​+2+(t+1)ln(t+1)1​
  • Final derivative: Multiply by original P(t)
  • At t=1, P′(1)=0