Introduction
Welcome to the first topic of Unit 3 in FiveHive's AP Calculus BC course. The primary focus of this unit is to expand on your knowledge of derivatives from Unit 2. One of the most important rules for differentiation that you have yet to learn is the chain rule. It is used to differentiate composite functions but you will see its use in contexts that are less obvious later on.
Composite Functions
Just as a review by composite functions, I mean a function within another function. Something along the lines of this:
Or this:
In both of these situations is the outer function and is the inner function. So this is the function: of of .
Differentiating Composite Functions
The method we will use for differentiating composite functions is the chain rule. The chain rule states that the derivative of a composite function is equal to the derivative of the outer function with respect to the inner function, multiplied by the derivative of the inner function. In mathematical notion this looks like:
It can also be expressed as
Both are valid ways of expressing the chain rule but you may find the second one more useful in future applications.
Let's go through an example of differentiating a function using the chain rule. The function we will differentiate is:
First we need to break it down into an inner and an outer function. In this situation the inner function which we will call is , while the outer function which we will call is . Since we have defined an and a we can now express this composite function as:
Now to differentiate it we can apply the aforementioned formula which is:
Since the inner and outer functions have been identified the derivatives, and can be found to be and by applying our basic rules for differentiation.
Then we can plug the derivates into the formula mentioned above:
Then plug in for and solve for our answer:
That’s the basic process for differentiating a composite function. The function I gave as an example could have been differentiated much easier by just multiplying out the polynomial and then applying the power rule. I wanted to go over an easy example first though. I will go over a more difficult function in a minute.
Realizing Composite Functions
First though, it’s important to know when to apply the chain rule. For a function such as it is quite clear to realize this is a composite function and what the inner and outer functions are. is the outer function and is the inner function. Let’s go over a few examples of this.
Can you find the inner and outer functions for the function ?
In this situation the inner function is and the outer function is .
How about the function ?
In this situation is equal to so the inner function is and the outer function is .
Lets go over some examples where there are more than two functions that compose a single function. Like the function . To differentiate this function you would need to employ the chain rule multiple times, this could be defined as a composite function. Try finding the individual functions which make up this compose function on your own.
The inner most function would be , the next inner function could be defined as , and the outer most function would be . Then our original function would be defined as .
For a final example, can you find the functions which compose ?
Here the inner most function can be defined as , then the next as and the outer function as or as . And again our original function can be defined as .
A More Difficult Example
The composite function we will differentiate this time is:
This situation is a bit more difficult, I encourage you to attempt to differentiate this function on your own before going over the example. Notice that this is a composite function, it is much easier to see when you rewrite it as:
First we need to define the inner and outer functions. This time I will define the inner function as , and the outer function as . This time we will use the expression:
Note that this is the same as:
And can be solved the same way I solved the previous problem. I am just choosing to solve it this way to show a different method. First I will plug in for and :
For the first term here we take the derivative of with respect to . So we treat the whole expression as if we would treat when normally differentiating. So we get:
Then we are left with:
So to simplify the second term we are just taking the derivative of with respect to . Which you may remember from Unit 2 is . So we end up with:
And our final answer for the derivative is:
That example was a bit more complicated but once you understand the chain rule it becomes quite simple. Let's quickly go over a final challenging example of differentiating composite functions. I again would encourage you to attempt to differentiate this function before I go over a quick explanation of how to do it (Note that this example will require you to use the chain rule multiple times):
This function can be seen as composed of 3 functions. The first and the innermost function is , the next function is and the outermost function is . And can therefore be composed as and when the differential is applied can be written as . This is the formula you get when applying the chain rule to a doubly composed function. I will now quickly go over the steps of solving it.
As you can see I just plugged in the values for the functions and their derivatives and then simplified it down into the final form. That example is a bit lengthier than something you might usually see but as long as you understand the basic idea of the chain rule you should be able to differentiate something like that (even if it takes a while).
Future topics in this unit will expand upon this rule but for now lets go over some notes and then practice problems.
Even More Examples!
Example 1:
Calculate the derivative of with respect to .
Before we knew the chain rule we would split and then differentiate term by term. Now this is important to recognize, but we can also use the chain rule.
Step 1: Derivative of the outside function and then input the inside function.
The outside function is
Recall
The inside function is
So the first step is
But wait! There’s more!
We know from properties of logarithms and differentiation that
This is the chain rule, never forget the chain!
Step 2: Multiply by the derivative of the inside.
The inside function’s derivative is .
So we calculated the derivative of with respect to x using the chain rule.
Let’s do one where we can’t use logarithmic properties though.
Example 1b:
Calculate the derivative of with respect to .
Let’s identify the outside and inside functions. Once you do enough problems, this will be done in your head. For now this process helps with carrying out the rule since you just learned it.
Outside function:
Inside function:
Step 1: Derivative of the outside function and then input the inside function.
We have
Step 2: Multiply by the derivative of the inside.
The inside function’s derivative is 2.
Like everything else, this rule doesn’t exist in a vacuum.
Example 2:
Calculate the derivative of with respect to
First we will do the product rule as this is differentiating two multiplied functions.
Now to differentiate we need to recognize the outer and inner functions.
Outer function is and inner function is
Step 1: Derivative of the outside function with the inside function inputted
Step 2: Multiply by the derivative of the inside function
Now going back to the original problem we can input this result.
If you ever have three or more functions, just keep the chain going.
Example 3:
Calculate the derivative of with respect to .
Identify the composition:
Outer function:
Middle function:
Inner function:
Now differentiate and insert the inner functions
Step 1:
Insert the rest of the composition (middle and inner)
Step 2:
Step 3:
Now multiply (or chain) it together:
Future topics in this unit will expand upon this rule but for now lets go over some notes and then practice problems.
Notes for the Chain Rule
- The general Lagrangian form of the chain rule formula that you will usually see is . Remember this is the derivative of the outer function with respect to the inner function multiplied by the derivative of the inner function.
- This is probably the most important differentiation rule you will learn in Calculus BC so make sure to remember it.
- Knowing how to separate a function into its composite parts, for the purposes of this course, is just important as actually being able to apply the chain rule formula.
