Second Derivative Calculator

Type a function of x to find its second derivative.

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

Try

Result

You enteredd2dx2[ex2]\frac{d^{2}}{dx^{2}}\left[e^{x^{2}}\right]

f′′(x)=2ex2+4x2 ex2\displaystyle f''(x) = 2e^{x^{2}} + 4x^{2}\,e^{x^{2}}

First derivative

f′(x)=2x ex2\displaystyle f'(x) = 2x\,e^{x^{2}}
Show the work
  1. Chain rule

    The inner function is g(x)=x2g(x) = x^{2} and the outer function is f(u)=euf(u) = e^{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[ex2]=ex2 2x\frac{d}{dx}\left[e^{x^{2}}\right] = e^{x^{2}}\,2x
  2. Derivative of the exponential function

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

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

    ddueu=eu\frac{d}{du}e^{u} = e^{u}
  3. 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
  4. Simplify the result

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

    ex2 2x=2x ex2e^{x^{2}}\,2x = 2x\,e^{x^{2}}
  5. Higher derivative

    Differentiate f′(x)f'(x) once more, with the same rules, to get f′′(x)f''(x).

    f′′(x)=2ex2+4x2 ex2f''(x) = 2e^{x^{2}} + 4x^{2}\,e^{x^{2}}
  6. Result

    The second derivative is 2ex2+4x2 ex22e^{x^{2}} + 4x^{2}\,e^{x^{2}}.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = e^(x^2)

Points on the graph

  • y = e^(x^2): minimum (0, 1)

Worked examples