Logarithmic differentiation
Try to differentiate with the rules you already know and you hit a wall: the power rule needs a constant exponent, and the exponential rule needs a constant base — here neither is constant, both are . Logarithmic differentiation breaks the deadlock by taking of both sides first. A logarithm turns multiplication into addition and exponents into multipliers, so a tangled product of powers becomes a simple sum that ordinary chain-rule differentiation can handle term by term. The one extra cost is that is now hidden inside , so the left side must be differentiated implicitly, producing the factor . This short article expands the Class 12 method into a full working toolkit — the algebraic reason it works, a clean derivation for , and two board-style worked examples covering both classic use cases.
Taking of both sides converts a variable-base-to-variable-power or a long product/quotient into a sum of logarithms, which can be differentiated term by term and then multiplied back by to recover .
The core idea
Logarithmic differentiation exists for exactly two situations that no single standard rule covers.
Case 1 — variable base, variable exponent. For , both the base and the power depend on , so neither the power rule (, constant ) nor the exponential rule (, constant ) applies directly.
Case 2 — long products, quotients and powers. For an expression like , differentiating directly means chaining the product and quotient rules across every factor — slow and error-prone. Taking logs first turns the whole right side into a sum, so each factor is differentiated separately and simply. Both cases use the same three-move sequence:
where: is the original function, is its natural logarithm, and the right side is rewritten using the log laws , , and before anything is differentiated. The reason this helps is purely structural: is the one function that turns a product/power structure into an additive one, and sums differentiate term by term without any product or quotient rule at all. The picture below shows the same transformation as a flow — a hard, tangled expression on the left becomes an easy sum on the right, at the cost of one implicit-differentiation step to get back to .
The goal is to derive, from the definition of implicit differentiation and the log law , a general working formula for when , so that from here on the process is mechanical rather than something re-derived each time.
Step 1. Take the natural log of both sides of . Using , the right side simplifies from a power to a product: . This step is only valid for , which is why such problems always specify a domain where the base stays positive.
Step 2. Differentiate both sides with respect to . The left side is , a function of only through , so the chain rule gives . The right side is a product of and , so the product rule applies, and itself needs one more chain-rule pass:
Step 3. Equate the two sides and isolate by multiplying through by :
Step 4. Substituting back is not optional — leaving the answer as is an incomplete derivative. This general result specialises instantly to : with and , so , it gives , matching the direct computation.
Worked example
Differentiate using logarithmic differentiation, then evaluate at .
Step 1. Take the natural log of both sides and expand with log laws: . Each power in the original expression became a multiplying coefficient in front of a log term.
Step 2. Differentiate term by term, each needing the chain rule since every argument is a function of :
Step 3. Multiply both sides by and substitute the original expression back in for :
This bracketed form is the standard, fully acceptable board answer — there is no requirement to expand it further, and doing so usually makes the answer harder to check, not easier.
Competitive stretch — evaluate at a point
The bracket in Step 3 blows up as because of the term, so cannot be substituted directly into and differentiated there in one shot without care — but the original is perfectly finite at : , since the numerator carries a factor . So , and since the bracket's problematic term is multiplied by a that itself contains , the product is in the limit. The derivative at is — a useful check that logarithmic differentiation's bracket form must always be read together with the multiplying it, not evaluated piece by piece.
Common traps
- Applying the ordinary power rule to . The power rule needs a constant exponent; here the exponent is itself, so does not apply and logarithmic differentiation is mandatory.
- Dropping the factor when differentiating implicitly — writing instead of the correct .
- Misusing log laws, especially assuming ; only is valid, and only division (not subtraction) becomes a log difference.
- Stopping at without multiplying by and substituting the original function back in — this leaves an incomplete derivative, not a final answer.
- Forgetting the domain restriction. requires , so logarithmic differentiation as shown assumes on the interval of interest; if can be negative, students instead take and note that still holds, so the working formula is unchanged.
Ask the tutor: if you want, I can walk through one more logarithmic-differentiation problem with you line by line, picking the exponent-form or the product-form case — just say which.
Why can we take the log of both sides at all — doesn't that change the equation?
It does not change the equation, because is a strictly increasing, one-to-one function on positive numbers: if two quantities are equal, their logs are equal, and vice versa. Since (a positive power like for ) is positive, is well-defined, and is exactly as true as the original equation. Differentiating both sides of a true equation gives another true equation, which is all logarithmic differentiation relies on.
Do I always need logarithmic differentiation for products, or can I use the product rule instead?
For two factors, the ordinary product rule is usually faster and logarithmic differentiation is not required. The technique earns its keep once you have three or more factors, or factors raised to fractional or negative powers, or roots — situations where repeated product and quotient rules become long and error-prone. As a rule of thumb, reach for logs when you would otherwise need to nest the product rule inside the quotient rule, or when an exponent itself depends on .
In the worked example, why doesn't the 2/x term cause a problem at x=0 in the final answer?
Because the final derivative is the product of (which contains the factor and equals at ) and the bracket (which does blow up as near ). The bracket alone is undefined at , but it is never the final answer by itself — it is always multiplied by . Here near while the troublesome term in the bracket is , so their product behaves like . The lesson is to always keep the factor attached when reasoning about the derivative's behaviour, not to evaluate the bracket in isolation.