In calculus, logarithmic differentiation or differentiation by taking logarithms is a method used to differentiate functions by employing the logarithmic derivative of a function,[1]
The technique is often performed in cases where it is easier to differentiate the logarithm of a function rather than the function itself. This usually occurs in cases where the function of interest is composed of a product of a number of parts, so that a logarithmic transformation will turn it into a sum of separate parts (which is much easier to differentiate). It can also be useful when applied to functions raised to the power of variables or functions. Logarithmic differentiation relies on the chain rule as well as properties of logarithms (in particular, the natural logarithm, or the logarithm to the base e) to transform products into sums and divisions into subtractions.[2] [3] The principle can be implemented, at least in part, in the differentiation of almost all differentiable functions, providing that these functions are non-zero.
The method is used because the properties of logarithms provide avenues to quickly simplify complicated functions to be differentiated.[4] These properties can be manipulated after the taking of natural logarithms on both sides and before the preliminary differentiation. The most commonly used logarithm laws are
Using Faà di Bruno's formula, the n-th order logarithmic derivative is,Using this, the first four derivatives are,
See main article: Product rule. A natural logarithm is applied to a product of two functionsto transform the product into a sumDifferentiating by applying the chain and the sum rules yieldsand, after rearranging, yields[5] which is the product rule for derivatives.
See main article: Quotient rule. A natural logarithm is applied to a quotient of two functionsto transform the division into a subtractionDifferentiating by applying the chain and the sum rules yieldsand, after rearranging, yields
which is the quotient rule for derivatives.
For a function of the formthe natural logarithm transforms the exponentiation into a productDifferentiating by applying the chain and the product rules yieldsand, after rearranging, yieldsThe same result can be obtained by rewriting f in terms of exp and applying the chain rule.
Using capital pi notation, letbe a finite product of functions with functional exponents.
The application of natural logarithms results in (with capital sigma notation)and after differentiation,Rearrange to get the derivative of the original function,