Solution:
Concept: To differentiate a function u of x with respect to another function v of x, we differentiate both with respect to x and divide: dvdu=dv/dxdu/dx, provided dxdv=0.
Step 1 — Name the two functions.
We call the function being differentiated u and the function we differentiate with respect to v.
u=sin3x
v=cos3x
Step 2 — Differentiate both with respect to x.
By the chain rule, sin3x gives 3sin2x times cosx, and cos3x gives 3cos2x times −sinx.
dxdu=3sin2xcosx
dxdv=3cos2x⋅(−sinx)=−3cos2xsinx
Step 3 — Divide the two derivatives.
The common factor 3sinxcosx cancels (we take sinxcosx=0), leaving sinx on top and cosx underneath.
dvdu=−3cos2xsinx3sin2xcosx=−cosxsinx=−tanx
Therefore, the derivative of sin3x with respect to cos3x is −tanx.