Sub topic 3
Simplifying by Factoring and Cancelling
Prerequisites and the main idea
Assume you can factor polynomials, solve linear equations, and work with fractions. A rational expression is a quotient of two polynomials, such as
(x^2 - 9)/(x^2 - 5x + 6).
To simplify it, factor the numerator and denominator, identify common factors, and cancel those factors. You must also record values that make the original denominator zero. Those values remain excluded even after cancellation.
Factor before cancelling
Factor each polynomial completely:
- The numerator is a difference of squares:
x^2 - 9 = (x - 3)(x + 3).
- The denominator is a trinomial:
x^2 - 5x + 6 = (x - 2)(x - 3).
Therefore,
(x^2 - 9)/(x^2 - 5x + 6) = ((x - 3)(x + 3))/((x - 2)(x - 3)).
The common factor is x - 3, so cancel it:
(x + 3)/(x - 2).
However, the original denominator is zero when x = 2 or x = 3. The simplified expression still represents the original expression only when x is not 2 or 3.
| Stage | Expression | Excluded values |
|---|---|---|
| Original | `(x^2 - 9)/(x^2 - 5x + 6)` | `x ≠ 2, 3` |
| Factored | `((x - 3)(x + 3))/((x - 2)(x - 3))` | `x ≠ 2, 3` |
| Simplified | `(x + 3)/(x - 2)` | `x ≠ 2, 3` |
A reliable procedure
- Factor the numerator and denominator completely.
- Find values that make the original denominator zero.
- Rewrite the expression using factors.
- Cancel only identical factors in the numerator and denominator.
- State the restrictions from the original denominator.
- Check the result at an allowed value of
x.
The cancellation rule comes from dividing by a nonzero quantity. If x - 3 = 0, cancellation would involve division by zero, so x = 3 cannot be restored to the domain.
from sympy import symbols, cancel
x = symbols('x')
expr = (x**2 - 9) / (x**2 - 5*x + 6)
print(cancel(expr)) # (x + 3)/(x - 2)The computer algebra result shows the simplified formula, but it does not replace the domain check. The original expression is undefined at x = 2 and x = 3.
Exercise
Simplify (x^2 - 16)/(x^2 + 2x - 8) and state the excluded values.
Show answer
Factor to get ((x - 4)(x + 4))/((x + 4)(x - 2)). Cancel x + 4, giving (x - 4)/(x - 2), with x ≠ -4, 2.