How to Find the Difference Quotient Where for the Function Below

The difference quotient for a function f(x) is [f(x + h) − f(x)] / h. To find the difference quotient for the function below, substitute (x + h) everywhere x appears, subtract the original function, then divide the whole result by h. This expression measures the average rate of change of f over the interval from x to x + h, and simplifying it is the algebraic step that leads directly to the derivative. For f(x) = x², the difference quotient simplifies to 2x + h long before h ever approaches zero.
Understand the Difference Quotient
The difference quotient is defined as [f(x + h) − f(x)] / h, where h ≠ 0.
Each piece matters. f(x + h) is the function’s value at a point h units to the right of x. f(x) is the value at x itself. Their difference is the vertical change, and dividing by h — the horizontal change — produces a slope. That slope is the average rate of change over that interval, as explained in the slope and rate-of-change material at Khan Academy.
It is called a quotient because it is a fraction, and a difference quotient because the numerator is a difference. It is also the foundation of the limit definition of the derivative: letting h shrink toward zero turns the average rate of change into the instantaneous rate at a single point. Working through the algebra carefully — the substitution and simplification — is exactly what Paul’s Online Math Notes emphasizes as the core skill here.
One condition is non-negotiable: h cannot equal zero, since division by zero is undefined. The goal of simplification is usually to cancel the h in the denominator so the expression becomes well-behaved as h approaches zero.
The Step-by-Step Process
The method is the same for nearly every function, though the algebra gets heavier as the function does.
Step 1: Substitute (x + h). Replace every x in f(x) with the quantity (x + h). Use parentheses around the whole quantity so signs and exponents apply correctly.
Step 2: Subtract f(x). Write f(x + h) − f(x) and distribute the subtraction across every term of f(x). Forgetting to flip signs here is the single most common source of wrong answers.
Step 3: Expand and simplify the numerator. Multiply out powers and products, then combine like terms. Terms that appear in both f(x + h) and f(x) usually cancel, leaving something that contains a factor of h.
Step 4: Factor h and divide. Factor h out of the numerator, then cancel it against the h in the denominator. What remains is the simplified difference quotient.
Here is the whole process for f(x) = x²:
- Substitute: (x + h)²
- Subtract f(x): (x + h)² − x²
- Expand and simplify: x² + 2xh + h² − x² = 2xh + h²
- Factor and divide by h: h(2x + h) / h = 2x + h
Notice that the h canceled cleanly. That cancellation is the whole point — it is what makes the next step, taking a limit, possible.
One Worked Example
Take f(x) = x² − 4x.
f(x + h) = (x + h)² − 4(x + h) = x² + 2xh + h² − 4x − 4h.
Subtract f(x): (x² + 2xh + h² − 4x − 4h) − (x² − 4x) = 2xh + h² − 4h.
Factor: h(2x + h − 4). Divide by h: 2x + h − 4.
That is the simplified difference quotient. The algebra relies on two moves: expanding (x + h)² correctly as x² + 2xh + h², and distributing the minus sign across every term of f(x).
The same method handles other function types with a small adjustment. For a rational function like f(x) = 1/x, combine 1/(x + h) − 1/x over the common denominator x(x + h) before dividing by h. For a radical like f(x) = √x, multiply numerator and denominator by the conjugate √(x + h) + √x. In both cases the h cancels once the preliminary step is done.
Common Mistakes
Errors here cluster into a few predictable categories.
- Sign slips when subtracting. Always distribute the minus sign across every term of f(x). Writing the subtraction in parentheses first prevents this.
- Incomplete cancellation. Seeing an h and canceling it term-by-term instead of factoring it out first. You can only cancel factors, never individual terms.
- Forgetting parentheses on (x + h). It is (x + h)² = x² + 2xh + h², not x² + h².
- Dropping the h in the denominator too early. Keep the full fraction until it genuinely simplifies.
- Rational and radical shortcuts. For fractions, combine over a common denominator first. For roots, multiply by the conjugate. Both are reliable, standard techniques.
To verify your answer, plug in simple numbers. For f(x) = x², let x = 3 and h = 1. Directly, the difference quotient is [f(4) − f(3)] / 1 = (16 − 9) / 1 = 7. The simplified formula 2x + h gives 2(3) + 1 = 7. Matching values confirm the algebra. If they disagree, recheck the subtraction step first, since that is where most errors begin.
Key Takeaways
- The difference quotient is [f(x + h) − f(x)] / h, with h ≠ 0, and it gives the average rate of change of f over that interval.
- Always substitute (x + h) with parentheses, subtract f(x) while flipping every sign, then expand and combine like terms.
- Factor h out of the numerator before canceling it against the denominator — only factors can be canceled, not individual terms.
- Rational functions need a common denominator; radical functions need the conjugate; polynomials just need careful expansion.
- Verify by testing a numeric example: plug in simple values of x and h and compare the direct calculation to your simplified formula.