Chain Rule Differentiation
Study Notes: The Chain Rule and Its Applications
The chain rule
The chain rule differentiates a composition of functions: a function formed by applying one function to the output of another. If
then H is the inner function because it is evaluated first, and G is the outer function because it is applied afterward. Provided both functions are differentiable,
In words: differentiate the outer function, evaluate that derivative at the inner function, and multiply by the derivative of the inner function.
The chain rule is essential whenever an expression has a function nested inside another function, such as an exponential whose exponent is not simply x, or a power applied to a more complicated expression.
A useful way to identify the functions is to ask what happens first when a value is substituted for x. The operation performed first is the inner function; the operation performed last is the outer function.
Exponential functions and the chain rule
Exponential with a linear exponent
For
the inner function is H(x)=2x, and the outer function is G(u)=eu. Since G′(u)=eu and H′(x)=2,
The inner function must be differentiated even though the outer exponential function remains unchanged when differentiated.
A negative exponent
For
the inner function is H(x)=−x. Its derivative is −1, so
The negative sign comes from differentiating the exponent, not from differentiating the exponential function itself.
Distinguishing similar-looking exponential expressions
The placement of an exponent matters. The expression
means that x is squared first and the result is then used as the exponent. Its derivative is
This is different from squaring ex:
whose derivative is
Thus, ex2 and e2x are different functions and have different derivatives.
Square roots and nested compositions
Consider
There are two useful ways to differentiate this function.
Rewrite using exponent laws
A square root is a power of 21, so
The inner function is 23x. Applying the chain rule gives
Apply the chain rule to the nested functions
The original expression can also be viewed as three successive operations:
Multiply x by 3.
Raise e to the resulting power.
Take the square root.
Differentiating the outer square-root operation first gives
The derivative of the inner expression e3x is 3e3x, so
Simplifying yields
Both methods give the same result. Rewriting with exponent laws can make a nested chain rule shorter, while differentiating each layer separately makes the composition explicit.
A power applied to a polynomial
The chain rule also works when a complicated function is raised to a large power. For example,
There is no need to expand this expression. Treat the polynomial as the inner function and the power function as the outer function:
The derivative of the outer function u100 is 100u99.
The derivative of the inner polynomial is 3x2+10x−4.
Therefore,
Keeping the inner expression in parentheses makes clear that the entire polynomial is raised to the 99th power and that the entire polynomial derivative is multiplied afterward. Expanding a high power first creates a very long expression without making differentiation easier.
Using functional data with the chain rule
Suppose
The chain rule gives
At a particular input, the required information is the value of the inner function, the derivative of the outer function at that value, and the derivative of the inner function. For example,
If the available data are
then
Values such as G(2) or G(8) are not needed for this calculation. The chain rule requires G′ evaluated at f(2), rather than the value of G itself.
Concavity of an exponential function
A graph is concave down where its second derivative is negative. Consider
First derivative
The inner function is −x2, whose derivative is −2x. Therefore,
Second derivative
The first derivative is a product, so the product rule is needed. The derivative of e−x2 also requires the chain rule:
After simplifying,
Since e−x2 is positive for every real x, the sign of f′′(x) is determined entirely by 2x2−1. Thus, concavity is downward when
which is equivalent to
Consequently, the graph is concave down on
The second derivative is zero at x=−22 and x=22. The graph changes concavity at these points, so they are inflection points. The function has a bell-shaped graph: it is concave down near its center and concave up outside that region.
Concavity describes how slopes change. Where a graph is concave down, its slopes are decreasing; where it is concave up, its slopes are increasing.
Population growth modeled exponentially
Suppose the population of Minnesota, measured in millions of people, is modeled t years after the year 2000 by
Estimate the population in 2019
The year 2019 is 19 years after 2000, so the model gives
The estimated population is approximately 5.677 million people. Because this is a model, the result is an estimate rather than a guaranteed exact population.
Estimate the population’s growth rate in 2019
Differentiate with respect to time. Applying the chain rule to the exponent gives
Equivalently,
At t=19,
Since population is measured in millions of people and time is measured in years, the rate has units of millions of people per year. Therefore, the model estimates growth at about
The derivative gives an instantaneous rate: it describes how quickly the modeled population is changing at the specified time.
Compound interest and rates of change
Suppose an account begins with P dollars and earns an annual interest rate of R percent, compounded twice each year. If R is the numerical percent value—for example, R=4 for a 4% rate—the amount after T years is
The factor of 200 accounts for expressing the rate as a percentage and dividing the annual rate across two compounding periods. The exponent 2T counts the total number of compounding periods.
Rate of change with respect to time
Treat P and R as constants and differentiate with respect to T. The exponent 2T is an inner function, so the chain rule contributes a factor of 2. Differentiating the exponential expression also contributes the natural logarithm of its base:
This derivative measures how quickly the account balance changes as time passes. Since A is measured in dollars and T in years, its units are dollars per year.
For a particular balance, interest rate, and time, evaluating this derivative estimates the account’s instantaneous dollar growth rate at that moment.
Rate of change with respect to the interest rate
Now treat P and T as constants and differentiate with respect to R. The inner function is 1+200R, whose derivative with respect to R is 2001. Applying the power rule and then the chain rule gives
This derivative measures how the account balance changes as the interest-rate number R changes, with the initial deposit and time held fixed.
Its units are dollars per percentage point. For example, a change from 4% to 5% is a change of one percentage point. It is not described as a 1% increase: the increase from 4 to 5 is 25% relative to the original rate, but the change relevant to this derivative is one percentage point.
Ordinary and partial derivative notation
When a formula contains several quantities that may be treated as variables, a derivative taken with respect to one quantity while holding the others fixed may be written using partial derivative notation, such as ∂T∂A or ∂R∂A. This notation emphasizes which variable changes and which quantities are held constant. The underlying differentiation rules are the same.
Deriving the quotient rule
Let
where f and g are differentiable and g(x)=0. A quotient can be rewritten as a product:
Apply the product rule, followed by the chain rule to differentiate (g(x))−1:
Writing the terms as fractions gives
To combine them, give both fractions the denominator g(x)2:
This is the quotient rule. Its numerator can be remembered as “low times derivative of high, minus high times derivative of low,” while its denominator is the square of the original denominator.
The rule follows from the product rule and chain rule; it does not need to be treated as an independent formula.

Ask anything
We've read this whole study set, so questions about it get the best answers.