Tutorials › AP Calculus › Factoring Out a Shared Linear Factor

Algebraic Limit Techniques · Tutorial 27 of 999

Factoring Out a Shared Linear Factor

Use grouping and common factors to reveal \(x-a\), simplify the quotient near \(a\), and evaluate the resulting limit.

Beginner 8 min read

What You'll Learn

  • Identify when direct substitution gives a zero-over-zero form.
  • Factor expressions to expose a shared linear factor \(x-a\).
  • Cancel a common factor only when it is a factor of both expressions.
  • Evaluate the simplified quotient when its denominator is nonzero at \(a\).
  • Check factorizations and recognize when this method does not determine the limit.

Why a Shared Factor Helps

When direct substitution into a quotient gives \(0/0\), the result does not determine the limit. It signals that substitution alone is inconclusive. Sometimes the numerator and denominator both contain the same linear factor, \(x-a\). Factoring can reveal that shared structure and reduce the limit to one that can be evaluated by substitution.

The key is to factor the whole numerator and the whole denominator. A factor is something multiplied by another expression; it is not an individual term inside a sum. Once the shared factor is exposed, the quotient can be simplified for values of \(x\) near \(a\), with \(x\ne a\).

Definition: A shared linear factor at \(x=a\) is a factor \(x-a\) that appears in both the numerator and denominator. If the quotient can be written as \(\frac{(x-a)P(x)}{(x-a)Q(x)}\), where \(Q(a)\ne 0\), then the shared factor can be used to evaluate the limit as \(x\) approaches \(a\).

Factoring by Grouping

One way to expose \(x-a\) is to group terms so that each group contains that factor. For instance, in \(x(x-2)+4(x-2)\), both terms contain \(x-2\). Factoring it out gives \((x-2)(x+4)\). The same idea works in the denominator.

Before factoring, check the direct-substitution result. If substituting \(x=a\) makes both numerator and denominator zero, a shared factor \(x-a\) may be present. This is a useful clue, not a guarantee that this particular method will finish the problem: after factoring and simplifying, the remaining denominator must be nonzero at \(a\) for direct substitution to apply.

Worked Example: Grouping to Reveal a Shared Factor

Worked Example: Grouping to Reveal a Shared Factor

Evaluate \(\displaystyle\lim_{x\to 2}\frac{x^2+2x-8}{x^2+x-6}\), using grouping to expose the common factor.

Step 1: Try direct substitution.

$$ \frac{2^2+2(2)-8}{2^2+2-6} = \frac{4+4-8}{4+2-6} = \frac{0}{0}. $$

The quotient has the indeterminate form \(0/0\), so direct substitution does not evaluate the limit.

Step 2: Group the terms to make \(x-2\) appear. In the numerator, write \(2x=x(x-2)+4\)? Instead, use the identity \(x^2+2x-8=x(x-2)+4(x-2)\), since expanding the right-hand side gives \(x^2-2x+4x-8=x^2+2x-8\). In the denominator, \(x^2+x-6=x(x-2)+3(x-2)\), since expanding gives \(x^2-2x+3x-6=x^2+x-6\).

$$ \begin{aligned} x^2+2x-8 &=x(x-2)+4(x-2)\\ &=(x-2)(x+4),\\[4pt] x^2+x-6 &=x(x-2)+3(x-2)\\ &=(x-2)(x+3). \end{aligned} $$

Step 3: Simplify and evaluate. For \(x\ne 2\), the common factor \(x-2\) can be cancelled. The remaining denominator is nonzero at \(x=2\), so substitution evaluates the simplified limit:

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

Check: Expanding the factors gives the original numerator and denominator. Substituting \(x=2\) into the simplified quotient gives \(6/5\), and its denominator is \(2+3=5\ne 0\).

Why the Simplification Works

The cancellation is an algebraic identity for nearby inputs, not a claim that the original quotient is defined at \(x=a\). If \(x\ne a\), then \(x-a\ne 0\), so the common factor may be divided out. Provided the remaining denominator does not vanish at \(a\), the simplified quotient has a value that can be approached by substitution.

Result: If \(P\) and \(Q\) are polynomials, \(Q(a)\ne 0\), and \[ \frac{N(x)}{D(x)}=\frac{(x-a)P(x)}{(x-a)Q(x)} \] for \(x\ne a\), then \[ \lim_{x\to a}\frac{N(x)}{D(x)}=\frac{P(a)}{Q(a)}. \] The equality of quotients is used for \(x\ne a\); the simplified quotient is evaluated at \(a\).

Here is the reasoning in steps. The factorization makes the shared factor explicit. For all nearby \(x\ne a\), the original quotient equals the simplified one. The simplified quotient is a rational function whose denominator is nonzero at \(a\), so its limit follows from direct substitution and the quotient limit law.

1
Factor both expressions.
Write the numerator and denominator as \((x-a)P(x)\) and \((x-a)Q(x)\).
2
Work with nearby inputs.
When \(x\ne a\), the shared factor \(x-a\) is nonzero and can be cancelled.
3
Check the remaining denominator.
Verify that \(Q(a)\ne 0\); otherwise direct substitution into the simplified quotient still does not apply.
4
Evaluate the simplified limit.
Substitute \(x=a\) into \(P(x)/Q(x)\).

Worked Example: A Limit at a Negative Number

Worked Example: A Limit at a Negative Number

Evaluate \(\displaystyle\lim_{x\to -1}\frac{2x^2+5x+3}{x^2+5x+4}\).

Step 1: Substitute \(x=-1\).

$$ \frac{2(-1)^2+5(-1)+3}{(-1)^2+5(-1)+4} = \frac{2-5+3}{1-5+4} = \frac{0}{0}. $$

Step 2: Group terms to factor out \(x+1\). The numerator can be written \(2x(x+1)+3(x+1)\); expanding gives \(2x^2+2x+3x+3=2x^2+5x+3\). The denominator can be written \(x(x+1)+4(x+1)\); expanding gives \(x^2+x+4x+4=x^2+5x+4\).

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

Step 3: Cancel for \(x\ne -1\), then substitute.

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

Check: Expanding \((x+1)(2x+3)\) gives \(2x^2+5x+3\), and expanding \((x+1)(x+4)\) gives \(x^2+5x+4\). At \(x=-1\), the simplified denominator is \(-1+4=3\ne 0\).

Worked Example: Checking the Remaining Denominator

Worked Example: Checking the Remaining Denominator

Evaluate \(\displaystyle\lim_{x\to 2}\frac{3x^2-8x+4}{x^2+3x-10}\).

Step 1: Check direct substitution.

$$ \frac{3(2)^2-8(2)+4}{(2)^2+3(2)-10} = \frac{12-16+4}{4+6-10} = \frac{0}{0}. $$

Step 2: Factor by grouping. Rewrite the numerator as \(3x(x-2)-2(x-2)\), which expands to \(3x^2-6x-2x+4=3x^2-8x+4\). Rewrite the denominator as \(x(x-2)+5(x-2)\), which expands to \(x^2-2x+5x-10=x^2+3x-10\).

$$ \begin{aligned} 3x^2-8x+4&=(x-2)(3x-2),\\ x^2+3x-10&=(x-2)(x+5). \end{aligned} $$

Step 3: Simplify and evaluate. After cancelling the shared factor for \(x\ne 2\), the remaining denominator at \(x=2\) is \(2+5=7\), which is nonzero.

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

Check: Expanding both factorizations reproduces the expressions in the original quotient. The simplified denominator is \(7\) at \(x=2\), so the final substitution is valid.

A Common Mistake: Cancelling Terms Instead of Factors

Cancellation applies to factors multiplying an entire expression, not to matching-looking terms in sums. For example, it is not valid to cross out the \(x\) in \(x^2+2x-8\) against the \(x\) in \(x^2+x-6\). Those \(x\)'s are terms within sums, not common factors of the complete numerator and denominator.

A concrete wrong calculation would be to cancel the visible \(x\)'s term by term and claim that the limit is \(\frac{2-8}{1-6}=\frac{6}{5}\) at \(x=2\). The expression on that line is not obtained by a valid algebraic cancellation. In this particular example, the correct method is to factor the full expressions first; it gives \(\frac{(x-2)(x+4)}{(x-2)(x+3)}\), and then the limit is \(\frac{6}{5}\). A coincidentally correct number would not make an invalid cancellation valid.

Pitfall: Never cancel pieces of sums. First rewrite the numerator and denominator as products; then cancel a factor that appears in both products.

When This Method Is Not Enough

After cancelling \(x-a\), always inspect the remaining denominator. If it is still zero at \(a\), the quotient limit law cannot yet be applied by direct substitution. The factorization may have exposed only part of the structure, and more algebra may be needed. If no shared factor is exposed, this method alone does not determine the limit.

Also distinguish a limit from the function's value at the target. The original quotient may be undefined at \(x=a\) because its denominator is zero there. Cancelling a factor helps evaluate what the quotient approaches nearby; it does not assign a value to the original expression at \(a\).

Check Your Understanding

For each question, show the factorization and check whether the remaining denominator is nonzero at the approach value.

  1. What does direct substitution tell you if both the numerator and denominator become zero?
  2. Why can \(x-a\) be cancelled when evaluating a limit as \(x\) approaches \(a\), even if the original quotient is undefined at \(a\)?
  3. Evaluate \(\displaystyle\lim_{x\to 1}\frac{x(x-1)+3(x-1)}{2x(x-1)+(x-1)}\).
  4. After cancelling a shared factor, what condition on the remaining denominator allows direct substitution?
  5. Explain why cancelling a term from a sum is not the same as cancelling a factor.

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