When to Use
Logarithmic differentiation is useful when:
- The function has variable bases AND variable exponents: f(x)g(x)
- The function is a complicated product or quotient
- You want to simplify before differentiating
The Method
- Take the natural log of both sides: ln(y)=ln(f(x))
- Use logarithm properties to simplify
- Differentiate implicitly
- Solve for dxdy
- Substitute back the original y
Logarithm Properties
ln(ab)=ln(a)+ln(b)
ln(ba)=ln(a)−ln(b)
ln(an)=n⋅ln(a)
Examples
Example 1: Variable base and exponent
Find dxdy for y=xx:
ln(y)=ln(xx)=x⋅ln(x)
y1⋅dxdy=x⋅x1+ln(x)⋅1=1+ln(x)
dxdy=y(1+ln(x))=xx(1+ln(x))
Example 2: General form f(x)^g(x)
Find dxdy for y=(sinx)x:
ln(y)=x⋅ln(sinx)
y1⋅dxdy=x⋅sin(x)cos(x)+ln(sinx)⋅1
=xcot(x)+ln(sinx)
dxdy=(sinx)x[xcot(x)+ln(sinx)]
Example 3: Complicated quotient
Find dxdy for y=(x+2)5(x2+1)3(x−1)4:
ln(y)=3ln(x2+1)+4ln(x−1)−5ln(x+2)
y1⋅dxdy=3⋅x2+12x+4⋅x−11−5⋅x+21
=x2+16x+x−14−x+25
dxdy=y[x2+16x+x−14−x+25]
Example 4: x to a function power
Find dxdy for y=xsinx:
ln(y)=sin(x)⋅ln(x)
y1⋅dxdy=sin(x)⋅x1+ln(x)⋅cos(x)
=xsin(x)+cos(x)ln(x)
dxdy=xsinx[xsin(x)+cos(x)ln(x)]
Example 5: Tower of exponents
Find dxdy for y=xxx:
Let u=xx, so y=xu.
First find dxdu (from Example 1):
dxdu=xx(1+ln(x))
Now for y=xu:
ln(y)=u⋅ln(x)=xx⋅ln(x)
y1⋅dxdy=xx⋅x1+ln(x)⋅xx(1+ln(x))
=xx−1+xxln(x)(1+ln(x))
dxdy=xxx⋅xx[x1+ln(x)(1+ln(x))]
Alternative Formula
For y=f(x)g(x):
dxdy=f(x)g(x)⋅[g′(x)⋅ln(f(x))+g(x)⋅f(x)f′(x)]
This comes directly from logarithmic differentiation.