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[ecosx]=sinxecosx\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=cosxu = \cos x. Differentiating the outer leaves ecosxe^{\cos x} untouched, and the chain rule then multiplies by u=sinxu' = -\sin x.

ddxecosx=ecosxddx(cosx)=sinxecosx\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=cosxu = \cos x gives sinxecosxdx=ecosx+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

ecosxe^{\cos x} is positive for every xx, so the sign of ff' is decided entirely by sinx-\sin x. The function rises where sinx<0\sin x<0 and falls where sinx>0\sin x>0.

Critical points land at multiples of π\pi, where sinx=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}.

1eecosxe\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 ecosxe^{\cos x} by itself. The exponential returns unchanged only when the exponent is xx alone.
  • Answering esinxe^{-\sin x}, differentiating the exponent in place instead of multiplying by it.
  • Dropping the minus sign and writing sinxecosx\sin x\,e^{\cos x}, which reverses every increasing and decreasing interval.
  • Confusing ecosxe^{\cos x} with the product excosxe^{x}\cos x, which needs the product rule and gives ex(cosxsinx)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 ecosxe^{\cos x}?

It is sinxecosx-\sin x\,e^{\cos x}, the exponential unchanged times the inner derivative sinx-\sin x.

Why is there a minus sign?

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

What are the largest and smallest values of ecosxe^{\cos x}?

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