Tutorials › Calculus I › Simplifying Difference Quotients by Factoring

Algebraic Function Structures · Tutorial 75 of 1495

Simplifying Difference Quotients by Factoring

Learn how to expand and factor difference quotients, preserve their domain restrictions, and check the simplified expression without evaluating a limit or derivative.

Beginner 9 min read

What You'll Learn

  • Define a difference quotient using an increment or a fixed input value.
  • Expand a shifted polynomial and collect like terms in its numerator.
  • Factor out the increment and cancel it under the correct condition.
  • Simplify a quotient at a fixed input by factoring the numerator.
  • Track excluded inputs before and after cancellation.
  • Check a simplification by reconstructing the original numerator.

What a Difference Quotient Measures

A function assigns an output to each input in its domain. A difference quotient compares the change in output with a nonzero change in input. It is an algebraic expression: simplifying it means rewriting that expression in an equivalent form wherever the original expression is defined.

There are two common forms. One uses a variable input \(x\) and an increment \(h\); the other compares a variable input \(x\) with a fixed input \(a\). In either form, the denominator must be nonzero. In this tutorial, the goal is to simplify the expressions by expanding or factoring—not to evaluate a limit or a derivative.

Definition: If \(f:A\to\mathbb{R}\), the difference quotient with increment \(h\) at \(x\) is \(\frac{f(x+h)-f(x)}{h}\), provided \(h\ne 0\) and both \(x\) and \(x+h\) belong to \(A\). The difference quotient from a fixed input \(a\) to \(x\) is \(\frac{f(x)-f(a)}{x-a}\), provided \(x\ne a\) and both inputs belong to \(A\).

The numerator records the difference between two function values. The denominator records the corresponding difference between the inputs. For algebraic simplification, the key task is often to show that the numerator contains the denominator as a factor. Cancellation is valid only where that factor is nonzero, so the conditions in the definition remain important.

Expanding and Factoring with an Increment

For a polynomial, substituting \(x+h\) for \(x\) typically creates terms involving \(h\). Subtracting \(f(x)\) cancels some terms. The remaining numerator often has a factor of \(h\), which can then be cancelled against the denominator, because the difference quotient already requires \(h\ne0\).

Worked Example: A Quadratic with a Linear Term

Let \(f(x)=x^2+3x-2\). Simplify \(\frac{f(x+h)-f(x)}{h}\), where \(h\ne0\).

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

$$ \begin{aligned} f(x+h) &=(x+h)^2+3(x+h)-2\\ &=x^2+2xh+h^2+3x+3h-2. \end{aligned} $$

Now subtract \(f(x)=x^2+3x-2\). Keep the parentheses so each term in \(f(x)\) is subtracted:

$$ \begin{aligned} f(x+h)-f(x) &=x^2+2xh+h^2+3x+3h-2-(x^2+3x-2)\\ &=x^2+2xh+h^2+3x+3h-2-x^2-3x+2\\ &=2xh+h^2+3h\\ &=h(2x+h+3). \end{aligned} $$

Therefore, since \(h\ne0\), cancel the shared factor:

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

Check by multiplying the simplified expression by \(h\): \(h(2x+h+3)=2xh+h^2+3h\), exactly the numerator obtained before cancellation. The simplification is valid for every \(x\) and every nonzero \(h\).

The cancellation does not mean that the original quotient is defined at \(h=0\). The original expression has denominator zero there. The simplified expression \(2x+h+3\) has a value at \(h=0\), but that fact does not change the domain of the original quotient.

A Quotient from a Fixed Input

When the second input is a fixed number \(a\), it can be efficient to evaluate \(f(a)\) first. Then factor the numerator \(f(x)-f(a)\). If the factor \(x-a\) appears, it can be cancelled for \(x\ne a\). This is the same algebraic principle as cancelling \(h\) in an increment quotient, with \(x-a\) playing the role of the nonzero input change.

Worked Example: Factoring Around a Fixed Input

Let \(f(x)=x^2-4x+1\), and simplify \(\frac{f(x)-f(2)}{x-2}\) for \(x\ne2\).

Evaluate the function at the fixed input:

$$ f(2)=2^2-4(2)+1=4-8+1=-3. $$

Substitute this value into the numerator, then factor:

$$ \begin{aligned} f(x)-f(2) &=(x^2-4x+1)-(-3)\\ &=x^2-4x+4\\ &=(x-2)^2. \end{aligned} $$

Since \(x\ne2\), cancel one factor of \(x-2\):

$$ \frac{f(x)-f(2)}{x-2} = \frac{(x-2)^2}{x-2} = x-2. $$

Check at an allowed input, say \(x=3\). The original quotient is \(\frac{f(3)-f(2)}{3-2}\). Since \(f(3)=9-12+1=-2\) and \(f(2)=-3\), it equals \(\frac{-2-(-3)}{1}=1\). The simplified expression gives \(3-2=1\). Also, multiplying the simplified expression by \(x-2\) gives \((x-2)^2=x^2-4x+4\), the original numerator. The original quotient still excludes \(x=2\).

Why Factoring Produces the Simplified Expression

The algebra behind the method can be seen for any quadratic polynomial \(f(x)=Ax^2+Bx+C\), where \(A\), \(B\), and \(C\) are constants. For a nonzero increment \(h\), substitute \(x+h\), subtract \(f(x)\), and collect terms:

$$ \begin{aligned} f(x+h)-f(x) &=A(x+h)^2+B(x+h)+C-(Ax^2+Bx+C)\\ &=A(x^2+2xh+h^2)+Bx+Bh+C-Ax^2-Bx-C\\ &=2Axh+Ah^2+Bh\\ &=h(2Ax+Ah+B). \end{aligned} $$

Thus, wherever \(h\ne0\), the difference quotient has the form

$$ \frac{f(x+h)-f(x)}{h}=2Ax+Ah+B. $$

This derivation justifies the cancellation for every quadratic, rather than only for one example: expansion shows that every term remaining in the numerator contains \(h\). The constant term \(C\) cancels, and the terms without \(h\) cancel as well. The derivation concerns only an algebraic identity on the stated domain; it does not require or evaluate a limit.

Difference Quotients with Rational Functions

The same steps apply when a function has a restricted domain. Before simplifying, check that each function value in the quotient is defined, as well as checking that the denominator of the quotient is nonzero. Cancelling a factor can make the final expression look defined at additional inputs, but it does not add those inputs to the domain of the original quotient.

Worked Example: Keeping Track of Domain Restrictions

Let \(f(x)=\frac{1}{x}\). Simplify \(\frac{f(x+h)-f(x)}{h}\).

For the two function values to be defined, we need \(x\ne0\) and \(x+h\ne0\). The difference quotient also requires \(h\ne0\). Combine the two fractions in the numerator:

$$ \begin{aligned} \frac{f(x+h)-f(x)}{h} &=\frac{\frac{1}{x+h}-\frac{1}{x}}{h}\\ &=\frac{\frac{x-(x+h)}{x(x+h)}}{h}\\ &=\frac{-h}{x(x+h)h}\\ &=-\frac{1}{x(x+h)}. \end{aligned} $$

The factor \(h\) cancels because \(h\ne0\). The simplified expression is valid under all the original conditions: \(x\ne0\), \(x+h\ne0\), and \(h\ne0\). To check, multiply the final expression by \(h\): \(h\left(-\frac{1}{x(x+h)}\right)=-\frac{h}{x(x+h)}\), the combined numerator difference. For example, with \(x=2\) and \(h=1\), the original quotient is \(\frac{\frac13-\frac12}{1}=-\frac16\); the simplified expression is \(-\frac{1}{2(3)}=-\frac16\).

A Common Error: Losing a Term When Expanding

When expanding a square, the middle term is essential. A frequent mistake is to write \((x+h)^2=x^2+h^2\), omitting the product term \(2xh\). That changes the numerator and produces an incorrect quotient.

Common mistake: For \(f(x)=x^2\), an incorrect expansion gives \((x+h)^2-x^2=x^2+h^2-x^2=h^2\), so the quotient is incorrectly simplified to \(h\). Correction: The full expansion is \((x+h)^2=x^2+2xh+h^2\). Therefore \((x+h)^2-x^2=2xh+h^2=h(2x+h)\), and for \(h\ne0\) the quotient is \(2x+h\).

Check the difference numerically at \(x=1\), \(h=1\). The original quotient is \(\frac{f(2)-f(1)}{1}=\frac{4-1}{1}=3\). The incorrect result gives \(h=1\), while the corrected expression gives \(2(1)+1=3\). A numerical check can expose an error, while the expansion establishes the correct identity for all allowed \(x\) and \(h\).

A Reliable Simplification Process

For either form of difference quotient, keeping the domain conditions visible helps prevent invalid cancellation. A useful sequence is:

1
Record the restrictions.
Require a nonzero denominator and require every function input to belong to the function's domain.
2
Substitute carefully.
Write \(f(x+h)\) or \(f(a)\) using parentheses, so the entire input is substituted.
3
Expand or combine.
Expand polynomial terms and combine like terms, or use a common denominator when the numerator contains fractions.
4
Factor before cancelling.
Rewrite the numerator to display a factor matching the denominator.
5
Check the result.
Multiply the simplified expression by the cancelled factor to recover the numerator, and retain the original restrictions.

The important distinction is between an expression and its domain. If \(h\ne0\), then \(\frac{h(2x+h+3)}{h}\) equals \(2x+h+3\). The equality is valid under the nonzero condition, even though the latter expression can be evaluated at \(h=0\). Cancellation simplifies values on the original domain; it does not erase the condition that made the cancellation valid.

Check Your Understanding

For each question, simplify only where the original quotient is defined. Keep track of any excluded inputs.

  1. For \(f(x)=x^2+2x\), expand and simplify \(\frac{f(x+h)-f(x)}{h}\). State the condition on \(h\).
  2. For \(f(x)=x^2+1\), simplify \(\frac{f(x)-f(3)}{x-3}\). Which input is excluded?
  3. For \(f(x)=\frac{1}{x}\), list all restrictions on \(x\) and \(h\) in \(\frac{f(x+h)-f(x)}{h}\) before cancelling.
  4. Why is \((x+h)^2\) not equal to \(x^2+h^2\)? Write the correct expansion.
  5. After cancelling \(h\) from a difference quotient, why must the original condition \(h\ne0\) still be retained?

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