Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Evaluate a Limit by Factoring

When substitution gives 00\frac{0}{0}, the numerator and the denominator share a factor that vanishes at aa. Factor both, cancel that factor, then substitute again.

Recognize the task

A rational expression that gives 00\frac{0}{0} at aa: x2−4x−2\frac{x^2 - 4}{x - 2}, x2+x−6x2−4\frac{x^2 + x - 6}{x^2 - 4}, x3−1x−1\frac{x^3 - 1}{x - 1}. Test: substitution gives 00\frac{0}{0} and both top and bottom are polynomials, so (x−a)(x - a) is a factor of each.
Why 00\frac{0}{0} is not an answer is explained under indeterminate forms; the technique itself is factoring and canceling in the same lesson.

Two ways to do it

Factor and cancelusual choice
x2−4x−2=(x−2)(x+2)x−2=x+2(x≠2)\frac{x^2 - 4}{x - 2} = \frac{(x - 2)(x + 2)}{x - 2} = x + 2 \quad (x \neq 2)
Cancelling is allowed because a limit never looks at x=ax = a itself. Factoring patterns are in the factoring strategy.
Divide by (x − a)higher degree
x3−1=(x−1)(x2+x+1)x^3 - 1 = (x - 1)(x^2 + x + 1)
When the factor is not obvious, divide the polynomial by (x−a)(x - a); the remainder must be 00.

Steps

StepOn lim⁡x→2x2−4x−2\lim_{x\to 2}\frac{x^2 - 4}{x - 2}
1Substitute and confirm the form. 00\frac{0}{0} means "not yet decided", not "undefined". A nonzero number over 00 is a different situation: see one-sided limits.Direct substitution ↗4−42−2=00\frac{4 - 4}{2 - 2} = \frac{0}{0}
2Factor the numerator and the denominator. Because both are 00 at x=ax = a, both contain the factor (x−a)(x - a).(x−2)(x+2)x−2\frac{(x - 2)(x + 2)}{x - 2}
3Cancel the common factor. Legal for x≠ax \neq a, which is all the limit cares about.x+2x + 2
4Substitute again. The simplified expression is continuous at aa.Direct substitution ↗2+2=42 + 2 = 4

Worked examples

Example 1 · difference of squares

basic
lim⁡x→2x2−4x−2\lim_{x\to 2}\frac{x^2 - 4}{x - 2}
00\frac{0}{0}
=lim⁡x→2(x−2)(x+2)x−2=lim⁡x→2(x+2)= \lim_{x\to 2}\frac{(x - 2)(x + 2)}{x - 2} = \lim_{x\to 2}(x + 2)
factor, cancel
=4= 4

Example 2 · both sides factor

quadratic over quadratic
lim⁡x→2x2+x−6x2−4\lim_{x\to 2}\frac{x^2 + x - 6}{x^2 - 4}
00\frac{0}{0}
=lim⁡x→2(x+3)(x−2)(x+2)(x−2)=lim⁡x→2x+3x+2= \lim_{x\to 2}\frac{(x + 3)(x - 2)}{(x + 2)(x - 2)} = \lim_{x\to 2}\frac{x + 3}{x + 2}
cancel (x−2)(x - 2)
=54= \frac{5}{4}

Example 3 · difference of cubes

degree 3
lim⁡x→1x3−1x−1\lim_{x\to 1}\frac{x^3 - 1}{x - 1}
00\frac{0}{0}
=lim⁡x→1(x−1)(x2+x+1)x−1=lim⁡x→1(x2+x+1)= \lim_{x\to 1}\frac{(x - 1)(x^2 + x + 1)}{x - 1} = \lim_{x\to 1}(x^2 + x + 1)
sum-of-cubes pattern or division
=3= 3

See it happen

The graph of x2−4x−2\frac{x^2 - 4}{x - 2} is the line y=x+2y = x + 2 with one point missing at x=2x = 2. The limit asks for the height the graph approaches, not for the missing value, so the cancelled factor costs nothing.

Common mistakes

Stopping at 0/0

✗ "the limit is 00\frac{0}{0}, undefined"
✓ 00\frac{0}{0} means keep working; the limit here is 44

Cancelling something that is not a factor

✗ x2−4x−2=x2x−2\frac{x^2 - 4}{x - 2} = \frac{x^2}{x} - 2
✓ factor first; only a common factor cancels

Factoring when the form is c/0

✗ lim⁡x→2x+1x−2\lim_{x\to 2}\frac{x + 1}{x - 2} "factor and cancel"
✓ 30\frac{3}{0} is not indeterminate: the one-sided limits are infinite; see one-sided limits