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[lnf(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 yy'.

Key Formula

ddx[lnf(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: lny=lnf(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[lny]=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.
lny=ln(xx)=xlnx\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)(lnx)+x1x=lnx+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(lnx+1)\frac{dy}{dx} = x^x(\ln x + 1)
Answer: dydx=xx(lnx+1)\dfrac{dy}{dx} = x^x(\ln x + 1)

Why It Matters

Logarithmic differentiation is essential for functions like xxx^x or (sinx)cosx(\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 lny\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.