Sub topic 19
Simplifying Rational Expressions by Factoring
A rational expression is a fraction whose numerator and denominator are polynomials, such as (x² − 9)/(x² + x − 6). This chapter assumes you can already factor a greatest common factor, a difference of squares, and a trinomial. It also assumes you can multiply fractions and know that division by zero is undefined. Simplifying a rational expression means factoring the top and bottom, then cancelling the factors they share.
The core rule
You can cancel factors, which are things multiplied together. You cannot cancel terms, which are things added or subtracted. The rule rests on the fact that (a·c)/(b·c) = a/b whenever c ≠ 0.
Do the restriction step before cancelling. After a factor cancels, it no longer shows in the denominator, so it is easy to forget.
Worked example 1: trinomials and a difference of squares
Simplify (x² − 9)/(x² + x − 6).
- Factor the numerator as a difference of squares: x² − 9 = (x − 3)(x + 3).
- Factor the denominator as a trinomial. You need two numbers that multiply to −6 and add to 1, which are 3 and −2. So x² + x − 6 = (x + 3)(x − 2).
- The original denominator is zero when x = −3 or x = 2.
- Cancel (x + 3). The result is (x − 3)/(x − 2), for x ≠ −3 and x ≠ 2.
The restriction x ≠ −3 stays even though (x + 3) is gone. The original expression is undefined at x = −3, but the simplified one is not.
The code below checks the result with exact fractions:
from fractions import Fraction
def original(x):
return Fraction(x**2 - 9, x**2 + x - 6)
def simplified(x):
return Fraction(x - 3, x - 2)
for x in range(-6, 7):
if x in (-3, 2):
continue # the original is undefined here
assert original(x) == simplified(x)
print("agree everywhere the original is defined")
print("simplified at -3:", simplified(-3))
try:
original(-3)
except ZeroDivisionError:
print("original at -3: undefined")Worked example 2: pulling out a common factor
Simplify (3x² + 6x)/(9x). Factor the numerator as 3x(x + 2). Then 3x(x + 2)/(9x) = (x + 2)/3, for x ≠ 0.
Here the numbers cancel as well as the variable. 3x is the shared factor, and 9x = 3x · 3.
Worked example 3: opposite factors
Factors such as (x − 5) and (5 − x) look different but are opposites: 5 − x = −(x − 5). Rewrite one so they match.
Simplify (x² − 25)/(5 − x).
- Factor the numerator: (x − 5)(x + 5).
- Rewrite the denominator: 5 − x = −(x − 5).
- Cancel (x − 5). What is left is (x + 5)/(−1) = −(x + 5), for x ≠ 5.
Missing this step is a common source of sign errors.
Valid and invalid cancellation
| Expression | Can you cancel? | Why |
|---|---|---|
| (x + 3)(x − 3) / (x + 3) | Yes, cancel (x + 3) | It is a factor of the whole numerator and of the denominator. |
| (x + 3) / 3 | No | The 3 in the numerator is a term, not a factor of the whole numerator. |
| (x² + 4) / (x + 2) | No | x² + 4 does not factor over the real numbers, so there is nothing to cancel. |
| 6x / (3x + 3) | Only after factoring | 3x + 3 = 3(x + 1), so the result is 2x/(x + 1). Cancel the 3, but not the x. |
Test any suspicious cancellation with a number. If you cancel the x in (x + 3)/x and get 3, try x = 1. The original is 4 and the "simplified" form is 3, so the cancellation was wrong.
Multiplying and dividing
Factor everything first, then cancel across the whole product. To divide, multiply by the reciprocal of the second fraction. The reciprocal's numerator and denominator also become restrictions.
Simplify [(x² − 4)/(x² + 4x + 4)] · [(x + 2)/(x − 2)].
- (x² − 4) = (x − 2)(x + 2)
- (x² + 4x + 4) = (x + 2)²
The product is (x − 2)(x + 2)(x + 2) / [(x + 2)(x + 2)(x − 2)], and every factor cancels. The result is 1, for x ≠ −2 and x ≠ 2.
Adding and subtracting
Simplifying helps with sums too. Factor the denominators first so you can find the least common denominator.
1/(x − 2) + 4/(x² − 4) has denominators (x − 2) and (x − 2)(x + 2). The common denominator is (x − 2)(x + 2). Then:
(x + 2)/[(x − 2)(x + 2)] + 4/[(x − 2)(x + 2)] = (x + 6)/[(x − 2)(x + 2)]
Nothing cancels here, because x + 6 shares no factor with the denominator. Do not cancel the 6 with anything.
GRE patterns
GRE questions often give a rational expression, tell you x ≠ some value, and ask for the value at a specific x. Factoring first is faster and safer than substituting.
Evaluate (x² − x − 12)/(x² − 16) when x = 7.
- Numerator: (x − 4)(x + 3), since −4 · 3 = −12 and −4 + 3 = −1.
- Denominator: (x − 4)(x + 4).
- Cancel (x − 4) to get (x + 3)/(x + 4). At x = 7 this is 10/11.
Direct substitution gives 30/33, which reduces to the same value. Factoring helps more in Quantitative Comparison questions. For example, if Quantity A is (x² − 9)/(x − 3) and Quantity B is x + 3, with x ≠ 3, the quantities are equal. The stated restriction is what makes the cancellation legal. If a question allowed x = 3, Quantity A would be undefined, and the question would be flawed.
Common errors
- Cancelling terms, as in (x + 5)/5 → x + 1.
- Dropping restrictions after a factor cancels.
- Missing a sign flip with opposite factors.
- Stopping at partial factoring. Check that every factor is fully factored, for instance that (x² − 4) became (x − 2)(x + 2).
- Distributing a minus sign incorrectly when rewriting (5 − x) as −(x − 5).
Exercise
Simplify (x² − 6x + 9)/(x² − 9) and state every value of x that the original expression excludes.
Show answer
The numerator is (x − 3)². The denominator is (x − 3)(x + 3). Cancelling one (x − 3) gives (x − 3)/(x + 3). The original denominator is zero when x = 3 or x = −3, so the result holds for x ≠ 3 and x ≠ −3.
Exercise
If x ≠ 2 and x ≠ −2, what is the value of (2 − x)(x + 2) / (x² − 4)?
Show answer
The denominator is (x − 2)(x + 2). Rewrite 2 − x as −(x − 2). The numerator becomes −(x − 2)(x + 2), so every factor cancels except the −1. The value is −1.
Exercise
A student simplifies (x² + 6)/(x + 6) to x by cancelling the 6s. Give a value of x that shows the error.
Show answer
Let x = 1. The original is 7/7 = 1 here, which happens to match, so try x = 2: (4 + 6)/(2 + 6) = 10/8 = 5/4, but the student's answer is 2. The 6s are terms, not factors, so they cannot be cancelled.