Chain Rule Calculator

Type a function of a function, such as sin(x^2) or (3x + 1)^5.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Try

Result

You enteredddx[esin⁡x]\frac{d}{dx}\left[e^{\sin x}\right]

f′(x)=cos⁡x esin⁡x\displaystyle f'(x) = \cos x\,e^{\sin x}
Show the work
  1. The inner and outer functions

    Write f(x)=F(g(x))f(x) = F(g(x)) with inner function g(x)=sin⁡xg(x) = \sin x and outer function F(u)=euF(u) = e^{u}.

    g(x)=sin⁡xF(u)=eu\begin{gathered} g(x) = \sin x \\ F(u) = e^{u} \end{gathered}
  2. Chain rule

    The inner function is g(x)=sin⁡xg(x) = \sin x and the outer function is f(u)=euf(u) = e^{u}. Differentiate the outer function, put gg back in, and multiply by g′(x)=cos⁡xg'(x) = \cos x.

    Using ddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx}f(g(x)) = f'(g(x))\,g'(x)

    ddx[esin⁡x]=esin⁡x cos⁡x\frac{d}{dx}\left[e^{\sin x}\right] = e^{\sin x}\,\cos x
  3. Derivative of the exponential function

    The outer function is a standard one: its derivative with respect to uu is eue^{u}, and here u=sin⁡xu = \sin x.

    Using ddxex=ex\frac{d}{dx}e^{x} = e^{x}

    ddueu=eu\frac{d}{du}e^{u} = e^{u}
  4. Derivative of sine

    This is a standard derivative: sin⁡x\sin x differentiates to cos⁡x\cos x.

    Using ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x

    ddx[sin⁡x]=cos⁡x\frac{d}{dx}\left[\sin x\right] = \cos x
  5. Simplify the result

    Collect like terms and tidy the expression, without changing its value.

    esin⁡x cos⁡x=cos⁡x esin⁡xe^{\sin x}\,\cos x = \cos x\,e^{\sin x}
  6. Result

    The derivative is cos⁡x esin⁡x\cos x\,e^{\sin x}.

    ddx[esin⁡x]=cos⁡x esin⁡x\frac{d}{dx}\left[e^{\sin x}\right] = \cos x\,e^{\sin x}
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = e^(sin(x))

Points on the graph

  • y = e^(sin(x)): maximum (1.570796, 2.718282)
  • y = e^(sin(x)): minimum (-1.570796, 0.367879)

Worked examples