Why a Difference of Squares Can Help
A direct substitution into a limit can sometimes produce \(0/0\). This does not give the limit: it signals that the original expression needs further analysis. When the numerator is a difference of two squares, an algebraic identity may reveal a factor that cancels the denominator and leaves an expression whose limit is easier to find.
The key is to use the identity carefully. It does not make division by zero valid, and it does not guarantee that every resulting expression has a limit. Cancellation is valid only for inputs where the common factor is nonzero; substitution into the reduced expression is justified when that expression is continuous at the approach point.
From the Identity to a Limit
Suppose we want to evaluate \(\lim_{x\to a}\frac{u(x)^2-v(x)^2}{x-a}\), and direct substitution gives \(0/0\). Applying the identity gives \(\frac{(u(x)-v(x))(u(x)+v(x))}{x-a}\). To simplify, we must check that \(u(x)-v(x)\) contains the factor \(x-a\). If it does, we can cancel that factor for \(x\ne a\). The remaining expression can then be used to find the limit if it is continuous at \(a\).
The condition \(u(a)=v(a)\) explains why the numerator becomes zero, but does not by itself establish that \(u(x)-v(x)\) contains the factor \(x-a\). In the examples below, the difference of the two expressions can be written explicitly as a constant times \(x-a\), so the cancellation is shown rather than assumed.
Why the Identity Works
The identity follows from multiplying the two factors. The middle terms cancel, leaving exactly the original difference of squares:
Now suppose the difference of squares factors as \((x-a)g(x)\). For every \(x\ne a\) where the original quotient is defined, cancellation gives \(\frac{(x-a)g(x)}{x-a}=g(x)\). If \(g\) is continuous at \(a\), then its limit as \(x\) approaches \(a\) is \(g(a)\). This explains both why the method works and why its conditions matter: the original quotient and \(g\) agree near \(a\), except possibly at \(a\), and continuity determines the limit of \(g\).
Worked Examples
Worked Example: A Basic Difference of Squares
Evaluate \(\lim_{x\to 3}\frac{x^2-9}{x-3}\).
Direct substitution gives \(x^2-9=3^2-9=0\) and \(x-3=3-3=0\), so substitution produces \(0/0\). The numerator is a difference of squares: \(x^2-9=x^2-3^2\).
The reduced expression \(x+3\) is continuous at \(x=3\). Therefore, \(\lim_{x\to 3}(x+3)=3+3=6\).
Check: At \(x=4\), the original quotient is \(\frac{16-9}{4-3}=7\). The reduced expression is \(4+3=7\), as required. At the approach point, the reduced expression has value \(3+3=6\), which gives the limit, even though the original quotient is undefined at \(x=3\).
Worked Example: A Linear Expression Squared
Evaluate \(\lim_{x\to 2}\frac{(2x+1)^2-25}{x-2}\).
At \(x=2\), the numerator is \((2\cdot2+1)^2-25=5^2-25=0\), and the denominator is \(2-2=0\). Write \(25=5^2\), then apply the identity with \(u=2x+1\) and \(v=5\):
For \(x\ne2\), cancel the common factor \(x-2\):
The reduced expression is continuous at \(x=2\), so the limit is \(4\cdot2+12=8+12=20\).
Check: At \(x=3\), the original quotient is \(\frac{(7)^2-25}{1}=\frac{49-25}{1}=24\). The reduced expression gives \(4\cdot3+12=12+12=24\). The expressions agree at this nearby input, and the reduced expression gives \(20\) at the approach point.
Worked Example: The Two Squares Have Different Linear Bases
Evaluate \(\lim_{x\to 2}\frac{(x+1)^2-(2x-1)^2}{x-2}\).
At \(x=2\), the squared expressions are \((2+1)^2=9\) and \((2\cdot2-1)^2=3^2=9\); the numerator is \(9-9=0\), and the denominator is \(2-2=0\). Apply the identity with \(u=x+1\) and \(v=2x-1\):
For \(x\ne2\), cancel \(x-2\):
The reduced expression \(-3x\) is continuous at \(x=2\). Thus the limit is \(-3\cdot2=-6\).
Check: At \(x=3\), the original quotient is \(\frac{(4)^2-(5)^2}{3-2}=\frac{16-25}{1}=-9\). The reduced expression gives \(-3\cdot3=-9\). Its value at \(x=2\) is \(-3\cdot2=-6\), confirming the limit.
Cancellation and Substitution: The Conditions
Cancellation is not an equality at the approach point when the cancelled factor is zero there. For example, in the first worked example, the original quotient is undefined at \(x=3\). The statement that it equals \(x+3\) is valid for \(x\ne3\), which is enough to compare the expressions as \(x\) approaches 3.
After cancellation, substitution is a separate step. A reduced expression that is defined at \(a\) is not automatically continuous there. For the polynomial expressions in these examples, continuity holds, so evaluating at \(a\) gives the limit. For a rational reduced expression, a denominator that is nonzero at \(a\) also ensures continuity there. Without continuity or another reason the reduced expression has a limit, its value at the point alone is not sufficient.
Confirm that the expression gives \(0/0\) before using this simplification.
Identify the two squared expressions and write their difference as \((u-v)(u+v)\).
Rewrite one factor so it visibly contains the denominator's factor.
State that cancellation is for \(x\ne a\), where the cancelled factor is nonzero.
Substitute \(a\) into the reduced expression if it is continuous and defined there.
A Common Mistake: Cancelling Terms Instead of Factors
Cancellation applies to common factors in a product, not to selected terms in a sum or difference. Consider the tempting but incorrect step below:
This step treats \(x^2\) as though it were a factor that can be cancelled against \(x\) in the denominator. But the numerator is a difference of terms, not a product with a common factor \(x\). For a concrete check, at \(x=2\), the original fraction is \(\frac{4-16}{2-4}=\frac{-12}{-2}=6\), whereas the incorrectly changed fraction is \(\frac{2-16}{2-4}=\frac{-14}{-2}=7\). The expressions are not equal.
The correct method factors the entire numerator as a difference of squares:
Since \(x+4\) is continuous at \(4\), the limit as \(x\) approaches \(4\) is \(4+4=8\). The check at \(x=2\) also agrees: the correct reduced expression gives \(2+4=6\), matching the original fraction.
Why This Method Matters
The difference-of-squares identity can turn an apparently stuck \(0/0\) expression into a form with a visible common factor. It is useful because it connects a pattern in the numerator to the structure of the denominator. The result is not found by assigning a value to \(0/0\), but by simplifying the quotient at nearby inputs and then using the behavior of the reduced expression.
Before concluding, check three things: the numerator really is a difference of squares; the factors really include the denominator's factor; and the reduced expression is continuous and defined at the approach point. These checks make the calculation reliable and clarify why the limit follows.
Check Your Understanding
For each question, show the factorization and state why the final substitution is valid.
- Evaluate \(\lim_{x\to5}\frac{x^2-25}{x-5}\).
- Evaluate \(\lim_{x\to1}\frac{(3x+2)^2-25}{x-1}\).
- For \(\lim_{x\to2}\frac{(x+3)^2-(2x+1)^2}{x-2}\), identify the factors after using the identity and evaluate the limit.
- Why is it valid to cancel a factor \(x-a\) in a limit calculation even though \(x-a=0\) at \(x=a\)?
- In one sentence, explain why being defined at the approach point is not by itself enough to justify substitution into a reduced expression.