When to use logarithmic differentiation:
- y = [f(x)]^(g(x)) — variable base AND variable exponent
- y = product of many functions (simplifies using log properties)
- y = complicated quotient of products
Method for f(x)^g(x):
- Take ln both sides: ln y = g(x) * ln(f(x))
- Differentiate both sides: \frac{1}{y}$$\frac{dy}{dx} = g'(x)*ln(f(x)) + g(x)*f'(x)
- Multiply both sides by y: dy/dx = y * [g'(x)*ln(f(x)) + g(x)*f'(x)]
Example: y = ln y = xln x \frac{1}{y}$$\frac{dy}{dx} = ln x + x = ln x + 1 dy/dx = * (1 + ln x)
Example: y = x^(sin x) ln y = sin x * ln x \frac{1}{y}$$\frac{dy}{dx} = cos x * ln x + sin x / x dy/dx = x^(sin x) * [cos x * ln x + sin x / x]
Common mistake: Trying to use the power rule d/dx() = nx^(n-1) when the exponent is not a constant. The power rule works ONLY for constant exponents. For variable exponents, ALWAYS use logarithmic differentiation.