← Back to learning objective

Chain rule with exponential and trigonometric functions

Let f(x)=ecos⁡(x)f(x) = e^{\cos(x)}. Find f′(x)f'(x).

Hint

Treat f(x)f(x) as a composition f(x)=euf(x) = e^{u} where u=cos⁡(x)u = \cos(x). Differentiate the outer exponential function first, leaving the inner function unchanged, then multiply by the derivative of the inner function.

Step-by-step solution

Identify the outer function as eue^{u} and the inner function as u=cos⁡(x)u = \cos(x). Recall that ddu[eu]=eu\frac{d}{du}[e^u] = e^u and ddx[cos⁡(x)]=−sin⁡(x)\frac{d}{dx}[\cos(x)] = -\sin(x).

By the chain rule, f′(x)=ddu[eu]⋅dudx=ecos⁡(x)⋅(−sin⁡(x))f'(x) = \frac{d}{du}[e^u] \cdot \frac{du}{dx} = e^{\cos(x)} \cdot (-\sin(x)). Simplifying gives f′(x)=−sin⁡(x)ecos⁡(x)f'(x) = -\sin(x) e^{\cos(x)}.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap