01 / 21

The Chain Rule

Master the essential technique for differentiating composite functions: one function nested inside another.

Business Calculus

What Is a Composite Function?

A composite function is a function built by plugging one function inside another. If you have an outer function \( f \) and an inner function \( g \), the composite is written:

Think of it as a two-step machine: first apply \( g \) to the input, then apply \( f \) to the result.

Inside the Function Machine

\( x \)
Inner
\( g(x) \)
Outer
\( f(u) \)
\( f(g(x)) \)
\( u = g(x) \)

Why the Chain Rule Matters

In business calculus, most real-world functions are composites. Revenue depends on demand, which depends on price: each link in the chain requires the chain rule.

Cost Models
\( C\!\bigl(q(t)\bigr) \): cost as a function of quantity, which itself changes over time.
Revenue
\( R\!\bigl(p(t)\bigr) \): revenue depends on price, which shifts with market conditions.
Growth
\( P = P_0 e^{rt} \): exponential growth requires the chain rule to differentiate.

The Chain Rule: Formal Statement

In words: differentiate the outer function (leaving the inner part alone), then multiply by the derivative of the inner function.

Anatomy of the Chain Rule

Differentiate \( f(g(x)) \)
STEP 1: Outer Derivative
\( f'\!\bigl(g(x)\bigr) \)
keep inner untouched × STEP 2: Inner Derivative
\( g'(x) \)
differentiate inside RESULT
\( f'\!\bigl(g(x)\bigr) \cdot g'(x) \)

Chain Rule vs. Product Rule

Chain Rule Product Rule
Structure Function inside function: \( f(g(x)) \) Function times function: \( f(x) \cdot g(x) \)
Formula \( f'(g(x)) \cdot g'(x) \) \( f'g + fg' \)
Key word Nested / composed Multiplied
Example \( (3x+1)^5 \) \( x^2 \cdot e^x \)

How to Apply the Chain Rule

1
Identify the composite. Spot an "outer" function and an "inner" function: set \( u = g(x) \).
2
Differentiate the outer. Find \( \frac{dy}{du} = f'(u) \), treating \( u \) as a single variable.
3
Differentiate the inner. Find \( \frac{du}{dx} = g'(x) \).
4
Multiply. Combine: \( \frac{dy}{dx} = f'(u) \cdot g'(x) \).
5
Substitute back. Replace \( u \) with \( g(x) \) so the answer is in terms of \( x \).

Example 1: Power of a Linear

1
Outer: \( f(u) = u^5 \). Inner: \( u = 3x + 1 \).
2
Outer derivative: \( f'(u) = 5u^4 \).
3
Inner derivative: \( g'(x) = 3 \).
4
Multiply & substitute: \( \frac{dy}{dx} = 5(3x+1)^4 \cdot 3 = \) \( 15(3x+1)^4 \).

Example 2: Exponential Composite

1
Outer: \( f(u) = e^u \). Inner: \( u = 4x^2 \).
2
Outer derivative: \( f'(u) = e^u \) (exponential's own derivative).
3
Inner derivative: \( g'(x) = 8x \).
4
Multiply & substitute: \( \frac{dy}{dx} = e^{4x^2} \cdot 8x = \) \( 8x \, e^{4x^2} \).

Example 3: Natural Logarithm

1
Outer: \( f(u) = \ln u \). Inner: \( u = x^2 + 5 \).
2
Outer derivative: \( f'(u) = \dfrac{1}{u} \).
3
Inner derivative: \( g'(x) = 2x \).
4
Multiply & substitute: \( \frac{dy}{dx} = \dfrac{1}{x^2+5} \cdot 2x = \) \( \dfrac{2x}{x^2+5} \).

Visualizing \( y = (x^2+1)^2 \) and Its Derivative

x y -1 1 -2 2 10 20 30 40 -10 -20 -30 -40 f(x) f'(x)

Business Application: Marginal Revenue

A company's revenue function is \( R(q) = 500\sqrt{q+100} \), where \( q \) is units sold. Find the marginal revenue at \( q = 300 \).

1
Rewrite: \( R(q) = 500(q+100)^{1/2} \). Outer: \( u^{1/2} \), Inner: \( u = q + 100 \).
2
Outer derivative: \( \frac{1}{2}u^{-1/2} \). Inner derivative: \( 1 \).
3
Chain rule: \( R'(q) = 500 \cdot \frac{1}{2}(q+100)^{-1/2} = \frac{250}{\sqrt{q+100}} \).
4
Evaluate: \( R'(300) = \frac{250}{\sqrt{400}} = \frac{250}{20} = \) \( \$12.50 \) per unit.

Extended Chain: Three Layers

Sometimes functions are nested three deep. The chain rule extends naturally: multiply all the derivatives together.

Common Mistakes

✕ Forgetting the Inner Derivative
Writing \( \frac{d}{dx}(3x+1)^5 = 5(3x+1)^4 \) and stopping. You must multiply by \( g'(x) = 3 \).
✕ Confusing Chain and Product Rules
Using the product rule on \( e^{2x} \) as if it were \( e \cdot 2x \). It is a composition, not a product.
✕ Wrong Identification of Inner/Outer
In \( \ln(x^3) \), the outer is \( \ln u \), not \( x^3 \). Swapping them gives a wrong derivative.

Quick Reference Table

Function Form Derivative via Chain Rule
\( [g(x)]^n \) \( n[g(x)]^{n-1} \cdot g'(x) \)
\( e^{g(x)} \) \( e^{g(x)} \cdot g'(x) \)
\( \ln\!\bigl(g(x)\bigr) \) \( \dfrac{g'(x)}{g(x)} \)
\( \sin\!\bigl(g(x)\bigr) \) \( \cos\!\bigl(g(x)\bigr) \cdot g'(x) \)
\( \cos\!\bigl(g(x)\bigr) \) \( -\sin\!\bigl(g(x)\bigr) \cdot g'(x) \)
\( a^{g(x)} \) \( a^{g(x)} \cdot \ln a \cdot g'(x) \)

Question 1 of 5

What is the derivative of \( y = (2x + 7)^4 \)?

Question 2 of 5

Find \( \frac{d}{dx}\!\left[ e^{3x} \right] \).

Question 3 of 5

What is the derivative of \( y = \ln(5x^2 + 3) \)?

Question 4 of 5

A firm's profit is \( P(t) = 200e^{0.05t} \) thousand dollars. What is \( P'(t) \)?

Question 5 of 5

Which rule should you use first to differentiate \( y = \bigl(\sin(x)\bigr)^3 \)?