Derivative Calculator

Type a function of x to find its derivative, step by step.

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

Leave empty for the first derivative; 2 for the second, up to 10.

Try

Result

You enteredddx[ln⁡(x2+1)]\frac{d}{dx}\left[\ln\left(x^{2} + 1\right)\right]

f′(x)=2xx2+1\displaystyle f'(x) = \frac{2x}{x^{2} + 1}
Show the work
  1. Chain rule

    The inner function is g(x)=x2+1g(x) = x^{2} + 1 and the outer function is f(u)=ln⁡uf(u) = \ln 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[ln⁡(x2+1)]=2xx2+1\frac{d}{dx}\left[\ln\left(x^{2} + 1\right)\right] = \frac{2x}{x^{2} + 1}
  2. Derivative of the natural logarithm

    The outer function is a standard one: its derivative with respect to uu is 1u\frac{1}{u}, and here u=x2+1u = x^{2} + 1.

    Using ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x}

    dduln⁡u=1u\frac{d}{du}\ln u = \frac{1}{u}
  3. Sum rule

    x2+1x^{2} + 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[x2+1]=ddx[x2]=2x\begin{aligned} \frac{d}{dx}\left[x^{2} + 1\right] &= \frac{d}{dx}\left[x^{2}\right] \\ &= 2x \end{aligned}
  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. Result

    The derivative is 2xx2+1\frac{2x}{x^{2} + 1}.

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

Points on the graph

  • y = ln(x^2 + 1): zero (0, 0)
  • y = ln(x^2 + 1): minimum (0, 0)

Worked examples