Chalk−1

Math · Calculus I · Worked example

Differentiate a function with three layers

Differentiate y = sin³(4x).

y=sin3(4⁢x)

Read the notation

sin³(4x) means (sin 4x)³. The cube applies to the whole sine, not to the angle 4x.

y=(sin(4⁢x))3

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.

v=4⁢x,u=sinv,y=u3

Differentiate each layer

Differentiate each layer with respect to the layer just inside it.

d⁢yd⁢u=3u2,d⁢ud⁢v=cosv,d⁢vd⁢x=4
d⁢yd⁢u=3u2d⁢ud⁢v=cosvd⁢vd⁢x=4

Multiply all three rates

A chain of three layers multiplies three rates.

d⁢yd⁢x=d⁢yd⁢u⋅d⁢ud⁢v⋅d⁢vd⁢x=3u2⋅cosv⋅4
d⁢yd⁢x=d⁢yd⁢u⋅d⁢ud⁢v⋅d⁢vd⁢x=3u2⋅cosv⋅4

Put the layers back

Work back toward x: replace u with sin(4x), and v with 4x.

d⁢yd⁢x=3sin2(4⁢x)⋅cos(4⁢x)⋅4

Simplify

Multiply the constants: 3·4 = 12.

d⁢yd⁢x=12sin2(4⁢x)cos(4⁢x)

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).

d⁢yd⁢x=12sin2(4⁢x)cos(4⁢x)

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).

y=cos2(3⁢x)d⁢yd⁢x=2cos(3⁢x)⋅(−sin(3⁢x))⋅3d⁢yd⁢x=−6cos(3⁢x)sin(3⁢x)

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.

Make it concrete

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 Reference

Your existing work stays on this device. Examples open as editable copies.