Why the Choice of Method Matters
A derivative can often be found in more than one way. For a simple power, the Chain Rule usually gives a short calculation. For a product or quotient containing several variable powers, applying the product and quotient rules repeatedly can create a long expression. Taking a logarithm can turn those products and quotients into sums, making the derivative easier to organize.
The goal is not to use logarithmic differentiation every time an expression contains a power. The goal is to choose a method that is both efficient and valid on the domain being considered. In many cases, the two methods are mathematically equivalent; they simply arrange the work differently.
Direct Differentiation and Its Natural Cases
Direct differentiation means applying familiar derivative rules to the expression as it is written. For a constant \(c\) and a differentiable function \(u\), the Chain Rule gives
where the expression is defined and differentiable. This is often the most efficient method when the exponent is constant and the base has a simple derivative. The Chain Rule also handles an exponential such as \(e^{w(x)}\): its derivative is \(e^{w(x)}w'(x)\).
A variable exponent changes the situation. The power rule above does not apply with \(c\) replaced by a function \(v(x)\). For positive \(u(x)\), a variable power can instead be written as \(u(x)^{v(x)}=e^{v(x)\ln u(x)}\), after which the Chain Rule applies. This route is closely related to logarithmic differentiation, even if one starts by rewriting the power as an exponential.
What Logarithmic Differentiation Does
Suppose \(f\) is differentiable and positive on an interval. Taking the natural logarithm gives \(\ln f(x)\), whose derivative, by the Chain Rule, is \(f'(x)/f(x)\). This ratio is called the logarithmic derivative. The method is especially useful because the logarithm changes products into sums and quotients into differences.
For example, if \(f(x)=u(x)^{v(x)}\) with \(u(x)>0\), then taking logarithms gives \(\ln f=v\ln u\). Differentiating this equation and multiplying by \(f\) yields the following formula.
The condition \(u(x)>0\) ensures that the real-valued logarithm \(\ln u(x)\) exists. The formula covers both a changing base and a changing exponent; if one of them is constant, the corresponding derivative term is zero.
Why the Logarithmic Method Works
The essential justification is the Chain Rule combined with the logarithm laws. Let \(f(x)>0\) be differentiable. Since \(\ln f\) is differentiable,
If \(f\) is a product or quotient of positive differentiable factors, the logarithm laws turn the logarithm of \(f\) into a sum or difference. Differentiating that simpler expression gives \(f'/f\), and multiplying by \(f\) gives \(f'\). For a variable power, the same reasoning gives the formula above:
Every line follows from a stated rule: the first uses \(f=u^v\), the second uses the product rule and the Chain Rule, and the third multiplies by \(f\) and substitutes \(f=u^v\). This is not a new power rule to apply without conditions; its derivation relies on a positive base.
Worked Example: A Constant Exponent with a Simple Base
Worked Example: A Constant Exponent with a Simple Base
Differentiate \(f(x)=(3x-1)^4\). Compare direct differentiation with logarithmic differentiation where the function is positive.
Direct method. The outer function is a fourth power and the inner function is \(3x-1\). Its derivative is \(3\), so the Chain Rule gives
Logarithmic method. The function is positive when \(3x-1>0\), or \(x>1/3\). On that interval, take logarithms and differentiate:
The methods agree where the logarithmic calculation applies. At \(x=1\), the direct result gives \(f'(1)=12(2)^3=96\). Applying the Chain Rule directly at the same point gives \(4(2)^3\cdot3=96\), confirming the value. Direct differentiation is preferable here: it is shorter and works wherever the original polynomial expression is defined, whereas the logarithm calculation was restricted to \(x>1/3\).
Worked Example: A Product of Powers
Worked Example: A Product of Powers
Differentiate \(g(x)=(x+1)^2(x^2+1)^3\). Both factors are positive for \(x>-1\), so logarithmic differentiation is valid on that interval.
Direct method. Apply the product rule, then the Chain Rule to each factor:
Logarithmic method. Taking the logarithm changes the product into a sum:
Expanding the last line gives \(2(x+1)(x^2+1)^3+6x(x+1)^2(x^2+1)^2\), exactly the direct result. At \(x=1\), \(g(1)=2^2\cdot2^3=32\), and the logarithmic derivative is \(2/2+6/2=4\). Thus \(g'(1)=32\cdot4=128\). The direct expression gives \(2\cdot2\cdot8+6\cdot1\cdot4\cdot4=32+96=128\), confirming the calculation. Here logarithms shorten the differentiation, while the product rule remains manageable.
Worked Example: A Quotient with Variable Powers
Worked Example: A Quotient with Variable Powers
For \(x>0\), differentiate
Both bases are positive on this domain. A direct quotient-rule calculation is possible, but first each variable power must be differentiated. For the numerator \(N=x^x\), the variable-power formula gives \(N'=x^x(\ln x+1)\). For the denominator \(D=(x+1)^{2x}\), the same formula, with base \(x+1\) and exponent \(2x\), gives
Since \(h=N/D\), the quotient rule gives
Logarithmic differentiation reaches the same expression with less intermediate work. Take logarithms, use the quotient rule for logarithms, and differentiate:
As a check, at \(x=1\), \(h(1)=1/4\) and the parenthesized expression is \(0+1-2\ln2-1=-2\ln2\). Therefore \(h'(1)=-\tfrac12\ln2\). The direct quotient rule gives \(N(1)=1\), \(N'(1)=1\), \(D(1)=4\), and \(D'(1)=4(2\ln2+1)\), so
The methods agree, but taking logarithms keeps the quotient calculation compact.
How to Choose
The expression's structure is a practical guide. The following comparisons are not absolute rules: a short direct calculation can be preferable even when logarithmic differentiation is available, and a complicated chain of ordinary rules may sometimes still be organized cleanly.
| Expression structure | Often efficient choice | Reason |
|---|---|---|
| A single function raised to a constant power | Direct Chain Rule | One power rule and one inner derivative usually suffice. |
| A variable base raised to a variable exponent | Logarithmic differentiation | Taking a logarithm separates the base and exponent contributions. |
| A product or quotient with several factors or powers | Logarithmic differentiation | Products and quotients become sums and differences. |
| A short composition with no complicated products or quotients | Direct differentiation | Logarithms may add domain restrictions and unnecessary steps. |
A useful decision process is:
Look for variable exponents, many factors, or a complicated quotient.
For a real logarithm of the function, require a positive function. For a variable real power, require a positive base on the interval where the formula is used.
If direct rules produce only a short expression, use them; if they produce repeated product or quotient calculations, take logarithms when valid.
After finding \(f'/f\), multiply by \(f\). Compare with another method or evaluate both expressions at a convenient point.
Domain and Sign Conditions
The real logarithm \(\ln f(x)\) is defined only when \(f(x)>0\). This matters because an expression may be differentiable even where it is not positive. In the first example, \((3x-1)^4\) is defined for every real \(x\), but taking \(\ln((3x-1)^4)\) requires \(3x-1\ne0\), and rewriting it as \(4\ln(3x-1)\) requires the stronger condition \(3x-1>0\).
If \(f(x)\ne0\), one can instead differentiate \(\ln|f(x)|\). On an interval where \(f\) does not change sign, the Chain Rule gives \(\frac{d}{dx}\ln|f(x)|=f'(x)/f(x)\). This can extend the logarithmic-derivative calculation to a negative, nonzero function. It does not make logarithms valid at zeros, and it does not remove the positive-base condition for a general real variable power \(u(x)^{v(x)}\).
Common Pitfall: Choosing a Method Without Checking Its Conditions
A tempting but invalid step is to write \(\ln((3x-1)^4)=4\ln(3x-1)\) for every real \(x\). If \(x=0\), the left side is \(\ln 1=0\), but the right side is \(\ln(-1)\), which is not defined as a real number. The identity is valid only when \(3x-1>0\). To differentiate the original expression across its full real domain, use the direct Chain Rule result \(12(3x-1)^3\). Alternatively, use the logarithm calculation only on the interval where its logarithms exist.
This illustrates why choosing a method is not merely a matter of algebraic convenience. The method must apply on the domain under discussion. A correct derivative formula obtained on a restricted interval does not, by itself, justify a logarithmic calculation outside that interval.
Summary
Direct differentiation is usually the simplest approach for a constant exponent or a short composition. Logarithmic differentiation is often more efficient for variable powers and for products or quotients with many factors. The underlying reason is that the logarithm converts multiplication and division into addition and subtraction, while the Chain Rule relates the derivative of a logarithm to \(f'/f\).
In either approach, state the domain conditions, carry out the derivative rules carefully, and check the result when possible. The best method is the one that gives a valid, clear calculation with the least unnecessary work.
Check Your Understanding
Answer these questions using the method-choice and domain principles from this tutorial.
- For a differentiable function \(u\), why is direct Chain Rule differentiation usually efficient for \(u(x)^5\)?
- What condition on \(u(x)\) allows the real-valued formula for differentiating \(u(x)^{v(x)}\) by logarithms?
- Why can logarithmic differentiation reduce the work for a product of several positive factors?
- For \(f(x)=(2x-3)^6\), on what interval can you write \(\ln f(x)=6\ln(2x-3)\)?
- When \(f(x)\ne0\) but \(f(x)<0\), what logarithmic expression can be differentiated to obtain \(f'(x)/f(x)\)?