Difference Quotient Calculator

Type a function of x to simplify its difference quotient.

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+h)−f(x)h=−1x (x+h)\displaystyle \frac{f(x+h) - f(x)}{h} = -\frac{1}{x\,\left(x + h\right)}

As h → 0

lim⁡h→0=−1x2=f′(x)\displaystyle \lim_{h \to 0} = -\frac{1}{x^{2}} = f'(x)
Show the work
  1. Difference quotient

    The difference quotient is the slope of the chord from xx to x+hx + h: the rise f(x+h)−f(x)f(x+h) - f(x) over the run hh.

    Using f(x+h)−f(x)h\frac{f(x+h) - f(x)}{h}

    1x+h−1xh\frac{\frac{1}{x + h} - \frac{1}{x}}{h}
  2. One fraction

    Write f(x+h)−f(x)f(x+h) - f(x) over the common denominator Q(x+h) Q(x)Q(x+h)\,Q(x).

    f(x+h)−f(x)=x−(x+h)(x+h)xf(x+h) - f(x) = \frac{x - \left(x + h\right)}{\left(x + h\right)x}
  3. Expanding the numerator

    Multiply out the top: the terms without hh cancel.

    x−(x+h)=−hx - \left(x + h\right) = -h
  4. Dividing by h

    Every term on top has a factor hh, so dividing by hh is exact.

    f(x+h)−f(x)h=−1x (x+h)\frac{f(x+h) - f(x)}{h} = -\frac{1}{x\,\left(x + h\right)}
  5. Result

    The simplified difference quotient, valid for every h ≠ 0.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = 1/x

Worked examples