Tutorials › Calculus I › The Logarithmic Derivative Identity

Exponential and Logarithmic Derivatives · Tutorial 543 of 1495

The Logarithmic Derivative Identity

Learn why the derivative of the natural logarithm of a positive function is its derivative divided by the function, and how this turns products and powers into sums.

Intermediate 9 min read

What You'll Learn

  • State the positivity and differentiability conditions for the logarithmic derivative identity.
  • Derive the identity using the chain rule for natural logarithms.
  • Relate a function’s derivative to its relative rate of change.
  • Convert products of positive functions into sums of logarithmic derivatives.
  • Convert a positive function raised to a constant power into a multiple of its logarithmic derivative.
  • Check logarithmic-derivative calculations by recovering the ordinary derivative.

Introduction

A product can be difficult to differentiate when its factors have complicated forms. The logarithm offers a useful way to reorganize such expressions: it turns products into sums. The derivative of the logarithm then relates the rate of change of a positive function to the rate of change of the function itself.

The key identity is simple, but its conditions matter. The function must be positive wherever we take its natural logarithm, and it must be differentiable there. Under those assumptions, the derivative of its logarithm is its derivative divided by its value.

Key identity: If \(y\) is a positive differentiable function of \(x\), then \[ \frac{d}{dx}\ln y(x)=\frac{y'(x)}{y(x)}. \]

The quantity \(y'/y\) is called the logarithmic derivative of \(y\). It records the rate of change of \(y\) relative to its current value. We will derive the identity, establish how it applies to products and constant powers, and check each method in worked examples.

The identity and its conditions

Let \(I\) be an interval, and let \(y:I\to\mathbb{R}\) be differentiable and positive at every point of \(I\). Positivity means \(y(x)>0\) for each \(x\in I\), so \(\ln(y(x))\) is defined throughout the interval. The chain rule for the natural logarithm gives

$$ \frac{d}{dx}\ln(y(x)) = \frac{1}{y(x)}\,y'(x) = \frac{y'(x)}{y(x)}. $$

This is a pointwise identity: at any \(x\in I\), both sides have the same value. The denominator is nonzero because \(y(x)>0\). A version written using \(y\) as a dependent variable is

$$ \frac{d}{dx}\ln y=\frac{y'}{y}. $$

When using this shorter notation, \(y\) still represents a differentiable function of \(x\), not a constant. The expression \(y'/y\) is not the derivative \(y'\) itself; it is the derivative divided by the function’s current value.

Why logarithms turn products into sums

For positive numbers \(u\) and \(v\), the logarithm law \(\ln(uv)=\ln u+\ln v\) converts multiplication into addition. Suppose \(u\) and \(v\) are positive differentiable functions on an interval. Their product is positive there, so we can apply the logarithmic derivative identity to it:

$$ \ln(uv)=\ln u+\ln v. $$

Differentiate both sides. The identity applies separately to each positive function, giving

$$ \frac{(uv)'}{uv} = \frac{u'}{u}+\frac{v'}{v}. $$

Thus the logarithmic derivative of a product is the sum of the logarithmic derivatives of its factors. Equivalently, multiplying by \(uv\) recovers the ordinary product derivative:

$$ (uv)'=(uv)\left(\frac{u'}{u}+\frac{v'}{v}\right) =u'v+uv'. $$

The logarithmic form expresses the relative contributions of the two factors. The last equality also shows that it agrees with the product rule.

Product rule for logarithmic derivatives: If \(u\) and \(v\) are positive differentiable functions, then \[ \frac{(uv)'}{uv}=\frac{u'}{u}+\frac{v'}{v}. \] Positivity is required to take the real natural logarithm of each factor.

Why powers become multiples

Let \(u\) be positive and differentiable, and let \(r\) be a real constant. For positive \(u\), the real power \(u^r\) is defined by \(u^r=\exp(r\ln u)\), and it is positive. The logarithm law for powers gives \(\ln(u^r)=r\ln u\). Differentiating this equality and applying the identity to each positive function yields

$$ \frac{(u^r)'}{u^r} = \frac{d}{dx}\ln(u^r) = r\frac{d}{dx}\ln u = r\frac{u'}{u}. $$

So a constant power contributes a constant multiplier to the logarithmic derivative. Multiplying by \(u^r\) gives the equivalent ordinary derivative formula

$$ (u^r)'=r u^{r-1}u'. $$

The positivity condition is especially important when \(r\) is an arbitrary real number: the real-valued expression \(u^r=\exp(r\ln u)\) requires \(u>0\). For particular integer powers, differentiation may be defined more broadly, but the logarithmic argument still requires a positive base.

Worked examples

Worked Example: A product with an exponential factor

Let \(y=(x^2+1)e^{2x}\). Find \(y'/y\), then find \(y'\), and check both results at \(x=1\).

First check the domain condition. For every real \(x\), \(x^2+1>0\) and \(e^{2x}>0\), so \(y>0\). We can take the logarithm and use the product law:

$$ \ln y=\ln(x^2+1)+\ln(e^{2x}) =\ln(x^2+1)+2x. $$

Differentiate the two terms. By the chain rule, the derivative of \(\ln(x^2+1)\) is \(2x/(x^2+1)\), and the derivative of \(2x\) is \(2\). Therefore,

$$ \frac{y'}{y} = \frac{2x}{x^2+1}+2. $$

To recover \(y'\), multiply by \(y=(x^2+1)e^{2x}\):

$$ y' =(x^2+1)e^{2x} \left(\frac{2x}{x^2+1}+2\right) =e^{2x}\bigl(2x+2(x^2+1)\bigr). $$

At \(x=1\), the logarithmic derivative is \[ \frac{2}{2}+2=3. \] The function value is \(y(1)=2e^2\), so the identity gives \(y'(1)=3(2e^2)=6e^2\). Differentiating the original product directly gives \(y'=2xe^{2x}+2(x^2+1)e^{2x}\), which at \(x=1\) is \(2e^2+4e^2=6e^2\). The two calculations agree.

Worked Example: A positive function raised to a constant power

Let \(y=(2x+3)^4\), on the interval \(x>-3/2\). Find \(y'/y\) and \(y'\), then check the result at \(x=0\).

The condition \(x>-3/2\) ensures \(2x+3>0\), so \(y>0\) and \(\ln y\) is defined. Use the power law for logarithms:

$$ \ln y=4\ln(2x+3). $$

Differentiate, using the chain rule for the logarithm of \(2x+3\):

$$ \frac{y'}{y} = 4\frac{2}{2x+3} = \frac{8}{2x+3}. $$

Multiply by \(y\) to obtain the ordinary derivative:

$$ y'=(2x+3)^4\frac{8}{2x+3} =8(2x+3)^3. $$

At \(x=0\), the logarithmic derivative is \(8/3\), while \(y(0)=3^4=81\). Thus \(y'(0)=81(8/3)=216\). Differentiating the original expression by the chain rule gives \(4(2x+3)^3\cdot2=8(2x+3)^3\), which at \(x=0\) is \(8\cdot27=216\). This checks the result.

Worked Example: A product of positive powers

Let \(y=(x+1)^2(x+3)^3\) on \(x>-1\). Find its logarithmic derivative and evaluate \(y'\) at \(x=0\).

On this interval both \(x+1\) and \(x+3\) are positive. Therefore \(y>0\), and the logarithm can be expanded as a sum:

$$ \ln y=2\ln(x+1)+3\ln(x+3). $$

Differentiate each term:

$$ \frac{y'}{y} = \frac{2}{x+1}+\frac{3}{x+3}. $$

At \(x=0\), this is \(2/1+3/3=2+1=3\). The function value is \(y(0)=1^2\cdot3^3=27\), so \(y'(0)=27\cdot3=81\).

Check directly by differentiating the product:

$$ y' = 2(x+1)(x+3)^3+3(x+1)^2(x+3)^2. $$

At \(x=0\), the first term is \(2\cdot1\cdot27=54\), and the second is \(3\cdot1\cdot9=27\). Their sum is \(54+27=81\), as obtained from the logarithmic derivative.

Relative rate of change

The identity also explains the interpretation of \(y'/y\). If \(y\) is positive, then \(y'\) describes its instantaneous rate of change, while dividing by \(y\) scales that rate by the function’s current size. For example, a function with a large value can have a large derivative simply because it is large; \(y'/y\) measures the rate relative to that value.

In differential notation, the identity can be written as

$$ \frac{d}{dx}\ln y=\frac{y'}{y}. $$

For a product of positive factors, each factor contributes its own relative rate, and those contributions add. For a positive function raised to a constant power, the relative rate is multiplied by that power. These conclusions follow from logarithm laws followed by differentiation, rather than from an additional, unrelated derivative rule.

A common mistake

A frequent error is to omit the division by the function and claim that \(\frac{d}{dx}\ln y=y'\). For \(y=(x^2+1)e^{2x}\) at \(x=1\), direct differentiation gives \(y'(1)=6e^2\). But the derivative of its logarithm is

$$ \left.\frac{d}{dx}\ln y\right|_{x=1} = \left.\frac{y'}{y}\right|_{x=1} = \frac{6e^2}{2e^2} = 3, $$

not \(6e^2\). The correction is to apply the chain rule to the outer logarithm: its derivative contributes the factor \(1/y\), which must then be multiplied by the derivative \(y'\) of the inner function.

Another condition to check is positivity. If a function is not positive on the interval under consideration, the real expression \(\ln y\) may not be defined there. One cannot use the logarithmic derivative identity for that function on such an interval without first addressing the domain.

Summary

For a positive differentiable function, the logarithmic derivative identity is

$$ \frac{d}{dx}\ln y=\frac{y'}{y}. $$

It follows directly from the chain rule. Logarithm laws then show why products become sums and why positive constant powers become multiples:

$$ \frac{(uv)'}{uv}=\frac{u'}{u}+\frac{v'}{v}, \qquad \frac{(u^r)'}{u^r}=r\frac{u'}{u}. $$

In either case, multiply the logarithmic derivative by the original function to recover the ordinary derivative. Before applying the method, verify that the relevant functions are positive on the domain where the logarithm is used.

Check Your Understanding

Use the positivity conditions as well as the derivative calculations when answering.

  1. If \(y\) is positive and differentiable, what is \(\frac{d}{dx}\ln y\)?
  2. Why must a function be positive to apply the real logarithmic derivative identity as stated?
  3. If \(u\) and \(v\) are positive differentiable functions, write the logarithmic derivative of \(uv\) as a sum.
  4. For positive differentiable \(u\) and constant \(r\), write the logarithmic derivative of \(u^r\).
  5. If \(y(2)=5\) and \(y'(2)=15\), what is \(\left.\frac{d}{dx}\ln y\right|_{x=2}\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon