You already know how to take derivatives of trigonometric functions, polynomials and simple product or quotients of these functions. But you can be dealing with more complicated functions, such as or . How can you take derivatives of such functions? In this topic, you are going to learn about it.
Composite functions
A composite function is a function that is written inside another function. For example, a function is a composite function of and . A function is read as " of of ".
The function is called an inner function. The function is called an outer function.
So, the function
is a composite function of the functions and . So, Also, we denote this composite function as . Thus,
The chain rule
When we have a composite function, we will use the chain rule in order to take its derivative: if we have , then
To see how it works, let's look at the functionThe function is a composite function:
If we want to find a derivative of , we use the chain rule:
That means that moving from the outside in, we can take the derivative of the function as though this exponent to is the only operation, leaving the inside as it is. But since the inside function (i.e ) is another function, we have to multiply our result by the derivative of what's inside. We apply the power rule for outer function. We have used the power rule for positive integer exponents, but we can do this with fractional exponents too. We take the exponent and bring it to the front, and then subtract one from the exponent.
Now we take a derivative of an inner function: Now we can write down the final result:
So, with the chain rule, when we have a composite function, we differentiate the outer function first, as it operates on the inner function and keeping the inner function the same, and then we multiply by the derivative of the inner function.
Order matters
Say we want to get the derivative of the function
We see that here there are two functions operating on : the outer function is cosine and the inner function is exponent. So, let's apply the chain rule:
Now let's look at the function Here the situation is reversed: the outer function involves the third degree of the input, while the inner function is cosine. Let's take the derivative of the outer function, which means pulling the 3 down to get , and then we multiply it by the derivative of the inner function: the derivative of is , so
One more example
Consider the function Here we see three functions all operating at once. Let's just apply the chain rule the same way we have already done it: the outermost function is cosine. So,
Now let's apply the chain rule again:
We know that
Therefore, in the end we can write
Thus, we can use the chain rule as many times as necessary.
Conclusion
In this topic, you have learned about derivatives of composite functions. A composite function is a function that is written inside another function. You have studied the chain rule, using which you can find the derivative of such functions.