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)=x2f(x) = x^{2}

f(x+h)−f(x)h=2x+h\displaystyle \frac{f(x+h) - f(x)}{h} = 2x + h

As h → 0

lim⁡h→0=2x=f′(x)\displaystyle \lim_{h \to 0} = 2x = 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}

    (x+h)2−x2h\frac{\left(x + h\right)^{2} - x^{2}}{h}
  2. Expanding f(x + h)

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

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

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

    f(x+h)−f(x)=2x h+h2f(x+h) - f(x) = 2x\,h + h^{2}
  4. Dividing by h

    Every term left has a factor hh, so the division is exact.

    2x h+h2h=2x+h\frac{2x\,h + h^{2}}{h} = 2x + h
  5. Result

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

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

Points on the graph

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

Worked examples