Derivatives: the basics

Difference quotient (and why you cannot divide by 0)

Cancel hh in the difference quotient f(x+h)−f(x)h\dfrac{f(x+h)-f(x)}{h} first, then let hh go to 0.

f(x+h)−f(x)h(h≠0)\frac{f(x+h)-f(x)}{h}\quad(h\neq 0)

The difference quotient is the average rate of change from xx to x+hx+h.

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

Setting h=0h=0 directly gives 00\dfrac{0}{0}, which is undefined; that is the wall. So keep h≠0h\neq 0, expand the numerator, cancel hh to remove the wall, and then let hh approach 0.

For f(x)=x2f(x)=x^2 the numerator is 2xh+h22xh+h^2, cancelling gives 2x+h2x+h, and as h→0h\to 0 this becomes 2x2x. This procedure is exactly the definition of the derivative.

xyy = f(x)x+hx(x, f(x))
The difference quotient is the slope of the dashed line through (x, f(x)) and (x+h, f(x+h)). As h shrinks it approaches the tangent slope.Drag the dot

Examples

  1. 01f(x)=x2f(x)=x^2. Expand and simplify:f(3+h)−f(3)\displaystyle f(3+h)-f(3)AnswerHide
    Answer6h+h2\displaystyle 6h+h^2

    Steps

    1. (3+h)2−32\displaystyle (3+h)^2 - 3^2=9+6h+h2−9\displaystyle = 9 + 6h + h^2 - 9=6h+h2\displaystyle = 6h+h^2
  2. 02Simplify (h≠0):(x+h)2−x2h\displaystyle \frac{(x+h)^2-x^2}{h}AnswerHide
    Answer2x+h\displaystyle 2x+h
  3. 03Difference quotient at x=3x=3. Divide by hh:6h+h2h\displaystyle \frac{6h+h^2}{h}AnswerHide
    Answer6+h\displaystyle 6+h
  4. 04With f(x)=x2f(x)=x^2, cancel hh:f(5+h)−f(5)h\displaystyle \frac{f(5+h)-f(5)}{h}AnswerHide
    Answer10+h\displaystyle 10+h
  5. 05With f(x)=3f(x)=3, simplify (h≠0):f(x+h)−f(x)h\displaystyle \frac{f(x+h)-f(x)}{h}AnswerHide
    Answer0\displaystyle 0
  6. 06After cancelling, what value does this approach as h→0h\to 0?f(3+h)−f(3)h=6+h\displaystyle \frac{f(3+h)-f(3)}{h} = 6+hAnswerHide
    Answer6\displaystyle 6

FAQ

Why can't I substitute h=0 right away?
The denominator becomes 00, and 00\dfrac{0}{0} has no defined value. Cancel hh while h≠0h\neq 0 so it leaves the denominator; then the value as h→0h\to 0 can be read off.

Published 2026-09-04 · Updated 2026-10-14