3.1 - The Chain Rule

ali_a_, Braden, superbearyo

Introduction

Welcome back to AP Calculus AB to the first topic of Unit 3! We will continue to learn more derivative rules and expand on what we’ve learned. A really important differentiation rule you will learn here is called the “Chain Rule”, and it is used to differentiate composite functions. The importance of the Chain Rule cannot be overstated, as it is key to understanding many applications of derivatives and calculus in general. Care should be taken to fully pay attention to the article and gain a comprehensive and thorough understanding of the Chain Rule to ensure your AP Calculus success! As such, this article will contain more content than others to ensure and boost a thorough understanding. Enjoy!

Composite Functions

Before we continue, what is a composite function? Well, the word composite means “made up of various parts or elements”, so a composite function has something to do with being made up of different parts.

Well my friend, it is indeed this! Remember back when you would input numbers into functions like or ? Well, a composite function is when you input functions into functions.

Notice that we have a very obvious in the middle, but where is the ? Well, the is actually the outside function! Take a moment and realize that we have simply replaced with because is the input.

There may be some occasions where we have this different notation below, but it means the same exact thing.

To pronounce this, you say “ of of ”, or “effuf geuf fex”.

Take note that in both cases, is considered the outer function, and is considered the inner function. Looking at makes this make sense.

Composite Function Example

Identify the input of f(x) in f(x^2+5).

If we take a quick look at this, notice that is the input of the function! It is that simple!

Identify the inner and outer function of (2x+1)^2.

This may be a bit more confusing, but notice how we have what seems to be a whole function being squared, like its inside another function… This means that the input is very likely to be . How do we find the outer function though? Well, if we replace the original function with ,

The input () is squared, so this means that is

Identify the inner and outer function of cos(2x)+5

This problem seems a bit interesting, but I think we got this. Notice how you can see that has inside, so our inner function has got to be ! With the outer function, I think it is easy to see that it is . That’s our answer! Time to submit it! 

Well… uhh… we got it wrong. Why? Well, the ENTIRE function is multiplied by right? And it’s on the outside, right? Also, we just completely ignored the . This means that our outer function is actually

We can check our answer by plugging back in the inner and outer function into . is the inner function, which we can agree is , so we have . Since , . Hey! That’s the exact function we got! How nice!

Chain Rule

Now that we are familiar with composite functions, you are ready to learn about the chain rule!

Notice how this function works similarly to rules we’ve seen before. This simply tells us to identify these functions and find the required info! We will need to identify and as well as their derivatives. Hmm, that seems to be the same exact info we needed for the product and quotient rule!

It can also be expressed in a different form, but we aren’t going to analyze this today. This formula isn’t useful to us now, but in the future it will!

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 .

Differentiating Using Chain Rule

Example 1

Differentiate 

Hold on a second… we already identified and ! All we need to do is just figure out the derivatives.

Alright, let’s just plug it into the formula, and please be extremely careful in plugging the quantities in as there are composited functions involved:

So ultimately,

People may tend to omit the last component or perform the formula incorrectly. Erroneous versions could look like:

This is incorrect because what is being done here is . It cannot be further emphasized how incorrect and misleading this error is, and is very important to understand this is CONCEPTUALLY INCORRECT. Again, allow me to repeat that what just occurred here is incorrect and is thus a mistake you should NOT be making. . So PLEASE do not make this mistake. The way you should think of it is this .

Example 2

Find when .

Well, I mean, we have a function… yeah. Notice that is squared, almost like the outer function is ... but that’s just a theory!

If we write the function like this, it is a lot easier to see what the inner and outer functions are.

Ah, the outer function really was , and the inner function is . Now, let’s do the same thing we have always done!

Alright, let’s just plug it into the chain rule again!

Anddddd how fantastic! We made the SAME mistake again. It’s a function INSIDE a function, not multiplied! Can we like, stop doing that please? The only multiplication I see is between and , but nowhere else. 

Let’s just, ignore again.

Ah, it looks cleaner. What is ? Well if , then . Replaced the and now we flex!

Let’s try one more example. WAITTTTTTTTTTTTT!!!! We forgot that we were trying to find ! Absolutely crucial to remember! Maybe the MCQ answers will remind you about it, but the FRQs won’t! Let’s just plug it in and complete this final step.

Nice. 

Example 3

Find the derivative of when

Oh for goodness sake! This function looks like somebody grabbed a bunch of Legos and blindly threw them in hopes that it would create something! Let’s just take a moment to analyze it.

For starters, I think we can all see that the outer function is , yeah? The inner function has gotta be , yeah? Yeah, that looks correct. Normal process, let’s just do it!

Wait, hold up, isn’t… a composite function? A function inside a function? Wait… you’re telling me the input has a function inside a function??? A triple function chain? A mega super composite function? Well, we need to differentiate this composite function to find , so… let’s do it.

I think we can all agree that the outer function is , and the inner function is . We don’t need to add the to the outer function this time around, because uhh… it has a variable and it’ll lead to a completely different answer. Let’s go!

Use the chain rule, and let’s ignore again cause I think we’ve learned our lesson from last time.

If , then , so we have

Now, we can bring the other chain rule function list down! We’ve completed this chain rule!

Hold on a second, this is missing something. Oh! It’s missing the from before! I mean, that is part of the input of the original function. Remember to differentiate this guy to , and we get:

Plugging this all into the chain rule finally, we get:

Finally, if , . We can finally finish this!

What an absolutely insane derivative. You won’t be expected to differentiate derivatives of such complexity and tediousness, so rest assured. But hopefully, in following this example, you understand how the Chain Rule process can be extremely layered, in that you can have a function and break it down into pieces for the formula. Yet, said pieces within the formula need to be further Chain Ruled for a complete differentiation. Let this example help clarify and ensure that Chain Rule problems can be very layered in nature.

Example 4:

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.

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 AB 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.

Practice Questions