Derivatives: the basics

Difference quotient (and why you cannot divide by 0)

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

f(x+h)f(x)h(h0)\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\frac{0}{0}, which is undefined; that is the wall. So keep h0h\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 h0h\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. 01Simplify (h≠0):(x+h)2x2h\displaystyle \frac{(x+h)^2-x^2}{h}AnswerHide
    Answer2x+h\displaystyle 2x+h
  2. 02Difference quotient at x=3x=3. Divide by hh:6h+h2h\displaystyle \frac{6h+h^2}{h}AnswerHide
    Answer6+h\displaystyle 6+h
  3. 03With 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
  4. 04With 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
  5. 05f(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
  6. 06With f(x)=x2f(x)=x^2, cancel hh:f(3+h)f(3)h\displaystyle \frac{f(3+h)-f(3)}{h}AnswerHide
    Answer6+h\displaystyle 6+h

FAQ

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

Practice this pattern in the app, 5 problems a day.

Download on the App Store
Before this
coming soonShrinking the interval (experiments with h→0)
This topic
Difference quotient (and why you cannot divide by 0)

Published 2026-09-04 · Updated 2026-09-05