Chain Rule in Calculus
Introduction: Why does this rule matter? π
Imagine watching a video where the speed of a car changes over time, but the car is also climbing a hill. To understand how quickly its height changes, you may need to combine two rates of change at once. That is the big idea behind the Chain Rule: it helps us find the derivative of a function inside another function. students, this is one of the most important ideas in calculus because many real-world quantities are built in layers, not in a single step.
By the end of this lesson, you should be able to:
- explain what the Chain Rule means in clear language,
- use the rule to differentiate composite functions,
- connect the rule to rate of change in context,
- and recognize why it is useful in modelling and problem solving in IB Mathematics: Applications and Interpretation HL.
The Chain Rule fits directly into the study of change, because many quantities depend on other quantities first. For example, a companyβs profit may depend on production, and production may depend on time. A scientist may measure temperature that depends on depth, while depth depends on time. In each case, the output changes through a chain of relationships. π
What is a composite function?
A composite function is a function made by putting one function inside another. If $y=f(u)$ and $u=g(x)$, then $y=f(g(x))$. The input $x$ first goes through $g$, and then the result goes through $f$.
This structure is very common in mathematics and the real world. For example:
- if $C(t)$ gives the cost of making $t$ items,
- and $t(x)$ gives the number of items produced after $x$ hours,
- then the cost as a function of time is $C(t(x))$.
The key question is: how fast does $C(t(x))$ change with respect to $x$?
That is exactly what the Chain Rule answers. It says that when one function is inside another, the derivative is the derivative of the outside function times the derivative of the inside function.
If $y=f(g(x))$, then
$$
$\frac{dy}{dx}=f'(g(x))\cdot g'(x).$
$$
Another common way to write it is:
$$
$\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}.$
$$
This notation is powerful because it shows the flow of change from $x$ to $u$ to $y$.
The main idea behind the Chain Rule
Think of the Chain Rule as a relay race πββοΈπββοΈ. The first runner is $x$, the second runner is $u=g(x)$, and the final runner is $y=f(u)$. The total rate of change from $x$ to $y$ is the product of the two smaller rates of change.
Why does multiplication appear? Because a small change in $x$ first causes a small change in $u$, and that change in $u$ then causes a change in $y$. So the total effect is built from both parts.
For example, suppose:
$$
$y=(3x+1)^5.$
$$
This is a composite function. The outside function is $f(u)=u^5$, and the inside function is $u=3x+1$.
Differentiate each part:
- $f'(u)=5u^4$
- $\frac{du}{dx}=3$
Now apply the Chain Rule:
$$
$\frac{dy}{dx}=5(3x+1)^4\cdot 3=15(3x+1)^4.$
$$
A common mistake is to differentiate only the outside function and forget the derivative of the inside function. students, always remember both layers.
Step-by-step examples
Letβs look at several standard examples.
Example 1: Power of a linear expression
Find the derivative of
$$
$y=(2x-7)^3.$
$$
Let $u=2x-7$. Then $y=u^3$.
So,
$$
$\frac{dy}{du}=3u^2$
$$
and
$$
$\frac{du}{dx}=2.$
$$
Therefore,
$$
$\frac{dy}{dx}=3(2x-7)^2\cdot 2=6(2x-7)^2.$
$$
Example 2: Trigonometric function inside another function
Find the derivative of
$$
$y=\sin(4x).$
$$
Here the outside function is $f(u)=\sin u$, and the inside function is $u=4x$.
Since
$$
$\frac{d}{du}(\sin u)=\cos u$
$$
and
$$
$\frac{du}{dx}=4,$
$$
we get
$$
$\frac{dy}{dx}=4\cos(4x).$
$$
Example 3: Exponential function
Find the derivative of
$$
$y=e^{x^2}.$
$$
Set $u=x^2$. Then $y=e^u$.
Differentiate:
$$
$\frac{dy}{du}=e^u,$
$$
$$
$\frac{du}{dx}=2x.$
$$
So,
$$
$\frac{dy}{dx}=e^{x^2}\cdot 2x=2xe^{x^2}.$
$$
These examples show a pattern: identify the inside function, differentiate the outside function, then multiply by the derivative of the inside function.
Chain Rule in context: rate of change and modelling
IB Mathematics: Applications and Interpretation HL often asks for calculus in realistic situations. The Chain Rule is especially useful when a quantity changes through another changing quantity.
Suppose the height of a balloon above the ground depends on time, and the temperature of the air depends on height. Then temperature depends on time through height. If $T$ is temperature, $h$ is height, and $t$ is time, then we may write $T(h(t))$. The rate at which temperature changes with time is
$$
$\frac{dT}{dt}=\frac{dT}{dh}\cdot\frac{dh}{dt}.$
$$
This means that the temperature changes faster if the balloon rises faster, or if temperature changes quickly with height.
Another example is finance. If revenue depends on price and price depends on demand, then revenue may be written as a composite function. The Chain Rule helps measure how sensitive revenue is to changes in demand.
In science, the Chain Rule appears in formulas involving area, volume, population growth, and physics. For instance, if the radius of a circle changes over time, then the area $A$ depends on radius $r$, which depends on time $t$:
$$
$A=\pi r^2.$
$$
If $r=r(t)$, then
$$
$\frac{dA}{dt}=\frac{dA}{dr}\cdot\frac{dr}{dt}=2\pi r\frac{dr}{dt}.$
$$
This is a clear example of accumulation and change working together. A growing radius produces a growing area, and the Chain Rule links the two rates.
Common forms and IB-style reasoning
A strong IB student should be able to recognize the Chain Rule in different forms. Sometimes the function looks simple, but the hidden inside function makes it composite.
Here are common patterns:
- $\left(ax+b\right)^n$
- $\sin(ax+b)$
- $\cos\left(g(x)\right)$
- $e^{g(x)}$
- $\ln\left(g(x)\right)$
For each one, the outside function is differentiated first, and then multiplied by $g'(x)$.
For example,
$$
$\frac{d}{dx}$$\left($$\ln(5$x^2+1)$\right)$=$\frac{1}{5x^2+1}$$\cdot 10$x=$\frac{10x}{5x^2+1}$.
$$
This is useful because logarithmic and exponential functions often appear in growth and decay models.
IB questions may also ask for interpretation. If you find $\frac{dy}{dt}$, the answer is not complete until you explain what it means in context. For example, if $y$ is the population of bacteria, then $\frac{dy}{dt}$ is the instantaneous growth rate of the population at time $t$. The units matter too. If $y$ is in grams and $t$ is in seconds, then $\frac{dy}{dt}$ has units of grams per second.
Where the Chain Rule fits in calculus
Calculus is the study of change and accumulation. Differentiation measures instantaneous rate of change, and integration measures accumulation. The Chain Rule belongs to differentiation, but it also supports many other calculus ideas.
It helps with:
- derivatives of composite models,
- implicit differentiation,
- related rates,
- and setting up differential equations in more advanced modelling.
For example, if a model uses $y=f(g(t))$, then the Chain Rule helps find how quickly $y$ changes as $t$ changes. In more advanced work, the same idea helps build and solve models where one changing quantity affects another.
Technology can also support the Chain Rule. Graphing tools and CAS devices can confirm derivatives, but students should still know how to apply the rule by hand. Understanding the structure of the function is what makes technology useful, not a replacement for thinking.
Conclusion
The Chain Rule is a core calculus tool for finding derivatives of composite functions. It connects layers of change by multiplying the derivative of the outside function by the derivative of the inside function. In IB Mathematics: Applications and Interpretation HL, this rule is essential for interpreting real-world situations, solving modelling problems, and explaining rates of change clearly. Whenever you see a function inside another function, think of the Chain Rule. It helps you move from formula to meaning, from structure to rate, and from pure mathematics to context. β
Study Notes
- A composite function has the form $y=f(g(x))$.
- The Chain Rule is $\frac{dy}{dx}=f'(g(x))\cdot g'(x)$.
- Another useful form is $\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}$.
- Differentiate the outside function first, then multiply by the derivative of the inside function.
- Common examples include $\left(ax+b\right)^n$, $\sin(ax+b)$, $e^{g(x)}$, and $\ln(g(x))$.
- In context, the derivative gives an instantaneous rate of change, with units.
- The Chain Rule is important in modelling situations where one quantity depends on another changing quantity.
- It is closely connected to differentiation, related rates, and advanced applications of calculus.
- Always check whether a function is composite before differentiating.
- In IB problems, explain both the calculation and its meaning in context.
