AP Calculus AB and BC

Derivative of e^(sin x): Answer, Proof, Mistakes

The derivative of e^(sin x) with respect to x is cos x times e^(sin x). The chain rule differentiates the outer exponential to e^(sin x), leaving it unchanged, then multiplies by the derivative of the inner function sin x, which is cos x. The exponential is positive, so the slope's sign matches cos x.

ddx[esinx]=cosxesinx\frac{d}{dx}\left[e^{\sin x}\right] = \cos x\,e^{\sin x}

How to differentiate e^(sin x)

The outer function is eue^u and the inner is u=sinxu = \sin x. The exponential is its own derivative, so differentiating the outer just reproduces esinxe^{\sin x}; then multiply by the inner derivative u=cosxu' = \cos x.

ddxesinx=esinxcosx=cosxesinx\frac{d}{dx}\,e^{\sin x} = e^{\sin x}\cdot\cos x = \cos x\,e^{\sin x}

This is the general pattern ddxeg(x)=g(x)eg(x)\frac{d}{dx}\,e^{g(x)} = g'(x)\,e^{g(x)}: the exponential comes along unchanged and picks up the derivative of the exponent as a factor.

Reading the sign of the slope

Because esinx>0e^{\sin x} > 0 for every xx, the factor that controls whether the curve rises or falls is cosx\cos x. The slope is zero exactly where cosx=0\cos x = 0, at x=π2+nπx = \frac{\pi}{2} + n\pi, which are the peaks and troughs of sinx\sin x and therefore of esinxe^{\sin x}.

So esinxe^{\sin x} increases where cosx>0\cos x > 0 and decreases where cosx<0\cos x < 0, matching the increase and decrease of the exponent sinx\sin x.

Common mistakes

  • Answering esinxe^{\sin x} alone and dropping the chain rule factor cosx\cos x. The inner function is sinx\sin x, not xx, so its derivative must appear.
  • Writing ecosxe^{\cos x}, as if differentiating sinx\sin x changes the exponent inside the exponential. The exponent stays sinx\sin x; the cosx\cos x multiplies out front.
  • Using the product rule. There is no product here, just a composite, so the chain rule is the right tool.
  • Answering cosxecosx\cos x\,e^{\cos x} by differentiating the exponent in two places at once. Only the multiplier changes to cosx\cos x; the exponent is untouched.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of e^(sin x)?

It is cosxesinx\cos x\,e^{\sin x}. The exponential differentiates to itself, and the chain rule multiplies by the derivative of the exponent sinx\sin x, which is cosx\cos x.

Why does the exponent stay sin x in the answer?

Differentiating eue^u gives eue^u times uu'. The exponent u=sinxu = \sin x is copied unchanged; the derivative cosx\cos x appears only as a factor in front.

What is the second derivative of e^(sin x)?

Differentiate cosxesinx\cos x\,e^{\sin x} by the product rule: sinxesinx+cosx(cosxesinx)=(cos2xsinx)esinx-\sin x\,e^{\sin x} + \cos x\,(\cos x\,e^{\sin x}) = (\cos^2 x - \sin x)\,e^{\sin x}.