Home › Logarithms › Lesson 6

Logarithmic Differentiation and the Logarithmic Derivative

Lesson 6 of 13

Key idea of this section

(ln |f|)′ = f′/f   wherever f ≠ 0
f = ∏ fᵢaᵢ   ⟹   f′/f = ∑ aᵢ fᵢ′/fᵢ

The method

If f is differentiable and nonzero on an interval, then ln |f| is differentiable there, and the chain rule gives (ln |f|)′ = f′/f. (For f < 0 we have ln |f| = ln(−f), whose derivative is −f′/(−f) = f′/f.) The expression f′/f is the logarithmic derivative of f. It turns products into sums and powers into multiples, exactly as the logarithm does: if f = g·h then f′/f = g′/g + h′/h, and if f = gᵃ then f′/f = a g′/g. This is the cleanest proof of the product rule for many factors and of the power rule for real exponents.

Worked example A

Let y = (x² + 1)³ √(x − 1) / (x + 2)⁴ for x > 1. Then

ln y = 3 ln(x² + 1) + ½ ln(x − 1) − 4 ln(x + 2),
y′/y = 6x/(x² + 1) + 1/(2(x − 1)) − 4/(x + 2).

At x = 2: y′/y = 12/5 + 1/2 − 1 = 19/10, and y(2) = 125/256, so y′(2) = (19/10)(125/256) = 475/512.

Variable exponents

Logarithmic differentiation is indispensable when the variable appears in both base and exponent. For y = u(x)ᵛ⁽ˣ⁾ with u > 0 we have ln y = v ln u, hence

y′ = uv (v′ ln u + v u′/u).

For example (xˣ)′ = xˣ(ln x + 1) and (xsin x)′ = xsin x(cos x · ln x + (sin x)/x).

Polynomials and the Gauss–Lucas theorem

If p(z) = c ∏ⱼ₌₁ⁿ (z − rⱼ) is a complex polynomial with roots rⱼ (listed with multiplicity), then away from the roots

p′(z)/p(z) = ∑ⱼ₌₁ⁿ 1/(z − rⱼ).

Theorem 6.1 (Gauss–Lucas). Every root of p′ lies in the convex hull of the roots of p.

Proof. Let p′(w) = 0. If w is a root of p there is nothing to prove. Otherwise ∑ 1/(w − rⱼ) = 0. Since 1/(w − rⱼ) = (w̄ − r̄ⱼ)/|w − rⱼ|², taking complex conjugates gives ∑ (w − rⱼ)/|w − rⱼ|² = 0. With weights λⱼ = |w − rⱼ|⁻² > 0, this says w = ∑ λⱼrⱼ / ∑ λⱼ, a convex combination of the roots. ∎

Logarithmic derivatives of infinite products

The logarithmic derivative converts a convergent infinite product into a series. Euler's product sin πz = πz ∏n≥1 (1 − z²/n²), which converges locally uniformly on ℂ, gives on differentiating logarithmically

π cot πz = 1/z + ∑n≥1 2z/(z² − n²),

valid for z ∉ ℤ. (At z = 0.3 both sides equal 2.28250… .) Similarly, the Weierstrass product for the gamma function, 1/Γ(z) = z eᵞᶻ ∏ (1 + z/n)e−z/n, leads to the digamma function ψ = Γ′/Γ:

ψ(z) = −γ − 1/z + ∑n≥1 (1/n − 1/(n + z)),   so   ψ(n + 1) = Hₙ − γ.

Here Hₙ = 1 + 1/2 + … + 1/n and γ is Euler's constant, studied in Lesson 9.

Elasticity and log–log scales

In economics and the physical sciences one often studies the elasticity E = d(ln y)/d(ln x) = (x/y)(dy/dx), the percentage change of y per percentage change of x. A power law y = Cxᵏ has constant elasticity k, which is why power laws plot as straight lines of slope k on log–log axes, while exponential laws y = Ceᵏˣ are straight lines of slope k on semi-log axes (ln y against x). Kepler's third law, T² ∝ a³, appears on log–log axes as a line of slope 3/2.

Exercise

  • (a)
    Differentiate y = (ln x)ln x for x > 1.
  • (b)
    Let p(z) = z³ − 3z + 1. Compute ∑ 1/(2 − rⱼ) over the roots rⱼ of p, without finding the roots.
  • (c)
    For f(x) = x⁴ e²ˣ / (1 + x²)², find the values of x at which f′(x) = 0.
Show solution

Answers: (a) ln y = ln x · ln ln x, so y′/y = (ln ln x)/x + (ln x)·1/(x ln x) = (ln ln x + 1)/x, and y′ = (ln x)ln x(1 + ln ln x)/x. (b) ∑ 1/(2 − rⱼ) = p′(2)/p(2) = (3·4 − 3)/(8 − 6 + 1) = 9/3 = 3. (c) f′/f = 4/x + 2 − 4x/(1 + x²) for x ≠ 0. Setting this to 0 and multiplying by x(1 + x²): 4(1 + x²) + 2x(1 + x²) − 4x² = 2x³ + 2x + 4 = 2(x + 1)(x² − x + 2), so the only nonzero real critical point is x = −1. In addition f′(0) = 0, since f has a zero of order 4 at 0. The critical points are x = −1 and x = 0.

V.3.1