In the previous post in this series, we set up a definition of the derivative of a function, which is a new function that tells us how the original function changes over time. Now that we have set up this idea of derivatives, we are going to enter into a period of showing how to work with derivatives. After all, if we ever want to make use of this idea, we need to know how to actually calculate these things.
This will take up two posts, which are basically ordered by difficulty. In this post, I’ll focus on a subset of the foundational rules of derivatives, mainly the ones that are easier to grapple with. In the follow-up to this post, we will delve into some equally foundational rules that are a bit harder to discover.
Some General Rules for Derivatives
The opening of this post are two rules about derivatives that apply to all functions (well, all functions that have derivatives… which is quite a lot of functions and almost every function you’ll ever hear of).
The “Distributive Law” for Derivatives
This first piece can be thought of as a distributive law. Another way you might think about it is that you can do derivatives “one piece at a time.” If you have a function like , this rule tells you that you can find its derivative by using the derivatives of and in a straightforward way.
Fact: If are functions with derivatives, then .
Proof: The definition of derivatives tells us that
We can split up this limit into two limits:
The two pieces at the end of this equation are just and . This means that the derivative of is .
The proof works exactly the same way for , so we are done with this proof.
The “Coefficient Law” for Derivatives
This next rule is also quite straightforward. This rule tells us that coefficients don’t really play much of a role when calculating derivatives. You can essentially just pretend they aren’t there and put then back in when you are done. As an example, to calculate the derivative of , you can just calculate the derivative of and, when you are done, multiply the answer by 123.
Fact: If is a function and is a constant number. Then
The proof for this fact is pretty similar to the one for the distributive law of derivatives. For anyone who is wanting some practice with these ideas, this would be a good example to work on.
Some Specific Functions with Derivatives
We’ve just finished discussing some basic rules of how derivatives work. We’ll now spend a little bit of time talking about specific functions that are important and how their derivatives are calculated.
Derivative of a Constant
The easiest of all functions to do the derivative of is a constant function. Since these functions never change, you can think of them as horizontal lines. Because of the viewpoint of derivatives as slopes or as capturing changes over time, you’d expect the derivative of something that never changes to be zero (zero reflecting the amount of change the function does). In fact, this is true.
Fact: If is a constant function, then .
The proof of this fact is not hard, and would be a good exercise for those who want to practice doing such calculations.
Derivative of a Polynomial
One of the most important kinds of functions we talk about in mathematics are polynomials, which are sums of expressions like , for a positive whole number and some kind of constant value . Notice that, because of the coefficient law and distributive law mentioned earlier, we can treat polynomials one term at a time. For instance, if we want to compute the derivative of , the distributive law tells us that we only need to know how to take the derivatives of , , and . The coefficient law then tells us that we only need to know how to take the derivative of and . We already know from earlier that the derivative of constants are zero, so we only need to know how to find the derivatives of and . In fact, what we are actually going to do is to find the derivative of all members of the list all at once. But, before I do this, the example of will be helpful.
Fact: If , then .
Proof: We can actually just do this directly using the definition of derivatives. We begin with the definition:
We can simplify the inside of this limit using some algebra:
Usually, algebra doesn’t allow you to cancel out the on top and bottom , because if , then this is not allowed. But, since we are inside of a limit in which , we can assume that is never actually zero (it just approaches zero). This means we actually can cancel. So now,
which we evaluate in this way because is continuous at , so you are allowed to plug in zero for . So, the derivative of is . This completes the proof.
The idea behind the derivative of is basically the same. The difference occurs in the algebraic simplification of the term that occurs in the limit. Here, we lay out exactly how to handle this difference.
Fact: If , then .
Proof: The definition of tells us that . The key to simplifying this expression is in figuring out the term . We can do this using the method of foiling. For now, let’s just assume we have done this, and that we’ve found that
Notice then that , where holds all the leftover terms that have at least two powers of in them. Knowing this, we can compute the limit from earlier.
This means that we actually only need to figure out , since it is the only part that actually influences anything. But think now about what was. This is the number of ways that foiling the expression can give you a term like . Well, think about the different places that singular might have come from. There is one for each in the product, of which there are . Ergo, there are exactly different ways we could have obtained . Therefore, , and if we combine everything we know now, we conclude that . This marks the end of our proof.
Notice that in this proof, we’ve assumed that the number was a positive whole number. The result is actually true for any real number at all, but this requires a much more sophisticated understanding of what means, and so I will not try to prove that here. But, the reader should know that this is true.
Example: As an example, we compute the derivative of the function mentioned earlier:
We’ve now seen how to evaluate some derivatives. Notice the key principle we needed – we needed to cancel out terms on the top and bottom of a fraction. This is the key principle in evaluating derivatives using the limit definition. Any time you do a derivative in this way, you will be looking to cancel out terms in exactly the same way I have here.
We have now covered some of the easier to see ways in which derivatives can be calculated. In my next post, we will look into some trickier and even more useful rules that derivatives follow. If you want to have an exercise to work on your calculus intuition, convince yourself that all functions that have derivatives are also continuous. Also, think of examples of graphs that have special points that don’t have a tangent line.