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.
We also use dxd(ef(x))=ef(x)f′(x).
Step 1 — Name the two functions.
We call the function being differentiated u and the function we differentiate with respect to v.
u=sin2x
v=ecosx
Step 2 — Differentiate both with respect to x.
By the chain rule, the derivative of sin2x is 2sinxcosx, and the derivative of ecosx is ecosx multiplied by the derivative of cosx, namely −sinx.
dxdu=2sinxcosx
dxdv=−sinxecosx
Step 3 — Divide the two derivatives.
The common factor sinx cancels (we take sinx=0, so that dxdv=0).
dvdu=−sinxecosx2sinxcosx=−ecosx2cosx
Note: The book prints 0. That is only the value at x=2π, where cosx is 0; in general the derivative is −ecosx2cosx.
Therefore, the required derivative is −ecosx2cosx.