Skip to content

Mathematics and Statistics · Ch 3 — Differentiation

Logarithmic Differentiation

5

Logarithmic Differentiation

Logarithmic differentiation takes the (natural) logarithm of both sides before differentiating. It is the right tool in two situations:

  1. A variable raised to a variable power, y=[f(x)]g(x)y = [f(x)]^{g(x)} — for example y=xxy = x^x. Here neither the power rule (xnx^n needs a constant nn) nor the exponential rule (axa^x needs a constant base aa) applies, because both base and exponent vary. Taking logs converts the awkward power into a product:

    y=[f(x)]g(x)  ⇒  ln⁡y=g(x) ln⁡f(x),y = [f(x)]^{g(x)} \;\Rightarrow\; \ln y = g(x)\,\ln f(x),

    which is then differentiated using the product and chain rules.
  2. A long product or quotient of many factors — logs turn products into sums and quotients into differences, so ln⁡y\ln y becomes a simple sum that differentiates term by term, avoiding a messy product/quotient-rule computation. The key step — differentiating ln⁡y\ln y. Since yy is a function of xx, the chain rule gives

    ddx(ln⁡y)=1y dydx.\frac{d}{dx}\big(\ln y\big) = \frac{1}{y}\,\frac{dy}{dx}.

    So after differentiating both sides you isolate dydx\dfrac{dy}{dx} by multiplying through by yy, then substitute the original expression for yy. Method — logarithmic differentiation:
  1. Write y=y = the expression; take natural logs of both sides.
  2. Use log laws to expand: ln⁡(ab)=ln⁡a+ln⁡b\ln(ab)=\ln a+\ln b, ln⁡ab=ln⁡a−ln⁡b\ln\tfrac{a}{b}=\ln a-\ln b, ln⁡(an)=nln⁡a\ln(a^n)=n\ln a.
  3. Differentiate both sides with respect to xx; the left side gives 1ydydx\dfrac{1}{y}\dfrac{dy}{dx}.
  4. Multiply both sides by yy and replace yy by the original expression.
Note

The Left Side Gives 1y dydx\tfrac1y\,\tfrac{dy}{dx} — Do Not Forget the dydx\tfrac{dy}{dx} …

Definition 8Logarithmic differentiation

Take ln⁡\ln of both sides before differentiating. Essential for y=[f(x)]g(x)y=[f(x)]^{g(x)} (variable base and exponent) and convenient for long products/quotients. The left side differentiates to 1ydydx\tfrac1y\tfrac{dy}{dx}; multiply through by yy at the …