Logarithmic differentiation
Part of a series of articles about | ||||||
Calculus | ||||||
---|---|---|---|---|---|---|
| ||||||
Differential
| ||||||
Integral
| ||||||
Series
| ||||||
Vector
| ||||||
Multivariable
| ||||||
Specialized
| ||||||
Glossary of calculus
| ||||||
In calculus, logarithmic differentiation or differentiation by taking logarithms is a method used to differentiate functions by employing the logarithmic derivative of a function f,[1]
- (lnf)′=f′f⟹f′=f⋅(lnf)′.{displaystyle (ln f)'={frac {f'}{f}}quad implies quad f'=fcdot (ln f)'.}
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.
Contents
1 Overview
1.1 General case
1.2 Higher order derivatives
2 Applications
2.1 Products
2.2 Quotients
2.3 Composite exponent
3 See also
4 Notes
Overview
For a function
- y=f(x){displaystyle y=f(x),!}
logarithmic differentiation typically begins by taking the natural logarithm, or the logarithm to the base e, on both sides, remembering to take absolute values:[4]
- ln|y|=ln|f(x)|.{displaystyle ln |y|=ln |f(x)|.,!}
After implicit differentiation:[5]
- 1ydydx=f′(x)f(x).{displaystyle {frac {1}{y}}{frac {dy}{dx}}={frac {f'(x)}{f(x)}}.}
Multiplication by y is then done to eliminate 1/y and leave only dy/dx on the left-hand side:
- dydx=y×f′(x)f(x)=f′(x).{displaystyle {frac {dy}{dx}}=ytimes {frac {f'(x)}{f(x)}}=f'(x).}
The method is used because the properties of logarithms provide avenues to quickly simplify complicated functions to be differentiated.[6] 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[3]
- ln(ab)=ln(a)+ln(b),ln(ab)=ln(a)−ln(b),ln(an)=nln(a).{displaystyle ln(ab)=ln(a)+ln(b),qquad ln left({frac {a}{b}}right)=ln(a)-ln(b),qquad ln(a^{n})=nln(a).}
General case
Using capital pi notation,
- f(x)=∏i(fi(x))αi(x).{displaystyle f(x)=prod _{i}(f_{i}(x))^{alpha _{i}(x)}.}
Application of natural logarithms results in (with capital sigma notation)
- ln(f(x))=∑iαi(x)⋅ln(fi(x)),{displaystyle ln(f(x))=sum _{i}alpha _{i}(x)cdot ln(f_{i}(x)),}
and after differentiation,
- f′(x)f(x)=∑i[αi′(x)⋅ln(fi(x))+αi(x)⋅fi′(x)fi(x)].{displaystyle {frac {f'(x)}{f(x)}}=sum _{i}left[alpha _{i}'(x)cdot ln(f_{i}(x))+alpha _{i}(x)cdot {frac {f_{i}'(x)}{f_{i}(x)}}right].}
Rearrange to get the derivative of the original function,
- f′(x)=∏i(fi(x))αi(x)⏞f(x)×∑i{αi′(x)⋅ln(fi(x))+αi(x)⋅fi′(x)fi(x)}⏞[ln(f(x))]′.{displaystyle f'(x)=overbrace {prod _{i}(f_{i}(x))^{alpha _{i}(x)}} ^{f(x)}times overbrace {sum _{i}left{alpha _{i}'(x)cdot ln(f_{i}(x))+alpha _{i}(x)cdot {frac {f_{i}'(x)}{f_{i}(x)}}right}} ^{[ln(f(x))]'}.}
Higher order derivatives
Using Faà di Bruno's formula, the n-th order logarithmic derivative is,
- dndxnlnf(x)=∑m1+2m2+⋯+nmn=nn!m1!m2!⋯mn!⋅(−1)m1+⋯+mn−1(m1+⋯+mn−1)!f(x)m1+⋯+mn⋅∏j=1n(f(j)(x)j!)mj.{displaystyle {d^{n} over dx^{n}}ln f(x)=sum _{m_{1}+2m_{2}+cdots +nm_{n}=n}{frac {n!}{m_{1}!,m_{2}!,cdots ,m_{n}!}}cdot {frac {(-1)^{m_{1}+cdots +m_{n}-1}(m_{1}+cdots +m_{n}-1)!}{f(x)^{m_{1}+cdots +m_{n}}}}cdot prod _{j=1}^{n}left({frac {f^{(j)}(x)}{j!}}right)^{m_{j}}.}
Using this, the first four derivatives are,
- d2dx2lnf(x)=f″(x)f(x)−(f′(x)f(x))2{displaystyle {frac {d^{2}}{dx^{2}}}ln f(x)={frac {f''(x)}{f(x)}}-left({frac {f'(x)}{f(x)}}right)^{2}}
- d3dx3lnf(x)=f‴(x)f(x)−3f′(x)f″(x)f(x)2+2(f′(x)f(x))3{displaystyle {frac {d^{3}}{dx^{3}}}ln f(x)={frac {f'''(x)}{f(x)}}-3{frac {f'(x)f''(x)}{f(x)^{2}}}+2left({frac {f'(x)}{f(x)}}right)^{3}}
- d4dx4lnf(x)=f⁗(x)f(x)−4f′(x)f‴(x)f(x)2−3(f″(x)f(x))2+12f′(x)2f″(x)f(x)3−6(f′(x)f(x))4{displaystyle {frac {d^{4}}{dx^{4}}}ln f(x)={frac {f''''(x)}{f(x)}}-4{frac {f'(x)f'''(x)}{f(x)^{2}}}-3left({frac {f''(x)}{f(x)}}right)^{2}+12{frac {f'(x)^{2}f''(x)}{f(x)^{3}}}-6left({frac {f'(x)}{f(x)}}right)^{4}}
Applications
Products
A natural logarithm is applied to a product of two functions
- f(x)=g(x)h(x){displaystyle f(x)=g(x)h(x),!}
to transform the product into a sum
- ln(f(x))=ln(g(x)h(x))=ln(g(x))+ln(h(x)).{displaystyle ln(f(x))=ln(g(x)h(x))=ln(g(x))+ln(h(x)).,!}
Differentiating by applying the chain and the sum rules yields
- f′(x)f(x)=g′(x)g(x)+h′(x)h(x),{displaystyle {frac {f'(x)}{f(x)}}={frac {g'(x)}{g(x)}}+{frac {h'(x)}{h(x)}},}
and, after rearranging, yields[7]
- f′(x)=f(x)×{g′(x)g(x)+h′(x)h(x)}=g(x)h(x)×{g′(x)g(x)+h′(x)h(x)}.{displaystyle f'(x)=f(x)times {Bigg {}{frac {g'(x)}{g(x)}}+{frac {h'(x)}{h(x)}}{Bigg }}=g(x)h(x)times {Bigg {}{frac {g'(x)}{g(x)}}+{frac {h'(x)}{h(x)}}{Bigg }}.}
Quotients
A natural logarithm is applied to a quotient of two functions
- f(x)=g(x)h(x){displaystyle f(x)={frac {g(x)}{h(x)}},!}
to transform the division into a subtraction
- ln(f(x))=ln(g(x)h(x))=ln(g(x))−ln(h(x)){displaystyle ln(f(x))=ln {Bigg (}{frac {g(x)}{h(x)}}{Bigg )}=ln(g(x))-ln(h(x)),!}
Differentiating by applying the chain and the sum rules yields
- f′(x)f(x)=g′(x)g(x)−h′(x)h(x),{displaystyle {frac {f'(x)}{f(x)}}={frac {g'(x)}{g(x)}}-{frac {h'(x)}{h(x)}},}
and, after rearranging, yields
- f′(x)=f(x)×{g′(x)g(x)−h′(x)h(x)}=g(x)h(x)×{g′(x)g(x)−h′(x)h(x)}.{displaystyle f'(x)=f(x)times {Bigg {}{frac {g'(x)}{g(x)}}-{frac {h'(x)}{h(x)}}{Bigg }}={frac {g(x)}{h(x)}}times {Bigg {}{frac {g'(x)}{g(x)}}-{frac {h'(x)}{h(x)}}{Bigg }}.}
After multiplying out and using the common denominator formula the result is the same as after applying the quotient rule directly to f(x){displaystyle f(x)}.
Composite exponent
For a function of the form
- f(x)=g(x)h(x){displaystyle f(x)=g(x)^{h(x)},!}
The natural logarithm transforms the exponentiation into a product
- ln(f(x))=ln(g(x)h(x))=h(x)ln(g(x)){displaystyle ln(f(x))=ln left(g(x)^{h(x)}right)=h(x)ln(g(x)),!}
Differentiating by applying the chain and the product rules yields
- f′(x)f(x)=h′(x)ln(g(x))+h(x)g′(x)g(x),{displaystyle {frac {f'(x)}{f(x)}}=h'(x)ln(g(x))+h(x){frac {g'(x)}{g(x)}},}
and, after rearranging, yields
- f′(x)=f(x)×{h′(x)ln(g(x))+h(x)g′(x)g(x)}=g(x)h(x)×{h′(x)ln(g(x))+h(x)g′(x)g(x)}.{displaystyle f'(x)=f(x)times {Bigg {}h'(x)ln(g(x))+h(x){frac {g'(x)}{g(x)}}{Bigg }}=g(x)^{h(x)}times {Bigg {}h'(x)ln(g(x))+h(x){frac {g'(x)}{g(x)}}{Bigg }}.}
The same result can be obtained by rewriting f in terms of exp and applying the chain rule.
See also
Calculus/Derivatives of Exponential and Logarithm Functions#Logarithmic Differentiation at Wikibooks for further examples
Darboux derivative, Maurer–Cartan form for generalizations to arbitrary Lie groups
- List of logarithm topics
- List of logarithmic identities
Notes
^ Krantz, Steven G. (2003). Calculus demystified. McGraw-Hill Professional. p. 170. ISBN 0-07-139308-0..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
^ N.P. Bali (2005). Golden Differential Calculus. Firewall Media. p. 282. ISBN 81-7008-152-1.
^ ab Bird, John (2006). Higher Engineering Mathematics. Newnes. p. 324. ISBN 0-7506-8152-7.
^ Dowling, Edward T. (1990). Schaum's Outline of Theory and Problems of Calculus for Business, Economics, and the Social Sciences. McGraw-Hill Professional. p. 160. ISBN 0-07-017673-6.
^ Hirst, Keith (2006). Calculus of One Variable. Birkhäuser. p. 97. ISBN 1-85233-940-3.
^ Blank, Brian E. (2006). Calculus, single variable. Springer. p. 457. ISBN 1-931914-59-1.
^ Williamson, Benjamin (2008). An Elementary Treatise on the Differential Calculus. BiblioBazaar, LLC. pp. 25–26. ISBN 0-559-47577-2.