Derivatives of Exponentials & Logarithmics
We now turn to differentiating exponential and logarithmic functions. Knowing how to compute the derivatives for these functions is especially useful in applied mathematics fields. For example, we frequently see exponential functions with future value calculations in finance, and logarithmic functions for discounting to present value. We also see exponential functions in population growth models. In all of these situations, knowing how to compute various rates of change is invaluabe. And as we've seen, that knowledge is provided through the derivative.
We begin by recalling some of the basic rules of exponents. First, where the following rules hold:
Exponent-product Rule. The exponential of the sum is the exponential of the product:
where
Exponent-quotient Rule. If the bases are the same, keep the base and subtract the exponent in the denominator from the exponent in the numerator.
where
Raising a Product to a Power. To raise a product to the power, raise each factor to the power.
where
Exponent-power Rule. To raise a power to a power, multiply the exponents.
where
Raising a Quotient to a Power. To raise a quotient to the power, raise both the numerator and the denominator to the power.
where
Exponent of 1. Any number raised to the first power returns the original number.
where
Exponent of 0. Any number raised to the zero power returns 1.
where
Negative Integer Exponent Rule. Negative exponents are equivalent to an exponent in the denominator.
where
Fractional Exponent Rule. Fractional exponents are equivalent to the root of the power.
where
Keeping these rules in mind, let's see some functions. How about
To find the derivative of this function, let's think about how Newton's quotient applies. It would look something like this:
What should we do next? Look at the term We can rewrite this term as Incorporation this rewrite:
Now we see a common factor we can factor out, :
At this point, we have something to work with conceptually. Let's recall how the limit applies here. With this limit, we know that: (1) is fixed, and (2) is fixed. Because of these two facts, it follows that is constant. And because is constant, we can factor it out of the limit β it has no bearing on our analysis of the limit:
Thus, our analysis is really focused on what the limit term is. Because of how important the term is, we'll write this expression as:
where:
So, what exactly is To begin, we state an observation. If we plug in the value we get:
This observation tells us that at the slope of is this limit we're calling More specifically, since we have a slope of (at ) This tells us that if we instead had the function at we'd get For at we'd get and so on. This leads to a broader observation: If we know the slope at for some function we can determine the slope everywhere else. We've seen this phenomenon before with sines and cosines: We knew the slope for sine and cosine at and from the trigonometric formulas, we determined the slope everywhere else.
The difference with exponentials: we're stuck right off the bat. With sine and cosine, we had the benefit of using radians, which allowed us to interpret the limits geometrically. Here, we're dealing directly with a number. There are no clever shortcuts to rely on. So we're going to need a different tactic. In this case, we're going to beg the question.1
We start by stating a proposition:
There exists a base where is a unique real number, such that
From the proposition above, we have the following:
This is a very important deduction (so much so that we will encapsulate it in a formal definition later). Furthermore, from our previous analysis, we know that:
As we're all too familiar with in mathematics, we should never take things for granted. Why does exist? How do we know it exists? So we know that exists. That is, after all, what we started with. Furthermore, we know that it has the property Now let's say we stretch the function We can stretch this function by multiplying its inputs with a factor :
By the exponent power rule, the expression is the same as And since and are both real numbers, is a real number, which we can denote as This means we can rewrite the function above as:
Now, what happens when we shrink a function's graph? Well, we essentially shrink the -axis, which in turn leads to the graph's slope tilting up. Thus, as ( gets bigger and bigger), the slope of gets steeper and steeper. This is numerically confirmed by considering the derivative of
Evaluating at
At this point, we know that exists. When we have:
Substitute into the equation holds true: And since the equation holds true, we know that exists.
Knowing that exists, we can continue with our derivative. We must now put all of these observations together. To do so, we rely on a particularly useful operation in mathematics: The natural logarithm. The natural log is defined as such:
The natural logarithm has several useful properties that are worth revisiting:
And just to reminder ourselves, the graphs of and
With the graphs above, we can see that is indeed the inverse of We're switching the roles of and Notice further that is only defined when This corresponds to the fact that is always positive.
Since is the inverse function of we can use implicit differentiation to find the derivative of the natural logarithm. To do so, we'll write We want to find the derivative of But we don't know how, so what we'll do is exponentiate:
Given that we can differentiate:
Applying implicit differentiation, we have:
Substitute with (since we defined ):
Hence, we have the following:
We now have two formulas to work with:
We now return to our pesky function If we can find the derivative for this function, we can find the derivative for any exponential function. Knowing the two formulas above, we can compute the derivative by first rewriting in terms of base I.e., converting into base How do we convert to We want to write as In other words, to some power:
Now we can carry out the differentiation:
The first step is often a point of great confusion, so it's critical that we are comfortable with it as possible. First, we emphasize that and are constants. They're fixed. No movement. The only thing that's moving is If we were asked to compute the derivative of the derivative would look like:
by the chain rule. The same idea applies to the derivative of Hence:
We know that so we have the derivative of
Now we can go back to our very first problem: Recall we asked, what exactly is Well now have it:
Accordingly, we have:
Similarly:
This is one of the reasons for why the natural logarithm takes as part of its name the adjective βnatural.β No matter what base we choose, the respective exponential function's derivative will contain a natural logarithm. It's a logarithm that appears without any reference.
Logarithmic Differentiation
In the method above, we arrived at the derivative of by rewriting the base in terms of There is, however, any way to compute the derivative: through the method of logarithmic differentiation.
With logarithmic differentiation, rather than directly computing the derivative of some function we instead attempt to compute the derivative of its logarithm. More explicitly, instead of computing:
we instead compute:
Applying the chain rule:
Note that the expression just another way to write We know that this term evaluates to so we have:
This is the controlling principle of logarithmic differentiation. We state it explicitly:
Applying this to
And as we know from our rules, Why? Because is just a constant. It doesn't move. Performing the rest of the computation:
Solving for
Substituting
We get the same derivative we saw with the rewriting-in-terms-of- method. Logarithmic differentiation allows us to compute even more complex derivatives. Consider the function:
This is a fairly nasty function. It's got both a moving base and a moving exponent. Once more, we apply logarithmic differentiation. First, we express as a variable:
Next, we rewrite the expression as a logarithm:
Then we compute the derivative:
Accordingly, we now have:
Solving for
Substituting with we have the following rule:
Euler's Number
Having seen how the natural logarithm is so useful, we now turn to a closer look at the number After all, this entire discussion has been premised on the existence of and although we proved that it existed, we didn't delve any deeper. We do so now.
What does this limit evaluate to:
Evaluating this limit, we have:
Let's rewrite this expression in a more recognizable form. Suppose This means that as tends to infinity (as our expression provies), tends to zero. Rewriting the expression:
Now we perform the classic trick of subtracting from the expression. In this case, we will represent as
Do we see the pattern in the last expression? Let's rewrite it one more time:
This is just an application of Newton's Quotient. It's the expression we get from computing:
And we know the result of this computation:
Finally, given the limit evaluates to Now we just have to work backwards to determine our original limit, First, we remind ourselves of the limit we just computed:
This is the limit of the natural logarithm of our original expression. To evaluate our original limit, we must βundoβ the natural logarithm. And how do we do so? Be rewriting the natural logarithm in terms of its inverse: a power with the base
Note that this isn't anything new. We're just undoing what we've done. The limit of the log is equal to the log of the limit. And given that we've solved for the limit of the log, we see in all its glory:
This is such an important result, that we must state it from a different perspective:
As an aside, notice that reading the equation the other way leads to another key insight: An approximation of In mathematics, we should always read our equations (and really, any proposition) both βforwardβ and βbackwardβ. If we have equality, rewrite it from both directions. Inequality, state it in terms of what's less and what's greater. A conditional, state the contrapositive. Switching perspectives is the first step towards greater insight.
Power Functions
Recall our rule for computing the derivative of a power function:
Our rule worked, but we restricted it to a particular condition: Where In other words, the power rule, as we originally formulated it, was limited to rational number powers. We couldn't use it to compute the derivatives of something like or These are all irrational powers. Now that we know how to rewrite bases in terms of and logarithmic differentiation, we can extend the power rule to apply to all real numbers.
With what we know now, we have a few ways of computing the derivative of where One way is to rewrite the base in terms of
Using prime notation to express the derivative:
we see that we can compute the derivative by applying the chain rule:
Simplifying, the derivative of the exponential is just itself, so no change there. The derivative of is zero, since is a constant. And the derivative of is as we know.
We've now extended the power rule to all real numbers. We could've also done the same with logarithmic differentiation. First, we denote with the variable
Taking the natural logarithm of
Then, we differentiate:
Next, we use the fact that is the same as
Solving for
Then substituting with
This confirms that the power rule extends to all real numbers. It also demonstrates that logarithmic differentiation and convering to base are essentially the same methods. The biggest differences: With converting to base we must deal with exponents, and with logarithmic differentiation, we often must introduce new symbols.
Footnotes
-
βBegging the questionβ is a type of informal fallacy. Essentially, smuggling the conclusion into our premises. For example: God must exist. How do you know? Because the Bible says so. Why should I believe the Bible? Because the Bible was written by God. Another example: The belief in God is universal. After all, everyone believes in God. Begging the question is not a logical fallacy. Arguments that beg the question are logically valid. These arguments, however, are typically unpersuasive (as seen in the preceding examples), but they are perfectly logical. In other words, we're going to go at this problem in a roundabout way. This is a circuitous approach, not circular. Effectively, we're going to refuse to answer βWhat is β directly for now, but we will eventually get to the question. β©