Sub topic 4
Multiplying and Dividing Rational Expressions
This chapter assumes you can factor polynomials (common factors, difference of squares, trinomials). It also assumes you can cancel common factors in a single rational expression and list its excluded values. If those steps feel shaky, review the chapters on factoring and simplifying first.
The multiplication rule
A rational expression is a ratio of two polynomials. You multiply two of them the way you multiply numeric fractions: numerator times numerator, denominator times denominator.
$$\frac{A}{B}\cdot\frac{C}{D}=\frac{AC}{BD},\qquad B\ne 0,\ D\ne 0$$
Do not multiply the polynomials out first. Expanding hides the common factors you want to cancel. Factor every numerator and denominator, cancel factors that appear on top and bottom, then multiply what is left.
Worked example
Simplify
$$\frac{x^2-9}{x^2+2x}\cdot\frac{x}{x^2-x-6}.$$
- Factor each piece:
x² − 9 = (x − 3)(x + 3),x² + 2x = x(x + 2), andx² − x − 6 = (x − 3)(x + 2). - Write the product as one fraction:
(x − 3)(x + 3)·xoverx(x + 2)(x − 3)(x + 2). - Cancel the common factors
xandx − 3. The result is(x + 3)/(x + 2)². - List the excluded values from the original denominators:
x = 0,x = −2andx = 3.
from sympy import symbols, cancel
x = symbols('x')
product = (x**2 - 9) / (x**2 + 2*x) * (x / (x**2 - x - 6))
print(cancel(product)) # (x + 3)/(x + 2)**2The simplified answer only mentions x = −2. The values x = 0 and x = 3 are still excluded, because the original expression is undefined there.
The division rule
Dividing by a rational expression means multiplying by its reciprocal.
$$\frac{A}{B}\div\frac{C}{D}=\frac{A}{B}\cdot\frac{D}{C},\qquad B\ne 0,\ C\ne 0,\ D\ne 0$$
Division adds one restriction that multiplication does not have. The divisor C/D must not be zero, so C ≠ 0. This is easy to miss because C ends up in the denominator after you flip, and it may cancel against something else.
Worked example
Simplify
$$\frac{x^2-4}{x^2+x-6}\div\frac{x+2}{x^2-9}.$$
- Factor:
x² − 4 = (x − 2)(x + 2),x² + x − 6 = (x + 3)(x − 2), andx² − 9 = (x − 3)(x + 3). - Flip the divisor and multiply:
(x − 2)(x + 2)/((x + 3)(x − 2)) · (x − 3)(x + 3)/(x + 2). - Cancel
x − 2,x + 2andx + 3. The result isx − 3. - Collect the excluded values. The first denominator gives
x = −3andx = 2. The divisor's denominator givesx = ±3. The divisor itself is zero atx = −2.
The excluded set is {−3, −2, 2, 3}, even though the answer x − 3 looks defined everywhere. The code below checks both the simplification and the excluded set.
from sympy import symbols, cancel, solve
x = symbols('x')
f1 = (x**2 - 4) / (x**2 + x - 6)
f2 = (x + 2) / (x**2 - 9)
print(cancel(f1 / f2)) # x - 3
# Zeros of: first denominator, divisor's denominator, divisor's numerator
excluded = solve((x**2 + x - 6) * (x**2 - 9) * (x + 2), x)
print(sorted(excluded)) # [-3, -2, 2, 3]The full procedure
Opposite factors
Factors like x − 3 and 3 − x are negatives of each other, since 3 − x = −(x − 3). When they appear on opposite sides, they cancel to −1. Factoring out −1 makes this explicit.
Simplify (x² − 1)/(3 − x) · (x − 3)/(x + 1):
- Rewrite
3 − xas−(x − 3). - Factor
x² − 1 = (x − 1)(x + 1). - Cancel
x − 3andx + 1. What remains is(x − 1)/(−1) = −(x − 1) = 1 − x. - The excluded values are
x = 3andx = −1.
from sympy import symbols, cancel
x = symbols('x')
expr = (x**2 - 1) / (3 - x) * (x - 3) / (x + 1)
print(cancel(expr)) # equivalent to 1 - xCommon errors
| Error | Why it fails | Fix |
|---|---|---|
| Cancelling terms, as in `(x + 3)/3 → x + 1` | Only factors can cancel. `x + 3` is a sum, so the `3` is not a factor of the whole numerator. | Factor first, and cancel only multiplied pieces. |
| Dropping excluded values after cancelling | The original expression is still undefined there. | Record denominator zeros before cancelling. |
| Flipping the wrong fraction in a division | Only the divisor, the second expression, is inverted. | Mark the divisor before flipping. |
| Forgetting the divisor's own zeros | If `C = 0`, you are dividing by zero. | Add the zeros of the divisor's numerator to the excluded list. |
| Expanding the product before factoring | The common factors become hard to see. | Keep everything in factored form. |
| Sign slips with `a − b` and `b − a` | They differ by a factor of `−1`. | Factor out `−1` explicitly. |
Edge cases
- Constants as factors. A numeric factor cancels like any other. In
(6x)/(9), the common factor3gives(2x)/3. - Repeated factors.
(x + 2)²is two copies ofx + 2. Cancelling one copy leaves(x + 2), so count powers and subtract exponents. - A polynomial as a rational expression. Treat
x + 1as(x + 1)/1. Dividing by it means multiplying by1/(x + 1), andx = −1is excluded. - Irreducible factors. A factor such as
x² + 1has no real zeros. It can still cancel if it appears on both sides, but it adds no excluded real values.
Why the restrictions matter later
The restrictions stay with the expression because the simplified form and the original are equal only where both are defined. When the expression becomes a rational function, a cancelled factor in the denominator produces a hole in the graph. A factor that does not cancel produces a vertical asymptote. Writing down excluded values now gives you that information for later chapters.
Exercise
Simplify (x² − 25)/(x² + 3x) ÷ (x² − 3x − 10)/(x² − 9), and list every excluded value.
Show answer
Factor: (x − 5)(x + 5)/(x(x + 3)) ÷ (x − 5)(x + 2)/((x − 3)(x + 3)). Flip the divisor: (x − 5)(x + 5)/(x(x + 3)) · (x − 3)(x + 3)/((x − 5)(x + 2)). Cancel x − 5 and x + 3 to get (x + 5)(x − 3)/(x(x + 2)). Excluded values: the first denominator gives x = 0 and x = −3. The divisor's denominator gives x = ±3. The divisor's numerator is zero at x = 5 and x = −2. The excluded set is {−3, −2, 0, 3, 5}.
Exercise
A student simplifies (x + 4)/(x² − 16) · (x − 4)/1 and writes "1, for all x". Find the mistake and give the correct answer.
Show answer
The student cancelled correctly but ignored the restrictions. Since x² − 16 = (x − 4)(x + 4), the product is (x + 4)(x − 4)/((x − 4)(x + 4)) = 1. The original expression is undefined at x = 4 and x = −4, so the correct answer is 1 for x ≠ 4 and x ≠ −4.