notesonly.in

One notebook for every subject — open it anywhere.

Log in

Logarithmic Differentiation: Tame Tough Derivatives

Logarithmic differentiation is a technique that tames derivatives which look impossible: functions raised to variable powers like x^x, or messy products and quotients of many factors. Instead of attacking them directly, you take the natural logarithm of both sides first. This turns exponents into multipliers and products into sums, which are far easier to differentiate.

The reason it matters is that some of the most common "trick" exam questions — differentiate y = x^x, or y = (sin x)^(x²) — have no direct rule at all. Neither the power rule nor the exponential rule fits, because both the base and the exponent contain x. Logarithmic differentiation is the standard, reliable method that always works for them.

Key Concepts

  • Logarithm laws used: ln(ab) = ln a + ln b, ln(a/b) = ln a − ln b, and ln(a^n) = n ln a. These three laws do all the simplifying work.
  • Core idea: given y = f(x), write ln y = ln(f(x)), differentiate implicitly with respect to x, and solve for dy/dx.
  • Chain rule link: d/dx(ln y) = y'/y, so differentiating gives y'/y = (derivative of ln of the right side), and the final step is multiplying both sides by y.
  • General power form: for y = u^v (both functions of x), ln y = v ln u, so y'/y = v' ln u + v u'/u.

How It Works

  1. Step 1: Take the natural logarithm of both sides of y = f(x), giving ln y = ln(f(x)).
  2. Step 2: Expand the right side using logarithm laws so products become sums and exponents become multipliers.
  3. Step 3: Differentiate both sides with respect to x. The left side gives y'/y by the chain rule.
  4. Step 4: Solve the resulting equation for y' by multiplying everything by y.
  5. Step 5: Replace y with the original function so the answer is in terms of x only.

Worked Example

Find the derivative of y = x^x for x greater than 0.

  1. Step 1: Take logs: ln y = ln(x^x) = x ln x.
  2. Step 2: Differentiate both sides: the left side gives y'/y. The right side needs the product rule: derivative of x ln x is 1 · ln x + x · (1/x) = ln x + 1.
  3. Step 3: So y'/y = ln x + 1.
  4. Step 4: Multiply by y: y' = y (ln x + 1) = x^x (ln x + 1).
  5. Step 5 (check): At x = e, y' = e^e (ln e + 1) = e^e × 2, which is about 15.1543 × 2 = 30.3086.

Common Misconceptions

  • "I can use the power rule on x^x to get x · x^(x−1)." No — the power rule requires a constant exponent. Here the exponent is the variable x, so the rule does not apply.
  • "The answer y'/y is the final answer." Students often stop at y'/y = something and forget the last two steps: multiplying by y and substituting the original function back in.
  • "Logarithmic differentiation works for negative functions too." The logarithm is only defined for positive values, so the technique as stated needs y greater than 0. For functions that dip negative, use ln |y| instead.

Real-World Applications

  • Economics: differentiating complicated demand or utility functions that are products of many power terms, where taking logs first is far less error-prone.
  • Physics: analyzing quantities like the Stefan-Boltzmann law raised to fractional powers in heat transfer, where log differentiation keeps the algebra manageable.
  • Statistics: maximizing likelihood functions, which are enormous products of probabilities — logs convert them to sums before any calculus is done.
  • Engineering: sensitivity analysis of formulas with many multiplied factors, where the logarithmic derivative y'/y directly gives the relative (percentage) rate of change.

To recap: take logs of both sides, expand with log laws, differentiate implicitly, then multiply by y. It converts the hardest differentiation problems — variable powers and long products — into routine ones.