When a product appears inside a composition, one combines the circle diagram and the product rule: one applies the diagram for the outer link, then goes down to differentiate the argument with the ordinary rules. Example: D[cos(sin(ex3)x2)]D[\cos(\sin(e^x-3)\cdot x^2)].

Example — Composite function with an inner product rule

Step 1: the outer function is cos\cos\triangle, with =sin(ex3)x2\triangle = \sin(e^x-3)\cdot x^2.

Outer diagram:

Outer diagram: the right-hand link is cos\cos\triangle, whose derivative is sin-\sin\triangle.

Example (continued)

Step 2: we need D[sin(ex3)x2]D[\sin(e^x-3)\cdot x^2] with the product rule. Setting f=sin(ex3)f = \sin(e^x-3), g=x2g = x^2: fg+fg=D[sin(ex3)]x2+sin(ex3)2x.f'\cdot g + f\cdot g' = D[\sin(e^x-3)]\cdot x^2 + \sin(e^x-3)\cdot 2x.

Step 3: for D[sin(ex3)]D[\sin(e^x-3)] we need another circle diagram:

Inner diagram: D[sin(ex3)]=excos(ex3)D[\sin(e^x-3)] = e^x\cdot\cos(e^x-3).

Example — Final result

D[cos(sin(ex3)x2)]=sin(sin(ex3)x2)[excos(ex3)x2+2xsin(ex3)].D[\cos(\sin(e^x-3)\cdot x^2)] = -\sin\bigl(\sin(e^x-3)\cdot x^2\bigr)\cdot\bigl[e^x\cos(e^x-3)\cdot x^2 + 2x\sin(e^x-3)\bigr].

Beware — If the composition has more than 3 links

The method extends: one simply adds more circles and more geometric symbols (,,,,\square, \triangle, \bigcirc, \diamondsuit, \ldots). The final derivative is always the product of the partial derivatives of each link, with the symbols substituted at the end. The order of multiplication does not matter (the product is commutative), but the substitution must be done from the inside outwards (first =x\square = x, then =expression in x\triangle = \text{expression in } x, and so on).

Topics: Derivatives
Concepts: Composite derivative · Chain rule · Differentiation rules
Skills: Differentiating