Chain Rule, Implicit Differentiation
00 · Symbol Glossary
A composition of two functions: first apply to , then apply to the result. is the inner function, is the outer function. Read "f of g of x."
A placeholder variable used to name the inner function during a chain-rule computation: . Once substituted, the outer function is differentiated as a function of alone.
The chain rule written with Leibniz notation (Chapter 02, Section 00): differentiate the outer layer with respect to the inner variable , then multiply by the derivative of the inner layer with respect to . The terms visually "cancel" as a mnemonic, though this is not literal fraction cancellation.
A compact alternative to when the dependent variable is understood from context, used heavily once implicit differentiation is introduced.
01 · Composite Functions
Many functions are built by feeding the output of one function into another. is not a bare power of — it is the fifth power applied to the result of . Recognizing this layered structure is the first step before differentiating it.
Given two functions and , the composition is formed by using as the input to .
— the inner function, applied first.
— the outer function, applied second, to the output of .
Identify the layers: the innermost operation is squaring and adding , so . The outermost operation is raising to the fifth power, so . Then , matching the original expression.
02 · The Chain Rule
Neither the power rule nor the product rule (Chapter 02) can differentiate directly — it is a single power of an expression, not of alone. The chain rule handles composite functions by differentiating each layer separately and multiplying the results.
If , then
"Derivative of the outer function, evaluated at the inner function (leaving the inner function untouched inside), times the derivative of the inner function."
A common shortcut error on the same function: writing and stopping there.
Why it breaks: this only accounts for the outer layer's rate of change, treating as if it were the variable itself changing at rate . But changes at rate , not — omitting the factor silently assumes the inner function's slope is always , which is false everywhere except where .
Consequence: the resulting derivative is wrong at every except — a coincidental match, not a valid method. The multiplication by is not optional.
03 · Chain Rule with Leibniz Notation
Writing explicitly and using , makes multi-layer compositions easier to track, especially once three or more layers are nested.
For -style triple compositions (outer trig-like layer, middle power layer, inner polynomial), apply the chain rule repeatedly: differentiate the outermost layer, multiply by the derivative of the next layer in, multiply by the derivative of the layer after that, and so on until reaching a bare polynomial in .
04 · Implicit Differentiation
Every derivative computed so far assumed was written explicitly as a function of , like . Some equations mix and together with no way to isolate cleanly — for example, . Implicit differentiation finds directly from such an equation, without first solving for .
To differentiate an equation containing both and :
- Differentiate both sides of the equation with respect to , term by term.
- Every time a term contains , apply the chain rule: treat as an inner function of , so .
- Solve the resulting equation algebraically for .
For (a circle of radius ), find the slope at the point — check first that this point satisfies the equation: . ✓
Using from the step-block above: .
Geometrically, the radius to has slope ; the tangent line's slope is its negative reciprocal — the tangent to a circle is always perpendicular to the radius at the point of tangency.
On the same equation , a common mistake is writing , omitting the chain-rule factor entirely — treating as if it does not depend on .
Why it breaks: is defined implicitly in terms of through the equation itself; wherever moves, generally moves too, at the (unknown, to-be-solved-for) rate . Omitting that factor is the same category of error as omitting in the chain rule (Section 02) — because differentiating with respect to is an application of the chain rule with inner function .
Consequence: the resulting equation gives , a straight line — nothing like the correct slope formula , and wrong at every point on the circle except where it happens to coincide by accident.
05 · Related Rates — One Application
Implicit differentiation extends naturally to situations where every quantity in an equation is itself changing with respect to time — differentiate both sides with respect to instead of , applying the chain rule to every variable.
A trading desk's exposure follows , where is price per share and is number of shares held, both changing with time . Differentiating both sides with respect to using the product rule (Chapter 02) combined with the chain rule: .
If dollars, shares, dollars/hour, and the desk is unwinding the position at shares/hour, then : total exposure is falling by dollars/hour, even though the price itself is rising, because the position is being reduced faster than the price gain compensates.
06 · Exercises
Identify the inner and outer functions first: the inner is the expression being cubed, the outer is the cubing operation itself.
. Inner , outer . . . Chain rule: .
Differentiate using the chain rule. Identify the inner and outer functions explicitly.
Rewrite the square root as a power before applying the chain rule.
. Outer derivative: . Inner derivative: . Chain rule: .
Differentiate .
Differentiate both sides with respect to , remembering to apply the chain rule () to every term, then isolate algebraically.
. Differentiate: . Solve: .
Find for using implicit differentiation.
This equation has a product of and — differentiating that term requires the product rule combined with the chain rule, since depends on .
. Differentiate with the product rule: . Differentiate with the chain rule: . Right side derivative: . Assemble: . Group terms: . Solve: .
Find for . Note that one term requires both the product rule and the chain rule together.
Check the point satisfies the equation first, then use the implicit-differentiation formula for slope, then plug in the specific coordinates.
at : check ✓. From Section 04, . At : .
Find the slope of the tangent line to at the point .
Differentiate the given relation with respect to time using the product rule, since both quantities in the product are changing with .
(revenue = quantity sold times price), both functions of . . With units, dollars, units/day, dollars/day: . Revenue is increasing at dollars/day — the volume gain outweighs the price decline.
Revenue is where quantity sold and price both change with time . Given units, dollars, units/day, and dollars/day, find using implicit (related-rate) differentiation.
07 · Chapter Summary
| Concept | Formula / Rule |
|---|---|
| Composite function | : apply inner , then outer |
| Chain rule | |
| Chain rule (Leibniz) | |
| Implicit differentiation | Differentiate both sides w.r.t. ; chain-rule every term as |
| Product + chain together | Terms like need the product rule with a factor on the half |
| Related rates | Differentiate a governing equation with respect to to link multiple changing quantities |
Next: Chapter 04 — Applications of Derivatives: Core, where the derivative rules built here are used to analyze how functions rise, fall, and curve.