Tutorials › Calculus I › Canceling Common Factors Near a Hole

Limit Laws and Algebraic Methods · Tutorial 202 of 1495

Canceling Common Factors Near a Hole

Use a common factor to simplify a quotient near a hole, then evaluate its limit without confusing that limit with the function’s value at the target.

Beginner 9 min read

What You'll Learn

  • Identify a shared factor that makes both numerator and denominator zero at the target.
  • Explain why canceling a factor is valid only away from its zero.
  • Evaluate the resulting limit when the remaining denominator is nonzero.
  • Distinguish a limit from whether the original function is defined at the target.
  • Recognize when cancellation does not yet justify direct substitution.

Why a Quotient Can Have a Limit Where It Is Undefined

A rational expression may be undefined at a particular input even though its values near that input settle toward a definite number. This happens, for example, when both numerator and denominator contain a factor that becomes zero at the target. The original quotient then has the form zero divided by zero at that input, but the shared factor can be canceled at nearby inputs.

The crucial point is that cancellation simplifies the expression only where the canceled factor is nonzero. A limit concerns values near the target, not necessarily the value at the target itself. Keeping those two ideas separate lets us simplify correctly without claiming that the original function is defined where it is not.

Common Factors and the Domain

Suppose a quotient has the form \(\frac{(x-a)u(x)}{(x-a)v(x)}\). At \(x=a\), the common factor \(x-a\) is zero, so the displayed quotient is undefined there. At any \(x\ne a\) for which the quotient is defined, the factor \(x-a\) is nonzero and can be canceled:

$$ \frac{(x-a)u(x)}{(x-a)v(x)} = \frac{u(x)}{v(x)}. $$

This equality is not an equality at \(x=a\): the left-hand expression is undefined there, and cancellation does not change that fact. But if the simplified expression has a limit as \(x\) approaches \(a\), then it can be used to find the limit of the original expression, provided the two expressions agree at all sufficiently nearby domain points other than \(a\).

Definition: A point \(a\) is an accumulation point of the domain of \(f\) if every deleted neighborhood of \(a\) contains at least one point in that domain. The statement \(\lim_{x\to a}f(x)=L\) means that \(a\) is an accumulation point of the domain of \(f\), and for every \(\varepsilon>0\) there is a \(\delta>0\) such that, whenever \(x\) is in the domain of \(f\) and \(0<|x-a|<\delta\), we have \(|f(x)-L|<\varepsilon\).

The condition \(0<|x-a|\) excludes the target itself. The accumulation-point requirement ensures that there are domain values arbitrarily close to \(a\), so the limit condition is not true merely because there are no nearby inputs to check. The function may be undefined at \(a\), or it may have a value there; either way, that value is not part of the limit condition.

A Justification for Canceling Near the Target

For rational functions, the cancellation method follows from the limit laws and continuity of polynomials. The following result gives its conditions explicitly. Continuity at \(a\) means that the function is defined at \(a\) and that its limit as \(x\) approaches \(a\) equals its value there.

Theorem: Suppose \(u\) and \(v\) are continuous at \(a\), and \(v(a)\ne0\). Define \(f(x)=\frac{(x-a)u(x)}{(x-a)v(x)}\) wherever this quotient is defined. Then, provided \(a\) is an accumulation point of the domain of \(f\), $$ \lim_{x\to a}f(x)=\frac{u(a)}{v(a)}. $$ The value of \(f(a)\) is not specified by this conclusion; in fact, the displayed quotient defining \(f\) is undefined at \(a\).

Here is why the hypotheses make the argument work. Since \(v\) is continuous at \(a\) and \(v(a)\ne0\), there is a neighborhood of \(a\) in which \(v(x)\ne0\). In fact, continuity gives a neighborhood where \(|v(x)-v(a)|<|v(a)|/2\), and hence \(|v(x)|>|v(a)|/2>0\). For \(x\ne a\) in that neighborhood, both \(x-a\) and \(v(x)\) are nonzero, so cancellation gives \(f(x)=u(x)/v(x)\).

As \(x\) approaches \(a\), continuity gives \(u(x)\to u(a)\) and \(v(x)\to v(a)\). The quotient law applies because the denominator limit \(v(a)\) is nonzero. Therefore \(\frac{u(x)}{v(x)}\to\frac{u(a)}{v(a)}\). Since the original quotient agrees with this simplified quotient at nearby domain points other than \(a\), the original quotient has the same limit. This proves the result.

In the examples below, polynomial factors play the roles of \(u\) and \(v\). Polynomials are continuous at every real number, so after canceling the shared factor, direct substitution is justified when the remaining denominator is nonzero at the target.

Worked Examples

Worked Example: Cancel a Shared Linear Factor

Evaluate \(\lim_{x\to2}\frac{x^2-5x+6}{x-2}\), where the quotient is defined for \(x\ne2\).

Substituting \(x=2\) into the original numerator gives \(2^2-5(2)+6=4-10+6=0\). The denominator gives \(2-2=0\), so direct substitution produces the indeterminate form \(0/0\), not a limit value. Factor the numerator:

$$ x^2-5x+6=(x-2)(x-3), \qquad \frac{x^2-5x+6}{x-2} = \frac{(x-2)(x-3)}{x-2}. $$

For every \(x\ne2\), the factor \(x-2\) is nonzero and cancels. Thus the original quotient equals \(x-3\) at all its domain points, and the limit is found from that simplified expression:

$$ \lim_{x\to2}\frac{x^2-5x+6}{x-2} = \lim_{x\to2}(x-3) = 2-3 = -1. $$

Check: The simplified expression \(x-3\) is continuous at \(2\), and its value there is \(2-3=-1\). The original quotient agrees with it for every \(x\ne2\), so its values approach \(-1\). The original quotient is still undefined at \(2\).

Worked Example: Cancel a Factor in Both Quadratics

Evaluate \(\lim_{x\to-3}\frac{x^2+x-6}{x^2+4x+3}\), for inputs where the denominator is nonzero.

At \(x=-3\), the numerator is \((-3)^2+(-3)-6=9-3-6=0\), and the denominator is \((-3)^2+4(-3)+3=9-12+3=0\). Factor both polynomials:

$$ x^2+x-6=(x+3)(x-2), \qquad x^2+4x+3=(x+3)(x+1). $$

For \(x\ne-3\), cancel the common factor \(x+3\). The simplified denominator \(x+1\) is nonzero at \(-3\), since \(-3+1=-2\ne0\). Therefore direct substitution into the simplified quotient is valid:

$$ \begin{aligned} \lim_{x\to-3}\frac{x^2+x-6}{x^2+4x+3} &=\lim_{x\to-3}\frac{(x+3)(x-2)}{(x+3)(x+1)}\\ &=\lim_{x\to-3}\frac{x-2}{x+1}\\ &=\frac{-3-2}{-3+1}\\ &=\frac{-5}{-2} =\frac52. \end{aligned} $$

Check: The simplified quotient at the target is \(\frac{-5}{-2}=\frac52\), with a nonzero denominator. The original denominator is zero at \(-3\), so the original function has no value there; cancellation establishes the limit, not a value for the original function.

Worked Example: A Different Common Factor

Evaluate \(\lim_{x\to3}\frac{2x^2-7x+3}{x^2-x-6}\), on the domain where the denominator is nonzero.

At \(x=3\), the numerator is \(2(3^2)-7(3)+3=18-21+3=0\), and the denominator is \(3^2-3-6=9-3-6=0\). Factor the numerator and denominator:

$$ 2x^2-7x+3=(x-3)(2x-1), \qquad x^2-x-6=(x-3)(x+2). $$

For \(x\ne3\), cancel \(x-3\). The remaining denominator at \(3\) is \(3+2=5\), which is nonzero. Now evaluate:

$$ \begin{aligned} \lim_{x\to3}\frac{2x^2-7x+3}{x^2-x-6} &=\lim_{x\to3}\frac{(x-3)(2x-1)}{(x-3)(x+2)}\\ &=\lim_{x\to3}\frac{2x-1}{x+2}\\ &=\frac{2(3)-1}{3+2}\\ &=\frac{6-1}{5} =1. \end{aligned} $$

Check: Substituting into the reduced quotient gives \(\frac{6-1}{5}=1\). Its denominator is nonzero at \(3\), and the original quotient equals it for \(x\ne3\), so the limit is \(1\).

The Limit Is Not the Function Value

The examples all have an original quotient whose denominator vanishes at the target. Consequently, the original function is not defined there. The limit answers a different question: what number do the function values approach as the input approaches the target through points in the domain?

For example, in the first worked example, the quotient agrees with \(x-3\) for every \(x\ne2\), and those nearby values approach \(-1\). One may define a new function by assigning the value \(-1\) at \(x=2\), but that is an extension of the original function, not a value already supplied by its original quotient. More generally, changing or assigning a function's value at the target does not affect its limit there, as long as its values at nearby points are unchanged.

Key takeaway: If a common factor \(x-a\) is canceled, the resulting equality holds for \(x\ne a\) where the original quotient is defined. If the remaining quotient has a limit at \(a\), that limit is also the limit of the original quotient. Cancellation alone does not define the original function at \(a\).

A Common Mistake

Consider \(f(x)=\frac{x^2-4x+4}{x-2}\), defined only where its denominator is nonzero. A mistaken calculation might say:

$$ \frac{x^2-4x+4}{x-2} = \frac{(x-2)^2}{x-2} = x-2, \qquad \text{so } f(2)=2-2=0. $$

The cancellation step is valid only for \(x\ne2\). At \(x=2\), the original denominator is zero, so \(f(2)\) is undefined. The corrected conclusion is about the limit:

$$ \lim_{x\to2}\frac{x^2-4x+4}{x-2} = \lim_{x\to2}(x-2) = 0, \qquad f(2)\text{ is undefined}. $$

The number \(0\) is the limit, not the value of the original function. The same distinction applies even when a graph or a table makes the nearby behavior look continuous through the missing point.

When Cancellation Is Not Enough

After canceling the common factor, inspect the remaining denominator before substituting. The simple direct-substitution conclusion is justified when that denominator is nonzero at the target. If it is still zero there, this cancellation has not yet reduced the expression to a quotient with a nonzero denominator at the target; another valid simplification or method would be needed.

Also check that the cancellation is of a genuine common factor, not merely of terms that appear in a sum. For instance, a factor can be canceled from a product in the numerator and denominator, but individual terms in a sum cannot be canceled separately. The algebraic factorization must be correct, and the equality after cancellation must be understood as applying away from the zero of the canceled factor.

1
Check the target.
Substitute into numerator and denominator. If both are zero, look for a common factor responsible for that behavior.
2
Factor and cancel only away from the target.
Factor the numerator and denominator, then cancel the shared factor at inputs where it is nonzero.
3
Inspect what remains.
Verify that the reduced denominator is nonzero at the target before using direct substitution.
4
State the limit and the domain separately.
Report the number approached, and do not assign it as the original function's value unless that value is separately defined.

Check Your Understanding

For each question, keep track of where the original quotient is defined and where cancellation is valid.

  1. For \(g(x)=\frac{x^2-7x+10}{x-5}\), with \(x\ne5\), find \(\lim_{x\to5}g(x)\). Is \(g(5)\) defined?
  2. Why is it valid to cancel \(x-a\) when \(x\ne a\), but not to use the canceled expression to claim the original quotient is defined at \(a\)?
  3. For \(h(x)=\frac{x^2-1}{x^2-3x+2}\), determine whether canceling a factor at \(x=1\) leaves a denominator that is nonzero at the target. What does that imply about direct substitution after cancellation?
  4. In the common-factor theorem, why is the condition \(v(a)\ne0\) important for evaluating the reduced quotient by direct substitution?
  5. If the limit of a function at \(a\) is \(4\), must the function have value \(4\) at \(a\)? Explain the distinction.

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