Math · Calculus I · Worked example
Differentiate a function with three layers
Differentiate y = sin³(4x).
Read the notation
sin³(4x) means (sin 4x)³. The cube applies to the whole sine, not to the angle 4x.
Count the layers
Work it out for x = 1: first 4x = 4, then sin 4, then the cube of that. Three operations mean three layers: 4x is the innermost, the sine is the middle and the cube is the outermost. Give each inner layer its own letter.
Differentiate each layer
Differentiate each layer with respect to the layer just inside it.
Multiply all three rates
A chain of three layers multiplies three rates.
Put the layers back
Work back toward x: replace u with sin(4x), and v with 4x.
Simplify
Multiply the constants: 3·4 = 12.
The fast way
Once you can see the layers, skip the letters and write one factor per layer, from the outside in, copying everything inside each layer unchanged: 3 sin²(4x) for the cube, cos(4x) for the sine and 4 for 4x.
Result
dy/dx = 12 sin²(4x) cos(4x).
Your turn
Differentiate y = cos²(3x).
Show the answer and explanation
dy/dx = −6 cos(3x) sin(3x).
cos²(3x) means (cos 3x)², which has three layers: the square, the cosine and 3x. The square gives 2 cos(3x), the cosine gives −sin(3x) and 3x gives 3. Multiply: 2 cos(3x)·(−sin(3x))·3 = −6 cos(3x) sin(3x). With the double-angle identity this is also −3 sin(6x).
Keep exploring
Open the steps in Math: the Checker marks the derivative ✓. Remove the factor 4 and its mark turns to ✗, because the innermost layer’s factor is missing.
Return to the concept →Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
Try in the workspace
Open the example inputs, change a value and keep a useful result on your board.
Check the derivative in Math Open worked example on a board Chain rule in Math ReferenceYour existing work stays on this device. Examples open as editable copies.