BUSINESS CALCULUS • DERIVATIVES

Chain Rule

Differentiating composite functions to model how interconnected business variables change together.

Historical Context & Motivation

The problem of differentiating composite functions—expressions in which one function is nested inside another—arose naturally as mathematicians of the seventeenth and eighteenth centuries extended calculus beyond simple polynomial and trigonometric expressions. In business contexts, nearly every quantity of interest depends on another quantity that itself varies: revenue depends on price, which depends on time; cost depends on production volume, which depends on demand. The chain rule was developed precisely to handle these layered dependencies, allowing analysts to trace the rate of change through a chain of interconnected variables.

1676
Leibniz's Differential Notation
Gottfried Wilhelm Leibniz introduced the dy/dx notation that made the chain rule's algebraic structure—dy/dx = (dy/du) × (du/dx)—appear almost self-evident as a cancellation of differentials.
1748
Euler's Introductio
Leonhard Euler systematized the concept of a function and its composition, providing the formal algebraic language needed to state the chain rule precisely for arbitrary nested functions.
1823
Cauchy's Rigorous Foundations
Augustin-Louis Cauchy provided the first rigorous epsilon-delta proof of the chain rule, establishing the conditions under which the 'cancellation of differentials' heuristic is mathematically valid.
1960s
Business & Economics Applications
As mathematical economics matured, the chain rule became indispensable for marginal analysis—computing marginal cost, marginal revenue, and elasticity for functions that depend on intermediate economic variables.

The central question the chain rule addresses is deceptively simple: if a quantity y depends on u, and u in turn depends on x, how fast does y change with respect to x? Without the chain rule, every composite function would need to be expanded and simplified before differentiation—a process that is often algebraically intractable or, in data-driven business models, impossible. The chain rule provides a systematic shortcut that respects the compositional structure of the function.

Core Principles & Definitions

Before applying the chain rule, it is essential to understand the building blocks on which it rests. The rule emerges from three interconnected ideas: the concept of a composite function, the meaning of the derivative as an instantaneous rate of change, and the algebraic principle that rates of change along a chain of dependencies multiply. These principles apply regardless of whether we are differentiating a revenue function, a cost model, or a financial growth equation.

1

Composite Functions

A composite function f(g(x)) applies one function g to the input x, then applies a second function f to the result. The outer function f acts on the output of the inner function g. Recognizing this structure is the first step in applying the chain rule.
2

Derivative as Rate of Change

The derivative dy/dx measures how quickly y responds to a small change in x. In a business setting, this could be marginal revenue (dR/dq), the rate of profit growth (dP/dt), or the sensitivity of cost to a production parameter.
3

Multiplication of Rates

If y changes at 3 units per unit of u, and u changes at 2 units per unit of x, then y changes at 3 × 2 = 6 units per unit of x. The chain rule formalizes this intuitive multiplicative composition of instantaneous rates.
4

Identifying the Inner Function

The practical skill in using the chain rule is pattern recognition: identify the 'inside piece' u = g(x) and the 'outside piece' f(u). Correct identification simplifies the derivative to a product of two straightforward derivatives.
KEY TAKEAWAY
Think of the chain rule like a supply chain in manufacturing. If a factory doubles its widget output when steel supply increases by one ton (dy/du = 2), and steel supply increases by three tons for every million-dollar increase in the mining budget (du/dx = 3), then the factory's output increases by 2 × 3 = 6 widgets per million-dollar budget increase. The chain rule simply multiplies the rates at each link in the chain.

Visual Explanation

The diagram below illustrates the chain rule as a flow of information through a composite function. An input x enters the inner function g, producing the intermediate value u, which then enters the outer function f, producing the final output y. The derivative at each stage is shown along the connecting arrows, and the total derivative dy/dx is the product of these two partial rates.

The composite function y = f(g(x)) passes the input x through the inner function g to produce u, which then flows into the outer function f. The chain rule multiplies the derivative of the outer function (evaluated at the inner function) by the derivative of the inner function.

Notice that the derivative of the outer function f′ is evaluated at the inner function g(x), not at x alone. This is a frequent source of errors: students often forget to keep the inner function as the argument of f′ after differentiating. The second factor, g′(x), accounts for how rapidly the inner function itself is changing—without it, the derivative would ignore the rate at which u varies.

Mathematical Framework

The chain rule can be stated in two equivalent notations. The Leibniz notation emphasizes the multiplicative structure of rates, while the prime notation is more compact for algebraic manipulation. Both forms appear throughout business calculus, and facility with each is expected.

CHAIN RULE — LEIBNIZ FORM
dy/dx = (dy/du) × (du/dx)
Here y = f(u) and u = g(x). The notation suggests a cancellation of du, which is a useful mnemonic even though differentials are not fractions in the rigorous sense.
CHAIN RULE — PRIME (LAGRANGE) FORM
d/dx [f(g(x))] = f′(g(x)) × g′(x)
f′(g(x)) denotes the derivative of the outer function evaluated at the inner function. g′(x) is the derivative of the inner function with respect to x.
GENERALIZED POWER RULE
d/dx [g(x)]ⁿ = n × [g(x)]ⁿ⁻¹ × g′(x)
This is the chain rule applied to f(u) = uⁿ. It is the most frequently used special case in business calculus, appearing in cost, revenue, and profit models involving expressions raised to powers.

A brief informal derivation reinforces the logic. Consider the difference quotient for the composite function y = f(g(x)). When x changes by a small increment Δx, the inner function changes by Δu = g(x + Δx) − g(x), and y changes by Δy = f(u + Δu) − f(u). The average rate of change is Δy/Δx = (Δy/Δu) × (Δu/Δx). Taking the limit as Δx → 0 (and consequently Δu → 0 because g is continuous), each ratio converges to the corresponding derivative, yielding dy/dx = (dy/du)(du/dx). This argument, which Cauchy made rigorous, confirms the multiplicative structure.

⚠️ Common Pitfall
Do not forget the factor g′(x). The most common chain rule error is to differentiate the outer function correctly but neglect to multiply by the derivative of the inner function. Always ask: 'Did I multiply by the derivative of what's inside?'

Business Applications & Extended Examples

In business calculus, composite functions appear whenever one economic quantity is expressed in terms of another that itself depends on a third. The chain rule transforms these nested relationships into actionable marginal information. Consider a company whose revenue R depends on sales volume q, which in turn depends on advertising expenditure a. The chain rule tells us dR/da = (dR/dq)(dq/da)—the marginal revenue per advertising dollar.

A business chain: advertising expenditure (a) drives sales volume q(a), which drives revenue R(q). The chain rule computes the marginal revenue per advertising dollar directly without needing to compose R and q first.
Common business scenarios that require the chain rule
Business ScenarioOuter Function fInner Function gChain Rule Gives
Revenue vs. advertisingR(q) — revenue as a function of quantityq(a) — quantity as a function of ad spenddR/da = R′(q) × q′(a)
Compound interest growthA = P × eʳᵗ — amount as exponentialrt — exponent as product of rate and timedA/dt = P × r × eʳᵗ
Cost with learning curveC(q) = fixed + variable × qq(t) — units produced over timedC/dt = C′(q) × q′(t)
Demand elasticityD(p) — demand as function of pricep(t) — price as function of timedD/dt = D′(p) × p′(t)

Worked Example

A company's total cost (in thousands of dollars) to produce q units of a product is modeled by C(q) = (3q² + 5)4. Management wants to know the marginal cost, dC/dq, when q = 2. We will apply the chain rule to differentiate this expression step by step.

Finding Marginal Cost Using the Chain Rule
1
Step 1 — Identify the Composite StructureRecognize that C(q) = (3q² + 5)⁴ is a composite function. The outer function is f(u) = u⁴ and the inner function is u = g(q) = 3q² + 5.
Outer: u⁴ | Inner: 3q² + 5
2
Step 2 — Differentiate the Outer FunctionApply the power rule to the outer function f(u) = u⁴. We get f′(u) = 4u³. Crucially, we leave the argument as u (not yet substituting back).
f′(u) = 4u³
3
Step 3 — Differentiate the Inner FunctionDifferentiate g(q) = 3q² + 5 with respect to q using the basic power rule. The derivative of 3q² is 6q and the derivative of the constant 5 is 0.
g′(q) = 6q
4
Step 4 — Multiply and SubstituteBy the chain rule, dC/dq = f′(g(q)) × g′(q) = 4(3q² + 5)³ × 6q. Simplify the constant coefficients: 4 × 6 = 24.
dC/dq = 24q(3q² + 5)³
5
Step 5 — Evaluate at q = 2Substitute q = 2 into the derivative. First compute the inner value: 3(2)² + 5 = 3(4) + 5 = 17. Then compute (17)³ = 4913. Finally, dC/dq = 24 × 2 × 4913 = 48 × 4913 = 235,824.
dC/dq|_{q=2} = 235,824 thousand dollars per unit
📊 Interpretation
The marginal cost of $235,824 thousand per unit at q = 2 is extremely large because the cost function involves a fourth power, causing costs to escalate rapidly. In practice, such a steep marginal cost signals that production beyond two units is economically unsustainable under this model. The chain rule reveals this sensitivity that would be hidden if we tried to expand (3q² + 5)⁴ by hand before differentiating.

Chain Rule vs. Other Differentiation Rules

The chain rule is one of several fundamental differentiation rules, and knowing when to apply it—rather than the product rule, quotient rule, or basic power rule—is a critical skill. The table below compares these rules to clarify their domains of application and highlight how the chain rule interacts with the others.

Comparison of core differentiation rules
RuleWhen to UseFormula
Power Rulef(x) = xⁿ — a simple power of xf′(x) = n × xⁿ⁻¹
Product Ruleh(x) = f(x) × g(x) — a product of two functions of xh′(x) = f′(x)g(x) + f(x)g′(x)
Quotient Ruleh(x) = f(x)/g(x) — a ratio of two functionsh′(x) = [f′(x)g(x) − f(x)g′(x)] / [g(x)]²
Chain Ruleh(x) = f(g(x)) — a function within a functionh′(x) = f′(g(x)) × g′(x)
Chain + ProductOne factor is itself a composite functionApply product rule first, then chain rule within each term as needed
KEY TAKEAWAY
The chain rule is the only differentiation rule that handles nesting (composition), whereas the product and quotient rules handle arithmetic combinations of functions at the same level. In practice, complex derivatives often require combining the chain rule with the product or quotient rule—first apply the outer structural rule, then use the chain rule on each component.

Connection to Advanced Topics

The single-variable chain rule you are learning now generalizes into several powerful ideas encountered in advanced coursework. Understanding these connections will help you see the chain rule not as an isolated technique but as part of a coherent framework for analyzing change in complex systems.

How the single-variable chain rule generalizes
Business Calculus (This Course)Advanced Extension
Chain rule: dy/dx = (dy/du)(du/dx)Multivariable chain rule: dz/dt = (∂z/∂x)(dx/dt) + (∂z/∂y)(dy/dt). Extends to functions of several variables using partial derivatives.
Differentiating eⁿˣ using the chain ruleDerivatives of matrix exponentials and continuous-time Markov models in operations research.
Chain rule applied to cost/revenue modelsImplicit differentiation and the method of Lagrange multipliers for constrained optimization in microeconomics.
Marginal analysis of composed functionsBackpropagation in machine learning: the chain rule applied iteratively through layers of a neural network to compute gradients for optimization.

Perhaps the most striking modern application of the chain rule is backpropagation in machine learning. A neural network is essentially a deeply nested composite function, and training the network requires computing the derivative of a loss function with respect to thousands or millions of parameters. The chain rule, applied layer by layer, makes this computation tractable. Every time a business deploys a recommendation engine, fraud detection system, or demand forecasting model, the chain rule is working behind the scenes.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the derivative of (5x + 1)³ is not simply 3(5x + 1)². What factor is missing, and why does it arise?
PROBLEM 2BASIC CALCULATION
Find the derivative of f(x) = (4x² − 7)⁵.
PROBLEM 3INTERMEDIATE
A firm's profit function is P(x) = √(2x³ + 10x), where x is the number of units sold (in hundreds). Find P′(x) and evaluate it at x = 3.
PROBLEM 4APPLIED
A company invests in digital marketing, and the number of monthly website visitors (in thousands) as a function of ad spending a (in thousands of dollars) is V(a) = 12(1 + 0.5a)^(2/3). Find dV/da and determine the marginal visitors per marketing dollar when a = 8.
PROBLEM 5CRITICAL THINKING
Consider h(x) = [f(x)]² where f is a differentiable function with f(3) = 4 and f′(3) = −2. Without knowing the explicit formula for f, compute h′(3). Then explain geometrically why h′(3) is negative even though [f(3)]² is positive—what does this tell us about the behavior of h near x = 3?

Chain Rule — Summary

The chain rule is the essential differentiation technique for composite functions—functions nested inside other functions. Its two equivalent forms, dy/dx = (dy/du)(du/dx) in Leibniz notation and d/dx[f(g(x))] = f′(g(x)) × g′(x) in prime notation, express the same principle: differentiate the outer function while keeping the inner function unchanged, then multiply by the derivative of the inner function.

In business calculus, the chain rule appears whenever economic quantities form dependency chains: marginal cost through production stages, revenue sensitivity to advertising, and compound growth models all require it. The generalized power rule, d/dx[g(x)]ⁿ = n[g(x)]ⁿ⁻¹ × g′(x), is its most frequently used special case. Master the two-step process—identify the inner and outer functions, then multiply their derivatives—and you will be equipped to differentiate virtually any composite expression you encounter in economics and finance.

Varsity Tutors • Business Calculus • Chain Rule