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)=1xf(x) = \frac{1}{x}

f′(x)=−1x2\displaystyle f'(x) = -\frac{1}{x^{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→01x+h−1xh\begin{aligned} f'(x) &= \lim_{h \to 0}\frac{f(x+h) - f(x)}{h} \\ &= \lim_{h \to 0}\frac{\frac{1}{x + h} - \frac{1}{x}}{h} \end{aligned}
  2. Combining the fractions

    Write the difference of the two fractions over a common denominator.

    1x+h−1x=x−(x+h)x(x+h)=−hx(x+h)\begin{aligned} \frac{1}{x+h} - \frac{1}{x} &= \frac{x - (x+h)}{x(x+h)} \\ &= \frac{-h}{x(x+h)} \end{aligned}
  3. Dividing by h

    The difference quotient divides by hh, so the hh in the numerator cancels.

    1h⋅−hx(x+h)=−1x(x+h)\frac{1}{h}\cdot\frac{-h}{x(x+h)} = \frac{-1}{x(x+h)}
  4. Letting h tend to 0

    Now hh can be set to 0 without dividing by zero.

    f′(x)=lim⁡h→0−1x(x+h)=−1x⋅x=−1x2\begin{aligned} f'(x) &= \lim_{h \to 0}\frac{-1}{x(x+h)} \\ &= \frac{-1}{x \cdot x} \\ &= -\frac{1}{x^{2}} \end{aligned}
  5. Result

    The derivative of 1x\frac{1}{x} is −1x2-\frac{1}{x^{2}}.

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

Worked examples