Chalk−1

Math · Calculus I · Worked example

Differentiate a function with three layers

Differentiate y=sin3(4⁢x).

y=sin3(4⁢x)

Try one — Chalk checks each line

Read the notation

sin3(4⁢x) means (sin4⁢x)3. The cube applies to the whole sine, not to the angle 4⁢x.

y=(sin(4⁢x))3

Count the layers

Work it out for x=1: first 4⁢x=4, then sin4, then the cube of that. Three operations mean three layers: 4⁢x 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(4⁢x), and v with 4⁢x.

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. Write one factor per layer, from the outside in, copying everything inside each layer unchanged. The cube gives 3sin2(4⁢x), the sine gives cos(4⁢x), and 4⁢x gives 4.

Result

d⁢y⁢/⁢d⁢x =12sin2(4⁢x)cos(4⁢x).

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

Your turn

1. One like the example

Differentiate y=cos2(3⁢x).

Show the answer and explanation

d⁢y⁢/⁢d⁢x =−6cos(3⁢x)sin(3⁢x).

cos2(3⁢x) means (cos3⁢x)2, which has three layers, the square, the cosine and 3⁢x. The square gives 2cos(3⁢x), the cosine gives −sin(3⁢x) and 3⁢x gives 3. Their product is −6cos(3⁢x)sin(3⁢x). With the double-angle identity this is also −3sin(6⁢x).

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

2. A variation

Differentiate y=tan2(3⁢x).

Show the answer and explanation

d⁢y⁢/⁢d⁢x =6tan(3⁢x)sec2(3⁢x).

tan2(3⁢x) means (tan3⁢x)2. The square gives 2tan(3⁢x), the tangent gives sec2(3⁢x), and 3⁢x gives 3. Multiply the three factors to get 6tan(3⁢x)sec2(3⁢x).

y=tan2(3⁢x)d⁢yd⁢x=2tan(3⁢x)⋅sec2(3⁢x)⋅3d⁢yd⁢x=6tan(3⁢x)sec2(3⁢x)

3. Somewhere new

Differentiate y=ecos2x. Count the layers before you start.

Show the answer and explanation

d⁢y⁢/⁢d⁢x =−2ecos2xsinxcosx.

There are three layers. The exponential is outermost, the square is in the middle and cosx is innermost. They give ecos2x, 2cosx and −sinx. Their product is −2ecos2xsinxcosx, which is also −ecos2xsin(2⁢x).

y=ecos2xd⁢yd⁢x=ecos2x⋅2cosx⋅(−sinx)d⁢yd⁢x=−2ecos2xsinxcosx

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.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check the derivative in Math Study the 4 key terms Open worked example on a board Chain rule in Math Reference

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