Most recently in the series on calculus, we did some overview on some “precalculus” topics that we’d need for later calculus discussions. Having now done this, we move on to several examples of more ‘complicated’ rules that derivatives follow. We will then investigate some more difficult specific functions and their derivatives. Finally, at the end, I will leave a list of “homework problems” for any of my readers who want practice.

**The Product Rule**

We have already tackled to to take derivatives of functions like . We handled addition, one of the main operations of arithmetic. By doing addition, we were able to handle subtraction as well. But what about multiplication? That would be the natural next step, just as in school multiplication is the next natural step after learning about addition and subtraction. Our purpose now is to lay out the so-called *product rule*, which enables us to take derivatives of functions like .

** Fact:** For any two functions and that have derivatives,

** Proof:** This proof uses a slick trick of “adding zero” to an expression. First, by the definition of derivatives,

Now, we want to be clever. Our clever move will be the fact that . While this looks very strange to point out something so obvious, this fact means that

The first to pieces of this numerator have a common factor, as do the second two. Therefore, this messy expression can be simplified a little bit as

Since , the first of these simplifies as

.

The second piece, using the exact same process, is equal to . When everything is put back together, has derivative .

**The Chain Rule**

You’d think that the next thing we would do is division. And in fact, there is a way I could do division next. But it will actually be easier to do something else first. I want to do functions inside of other functions next, like , which just means “copy-paste the expression wherever there would have been an . This is called the *chain rule*, because the functions sort of link together like a chain, inextricably connected.

** Fact:** For any two functions for which makes sense, we have In different notation, if is a function of , which itself is a function of , then

In an earlier post, I made a comment about a similarity between this derivative notation and genuine fractions. The chain rule is the central such similarity – when written in the dy-over-dx style, it looks as if the du’s are cancelling out, like they would if these were actual fractions.

** Proof:** This one is actually quite tricky compared to the others. For this reason, I won’t actually do a totally correct proof. Instead, I’m going to do a proof that “usually” works. For those who want a great challenge, try to figure out where this proof goes wrong. (If you end up wanting to know, the Wikipedia article on the chain rule will actually tell you. If you don’t care, then reading this proof will give you the right idea.)

The definition of the derivative tells us that

We now make a clever step of multiplying top and bottom by .

We can even split this up into two limits multiplied together.

Since will be a continuous function (it has a derivative so it must be continuous), as . This enables us to treat as if it were something like . There is a more careful way to write that down, but since we are being informal I won’t do that (and no, this isn’t the real problem in the proof… that already happened earlier). This will mean that

where is used to make the formulas easier to follow. This leads directly to the value for this limit. When we combine all of our work, we find that .

** Fact:** If the functions have derivatives, then the derivative of is .

** Proof:** The first thing we do is to view the division as a multiplication by

Secondly, we want to use the chain rule for . To do this, we will use the function . Then . Therefore,

We can then use the product rule to begin this derivative:

From the chain rule, we can simplify the derivative of to arrive at

Now, since , the rule for taking derivatives of powers of proven in an earlier post tells us that . Therefore,

and we can simplify this as

This is the original formula we wanted to prove. So, our proof is now done.

**More Special Functions **

We now move on from these general principles to some more specific examples. In the previous post on computing derivatives, we built up all the tools to compute the derivative of any polynomial expression, and in fact any expression involving raised to constant powers. Now, we move on to trigonometry, exponentials, and logarithms. These derivatives are more difficult to discover, but the importance of these functions requires that any complete study of calculus should include their derivatives. Also, a thorough study of these functions and their derivatives will provide a very complete picture of how to calculate derivatives using the limit definition.

** Fact:** The derivatives of and are

** Proof:** The definition of the derivative tells us that

In a previous post in the series, where I defined the function , I also gave the following rule for computing the value of :

Therefore,

We can now split this limit up into two pieces – one for and one for .

There are some facts we have to know in order to continue, these are that and . The proofs of these are a bit tricky, and so I don’t want to go off on a tangent (math pun!) talking about those here. I will add an appendix to the end of this post in which I talk about how to find these limits.

Moving on, once we know the values of these limits, we know that

and

Therefore, putting together all the steps we’ve laid out,

This completes the first half of the proof. I will leave the proof about the derivative of as practice for any of my curious readers, only providing a few guiding hints. The proof begins the same way. Instead of using the special rule for , you need to use the rule for that I gave in the same post in which I gave the rule for . After this rule is used, you should be able to finish the proof by following the same ideas I use here.

This completes our discussion of

** Fact:** The derivative of is .

** Proof:** The first thing we will do is to “compress” every value of into the very special number . Remember that, earlier in the series, we defined the “natural” exponential function and “natural” logarithm function . Also, remember that . Using , we conclude that and therefore

Now, let’s call and . Then . Using the chain rule, we then know that

What we have done here is to express the derivative of in terms of the derivative of . This means that we now only need to know how to find the derivative of this most special function. Using the definition of the derivative, along with some basic rules of exponents, we have

The proof here is a bit detailed, but the value of is 1. I will delay this proof to the appendix. But, the key fact here is that is so special because it is its own derivative. That is, if , then ! Using all of these facts, we conclude that

This completes our discussion of the derivative of exponential functions.

** Fact:** The derivative of the function is .

** Proof:** There is a way to do this similar to the previous proof about . Instead of doing that, I want to be clever. Since the functions and are so closely related, shouldn’t their derivatives be really closely related too? We should think so. That just makes sense. Then maybe we can find a way to take advantage of our formula for the derivative of to find the derivative of . Can you find the way? Take a moment and think about it.

The way I’ll do this is to transform the equation into the equation . The second step is to notice that because of the relationship between and . Therefore, . The other clever observation we have to make is that *if two things are equal, their derivatives must also be equal*. This means that . This is so clever because we can find these two derivatives by different methods. The right-hand side is much easier, the derivative of is just 1. The left-hand side can be found by using the fact we already found about the derivative of exponentials along with the chain rule:

since was already known to us. By combining these two derivative computations, we conclude that

and all we need to do is divide both sides of the equation by to find our answer.

Notice that from this fact, we can also deduce that . I will leave this to my reader. (*Hint:* why is ?)

This basically completes the list of important derivatives. But for the sake of learning, I want to compute one more that uses a clever trick much like the trick I used in the previous proof that enables us to find the derivative of a function that is “more complicated” than any of those we have previously discussed. The reason I want to show this is to demonstrate how we can take advantage of the rules we have already learned to find derivatives of more complex functions.

** Fact:** The derivative of is .

** Proof:** The function isn’t actually susceptible to any derivative rule we’ve used to far. This is where we make a clever move to bring this function into the realm we know how to deal with by taking a logarithm. By the normal rules of logarithms, . The derivative of the right hand side can be done using the product rule:

One the other hand, the left hand side can be done using the chain rule:

Since the left and right hand sides are equal, we conclude that

**Conclusion**

We have now done everything we need to do with the admittedly tedious work of computing special kinds of derivatives. If you’ve made it this far, well done. Things get less tedious and more conceptual from here. Think about how tedious it was to learn how to add and multiply small numbers. Despite this tediousness, the effort is clearly worthwhile because of how useful addition and multiplication are for solving real-world problems. What we’ve done is “learned out times tables” for derivatives. Now that we’ve finished our “tables,” we can move on to grander topics. We can stop looking at individual trees and see the forest. Beginning with the next post, this is what we shall do. In the meantime, if you want some more practice, I’ve left some practice problems and extra material in an appendix that my more curious leaders could look at.

**Homework/Practice**

** Problem 1:** Find the derivatives of and of .

** Problem 2:** Work out the details of the proof that the derivative of is . Also, prove that the derivative of is . Go on to find the derivatives of , and .

** Problem 3:** Find the derivatives of and of . (

*Hint:*Use the chain rule for both!)

**Appendix**

In this appendix, we evaluate the various limits we have delayed in the proofs given above.

** Fact:** and

** Proof:** The proof for the second limit is similar to the first, so we won’t consider it here. We only do the first limit. To do so, we consider the following diagram:

We need to establish some initial values of the geometry here. The angle at is defined to be . The side has length 1, which means immediately that has length and side has length . (I’m not currently very good at uploading labelled diagrams like this… sketch it on a piece of paper with labelled sides if you need that visual).

We first notice the triangle . The area of this triangle is one half its base times its height. Its height is , and its base is 1. Therefore,

Before we carry on, why is the length of equal to ? This is because of “similar triangles.” Remember from geometry that two triangles are similar if their angles have the same degrees. The two triangles and are similar. The key fact about similar triangles is that any fractions of side lengths are always the same. This means that

The length of is just . The length of is 1, and the length of is . Therefore,

Isolating . So, the length of truly is equal to . This quickly tells us (as with the smaller triangle) that . One more thing we want to observe. Instead of the triangle , look at the “pizza slice” . It definitely has more area than the triangle and less area that the larger triangle . Therefore, by putting together our earlier calculations,

The way angles are defined, the “pizza slice” has area of a full circle. The area of the full unit circle is , so the area of the pizza slice is . Therefore,

.

If we divide both sides by , then since ,

If we “flip” all these fractions and reverse the inequalities, this means that

By taking limits on all parts of this equation,

Notice now that the third of these limits is just , which if we look at the triangle construction earlier is just 1, the length of . Therefore,

This technique is often called the *Sandwich Theorem* because we stuck the expression we wanted in between two other expressions. Since, of course, the only number between 1 and 1 is 1, the limit we wanted to find must be 1.

** Fact:** .

** Proof:** This is done by very cleverly using the way the number is defined. Remember that

The clever move we can make here is to define and rewrite this same limit in terms of . Notice that if , then . (Technically this is only a limit “from the right”. We would first have to prove that this limit actually exists. This isn’t terribly difficult to do, but it would require a lot of additional writing. So, I won’t do this. If you look at a graph of the function , you can convince yourself that this limit does exist.)

By interchanging variables in this way,

Using this as a substitution for inside the limit we want to actually compute,