Tutorials › Calculus I › Simplifying Quadratic Difference Quotients

Rates of Change and Tangents · Tutorial 324 of 1495

Simplifying Quadratic Difference Quotients

Learn to simplify a quadratic difference quotient carefully and connect its algebra to the average rate of change between two points.

Beginner 10 min read

What You'll Learn

  • Write the increment-form difference quotient for a quadratic function.
  • Expand the function value at the shifted input.
  • Factor and cancel the common increment when it is nonzero.
  • Interpret the simplified quotient as a secant slope.
  • Check a simplification by multiplying back by the increment.
  • Recognize why the original quotient is undefined when the increment is zero.

Why Simplify a Quadratic Difference Quotient?

A difference quotient records the change in a function's output divided by the change in its input. For a quadratic function, expanding this quotient reveals a useful pattern: after the common increment is factored out and cancelled, the result is a simpler expression in the starting input and the increment.

That simplified expression is still an average rate of change. Geometrically, it is the slope of the secant line through the two points on the graph corresponding to the starting input and the shifted input. The increment must be nonzero, because the two inputs must be distinct for this secant slope to be defined.

The Difference Quotient for a Quadratic

Let \(f(x)=ax^2+bx+c\), where \(a,b,c\) are real numbers and \(a\ne 0\). Choose a starting input \(x\) and an increment \(h\). The new input is \(x+h\), so the difference quotient is the output change divided by the input change:

$$ \frac{f(x+h)-f(x)}{(x+h)-x} = \frac{f(x+h)-f(x)}{h}, \qquad h\ne 0. $$

The condition \(h\ne 0\) is essential: if \(h=0\), the denominator is zero. To simplify the quotient, substitute the quadratic formula at both inputs, expand \((x+h)^2\), and collect terms.

Key result: For \(f(x)=ax^2+bx+c\), with \(a,b,c\in\mathbb{R}\) and \(a\ne0\), and for any real \(x\) and nonzero real \(h\), $$ \frac{f(x+h)-f(x)}{h}=2ax+ah+b. $$

The constant term \(c\) disappears because it is present in both function values and subtracts away. The quadratic term contributes both a part involving the starting input and a part involving the increment.

Deriving the Simplified Expression

Here is the full algebraic derivation. Each equality follows from substituting the formula for \(f\), expanding, and then factoring the numerator.

1
Substitute the two inputs.
At the shifted input, \(f(x+h)=a(x+h)^2+b(x+h)+c\), while \(f(x)=ax^2+bx+c\). Put both expressions into the numerator.
2
Expand and subtract.
Use \((x+h)^2=x^2+2xh+h^2\). The \(ax^2\), \(bx\), and \(c\) terms cancel when \(f(x)\) is subtracted.
3
Factor and cancel.
The remaining numerator has a factor \(h\). Since \(h\ne0\), divide both numerator and denominator by \(h\).
$$ \begin{aligned} \frac{f(x+h)-f(x)}{h} &= \frac{a(x+h)^2+b(x+h)+c-(ax^2+bx+c)}{h}\\ &= \frac{a(x^2+2xh+h^2)+bx+bh+c-ax^2-bx-c}{h}\\ &= \frac{2axh+ah^2+bh}{h}\\ &= \frac{h(2ax+ah+b)}{h}\\ &= 2ax+ah+b,\qquad h\ne0. \end{aligned} $$

This also justifies the result for every allowed \(x\) and \(h\): the expansion uses identities valid for all real inputs, and cancellation is valid precisely because the increment is nonzero. If \(a=0\), the same algebra works for a linear function and gives the constant quotient \(b\); the stated quadratic case assumes \(a\ne0\).

Worked Examples

Worked Example: Simplifying a Quadratic with Positive Coefficients

Let \(f(x)=2x^2-3x+1\). Find and simplify the difference quotient for a general starting input \(x\) and nonzero increment \(h\).

First substitute \(x+h\) and \(x\) into the function:

$$ \begin{aligned} \frac{f(x+h)-f(x)}{h} &= \frac{\bigl(2(x+h)^2-3(x+h)+1\bigr)-(2x^2-3x+1)}{h}\\ &= \frac{2(x^2+2xh+h^2)-3x-3h+1-2x^2+3x-1}{h}\\ &= \frac{4xh+2h^2-3h}{h}\\ &= \frac{h(4x+2h-3)}{h}\\ &=4x+2h-3,\qquad h\ne0. \end{aligned} $$

Check by multiplying the simplified expression by \(h\): \(h(4x+2h-3)=4xh+2h^2-3h\), which is exactly the expanded numerator. For example, at \(x=2\) and \(h=1\), the simplified quotient is \(8+2-3=7\). Directly, \(f(3)=10\) and \(f(2)=3\), so \((10-3)/1=7\), as required.

Worked Example: A Negative Quadratic Coefficient

Let \(f(x)=-x^2+4x-2\). Simplify the quotient and find its value when \(x=-1\) and \(h=3\).

Expand the numerator before substituting the particular values:

$$ \begin{aligned} \frac{f(x+h)-f(x)}{h} &= \frac{\bigl(-(x+h)^2+4(x+h)-2\bigr)-(-x^2+4x-2)}{h}\\ &= \frac{-(x^2+2xh+h^2)+4x+4h-2+x^2-4x+2}{h}\\ &= \frac{-2xh-h^2+4h}{h}\\ &= \frac{h(-2x-h+4)}{h}\\ &=-2x-h+4,\qquad h\ne0. \end{aligned} $$

Now use \(x=-1\) and \(h=3\):

$$ -2(-1)-3+4=2-3+4=3. $$

Check from the function values. The second input is \(x+h=-1+3=2\). Then \(f(2)=-4+8-2=2\), and \(f(-1)=-1-4-2=-7\). Thus the quotient is \((2-(-7))/3=9/3=3\). Multiplying back also checks the general simplification: \(h(-2x-h+4)=-2xh-h^2+4h\), the expanded numerator.

Worked Example: A Negative Increment

Let \(f(x)=3x^2+2\). Simplify the difference quotient, then evaluate it at \(x=1\) with \(h=-\tfrac12\).

The increment is negative, but it is nonzero, so the quotient is defined. Expand and factor:

$$ \begin{aligned} \frac{f(x+h)-f(x)}{h} &= \frac{\bigl(3(x+h)^2+2\bigr)-(3x^2+2)}{h}\\ &= \frac{3(x^2+2xh+h^2)+2-3x^2-2}{h}\\ &= \frac{6xh+3h^2}{h}\\ &= \frac{h(6x+3h)}{h}\\ &=6x+3h,\qquad h\ne0. \end{aligned} $$

Substitute \(x=1\) and \(h=-\tfrac12\):

$$ 6(1)+3\left(-\frac12\right)=6-\frac32=\frac92. $$

The second input is \(1-\tfrac12=\tfrac12\). Direct calculation gives \(f(1)=3+2=5\) and \(f(\tfrac12)=3(\tfrac14)+2=\tfrac{11}{4}\). Therefore, \((f(\tfrac12)-f(1))/(\tfrac12-1)=(\tfrac{11}{4}-5)/(-\tfrac12)=(-\tfrac94)/(-\tfrac12)=\tfrac92\). The signs agree: both the output change and input change are negative, so their quotient is positive.

Why the Quotient Is a Secant Slope

The two inputs are \(x\) and \(x+h\), and the corresponding points on the graph are \((x,f(x))\) and \((x+h,f(x+h))\). A secant line is the line through these two points. Its slope is the change in vertical coordinate divided by the change in horizontal coordinate:

$$ \frac{f(x+h)-f(x)}{(x+h)-x} = \frac{f(x+h)-f(x)}{h}. $$

Thus the algebraic difference quotient is exactly the slope of this secant line, not merely a formula that happens to resemble one. For a quadratic, the slope can also be read from \(2ax+ah+b\). The latter expression still depends on both the starting input \(x\) and the chosen increment \(h\).

If \(h\) is positive, the second input lies to the right of \(x\); if \(h\) is negative, it lies to the left. Either way, \(h\ne0\) makes the two inputs distinct. The sign of the slope reflects the signs of the output change and input change together, so a negative increment does not automatically mean the slope is negative.

A Common Cancellation Mistake

A frequent error is to cancel an \(h\) in one term while leaving the other terms unchanged, before factoring the entire numerator. For instance, the expression \(4xh+2h^2-3h\) does not simplify to \(4x+2h^2-3\): that calculation has cancelled \(h\) from some terms but not from \(2h^2\).

The correct approach is to factor \(h\) from every term first:

$$ 4xh+2h^2-3h=h(4x+2h-3). $$

Now the quotient is \(h(4x+2h-3)/h\), so for \(h\ne0\) the common factor cancels and the answer is \(4x+2h-3\). Multiplying this answer by \(h\) recovers the original numerator, which is a reliable check against cancellation errors.

Important condition: The original difference quotient is defined only for \(h\ne0\). The simplified expression may have a numerical value when \(h=0\), but that does not make the original fraction defined there: substituting \(h=0\) into it would give division by zero.

What This Simplification Tells Us

The simplification makes secant slopes for a quadratic easier to calculate and compare. Instead of evaluating the function at two inputs each time, one can use \(2ax+ah+b\), provided the expression still represents a quotient with \(h\ne0\). This is useful for exact calculations, checking numerical estimates, and understanding how a quadratic's average rate depends on the chosen interval.

The result is not yet a slope assigned to a single input independent of an interval: for a nonzero increment, it is the slope between two distinct inputs. Keeping that distinction clear prevents a common conceptual error. The algebra has simplified the secant slope; the increment has not been removed from the situation.

Check Your Understanding

For each question, keep track of the condition on the increment and distinguish the simplified expression from the original quotient.

  1. For \(f(x)=x^2+5x-1\), expand and simplify \(\frac{f(x+h)-f(x)}{h}\), stating the condition on \(h\).
  2. For \(f(x)=2x^2-x\), use the simplified quotient to find the secant slope from \(x=1\) to \(x=3\).
  3. Why does the constant term of a quadratic not appear in the simplified quotient?
  4. For \(f(x)=x^2\), evaluate the quotient at \(x=2\) and \(h=-1\), then check using the two function values.
  5. Explain why the simplified expression can be evaluated at \(h=0\) even though the original difference quotient cannot.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon