We’re going to start with a quick fact about logs and their derivatives. The derivative rule for \(\ddx{\ln(x)}\) is still relatively new for us, so it is ok to still be getting comfortable with it, but we should notice this nice fact.
Let us be informal and technically not quite correct but hopefully clear in this. Logs really are friendly mathematical objects. They were created to be friendly objects! In a time when doing arithmetic with large numbers was difficult due to a lack of computing technology, logs were introduced to make arithmetic easier.
The general idea is that, if there is some kind of hierarchy of operations, then logs transform operations between things into different operations that are lower on the hierarchy of operations. So logs turn things like products (repeated addition) and quotients (repeated subtraction) into addition and subtraction. Logs turn exponents (repeated multiplication) into coefficients.
Because of the domain of the log function, we need \(x,y\gt 0\) for these properties to make sense. We will use them relatively loosely, with functions that take on negative and positive values, and not worry too much about the domain issues when we don’t need to.
Ok, so how will we use these new-found friends? We’re going to think about some functions (and combinations of functions) that are new to us and that aren’t so clear for us to use things like the Product, Quotient, or the Chain Rule. We’ll try to use logs to rewrite our functions into some easier to approach implicitly defined relationships in order for us to differentiate.
Back in Section 2.3 we built an explanation for why \(\ddx{x^n}=nx^{n-1}\) that relied on thinking about exponents as repeated multiplication: it relied on \(n\) being some positive integer. We said, at the time, that the Power Rule generalizes and works for any integer, but did so without explanation.
Remember that when you solve for \(\dydx\) or \(y'\text{,}\) you might have some \(y\)-variables in your derivative. Replace them with \(y=x^n\text{.}\)
Let’s use the same technique to think about \(y=x^x\) and its derivative. First, though, confirm that this is not a power function (and so we cannot use the Power Rule to find the derivative) and is also not an exponential function (and so the derivative isn’t itself or itself scaled by a log).
This idea that we’ve just implemented (applying a logarithm to make some function more friendly and then using implicit differentiation to differentiate) is often called logarithmic differentiation. It works so well because logs are friends.
How about products and quotients of functions? I know, I know, we have The Product and Quotient Rules...what about big products and quotients? Annoying ones. Complicated ones.
Work out a general strategy for how you would find \(y'\) directly. Where would you have to use Quotient Rule? What are the pieces? Where would you have to use Product Rule? What are the pieces? Where would you have to use the Chain Rule? What are the pieces?
Since this function is just a bunch of products of things with exponents all put into some big quotient, we can use our log properties to rewrite this!
While this is not a nice looking expression for the derivative, spend some time confirming that this was a nicer process than differentiating directly. This is because logs are friends.
So how do we wrap this up? I hope we can see that logs are a useful and powerful tool: we can use logarithmic differentiation to transform our functions to become “easier to work with” versions of themselves: we put everything on a log-scale and allow our properties of logarithms to make the operations become a bit more accessible.
This is a commonly used trick in many applications of calculus. Specifically, this is used often enough in statistics that there is a whole paradigm of estimation (called Maximum Likelihood Estimation) that uses a log-transformed version of a likelihood function and then applies some basic calculus ideas (that we’ll cover in Section 4.5) to perform some powerful estimations.
While I hope that we end up leaving this section knowing that logs are friends, we can probably add a second (and related result) that we’re using over and over.
We apply logs in order to rewrite these functions in a friendly way because we would rather use the Chain Rule than any combination of other derivative strategies.
For each of the following functions, find the derivatives in two ways: directly, and after using properties of logs or exponentials to rewrite the function and differentiate.