We discuss and ultimately develop a rule that allows us to take derivatives of compositions of functions. The so-called Chain Rule.
Video Lecture
This gives an alternative version to the quotient rule; one that allows us to avoid memorizing the order of terms! You can see the supplement video describing how this works here:
(Supplemental Videos are included via external link so you don’t have to watch them to earn credit.)
Text and Additional Details
Perhaps the most useful, and sometimes the most difficult to use, rule for derivatives is the chain rule. This will allow us to tackle compositions of functions - an idea so general that its utility is difficult to overstate. But, like most things, the more versatile the tool, the harder it can sometimes be to recognize where, or when, to use it. For this reason we will have a separate segment on how to recognize when, how, and where to use the chain rule.
Function composition is something that can take so many forms that it is nearly impossible to tackle without going exceedingly general. As always, we will start by writing out the limit of the difference quotient that we want to understand before we sidestep to discuss how we will tackle the problems that arise with simplifying it.
Consider the functions and , and suppose we want to understand the derivative of . Then we would need to solve the following limit:
Now, without concrete functions for or , it seems impossible to figure out what to do with this; after all, there is no obvious route to try to generate some kind of bridge between terms like we did with the product rule, and there is no way to combine the two terms in the numerator in hopes of simplifying the problem like we did with the quotient rule... so what do we do?
Before we pursue a solution to our problem, it is helpful to rewrite our general difference quotient in a somewhat weird way, but this will help us see what is happening in the next steps. Instead of using the alternative form that we wrote above, we will instead write a slight variation of the original format to emphasize a pattern we want to recognize. Consider the following:
What we want to observe here is that the and are the inputs for the function in the numerator and they coincide directly to the terms in the denominator. We want to think of this as “f of thing 1 minus f of thing 2 divided by thing 1 minus thing 2”. Importantly we want to be a little more... open minded... about what the “thing 1” and “thing 2” can be. We typically think of them as variables, like or , but there’s no reason they can’t be functions. This is the conceptual leap we will need, to get at the heart of taking derivatives of compositions.
Let’s return to our seemingly impenetrable problem. Like so many times before, the first step is to multiply by one “cleverly.”
Multiply by . | ||
Switch denominators | ||
Sub , . | ||
And split limit over product. | ||
Evaluate limit | ||
Sub back. |
Here we have “multiplied by 1... cleverly” to bridge the gap between the first and second terms, but in a way that is not obvious. We actually needed the denominator to fill out our and substitution to be able to see the pattern and identify the derivative . We record our result succinctly in the following theorem:
This is known as the chain rule, and is our rule for taking derivatives of the composition of functions. We will be using this rule, often many times, in almost every derivative we take once we start looking at applications of derivatives, so it is worth practicing and making sure you are very comfortable with the chain rule.
At this point, you may be thinking that this seems like a fairly bizarre rule. After all, composition of limits was relatively straight forward, and this is clearly more complicated; obviously something deeper is going on.
It’s true that the chain rule is remarkably unintuitive from the viewpoint of limit laws. That may make the following all the more surprising; there is a deceptively intuitive way to understand the limit law from the perspective of rate of change! In essence, the chain rule is showing us that the rate of change is magnified by the composition process; the inside function changes the variable by some rate, and then the outer function changes the inner function’s output as if it were just the normal input. So the rate of change is multiplicative; the rate of change of the outer function magnifies (multiplies) the rate of change of the inner function, giving us the chain rule.