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[sin⁡(x2)]\frac{d}{dx}\left[\sin\left(x^{2}\right)\right]

f′(x)=2x cos⁡(x2)\displaystyle f'(x) = 2x\,\cos\left(x^{2}\right)
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)=x2g(x) = x^{2} and outer function F(u)=sin⁡uF(u) = \sin u.

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

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

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

    ddx[sin⁡(x2)]=cos⁡(x2) 2x\frac{d}{dx}\left[\sin\left(x^{2}\right)\right] = \cos\left(x^{2}\right)\,2x
  3. Derivative of sine

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

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

    ddusin⁡u=cos⁡u\frac{d}{du}\sin u = \cos u
  4. Power rule

    xx is raised to the constant power n=2n = 2, so the exponent comes down in front and drops by one.

    Using ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}

    ddx[x2]=2x\frac{d}{dx}\left[x^{2}\right] = 2x
  5. Simplify the result

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

    cos⁡(x2) 2x=2x cos⁡(x2)\cos\left(x^{2}\right)\,2x = 2x\,\cos\left(x^{2}\right)
  6. Result

    The derivative is 2x cos⁡(x2)2x\,\cos\left(x^{2}\right).

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

Points on the graph

  • y = sin(x^2): zero (-2.506628, 0)
  • y = sin(x^2): zero (-1.772454, 0)
  • y = sin(x^2): zero (0, 0)
  • y = sin(x^2): zero (1.772454, 0)
  • y = sin(x^2): zero (2.506628, 0)
  • y = sin(x^2): maximum (-2.802496, 1)
  • y = sin(x^2): maximum (-1.253314, 1)
  • y = sin(x^2): maximum (1.253314, 1)
  • y = sin(x^2): maximum (2.802496, 1)
  • y = sin(x^2): minimum (-2.170804, -1)
  • y = sin(x^2): minimum (0, 0)
  • y = sin(x^2): minimum (2.170804, -1)

Worked examples