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[(3x+1)5]\frac{d}{dx}\left[\left(3x + 1\right)^{5}\right]

f′(x)=15(3x+1)4\displaystyle f'(x) = 15\left(3x + 1\right)^{4}
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)=3x+1g(x) = 3x + 1 and outer function F(u)=u5F(u) = u^{5}.

    g(x)=3x+1F(u)=u5\begin{gathered} g(x) = 3x + 1 \\ F(u) = u^{5} \end{gathered}
  2. Chain rule

    The inner function is g(x)=3x+1g(x) = 3x + 1 and the outer function is f(u)=u5f(u) = u^{5}, whose derivative is 5 u45\,u^{4} by the power rule. Multiply the outer derivative, with gg put back in, by g′(x)=3g'(x) = 3.

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

    ddx[(3x+1)5]=15(3x+1)4\frac{d}{dx}\left[\left(3x + 1\right)^{5}\right] = 15\left(3x + 1\right)^{4}
  3. Sum rule

    3x+13x + 1 is a sum. Only one of its terms changes with xx; the constant term has derivative 0.

    Using (f+g)′=f′+g′\left(f + g\right)' = f' + g'

    ddx[3x+1]=ddx[3x]=3\begin{aligned} \frac{d}{dx}\left[3x + 1\right] &= \frac{d}{dx}\left[3x\right] \\ &= 3 \end{aligned}
  4. Constant multiple rule

    33 does not depend on xx, so it stays in front while xx is differentiated.

    Using (c u)′=c u′\left(c\,u\right)' = c\,u'

    ddx[3x]=3 ddx[x]=3\begin{aligned} \frac{d}{dx}\left[3x\right] &= 3\,\frac{d}{dx}\left[x\right] \\ &= 3 \end{aligned}
  5. Result

    The derivative is 15(3x+1)415\left(3x + 1\right)^{4}.

    ddx[(3x+1)5]=15(3x+1)4\frac{d}{dx}\left[\left(3x + 1\right)^{5}\right] = 15\left(3x + 1\right)^{4}
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = (3x + 1)^5

Points on the graph

  • y = (3x + 1)^5: zero (-0.333333, 0)

Worked examples