Skip to content

Mathematics · Ch 10 — Differential Calculus – Differentiability and Methods of Differentiation

Logarithmic Differentiation

10.4.4

Logarithmic Differentiation

Ordinary differentiation rules — the power rule, the exponential rule — each handle only one specific relationship between the base and the exponent (a fixed power of a variable base, or a fixed base to a variable power). They both fail on a power-exponential function, where both the base and the exponent depend on xx: the simplest example is y=xxy=x^x.

Deriving y=xxy=x^x. Take the natural logarithm of both sides (valid since x>0x>0 here): log⁡y=xlog⁡x\log y = x\log x. Since this is an identity, differentiating the left side must equal differentiating the right side; the left side needs the chain rule (because yy is a function of xx, so log⁡y\log y is a function of a function) while the right side needs the product rule:

1ydydx=log⁡x+x⋅1x=log⁡x+1⟹dydx=y(log⁡x+1)=xx(log⁡x+1)=xx(1+log⁡x).\frac{1}{y}\frac{dy}{dx} = \log x + x\cdot\frac1x = \log x+1 \quad\Longrightarrow\quad \frac{dy}{dx} = y(\log x+1) = x^x(\log x+1) = x^x(1+\log x).

This technique — take logs, differentiate implicitly, solve for y′y' — is called logarithmic differentiation, and ddx[log⁡f(x)]=f′(x)f(x)\dfrac{d}{dx}\big[\log f(x)\big] = \dfrac{f'(x)}{f(x)} is called the logarithmic derivative of f(x)f(x). Its real payoff is that it turns products, quotients, and powers inside a function into sums, differences, and constant multiples (via log⁡(ab)=log⁡a+log⁡b\log(ab)=\log a+\log b, log⁡(a/b)=log⁡a−log⁡b\log(a/b)=\log a-\log b, log⁡(an)=nlog⁡a\log(a^n)=n\log a) before differentiating — often drastically simplifying an otherwise unwieldy product/quotient-rule computation, quite apart from power-exponential functions.

Steps in logarithmic differentiation. (1) Take the natural logarithm of both sides of y=f(x)y=f(x) and simplify using the laws of logarithms. (2) Differentiate implicitly with respect to xx. (3) Solve the resulting equation for y′y'.

Worked illustration — a product-of-powers. For y=4x2x2+4⋅sin⁡2x⋅2xy=4x^2\sqrt{x^2+4}\cdot\sin^2 x\cdot 2^x (a product of several factors, each itself a power or exponential): log⁡y=log⁡4+2log⁡x+12log⁡(x2+4)+2log⁡(sin⁡x)+xlog⁡2\log y = \log4+2\log x+\tfrac12\log(x^2+4)+2\log(\sin x)+x\log2. Differentiating, y′y=2x+xx2+4+2cot⁡x+log⁡2\dfrac{y'}{y} = \dfrac2x+\dfrac{x}{x^2+4}+2\cot x+\log2, so y′=y[2x+xx2+4+2cot⁡x+log⁡2]y' = y\left[\dfrac2x+\dfrac{x}{x^2+4}+2\cot x+\log2\right] — every product/quotient/power in the original expression became an addable term after taking logs.

The four general exponent/base cases this technique (together with the chain rule) covers completely:

  1. ddx ⁣(ab)=0\dfrac{d}{dx}\!\left(a^b\right)=0 when a,ba,b are both constants (a constant to a constant power is itself just a constant).
  2. ddx ⁣([f(x)]b)=b[f(x)]b−1f′(x)\dfrac{d}{dx}\!\left(\big[f(x)\big]^b\right) = b\big[f(x)\big]^{b-1}f'(x) — a constant power of a variable base (the ordinary power/chain rule).
  3. ddx ⁣(ag(x))=ag(x)(log⁡a) g′(x)\dfrac{d}{dx}\!\left(a^{g(x)}\right) = a^{g(x)}(\log a)\,g'(x) — a constant base to a variable power (the exponential/chain rule). …