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[esin⁡x]=cos⁡x esin⁡x\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=sin⁡xu = \sin x. The exponential is its own derivative, so differentiating the outer just reproduces esin⁡xe^{\sin x}; then multiply by the inner derivative u′=cos⁡xu' = \cos x.

ddx esin⁡x=esin⁡x⋅cos⁡x=cos⁡x esin⁡x\frac{d}{dx}\,e^{\sin x} = e^{\sin x}\cdot\cos x = \cos x\,e^{\sin x}

This is the general pattern ddx eg(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 esin⁡x>0e^{\sin x} > 0 for every xx, the factor that controls whether the curve rises or falls is cos⁡x\cos x. The slope is zero exactly where cos⁡x=0\cos x = 0, at x=π2+nπx = \frac{\pi}{2} + n\pi, which are the peaks and troughs of sin⁡x\sin x and therefore of esin⁡xe^{\sin x}.

So esin⁡xe^{\sin x} increases where cos⁡x>0\cos x > 0 and decreases where cos⁡x<0\cos x < 0, matching the increase and decrease of the exponent sin⁡x\sin x.

Common mistakes

  • Answering esin⁡xe^{\sin x} alone and dropping the chain rule factor cos⁡x\cos x. The inner function is sin⁡x\sin x, not xx, so its derivative must appear.
  • Writing ecos⁡xe^{\cos x}, as if differentiating sin⁡x\sin x changes the exponent inside the exponential. The exponent stays sin⁡x\sin x; the cos⁡x\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 cos⁡x ecos⁡x\cos x\,e^{\cos x} by differentiating the exponent in two places at once. Only the multiplier changes to cos⁡x\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 cos⁡x esin⁡x\cos x\,e^{\sin x}. The exponential differentiates to itself, and the chain rule multiplies by the derivative of the exponent sin⁡x\sin x, which is cos⁡x\cos x.

Why does the exponent stay sin x in the answer?

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

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

Differentiate cos⁡x esin⁡x\cos x\,e^{\sin x} by the product rule: −sin⁡x esin⁡x+cos⁡x (cos⁡x esin⁡x)=(cos⁡2x−sin⁡x) esin⁡x-\sin x\,e^{\sin x} + \cos x\,(\cos x\,e^{\sin x}) = (\cos^2 x - \sin x)\,e^{\sin x}.