Tutorials › AP Calculus › Difference Quotient Errors: Setting the Increment to Zero

Derivative as a Limit · Tutorial 99 of 999

Difference Quotient Errors: Setting the Increment to Zero

Learn to spot and correct common errors involving zero increments, invalid cancellation, and the difference between a difference quotient and its limiting derivative.

Beginner 8 min read

What You'll Learn

  • Explain why the difference quotient is undefined when its increment is zero
  • Simplify a quotient while preserving the restriction that the increment is nonzero
  • Distinguish an undefined form from the value of a limit
  • Identify invalid cancellation across terms in a numerator
  • Tell a finite difference quotient from the derivative it approaches

Why the Increment Cannot Be Set to Zero First

A difference quotient compares the change in a function’s output with a change in its input. The change in input must be nonzero: if the input does not change, the quotient asks us to divide by zero. The derivative is obtained not by setting that change equal to zero, but by taking a limit as the nonzero change approaches zero.

This distinction is easy to lose during algebra. A numerator may also become zero when the increment is zero, producing a form such as \(0/0\). That form is not a number and does not tell us the limit. The useful step is to simplify the quotient for nonzero increments, then evaluate the resulting limit.

Definition: If \(f\) is defined at \(a\), the difference quotient at \(a\), using increment \(h\), is \(\frac{f(a+h)-f(a)}{h}\), with the restriction \(h\ne 0\) and with both function values defined. The derivative at \(a\), when it exists, is the limit of this quotient as \(h\) approaches zero.
$$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$

The condition \(h\ne 0\) applies to the quotient before the limit is taken. The limit examines values for \(h\) close to zero but not equal to zero. Therefore, the quotient itself need not have a value at \(h=0\) for its limit to exist.

What \(0/0\) Does—and Does Not—Mean

Suppose direct substitution of \(h=0\) makes the numerator and denominator both zero. The resulting notation \(0/0\) is an indeterminate form: it is not the value of the quotient, and it does not determine the limit. Different quotients with this form can have different limits, or no limit at all. The original quotient is simply undefined at \(h=0\).

For a derivative calculation, the next question is whether algebra can simplify the quotient on its permitted domain \(h\ne 0\). For example, if the numerator has a factor \(h\), that factor may be canceled against the denominator because \(h\) is nonzero wherever the original quotient is defined. The simplified expression can then be used to find the limit.

Key distinction: Canceling a factor \(h\) in a quotient is valid for \(h\ne 0\). It does not make the original quotient defined at \(h=0\); it gives an expression with the same values for nonzero \(h\), which can be used to evaluate the limit.

Worked Example: The Derivative of \(x^2\) at \(3\)

Worked Example: The Derivative of \(x^2\) at \(3\)

Let \(f(x)=x^2\). Find \(f'(3)\) from the difference quotient.

Start with the definition. For \(h\ne 0\),

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

Expand the square and simplify the numerator:

$$ \frac{(3+h)^2-9}{h} = \frac{9+6h+h^2-9}{h} = \frac{6h+h^2}{h}. $$

Factor \(h\) in the numerator. Since the quotient is being considered only for \(h\ne 0\), cancel that factor:

$$ \frac{h(6+h)}{h}=6+h,\qquad h\ne 0. $$

Now take the limit as \(h\) approaches zero:

$$ f'(3)=\lim_{h\to0}(6+h)=6. $$

Check: For every nonzero \(h\), multiplying the simplified expression by the canceled denominator recovers the numerator: \(h(6+h)=6h+h^2\). The simplification is valid on the domain of the quotient, and the limit of \(6+h\) is \(6\). Thus \(f'(3)=6\).

Why Simplifying Before Taking the Limit Works

The difference quotient is the slope of a secant line through the points \((a,f(a))\) and \((a+h,f(a+h))\). A slope is change in output divided by change in input, so this secant slope is defined only when \(h\ne0\). As \(h\) approaches zero, the second point approaches the first. If the secant slopes approach a finite number, that number is the derivative at \(a\), the limiting tangent slope.

Algebraic simplification helps because the original formula may conceal how its values behave near zero. The justification is that equal expressions have equal values at every \(h\) in the original quotient’s domain. If a simplified expression agrees with the quotient for all sufficiently small nonzero \(h\), it has the same limit there. The value assigned at \(h=0\) is not needed to determine that limit.

1
Keep the restriction.
Write that \(h\ne0\) while working with the difference quotient.
2
Simplify on the allowed domain.
Expand, factor, or otherwise simplify without changing the quotient’s values for nonzero \(h\).
3
Take the limit.
After simplification, let \(h\) approach zero. Do not substitute zero into the original quotient first.

Worked Example: A Zero Increment in the \(x\)-to-\(a\) Form

Worked Example: A Zero Increment in the \(x\)-to-\(a\) Form

Use the \(x\)-to-\(a\) difference quotient to find the derivative of \(f(x)=x^3\) at \(a=2\). In this form, \(x\) approaches \(a\), and the denominator requires \(x\ne a\).

$$ \frac{f(x)-f(2)}{x-2} = \frac{x^3-8}{x-2},\qquad x\ne2. $$

Substituting \(x=2\) immediately would produce \(0/0\), but that is not a quotient value. Instead, factor the difference of cubes:

$$ \frac{x^3-8}{x-2} = \frac{(x-2)(x^2+2x+4)}{x-2} = x^2+2x+4,\qquad x\ne2. $$

Now take the limit:

$$ f'(2)=\lim_{x\to2}(x^2+2x+4) =2^2+2(2)+4 =4+4+4 =12. $$

Check: Multiplying the canceled factor back gives \((x-2)(x^2+2x+4)=x^3-8\), so the factorization is correct. The limit of the simplified polynomial at \(2\) is \(12\), giving \(f'(2)=12\).

The two notations describe the same issue. In the \(h\)-form, the forbidden zero occurs at \(h=0\). In the \(x\)-to-\(a\) form, it occurs at \(x=a\). Replacing \(x\) with \(a+h\) makes the connection: \(x-a=h\). In either notation, the denominator is nonzero while the quotient is evaluated, and the derivative is a limit.

Cancellation Must Apply to Factors, Not Individual Terms

Another common error is canceling pieces of a sum or difference as though they were factors. Cancellation is valid for a common factor multiplying the entire numerator and denominator. It is not valid for a term that is only part of a sum.

Worked Example: Correcting an Invalid Cancellation

Consider \(f(x)=x^2\) at \(a=2\), using the \(x\)-to-\(a\) quotient:

$$ \frac{x^2-4}{x-2},\qquad x\ne2. $$

A tempting but incorrect step is to “cancel the \(x\)” in \(x^2\) with the \(x\) in \(x-2\), producing \(\frac{x-4}{1-2}=4-x\). This is invalid: \(x^2-4\) is a difference of terms, not a product with a factor \(x\) common to the whole numerator and denominator.

Instead, factor the complete numerator as a difference of squares:

$$ \frac{x^2-4}{x-2} = \frac{(x-2)(x+2)}{x-2} = x+2,\qquad x\ne2. $$

Therefore,

$$ f'(2)=\lim_{x\to2}(x+2)=2+2=4. $$

Check: Expanding the factored numerator gives \((x-2)(x+2)=x^2-4\). Also, the incorrect expression \(4-x\) would approach \(2\), not \(4\), so it does not give the correct derivative. Only the factorization that preserves the original quotient’s values for \(x\ne2\) is valid.

A Difference Quotient Is Not Yet the Derivative

Even when a difference quotient is correctly formed and evaluated, it is generally a number associated with a particular nonzero increment, not the derivative itself. The derivative is the limit of those quotient values as the increment tends to zero. A nearby secant slope can be close to the derivative without being equal to it.

Worked Example: A Nearby Quotient Versus the Derivative

For \(f(x)=x^2\) at \(a=2\), the quotient simplifies to \(4+h\) for \(h\ne0\). The derivative is the limit \(4\). Now use the particular increment \(h=0.1\):

$$ \frac{(2+0.1)^2-2^2}{0.1} = \frac{2.1^2-4}{0.1} = \frac{4.41-4}{0.1} = \frac{0.41}{0.1} = 4.1. $$

This is the secant slope for an increment of \(0.1\), not the derivative. For \(h=-0.1\), the quotient is \(4+(-0.1)=3.9\). Taking the limit of \(4+h\) as \(h\) approaches zero gives \(4\).

Check: Substituting each nonzero increment into the simplified quotient gives the computed values: \(4+0.1=4.1\) and \(4-0.1=3.9\). Both are consistent with a limit of \(4\), but neither is itself that limit.

Common Errors and Their Corrections

ErrorWhy it failsCorrection
Set \(h=0\) in the original quotientThe denominator becomes zero, so the quotient is undefined.Simplify for \(h\ne0\), then take the limit.
Treat \(0/0\) as an answer\(0/0\) is not a defined number and does not determine a limit.Use valid algebra to find an expression for nearby nonzero increments.
Cancel terms across addition or subtractionCancellation requires a common factor of the entire numerator and denominator.Factor first, then cancel only a common factor.
Call a quotient at one nonzero increment “the derivative”That quotient is one secant slope; the derivative is the limiting value.Keep the increment variable and evaluate its limit.

A reliable habit is to write the restriction beside the quotient: \(h\ne0\), or \(x\ne a\). Keep it in view during any cancellation. Once the quotient has been simplified on that domain, take the limit. This prevents both the zero-denominator error and the mistaken belief that cancellation changes the original quotient’s domain.

Check Your Understanding

For each question, distinguish the quotient’s domain from the limit being evaluated.

  1. Why is \(\frac{f(a+h)-f(a)}{h}\) undefined at \(h=0\), even when its numerator is also zero?
  2. For \(f(x)=x^2\) at \(a=4\), simplify the difference quotient in \(h\)-form and find its limit as \(h\) approaches zero.
  3. In \(\frac{x^2-9}{x-3}\), why is canceling an \(x\) across the subtraction invalid? What factorization permits valid cancellation?
  4. For \(f(x)=x^2\) at \(a=1\), find the difference quotient for the specific increment \(h=0.2\). Is this value the derivative? Explain.
  5. State the difference between a difference quotient at a particular nonzero increment and the derivative at the point.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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
Clinical Biostats