When do we need the Chain Rule?
We need the chain rule when our function
Let’s look at a quick example of function composition.
Example
Let
Solution
To write out
So we have an example of what it means to do a function composition, now let’s try and identify when a function is a composite function (i.e. the composition of 2 or more functions). Remember that the inner function might be complicated or it might be quite simple. In either case we need the chain rule, so it’s important to be able to identify them.
Example
For each of the following functions identify the inner function and the outer function in the composition.
Solution
- The inner function is
and the outer function is . - The inner function is
and the outer function is . - The inner function is
and the outer function is - The inner function is
and the outer function is .
Example
Which of the following functions are function compositions?
Solution
- This is a product of two functions, but not a composition.
- This is a composition. The inner function is
and the outer function is . - This is a composition. The inner function is
and the outer function is . - This is a sum and product of functions, but not a composition.
Once we can reliably identify compositions we can see that the product rule doesn’t work for taking derivatives. What we need instead is the chain rule!
Check out Practice Problems here!
Chain rule basics below! Come back here when you’re ready to test your knowledge.
Like learning by solving problems? Try this and more in the Dogl Calculus app 😃
The Chain Rule Basics
The Chain Rule is what we use for taking derivatives of function compositions like
Let
Let
In both cases what we see is that we have something close to the derivative of
The Chain Rule
Let
Let’s look at an example of how this works with our function
We can use the power rule to compute that
Example
Use the chain rule to find the derivative of
Solution
Note that in this case the inner function is
Before moving on to more complicated applications of the chain rule it’s worth taking a look at another notation that is sometimes used. Suppose that
The notation
If all of this seems needlessly complicated, feel free to ignore it and use the original formulation.
is not and other common mistakes
The two most common mistakes people seem to make when using the chain rule are the following:
If
Don’t do this!
Tips
1) Remember that the outer function and its derivatives should both be evaluated at the inner function. In other words if you’ve got
2) You need to chain (multiply) the derivatives together (hence “Chain Rule”), so not
Let’s look at a few examples of what NOT to do.
Example
Take the derivative of
Proposed Solution
We can see that
What if any error did we make in the proposed solution?
Solution
We correctly identified the function
Example
Take the derivative of
Proposed Solution
We can see that
What if any error did we make in the proposed solution?
Solution
We correctly identified the function
When one rule is not enough
Up to this point we’ve mostly looked at fairly simple examples, but what happens when you have a composit function, but your inner or outer function is also a composition? For example
Here we could say that our outer function was
The derivatvie of
Therefore we have
More generally, if you have
Now let’s finish by taking a look at a really messy example.
Example – mixing products and compositions
Find the derivative of
Solution
We need to start by noticing that
We can compute
For this final derivative we again need the chain rule to compute
Putting all this together we get