We use logarithms to help us differentiate.

Logarithms were originally developed as a computational tool, mainly due to their famous property:

\[ \log _b(xy) = \log _b(x)+\log _b(y). \]

Before the days of calculators and computers, this was critical knowledge for anyone in a computational discipline.

The moral is:

Logarithms allow us to use addition in place of multiplication.

1 Logarithmic differentiation

When taking derivatives, both the product rule and the quotient rule can be cumbersome to use. Logarithms will save the day. A key point is the following

\[ \ddx \ln (f(x)) = \frac {1}{f(x)}\cdot f'(x) = \frac {f'(x)}{f(x)} \]

which follows from the chain rule. Let’s look at an illustrative example to see how this is actually used.

The process above is called logarithmic differentiation. It starts by taking the natural logarithm of the function, then using the properties of logarithms to simplify. Logarithmic differentiation allows us to compute new derivatives, too.

The function from the previous example \(x^x\) is a type of function that we call a tower function. Tower functions are functions written as \(f(x)^{g(x)}\), an exponential where both the base and exponent depend on the variable. This logarithmic differentiation is one method of differentiating a tower function. However we can also write

\[ f(x)^{g(x)} = e^{\ln \left ( f(x)^{g(x)} \right )} = e^{g(x)\ln ( f(x) ) }. \]

By rewriting like this we can differentiate tower functions using chain rule and product rule. In the previous example, the derivative of \(x^x\) was calculated in both of these methods. Let’s differentiate one more tower functions using both methods.

The next example will be useful when we want to use logarithmic differentiations for functions that assume negative values.

2 Proof of the power rule

Finally, recall that previously we only proved the power rule for positive integer exponents. Now we’ll use logarithmic differentiation to give a proof for all real-valued exponents. We restate the power rule for convenience sake:

While logarithmic differentiation might seem strange and new at first, with a little practice it will seem much more natural to you.