Mathwords logoMathwords

Logarithmic Derivative — Definition, Formula & Examples

The logarithmic derivative of a function f(x)f(x) is the derivative of its natural logarithm, which equals f′(x)f(x)\frac{f'(x)}{f(x)}. It turns complicated products, quotients, and variable exponents into simpler sums and differences that are easier to differentiate.

For a differentiable function f(x)>0f(x) > 0, the logarithmic derivative is defined as ddx[ln⁡f(x)]=f′(x)f(x)\frac{d}{dx}[\ln f(x)] = \frac{f'(x)}{f(x)}. The technique of logarithmic differentiation applies ln⁡\ln to both sides of y=f(x)y = f(x), differentiates implicitly, and then solves for y′y'.

Key Formula

ddx[ln⁡f(x)]=f′(x)f(x)\frac{d}{dx}[\ln f(x)] = \frac{f'(x)}{f(x)}
Where:
  • f(x)f(x) = A positive differentiable function
  • f′(x)f'(x) = The ordinary derivative of f(x)

How It Works

Start by taking the natural log of both sides: ln⁡y=ln⁡f(x)\ln y = \ln f(x). Use logarithm properties to expand products into sums, quotients into differences, and exponents into coefficients. Differentiate both sides with respect to xx, remembering that ddx[ln⁡y]=1ydydx\frac{d}{dx}[\ln y] = \frac{1}{y}\frac{dy}{dx} by the chain rule. Finally, multiply both sides by yy to isolate dydx\frac{dy}{dx}, then substitute the original expression for yy.

Worked Example

Problem: Find the derivative of y=xxy = x^x for x>0x > 0.
Take the natural log: Apply ln⁡\ln to both sides and simplify the exponent.
ln⁡y=ln⁡(xx)=xln⁡x\ln y = \ln(x^x) = x \ln x
Differentiate both sides: Use the chain rule on the left and the product rule on the right.
1ydydx=(1)(ln⁡x)+x⋅1x=ln⁡x+1\frac{1}{y}\frac{dy}{dx} = (1)(\ln x) + x \cdot \frac{1}{x} = \ln x + 1
Solve for dy/dx: Multiply both sides by yy and substitute y=xxy = x^x.
dydx=xx(ln⁡x+1)\frac{dy}{dx} = x^x(\ln x + 1)
Answer: dydx=xx(ln⁡x+1)\dfrac{dy}{dx} = x^x(\ln x + 1)

Why It Matters

Logarithmic differentiation is essential for functions like xxx^x or (sin⁡x)cos⁡x(\sin x)^{\cos x} where standard derivative rules do not directly apply. It also streamlines differentiating products of many factors, a technique used in statistics when working with likelihood functions.

Common Mistakes

Mistake: Forgetting to multiply by yy (the original function) after differentiating ln⁡y\ln y.
Correction: After finding 1ydydx=…\frac{1}{y}\frac{dy}{dx} = \ldots, you must multiply both sides by yy and then substitute back the original expression for yy to get the final answer.

Related Terms