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)=3x2−4x+1f(x) = 3x^{2} - 4x + 1

f(x+h)−f(x)h=6x+3h−4\displaystyle \frac{f(x+h) - f(x)}{h} = 6x + 3h - 4

As h → 0

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

    3(x+h)2−4(x+h)+1−(3x2−4x+1)h\frac{3\left(x + h\right)^{2} - 4\left(x + h\right) + 1 - \left(3x^{2} - 4x + 1\right)}{h}
  2. Expanding f(x + h)

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

    f(x+h)=3(x+h)2−4(x+h)+1=3x2+6x h+3h2−4x−4h+1\begin{aligned} f(x+h) &= 3\left(x + h\right)^{2} - 4\left(x + h\right) + 1 \\ &= 3x^{2} + 6x\,h + 3h^{2} - 4x - 4h + 1 \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)=6x h+3h2−4hf(x+h) - f(x) = 6x\,h + 3h^{2} - 4h
  4. Dividing by h

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

    6x h+3h2−4hh=6x+3h−4\frac{6x\,h + 3h^{2} - 4h}{h} = 6x + 3h - 4
  5. Result

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

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

Points on the graph

  • y = 3x^2 - 4x + 1: zero (0.333333, 0)
  • y = 3x^2 - 4x + 1: zero (1, 0)
  • y = 3x^2 - 4x + 1: minimum (0.666667, -0.333333)

Worked examples