Understanding the Difference Quotient Quadratic
Difference quotient examples for linear, quadratic and cubic functions, with (x+h)^2 and (x+h)^3 expanded, the pattern and a derivative check.
Difference Quotient for Polynomial Functions
The difference quotient for a quadratic function f(x) = ax² + bx + c simplifies to 2ax + ah + b. That single result, constant in h for the linear term, linear in h for the quadratic term, is what makes the difference quotient of polynomials predictable and mechanical. For a cubic, you need the binomial expansion of (x+h)³: x³ + 3x²h + 3xh² + h³. The cubic's difference quotient produces three terms that carry h, and after dividing by h you get a quadratic in x plus a polynomial in h that vanishes when h reaches zero. Both patterns are explained with the necessary expansions, three fully worked examples, and a practice set with answers.
Linear Functions: Why the Answer Is the Slope
For f(x) = mx + b, the difference quotient is always m, regardless of x or h. Compute f(x+h) = m(x+h) + b = mx + mh + b. Subtract f(x): (mx + mh + b) - (mx + b) = mh. Divide by h: m. That constant result is the slope of the line. The secant line between any two points on a straight line is the line itself, so the difference quotient is the slope from the start. No limit needed.
If you get any other result, check your substitution: f(x+h) must replace every x with (x+h), not just add h to the expression. The common error is writing f(x+h) = mx + b + h instead of m(x+h) + b.
Difference Quotient of a Quadratic Function: The General Result
Let f(x) = ax² + bx + c. Then f(x+h) = a(x+h)² + b(x+h) + c. Expand (x+h)² = x² + 2xh + h². So f(x+h) = a(x² + 2xh + h²) + bx + bh + c = ax² + 2axh + ah² + bx + bh + c.
Subtract f(x): (ax² + 2axh + ah² + bx + bh + c) - (ax² + bx + c) = 2axh + ah² + bh = h(2ax + ah + b).
Divide by h: 2ax + ah + b. That is the difference quotient for any quadratic. Notice the term ah still contains h; it vanishes when you take the limit as h→0, leaving the derivative f'(x) = 2ax + b. This matches the power rule: derivative of ax² is 2ax, derivative of bx is b, constant c vanishes.
Worked Example 1: f(x) = 3x² - 5x + 2
Here a=3, b=-5, c=2. Plug into the general form: 2(3)x + 3h + (-5) = 6x + 3h - 5. As a check, compute directly: f(x+h) = 3(x+h)² - 5(x+h) + 2 = 3x² + 6xh + 3h² -5x -5h +2. Subtract f(x): 6xh + 3h² -5h = h(6x + 3h -5). Divide by h: 6x + 3h -5. Same result.
Worked Example 2: f(x) = -2x² + 4x - 1
a=-2, b=4, c=-1. General form gives 2(-2)x + (-2)h + 4 = -4x - 2h + 4. Direct: f(x+h) = -2(x² + 2xh + h²) + 4(x+h) -1 = -2x² -4xh -2h² + 4x +4h -1. Subtract: -4xh -2h² +4h = h(-4x -2h +4). Divide: -4x -2h +4. Confirmed.
Difference Quotient Cubic: Expanding (x+h)³
The cubic case requires the binomial expansion of (x+h)³. That expansion is: x³ + 3x²h + 3xh² + h³. Memorise it or derive it from Pascal's triangle (row 4: 1, 3, 3, 1). The difference (x+h)³ - x³ = 3x²h + 3xh² + h³ = h(3x² + 3xh + h²). Dividing by h gives 3x² + 3xh + h².
For a general cubic f(x) = ax³ + bx² + cx + d, the difference quotient works out to 3ax² + 3axh + ah² + 2bx + bh + c. The pattern: each term's derivative appears, plus extra terms carrying h that come from the binomial coefficients of the original degree.
Binomial Expansion Box
For reference: (x+h)² = x² + 2xh + h². (x+h)³ = x³ + 3x²h + 3xh² + h³. (x+h)⁴ = x⁴ + 4x³h + 6x²h² + 4xh³ + h⁴. The coefficients come from Pascal's triangle: row 2: 1,2,1; row 3: 1,3,3,1; row 4: 1,4,6,4,1. For any positive integer n, (x+h)ⁿ expands using the binomial theorem with coefficients C(n,k).
Worked Example 3: f(x) = 2x³ - x² + 3x - 4
a=2, b=-1, c=3, d=-4. Plug into the general cubic form: 3(2)x² + 3(2)xh + 2h² + 2(-1)x + (-1)h + 3 = 6x² + 6xh + 2h² - 2x - h + 3. Direct: f(x+h) = 2(x³ + 3x²h + 3xh² + h³) - (x² + 2xh + h²) + 3(x+h) -4 = 2x³ + 6x²h + 6xh² + 2h³ - x² - 2xh - h² + 3x + 3h -4. Subtract f(x) = 2x³ - x² + 3x -4: numerator = 6x²h + 6xh² + 2h³ - 2xh - h² + 3h. Factor h: h(6x² + 6xh + 2h² - 2x - h + 3). Divide by h: 6x² + 6xh + 2h² - 2x - h + 3. Same result.
Checking Your Answer by Setting h = 0
After you simplify the difference quotient, set h = 0 in the simplified expression. The result must equal the derivative f'(x) from the power rule. This is a quick verification that your algebra is correct, not a derivation, but a check.
For the quadratic 3x² - 5x + 2 above, the simplified quotient was 6x + 3h - 5. Setting h=0 gives 6x - 5. The derivative of 3x² - 5x + 2 is 6x - 5. Match.
For the cubic 2x³ - x² + 3x - 4, the quotient was 6x² + 6xh + 2h² - 2x - h + 3. Setting h=0 gives 6x² - 2x + 3. The derivative of 2x³ is 6x², of -x² is -2x, of 3x is 3, of -4 is 0. Sum: 6x² - 2x + 3. Match.
If the h=0 check fails, you made an algebraic error: likely an expansion mistake with (x+h)ⁿ or a sign error when subtracting f(x). Go back and expand (x+h)ⁿ term by term.
Practice Problems
Work these out entirely before checking the answers. For each, write the difference quotient in simplified form, then verify by setting h=0.
- f(x) = 5x + 2
- f(x) = x² + 6x
- f(x) = -3x² + 2x - 7
- f(x) = x³ - 4x
- f(x) = 4x³ + 2x² - x + 5
Answers:
- 5
- 2x + h + 6
- -6x - 3h + 2
- 3x² + 3xh + h² - 4
- 12x² + 12xh + 4h² + 4x + 2h - 1
If your answer for #5 does not match, check the cubic expansion first: (x+h)³ = x³ + 3x²h + 3xh² + h³, then multiply by 4. The quadratic term 2x² contributes 4x + 2h (from 2(x+h)² = 2x² + 4xh + 2h²). The -x term contributes -1 (since - (x+h) + x = -h, and -h/h = -1). The constant 5 vanishes in subtraction.
Common Questions
Why does h have to cancel from the numerator?
If h does not factor out, the expression cannot be divided by h without leaving h in the denominator, which makes the limit undefined as h→0. The function is not differentiable at that x.
What if my quadratic has no linear term, like f(x) = x²?
Then b=0. The general result 2ax + ah + b becomes 2x + h. Set h=0 to get derivative 2x. The missing b just removes the constant term.
How do I expand (x+h)³ without memorising?
Use Pascal's triangle: row 3 gives coefficients 1, 3, 3, 1. Write x³, then decrease x exponent by 1 and increase h exponent each term: x³ + 3x²h + 3xh² + h³.
Can I skip the difference quotient and use the power rule?
Yes, if you already know derivatives. The difference quotient is the algebraic foundation, not the fastest method. Use it when a problem explicitly asks for it.