The Chain Rule
Why this matters
Imagine you're at a summer fair in Dallas, watching a team prepare for a hot air balloon launch. As they pump air into the balloon, its radius grows. As the radius grows, the balloon's volume increases. You can measure how fast the radius is increasing, maybe 2 inches per second. But what you really want to know is how fast the volume is increasing at that exact moment.
You know the formula for a sphere's volume depends on its radius. And you know the radius is changing over time. The Chain Rule is the calculus tool that lets us connect these related rates. It helps us find the rate of change of the "outer" function (volume) by considering the rate of change of the "inner" function (radius). It's the key to solving problems where one change causes another.
In this lesson, we'll break down exactly how to use this powerful rule.
Concept overview
flowchart TD
A[Start: Find d/dx of f(g(x))] --> B{Identify outer f(u) and inner g(x)};
B --> C[Step 1: Differentiate the outer function f'(u)];
C --> D[Step 2: Keep the original inner function g(x) inside --> f'(g(x))];
B --> E[Step 3: Differentiate the inner function g'(x)];
D --> F((Multiply));
E --> F;
F --> G[Result: f'(g(x)) * g'(x)];
Core explanation
Hello everyone! It’s Saavi. Today, we're tackling one of the most important differentiation rules in all of calculus: the Chain Rule. Once you master this, you unlock a huge range of functions you can analyze.
What is a Composite Function?
First, let's make sure we're clear on what we're dealing with. The Chain Rule is for composite functions. That's just a formal name for a function that has another function plugged into it.
Think of a function like h(x) = (x^2 + 1)^3.
- There's an "inner" function, the
g(x) = x^2 + 1. - There's an "outer" function, the
f(u) = u^3.
We've created h(x) by plugging g(x) into f(u). So, h(x) = f(g(x)).
You've seen these everywhere: sin(5x), e^(x^2), sqrt(4x - 1). They all have an "inside" piece and an "outside" piece. The question is, how do we find their derivatives?
The Russian Nesting Doll Analogy
I like to think of composite functions as Russian nesting dolls. You have a large outer doll, and when you open it, there's a smaller doll inside. Sometimes, there's even another doll inside that one!
The Chain Rule tells us how to handle this. To find the derivative, you work from the outside in.
- Take the derivative of the outermost doll (function).
- Leave the inner doll(s) untouched inside.
- Then, multiply by the derivative of the next doll in.
- Repeat until you've taken the derivative of the very last, innermost doll.
This act of multiplying by the derivative of the "inside" is the "chain" part of the Chain Rule.
The Rule Itself
Let's put that into mathematical notation. If you have a composite function h(x) = f(g(x)), its derivative is:
h'(x) = f'(g(x)) * g'(x)
Let's break down that formula. It looks a little intimidating, but it's exactly what we just described with the dolls.
f'(g(x)): This is "the derivative of the outer function, with the inner function left alone inside."* g'(x): This is "times the derivative of the inner function."
Let's Apply It
Let's go back to our first example: h(x) = (x^2 + 1)^3.
- 1Identify the functions
- Outer function:
f(u) = u^3. Its derivative isf'(u) = 3u^2. - Inner function:
g(x) = x^2 + 1. Its derivative isg'(x) = 2x.
- Outer function:
- 2Apply the Chain Rule
h'(x) = f'(g(x)) * g'(x)- Step 1: Derivative of the outsideThe derivative of
(something)^3is3(something)^2.h'(x) = 3( ... )^2 - Step 2: Leave the inside aloneWe plug the original inner function,
x^2 + 1, back into the parentheses.h'(x) = 3(x^2 + 1)^2Right now, we have the
f'(g(x))part. - Step 3: Multiply by the derivative of the insideThe derivative of the inside part (
x^2 + 1) is2x. We multiply our result by this.h'(x) = 3(x^2 + 1)^2 * (2x)This is the
* g'(x)part. It's the crucial link in the chain.
- Step 1: Derivative of the outside
- 3Simplify
h'(x) = 6x(x^2 + 1)^2
And that's it! You've successfully used the Chain Rule. You took the derivative of the outer power function, left the inner polynomial alone, and then multiplied by the derivative of that inner polynomial.
The process is the same for any composite function, whether it involves trig functions, exponentials, or logarithms. Identify the outer layer, differentiate it, leave the inside alone, and multiply by the derivative of the inside.
Worked examples
Let's walk through a few examples together. The goal is to make this process second nature.
A Power Rule Composition
Problem: Find the derivative of y = (4x^3 - 7)^5.
Solution:
- 1Identify the outer and inner functionsThis is the first and most important step.
- The "outer" action is raising something to the 5th power. So, our outer function is
f(u) = u^5. - The "inner" stuff being raised to that power is
4x^3 - 7. This is our inner function,g(x) = 4x^3 - 7.
- The "outer" action is raising something to the 5th power. So, our outer function is
- 2
Differentiate the outer function, leaving the inner function untouched.
- The derivative of
u^5is5u^4. - So, the first part of our derivative is
5(4x^3 - 7)^4. Notice we just applied the Power Rule to the whole chunk in the parentheses and left that chunk alone.
- The derivative of
- 3Find the derivative of the inner function
- The derivative of
g(x) = 4x^3 - 7isg'(x) = 12x^2.
- The derivative of
- 4Multiply the results from Step 2 and Step 3This is the "chain" step.
y' = 5(4x^3 - 7)^4 * (12x^2)
- 5SimplifyIt's good practice to clean up your answer.
y' = 60x^2(4x^3 - 7)^4
A Trigonometric Composition
Problem: Find the derivative of f(x) = cos(x^2 + 3x).
Solution:
- 1Identify the functions
- Outer function:
cos(u). What's the outermost operation? It's cosine. - Inner function:
u = x^2 + 3x. This is the expression "inside" the cosine.
- Outer function:
- 2Differentiate the outer function
- The derivative of
cos(u)is-sin(u). - Applying this, we get
-sin(x^2 + 3x). We keep the inside part the same!
- The derivative of
- 3Find the derivative of the inner function
- The derivative of
x^2 + 3xis2x + 3.
- The derivative of
- 4Multiply
f'(x) = -sin(x^2 + 3x) * (2x + 3)
- 5Simplify/RewriteIt's standard to move the polynomial part to the front to avoid confusion.
f'(x) = -(2x + 3)sin(x^2 + 3x)
Try it yourself
Ready to try a couple on your own? Remember the process: outside, inside, multiply.
Problem 1: Find the derivative of h(t) = e^(t^2 + 5t).
- Hint: What's the derivative of
e^u? It's juste^u. So the derivative of the "outside" will look a lot like the original function. Don't forget to multiply by the derivative of the exponent!
Problem 2: Find the derivative of g(x) = tan(sqrt(x)).
- Hint: This one has two steps. First, rewrite
sqrt(x)asx^(1/2). The outer function istan(u). The inner function isx^(1/2). The derivative oftan(u)issec^2(u). Take it one step at a time.
In simple terms, the Chain Rule is a method for finding the derivative (or rate of change) of a function that is nested inside another function.
- FUN-3.C: Calculate derivatives of compositions of differentiable functions.
- FUN-3.C.1
- The chain rule provides a way to differentiate composite functions.
flowchart TD
A[Start: Find d/dx of f(g(x))] --> B{Identify outer f(u) and inner g(x)};
B --> C[Step 1: Differentiate the outer function f'(u)];
C --> D[Step 2: Keep the original inner function g(x) inside --> f'(g(x))];
B --> E[Step 3: Differentiate the inner function g'(x)];
D --> F((Multiply));
E --> F;
F --> G[Result: f'(g(x)) * g'(x)];
Read what Saavi narrates
(gentle, warm music fades in and out)
Hi everyone, it's Saavi from Shrutam. Let's talk about one of my favorite topics in calculus, the Chain Rule.
Imagine you're at a summer fair in Dallas, watching a hot air balloon get ready for launch. As they pump air in, the balloon's radius grows... and as the radius grows, the volume increases. You can see the radius getting bigger, but what you really want to know is how fast the *volume* is changing.
The Chain Rule is what connects those two ideas. It helps us find the rate of change of a "function inside a function." In our balloon example, volume is a function of the radius, and the radius is a function of time. The Chain Rule lets us link them together.
So, what is it? The Chain Rule is our method for finding the derivative of these composite, or nested, functions. You work from the outside in, taking the derivative of each layer and multiplying them together.
Let's try one. Say we need the derivative of the function y equals, in parentheses, four x-cubed minus seven, all raised to the fifth power.
First, identify the outer and inner functions. The "outer" action is raising something to the fifth power. The "inner" stuff is that polynomial, four x-cubed minus seven.
The rule says: take the derivative of the outside, leave the inside alone, THEN multiply by the derivative of the inside.
So, the derivative of 'something to the fifth' is 'five times that something to the fourth'. This gives us: five, times, open parenthesis, four x-cubed minus seven, close parenthesis, to the fourth power.
Now for the crucial part... the chain. We have to multiply by the derivative of the inside. The derivative of four x-cubed minus seven is twelve x-squared.
So our full derivative is: five times the quantity four x-cubed minus seven to the fourth... times... twelve x-squared.
The most common mistake I see year after year is forgetting that last step. Students will differentiate the outside part perfectly but forget to multiply by the derivative of the inside. You have to remember to complete the chain.
If you can master this "outside-in" process, you'll be in fantastic shape for the rest of calculus. Keep practicing, be patient with yourself, and you'll get it.
(music fades in)
This is the most fundamental error. The Chain Rule is `f'(g(x)) * g'(x)`. Forgetting the `* g'(x)` part means you haven't completed the rule.
After taking the derivative of the outer function, always say to yourself, "...times the derivative of the inside," and write it down.
The rule says `f'(g(x))`, which means the *original* inner function `g(x)` must be plugged into the outer derivative.
The derivative is `cos(x^2) * 2x`. The `x^2` stays inside the cosine, and the `2x` is multiplied on the outside.
The Product Rule is for two functions being *multiplied*, like `x^2 * sin(x)`. The Chain Rule is for a function *composed with* (i.e., inside of) another, like `sin(x^2)`.
Look for parentheses or functions acting on groups of terms. If you see `function(stuff)`, it's likely a Chain Rule problem.
You can't apply the Power Rule without a power.
Immediately rewrite roots as powers. `sqrt(x^2+1)` becomes `(x^2+1)^(1/2)`. Now it's a clear Chain Rule problem with an outer power of 1/2.
It's easy to miss one of the "links" in the chain.
Work from the very outside in. `cos^3(4x)` is `[cos(4x)]^3`. 1. Outermost layer is `(stuff)^3`. Derivative is `3(stuff)^2`. -> `3[cos(4x)]^2`. 2. Next layer is `cos(stuff)`. Derivative is `-sin(stuff)`. -> `* -sin(4x)`. 3. Innermost layer is `4x`. Derivative is `4`. -> `* 4`. Combine them: `3[cos(4x)]^2 * (-sin(4x)) * 4`.