← MATH 161 MathScape 0 MATH161

Difference Quotient

4 min read

Jump to a section
Reference: Stewart §1.1

From average rate to the derivative

How fast is a car moving right now, not over the last hour, but at this exact instant? To answer, we’d want to measure distance over a very short time interval. The difference quotient is this idea: measure the average rate of change over a small interval, then see what happens as the interval shrinks.

This expression appears throughout calculus. When you take the limit as $h \to 0$, you get the derivative. Work the algebra correctly now, and the derivative definition will be a short step from here.

Prerequisite Map

Quick Reference

Property Value
Chapter 1 - Functions and Limits
Section 1.1
Difficulty Intermediate
Time ~25 minutes

Key Concepts

The Difference Quotient Formula

$$\boxed{\frac{f(a+h) - f(a)}{h}}$$

This measures the average rate of change of $f$ between $x = a$ and $x = a + h$.

Geometric Interpretation

        y
        |           •  (a+h, f(a+h))
        |          /|
        |         / |
        |        /  | rise = f(a+h) - f(a)
        |       /   |
        |      •----+
        |  (a, f(a))
        |           run = h
        +------------------→ x
              a    a+h

The difference quotient equals the slope of the secant line through the points $(a, f(a))$ and $(a+h, f(a+h))$.

The Standard Process

Step 1: Compute $f(a+h)$ by replacing every $x$ with $(a+h)$.

Step 2: Compute $f(a+h) - f(a)$.

Step 3: Divide by $h$.

Step 4: Simplify by canceling the factor of $h$.

Critical Check: After simplification, the expression should NOT have $h$ in a denominator (assuming $h \neq 0$).

Why Canceling $h$ Matters

In calculus you later let $h \to 0$. If $h$ remains in a denominator, that would cause division by zero. The algebra must be done correctly to get a form where $h = 0$ can be substituted.

Practice Problems

Level 1 Linear Function

For $f(x) = 3x + 2$, compute $\frac{f(a+h) - f(a)}{h}$ and simplify.

Thought Process

For a linear function, the difference quotient should give the slope. Replace $x$ with $a+h$, subtract $f(a)$, divide by $h$, and simplify.

Show Answer

Step 1: $f(a+h) = 3(a+h) + 2 = 3a + 3h + 2$

Step 2: $f(a+h) - f(a) = (3a + 3h + 2) - (3a + 2) = 3h$

Step 3: $\frac{f(a+h) - f(a)}{h} = \frac{3h}{h} = 3$

Answer: $3$

This makes sense: the difference quotient of a linear function is its slope.

Level 2 Quadratic Function

For $f(x) = x^2 - 4x$, compute $\frac{f(a+h) - f(a)}{h}$ and simplify.

Thought Process

Expand $(a+h)^2$ carefully. After subtracting $f(a)$, every term without $h$ should cancel, leaving $h$ as a common factor to cancel with the denominator.

Show Answer

Step 1: $$f(a+h) = (a+h)^2 - 4(a+h) = a^2 + 2ah + h^2 - 4a - 4h$$

Step 2: $$f(a+h) - f(a) = (a^2 + 2ah + h^2 - 4a - 4h) - (a^2 - 4a)$$ $$= a^2 + 2ah + h^2 - 4a - 4h - a^2 + 4a$$ $$= 2ah + h^2 - 4h$$

Step 3: $$\frac{f(a+h) - f(a)}{h} = \frac{2ah + h^2 - 4h}{h} = \frac{h(2a + h - 4)}{h}$$

Step 4: Cancel $h$: $$= 2a + h - 4$$

Answer: $2a + h - 4$

(Note: When $h \to 0$, this becomes $2a - 4$, which is the derivative!)

Level 3 Polynomial with Higher Powers

For $f(x) = 2x^2 - 5x + 1$, evaluate the difference quotient $\frac{f(x+h) - f(x)}{h}$ and simplify completely.

Thought Process

This is the same process but uses $x$ instead of $a$ as the base point. Be extra careful with signs when expanding and subtracting. Group like terms before factoring out $h$.

Show Answer

Step 1: $$f(x+h) = 2(x+h)^2 - 5(x+h) + 1$$ $$= 2(x^2 + 2xh + h^2) - 5x - 5h + 1$$ $$= 2x^2 + 4xh + 2h^2 - 5x - 5h + 1$$

Step 2: $$f(x+h) - f(x) = (2x^2 + 4xh + 2h^2 - 5x - 5h + 1) - (2x^2 - 5x + 1)$$ $$= 2x^2 + 4xh + 2h^2 - 5x - 5h + 1 - 2x^2 + 5x - 1$$ $$= 4xh + 2h^2 - 5h$$

Step 3: $$\frac{f(x+h) - f(x)}{h} = \frac{4xh + 2h^2 - 5h}{h} = \frac{h(4x + 2h - 5)}{h}$$

Step 4: Cancel $h$: $$= 4x + 2h - 5$$

Answer: $4x + 2h - 5$

Level 4 Rational Function (Requires Common Denominator)

For $f(x) = \frac{1}{x}$, compute $\frac{f(a+h) - f(a)}{h}$ and simplify.

Thought Process

When $f$ involves fractions, the subtraction $f(a+h) - f(a)$ requires finding a common denominator. After combining into a single fraction, factor and simplify.

Here $\frac{1}{a+h} - \frac{1}{a}$ needs common denominator $a(a+h)$.

Show Answer

Step 1: $$f(a+h) = \frac{1}{a+h}, \quad f(a) = \frac{1}{a}$$

Step 2: Find common denominator: $$f(a+h) - f(a) = \frac{1}{a+h} - \frac{1}{a} = \frac{a - (a+h)}{a(a+h)} = \frac{-h}{a(a+h)}$$

Step 3: $$\frac{f(a+h) - f(a)}{h} = \frac{-h}{a(a+h)} \cdot \frac{1}{h} = \frac{-h}{h \cdot a(a+h)}$$

Step 4: Cancel $h$: $$= \frac{-1}{a(a+h)}$$

Answer: $\frac{-1}{a(a+h)}$

(As $h \to 0$, this becomes $\frac{-1}{a^2}$, the derivative of $\frac{1}{x}$.)

Level 5 Square Root Function (Requires Rationalization)

For $f(x) = \sqrt{x}$, compute $\frac{f(a+h) - f(a)}{h}$ and simplify. (Assume $a > 0$ and $h > -a$.)

Thought Process

When you have $\sqrt{a+h} - \sqrt{a}$, you can’t directly cancel $h$. The trick is to multiply by the conjugate:

$$\frac{\sqrt{a+h} - \sqrt{a}}{h} \cdot \frac{\sqrt{a+h} + \sqrt{a}}{\sqrt{a+h} + \sqrt{a}}$$

This eliminates the square roots in the numerator using the difference of squares formula.

Show Answer

Step 1: $$f(a+h) - f(a) = \sqrt{a+h} - \sqrt{a}$$

Step 2: Multiply by conjugate: $$\frac{\sqrt{a+h} - \sqrt{a}}{h} = \frac{\sqrt{a+h} - \sqrt{a}}{h} \cdot \frac{\sqrt{a+h} + \sqrt{a}}{\sqrt{a+h} + \sqrt{a}}$$

Step 3: Apply difference of squares to numerator: $$= \frac{(\sqrt{a+h})^2 - (\sqrt{a})^2}{h(\sqrt{a+h} + \sqrt{a})} = \frac{(a+h) - a}{h(\sqrt{a+h} + \sqrt{a})}$$ $$= \frac{h}{h(\sqrt{a+h} + \sqrt{a})}$$

Step 4: Cancel $h$: $$= \frac{1}{\sqrt{a+h} + \sqrt{a}}$$

Answer: $\frac{1}{\sqrt{a+h} + \sqrt{a}}$

(As $h \to 0$, this becomes $\frac{1}{2\sqrt{a}}$, the derivative of $\sqrt{x}$.)

Common misconception

$f(a + h) = f(a) + f(h)$.

This is the action-view-of-function error. When students see $f$ as a quantity that can be factored out or distributed, they treat it like multiplication: just as $3(a+h) = 3a + 3h$, they write $f(a+h) = f(a) + f(h)$. But $f$ is a process, not a number. For $f(x) = x^2$: $f(a+h) = (a+h)^2 = a^2 + 2ah + h^2$, while $f(a) + f(h) = a^2 + h^2$. These differ by the cross term $2ah$, which is exactly what vanishes only when $h = 0$. Every algebra step in the difference quotient depends on correctly substituting the entire input $(a+h)$ into the function rule, not splitting it.

Common misconception

the difference quotient is the slope at the point $x = a$.

This is the rate-as-fixed-number error. The expression $\dfrac{f(a+h) - f(a)}{h}$ is the average rate of change over the interval from $a$ to $a+h$. It is the slope of a secant line through two points, not the slope of the curve at the single point $a$. For $f(x) = x^2$ at $a = 1$ with $h = 1$: the difference quotient is $\frac{4 - 1}{1} = 3$, which is the slope of the secant from $(1, 1)$ to $(2, 4)$. The actual slope at $(1,1)$ is $2$, found only after taking the limit as $h \to 0$. Stopping before the limit gives an average, not an instantaneous rate.

Common Errors to Avoid

Error What Goes Wrong Correct Approach
$f(a+h) = f(a) + f(h)$ Functions aren’t additive! Substitute $(a+h)$ for every $x$
$(a+h)^2 = a^2 + h^2$ Missing the middle term $(a+h)^2 = a^2 + 2ah + h^2$
Not factoring out $h$ Can’t simplify or cancel Look for $h$ as a common factor
Distributing negatives Sign errors in subtraction Use parentheses: $-(3a + 2) = -3a - 2$

Mastery Checklist

Mental Model

The Zoom-In Analogy:

Imagine zooming in on a curved graph. From far away, you see the curve. As you zoom in on a small segment between $x = a$ and $x = a + h$, the curve looks more and more like a straight line. The difference quotient gives you the slope of that “almost-straight” segment.

The closer you zoom (smaller $h$), the better this slope approximates the true steepness of the curve at $x = a$.


Last updated: 2026-01-22