← MathScape

Difference Quotient

MATH161
Reference: Stewart 1.1  •  Chapter: 1  •  Section: 1

Navigation: Wiki Home > Skills > Difference Quotient

Difference Quotient

The Gateway to Calculus

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 an incredibly short time interval. The difference quotient is exactly this idea: measure the average rate of change over a small interval, then see what happens as the interval shrinks.

This expression appears everywhere in calculus. When you take the limit as $h \to 0$, you get the derivative. Master the algebra now, and derivatives will feel natural.

Prerequisite Map

This skill
Difference Quotient

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

The whole point of the difference quotient in calculus is to 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.

The key insight: $\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 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$.

Previous Up Next
Domain and Range Ch1 §1 Skills Piecewise Functions

Last updated: 2026-01-22