Derivatives of composite functions
Most functions in Class 12 calculus are not raw expressions but functions built by feeding one function into another — , , . These are composite functions, and differentiating them needs a rule of its own: the chain rule. It follows directly after differentiability in the Continuity and Differentiability chapter, and it is the single most-used tool for the rest of the chapter — inverse trig derivatives, implicit differentiation, logarithmic differentiation and parametric differentiation all lean on it. The skill being tested is recognising the "outer" and "inner" layers of an expression and multiplying the right factors together in the right order.
For , differentiate the outer function at the inner value , then multiply by the derivative of the inner function : .
The core idea
A composite function has the form : the "outer" function is applied to the "inner" function . If where , and both and are differentiable, the chain rule states:
where: is the composite function, is the inner function, is the derivative of the outer function evaluated at , and is the derivative of the inner function. In words — differentiate the outer function, keeping the inner function untouched, then multiply by the derivative of the inner function. The rule extends to any number of nested layers. For a three-function chain :
where: each factor is the derivative of one layer, evaluated with everything inside that layer left as it is — the outermost layer peeled first, working inward. Identifying the layers correctly is the whole battle. For the outer function is and the inner function is . For the outer function is and the inner function is . For the outer function is "square" and the inner function is — a genuinely different function from , even though both "have a sine and a square" in them. Think of the chain rule as peeling off layers of an expression from the outside in. Each peel contributes one multiplicative factor — the derivative of that layer's function, with its own contents left alone — and the running answer is the product of all the factors collected along the way. This picture scales to any number of layers without needing a new rule for each case. The chain rule also combines with the product and quotient rules whenever a problem needs more than one tool at once. For instance, differentiating requires the product rule for the two factors and , and inside that, the chain rule for itself, whose derivative is . Recognising which rule governs the outermost structure of an expression — product, quotient, or composite — before diving into the algebra saves most of the errors students make on mixed problems.
The goal is to show why the derivative of must be the product rather than, say, just alone, by building the derivative directly from the limit definition and the idea of a small change propagating through two linked functions. We use only the definition of the derivative as a limit of a difference quotient, applied twice — once to the outer function and once to the inner function.
Step 1. Let and , so . Give a small increment . This produces a corresponding small change in , which in turn produces a small change in . A change in propagates through before it reaches .
Step 2. Write the difference quotient for with respect to and multiply and divide by (valid whenever near the point of interest): . This algebraic trick is the heart of the proof — it splits one ratio into two ratios chained together.
Step 3. Take the limit as . Because is differentiable (hence continuous), as well, so both factors tend to genuine derivatives: and .
Step 4. Multiply the two limits together (the limit of a product is the product of the limits, since both limits exist): . This confirms the chain rule needs both factors — the outer derivative alone would ignore how fast the inner function itself is changing.
Worked example
Differentiate and then with respect to , and compare the two chain-rule applications.
Step 1. For , identify the layers: outer function , inner function .
Step 2. Differentiate the outer function with respect to and substitute back : . Differentiate the inner function: .
Step 3. Apply the chain rule: .
Step 4. For , identify the layers: outer function , inner function . The outer derivative is and the inner derivative is , a constant since the inner function is linear.
Step 5. Apply the chain rule: .
Answer: for the first function, and for the second. The second result also follows instantly from the shortcut , since a linear inner function always contributes a constant factor.
Competitive stretch
For a three-layer chain like , peel one layer at a time: outer gives ; the middle layer contributes ; the innermost layer contributes . Multiplying all three factors, .
Common traps
- Forgetting the inner-function factor. Writing and stopping, omitting the essential .
- Misidentifying outer and inner functions. Confusing , whose outer function is "square" of , with , which is entirely different.
- Using the chain rule where it does not belong. Treating a product like as a composite instead of applying the product rule.
- Dropping a layer in longer chains. For , differentiating only the outermost layer and skipping one or more inner factors.
- Overthinking a simple constant inner-derivative. When the inner function is linear, such as , the chain rule contributes just one constant factor , not a whole new function — do not expect extra complexity where there is none.
Ask the tutor: If a multi-layer chain like still feels confusing, ask the AI tutor to peel it one layer at a time with you, checking the inner function at each step.
How do I quickly tell if a function is composite or a product, so I know which rule to use?
Ask whether one function is being applied to the output of another, or whether two separate functions are simply multiplied together. In , the sine acts on the whole expression — that is composite, chain rule. In , sine of and cosine of are two independent functions of multiplied side by side — that is a product, product rule. If you can rewrite the expression as with a single innermost variable, it is composite.
Why do I multiply by the inner derivative instead of just differentiating the outer function?
Because the inner function is also changing as changes, and that changing rate feeds into how fast the outer function changes. The derivation shows this precisely: , where measures how responds to a change in , and measures how much itself changes per unit change in . Skipping the second factor silently assumes the inner function is itself, changing at rate — true only when there is no real inner layer.
Does the chain rule still apply if the inner function is something simple like a constant times x plus a constant?
Yes, and it becomes especially quick. If the inner function is linear, , its derivative is just a constant, so the chain rule contributes a single multiplicative factor rather than a whole new function of . This is exactly the shortcut used for above — worth memorising since linear-inner composites appear constantly in problems.