The derivative of a composite function
A function of the form y = f(g(x)) is called composite: first g(x) is computed from x (the inner function) and then f is applied to it (the outer function). Its derivative is (f(g(x)))′ = f′(g(x)) · g′(x): differentiate the outer function, evaluate it at the inner function, and multiply by the derivative of the inner function. For example (sin(kx + b))′ = k cos(kx + b) and ((kx + b)ⁿ)′ = nk(kx + b)ⁿ⁻¹. The idea: if x changes a little, g changes at its own rate and that change moves f at its rate, so the rates are multiplied. With three layers the rule is applied twice in a row; if a product or quotient is also present, use those rules first and the chain rule inside.
A cyclist turns the pedals once every second; because of the gears the wheel turns 2.5 times per pedal turn, and the wheel’s circumference is 2 m. The rates are multiplied one after another: 1 · 2.5 · 2 = 5 m/s. The derivative of a composite function works the same way: the rates of change of each “layer” are multiplied.
Mechanical engineers design gear trains, ecologists follow how one quantity affects a second and that one a third, and physicists multiply rates when converting units in several steps.
Convert 36 km/h to m/s in two steps: first multiply by 1000 m per km, then by 1 h per 3600 s. Each factor is the rate of one “layer” and their product is the result, just as in the derivative of a composite function.
“Layers”: cards show composite functions (sin 5x, (x² − 4)⁶, ln(x³ + 1), e^(cos x)). Each pair peels the function like an onion: inner → outer, writes the sequence of layers, and only then finds the derivative.