Derivative From First Principles Calculator

Type a polynomial, 1/x or sqrt(x) to differentiate from first principles.

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

Try

Result

You enteredf(x)=x3f(x) = x^{3}

f′(x)=3x2\displaystyle f'(x) = 3x^{2}
Show the work
  1. Definition of the derivative

    The derivative is the slope of the tangent: the limit of the slope of a chord of width hh as hh shrinks to 0.

    f′(x)=lim⁡h→0f(x+h)−f(x)h=lim⁡h→0(x+h)3−x3h\begin{aligned} f'(x) &= \lim_{h \to 0}\frac{f(x+h) - f(x)}{h} \\ &= \lim_{h \to 0}\frac{\left(x + h\right)^{3} - x^{3}}{h} \end{aligned}
  2. Expanding f(x + h)

    Replace xx by x+hx + h and multiply out.

    f(x+h)=(x+h)3=x3+3x2 h+3x h2+h3\begin{aligned} f(x+h) &= \left(x + h\right)^{3} \\ &= x^{3} + 3x^{2}\,h + 3x\,h^{2} + h^{3} \end{aligned}
  3. Subtracting f(x)

    Take away f(x)f(x); every term that has no hh in it cancels.

    f(x+h)−f(x)=3x2 h+3x h2+h3f(x+h) - f(x) = 3x^{2}\,h + 3x\,h^{2} + h^{3}
  4. Dividing by h

    Every term that is left has a factor hh, so dividing by hh is exact.

    f(x+h)−f(x)h=3x2 h+3x h2+h3h=3x2+3x h+h2\begin{aligned} \frac{f(x+h) - f(x)}{h} &= \frac{3x^{2}\,h + 3x\,h^{2} + h^{3}}{h} \\ &= 3x^{2} + 3x\,h + h^{2} \end{aligned}
  5. Letting h tend to 0

    Every term that still contains hh vanishes in the limit.

    f′(x)=lim⁡h→0(3x2+3x h+h2)=3x2\begin{aligned} f'(x) &= \lim_{h \to 0}\left(3x^{2} + 3x\,h + h^{2}\right) \\ &= 3x^{2} \end{aligned}
  6. Result

    The derivative of x3x^{3} is 3x23x^{2}.

    f′(x)=3x2f'(x) = 3x^{2}
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = x^3

Points on the graph

  • y = x^3: zero (0, 0)

Worked examples