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[x2+3x−5]\frac{d}{dx}\left[x^{2} + 3x - 5\right]

f′(x)=2x+3\displaystyle f'(x) = 2x + 3
Show the work
  1. Sum rule

    x2+3x−5x^{2} + 3x - 5 is a sum, so each of its 2 terms that change is differentiated on its own and the results are added (a constant term has derivative 0).

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

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

    The derivative is 2x+32x + 3.

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

Points on the graph

  • y = x^2 + 3x - 5: zero (1.192582, 0)
  • y = x^2 + 3x - 5: minimum (-1.5, -7.25)

Worked examples