Limits by Factoring

Limits by Factoring removes common factors from numerator and denominator to resolve 0/0 indeterminate forms and evaluate limits algebraically.

limxa(xa)g(x)(xa)h(x)=g(a)h(a)\lim_{x \to a} \frac{(x-a)g(x)}{(x-a)h(x)} = \frac{g(a)}{h(a)}

Solve a problem with Limits by Factoring

Type the problem. The solver will use Limits by Factoring where Limits by Factoring is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Limits by Factoring takes
gg
hh
xx
aa
Limits by Factoring
SymbolMeaning
ggThe polynomial or function that remains in the numerator after factoring out (xa)(x-a); it must be continuous and well-defined at x=ax=a.
hhThe polynomial or function that remains in the denominator after factoring out (xa)(x-a); it must be continuous at x=ax=a and non-zero so that the final limit is defined.
xxThe independent variable that is approaching the point aa; as xx moves closer to aa, the limit describes the value the function approaches.
aaThe point being approached; both the original numerator and denominator evaluate to zero at x=ax=a in a typical Limits by Factoring problem.

When to use it

Use this method when direct substitution gives the indeterminate form 0/0 in a rational expression.

Level

Usually taught in: Calculus I

Worked examples

1. Evaluate a limit by factoring a difference of squares

Problem

Find limx4x216x4\lim_{x \to 4} \frac{x^2 - 16}{x - 4}
  1. limx4x216x4=limx4(x4)(x+4)x4\lim_{x \to 4} \frac{x^2 - 16}{x - 4} = \lim_{x \to 4} \frac{(x-4)(x+4)}{x-4}

    Factor the numerator as a difference of squares: x216=(x4)(x+4)x^2 - 16 = (x-4)(x+4).

  2. =limx4(x+4)= \lim_{x \to 4} (x+4)

    Cancel the common factor (x4)(x-4) from numerator and denominator.

  3. =4+4=8= 4 + 4 = 8

    Substitute x=4x=4 into the simplified expression to find the limit.

Answer: 88

The original expression is undefined at x=4x=4 because substitution gives 00\frac{0}{0}. By factoring the numerator, we identify the common factor (x4)(x-4) in both numerator and denominator. After canceling, the expression simplifies to x+4x+4, and we can evaluate the limit by substitution: limx4(x+4)=8\lim_{x \to 4} (x+4) = 8.

2. Factor a quadratic numerator to find a limit at a negative point

Problem

Find limx3x2+5x+6x+3\lim_{x \to -3} \frac{x^2 + 5x + 6}{x + 3}
  1. limx3x2+5x+6x+3=limx3(x+3)(x+2)x+3\lim_{x \to -3} \frac{x^2 + 5x + 6}{x + 3} = \lim_{x \to -3} \frac{(x+3)(x+2)}{x+3}

    Factor the quadratic numerator by finding two numbers that multiply to 66 and add to 55: these are 33 and 22, giving (x+3)(x+2)(x+3)(x+2).

  2. =limx3(x+2)= \lim_{x \to -3} (x+2)

    Cancel the common factor (x+3)(x+3); for any x3x \neq -3, the expression equals x+2x+2.

  3. =3+2=1= -3 + 2 = -1

    Substitute x=3x=-3 into the simplified form x+2x+2 to evaluate the limit.

Answer: 1-1

The method works the same for negative approach points. The numerator is a quadratic that factors nicely over the integers. Once both numerator and denominator are in factored form, the common (x+3)(x+3) becomes visible and can be canceled. This cancellation reveals that the limit is simply 3+2=1-3+2=-1.

3. Interpret a profit limit at a school bake sale

Problem

At a school bake sale, the profit from selling xx boxes of cookies (where x>0x > 0 and x9x \neq 9) is given by P(x)=x29xx9P(x) = \frac{x^2 - 9x}{x - 9} dollars. What profit does the model predict as sales approach 99 boxes?
  1. limx9x29xx9=limx9x(x9)x9\lim_{x \to 9} \frac{x^2 - 9x}{x - 9} = \lim_{x \to 9} \frac{x(x-9)}{x-9}

    Factor the numerator by extracting xx as a common factor: x29x=x(x9)x^2 - 9x = x(x-9).

  2. =limx9x= \lim_{x \to 9} x

    Cancel the common factor (x9)(x-9). For x9x \neq 9, the profit function simplifies to just xx.

  3. =9= 9

    Substitute x=9x=9 to find that the profit approaches $9\$9 as sales near 99 boxes.

Answer: 9 dollars9 \text{ dollars}

The original profit formula P(x)=x29xx9P(x) = \frac{x^2 - 9x}{x - 9} is undefined at x=9x=9 because both numerator and denominator equal zero. The limit addresses this by asking what value the profit approaches as xx gets close to 99. Factoring reveals that for all x9x \neq 9, the profit is exactly xx dollars, so the predicted profit at approximately 99 boxes is $9\$9. This illustrates how limits can predict a function's behavior even where the formula itself breaks down.

Common mistakes

Where Limits by Factoring usually goes wrong
Answer came out wrong
When I substitute x=1x=1 into x21x1\frac{x^2-1}{x-1} and get 00\frac{0}{0}, I conclude that the limit does not exist.
Treat 00\frac{0}{0} as a signal to factor the numerator and denominator, cancel common factors, and re-evaluate the limit using the simplified form.
Looking at x38x2\frac{x^3 - 8}{x - 2}, I decide there is no common factor because I do not recognize that the numerator factors.
Learn factorization patterns for difference of squares (a2b2a^2 - b^2), difference of cubes (a3b3=(ab)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2+ab+b^2)), trinomials, and other standard forms.
After canceling the (x3)(x-3) factor in (x3)(x+1)x3\frac{(x-3)(x+1)}{x-3} to get x+1x+1, I substitute x=3x=3 back into the original fraction (x3)(x+1)x3\frac{(x-3)(x+1)}{x-3}.
After factoring and canceling, always substitute into the simplified form, not the original. The simplified form is valid for all xx near aa, even though the original is undefined at x=ax=a.
The mistakeWhy it is wrongThe fix
When I substitute x=1x=1 into x21x1\frac{x^2-1}{x-1} and get 00\frac{0}{0}, I conclude that the limit does not exist.00\frac{0}{0} is an indeterminate form, which signals that the limit might exist but requires further work—it does not mean the limit is undefined or nonexistent.Treat 00\frac{0}{0} as a signal to factor the numerator and denominator, cancel common factors, and re-evaluate the limit using the simplified form.
Looking at x38x2\frac{x^3 - 8}{x - 2}, I decide there is no common factor because I do not recognize that the numerator factors.The expression x38x^3 - 8 is a difference of cubes (x323x^3 - 2^3) and factors as (x2)(x2+2x+4)(x-2)(x^2+2x+4), but you must know or recognize this special factorization pattern.Learn factorization patterns for difference of squares (a2b2a^2 - b^2), difference of cubes (a3b3=(ab)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2+ab+b^2)), trinomials, and other standard forms.
After canceling the (x3)(x-3) factor in (x3)(x+1)x3\frac{(x-3)(x+1)}{x-3} to get x+1x+1, I substitute x=3x=3 back into the original fraction (x3)(x+1)x3\frac{(x-3)(x+1)}{x-3}.The original fraction is undefined at x=3x=3; you must use the simplified form (x+1)(x+1) to evaluate the limit, not the original undefined expression.After factoring and canceling, always substitute into the simplified form, not the original. The simplified form is valid for all xx near aa, even though the original is undefined at x=ax=a.

Tips and when to use something else

  • Always factor both numerator and denominator completely before canceling. Look for difference of squares (a2b2a^2 - b^2), trinomials, and special patterns like difference or sum of cubes.
  • When direct substitution gives 00\frac{0}{0}, Limits by Factoring is often the quickest method, provided the numerator and denominator factor nicely.
  • If factoring does not reveal a common (xa)(x-a) factor, or if you encounter 00\frac{0}{0} again after factoring, switch to L'Hôpital's Rule or another technique.
  • Remember that the cancellation is valid for xax \neq a, so the function may remain undefined at x=ax=a (a removable discontinuity) even though the limit exists.

Frequently asked questions

What does 0/0 mean in a limit?
00\frac{0}{0} is an indeterminate form: it means the limit might exist, but you cannot find it by direct substitution alone. Limits by Factoring (and other techniques like L'Hôpital's Rule) are designed to resolve indeterminate forms and find the actual limit value.
Can I use Limits by Factoring if the common factor is (x-a)²?
Yes. If both the numerator and denominator have (xa)2(x-a)^2 (or higher powers) as a factor, you cancel the highest power you can from both. For example, (x2)2(x+1)(x2)2(x3)=x+1x3\frac{(x-2)^2(x+1)}{(x-2)^2(x-3)} = \frac{x+1}{x-3} after canceling (x2)2(x-2)^2. Always factor completely to see all the common factors.
Why must the original function be undefined at x=a for Limits by Factoring to work?
It does not have to be undefined at x=ax=a. Limits by Factoring works whenever the numerator and denominator have a common factor of (xa)(x-a). However, the method is most useful when direct substitution gives 00\frac{0}{0}, which happens precisely when both the original numerator and denominator equal zero at x=ax=a.
What if the numerator becomes a constant after canceling?
No problem. If you cancel (xa)(x-a) and are left with just a constant cc in the numerator and a function h(x)h(x) in the denominator, the limit is ch(a)\frac{c}{h(a)} (provided h(a)0h(a) \neq 0). For example, limx0xx2+x=limx01x+1=1\lim_{x \to 0} \frac{x}{x^2+x} = \lim_{x \to 0} \frac{1}{x+1} = 1.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18