AP Calculus AB and BC

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

The derivative of e^(cos x) is -sin(x) times e^(cos x). In prime notation, if f(x) = e^(cos x) then f'(x) = -sin(x) e^(cos x). The chain rule leaves the exponential unchanged and multiplies by the derivative of the exponent cos x, which is -sin x and supplies the minus sign.

ddx[ecos⁡x]=−sin⁡x ecos⁡x\frac{d}{dx}\left[e^{\cos x}\right] = -\sin x\,e^{\cos x}

How to differentiate e^(cos x)

The outer function is eue^{u} and the inner is u=cos⁡xu = \cos x. Differentiating the outer leaves ecos⁡xe^{\cos x} untouched, and the chain rule then multiplies by u′=−sin⁡xu' = -\sin x.

ddxecos⁡x=ecos⁡x⋅ddx(cos⁡x)=−sin⁡x ecos⁡x\frac{d}{dx}e^{\cos x} = e^{\cos x}\cdot\frac{d}{dx}(\cos x) = -\sin x\,e^{\cos x}

Reversing the work confirms it: the substitution u=cos⁡xu = \cos x gives ∫−sin⁡x ecos⁡x dx=ecos⁡x+C\int -\sin x\,e^{\cos x}\,dx = e^{\cos x} + C, so the derivative and the antiderivative line up.

What the derivative says about the graph

ecos⁡xe^{\cos x} is positive for every xx, so the sign of f′f' is decided entirely by −sin⁡x-\sin x. The function rises where sin⁡x<0\sin x<0 and falls where sin⁡x>0\sin x>0.

Critical points land at multiples of π\pi, where sin⁡x=0\sin x = 0. The maxima sit at x=0, ±2π, …x = 0,\ \pm 2\pi,\ \dots with height ee, and the minima at x=±π, ±3π, …x = \pm\pi,\ \pm 3\pi,\ \dots with height 1e\frac{1}{e}.

1e≤ecos⁡x≤e\frac{1}{e}\le e^{\cos x}\le e

The whole picture repeats with period 2π2\pi, a bounded wave rather than the runaway growth of exe^{x}.

Common mistakes with the derivative of e^(cos x)

  • Answering ecos⁡xe^{\cos x} by itself. The exponential returns unchanged only when the exponent is xx alone.
  • Answering e−sin⁡xe^{-\sin x}, differentiating the exponent in place instead of multiplying by it.
  • Dropping the minus sign and writing sin⁡x ecos⁡x\sin x\,e^{\cos x}, which reverses every increasing and decreasing interval.
  • Confusing ecos⁡xe^{\cos x} with the product excos⁡xe^{x}\cos x, which needs the product rule and gives ex(cos⁡x−sin⁡x)e^{x}(\cos x-\sin x).

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 ecos⁡xe^{\cos x}?

It is −sin⁡x ecos⁡x-\sin x\,e^{\cos x}, the exponential unchanged times the inner derivative −sin⁡x-\sin x.

Why is there a minus sign?

Because the chain rule multiplies by the derivative of the exponent, and ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x.

What are the largest and smallest values of ecos⁡xe^{\cos x}?

The maximum is ee, reached when cos⁡x=1\cos x = 1, and the minimum is 1e\frac{1}{e}, reached when cos⁡x=−1\cos x = -1. Both are critical points where sin⁡x=0\sin x = 0.