Sub topic 6
Simplifying complex fractions
This chapter assumes you can factor polynomials, find a least common denominator (LCD), add and subtract rational expressions, and divide one rational expression by another. It also assumes you can list the excluded values of a rational expression.
What a complex fraction is
A complex fraction is a fraction whose numerator, denominator, or both contain fractions. Here are three examples:
(1/x + 1/y) / (1/x - 1/y)(x - 4/x) / (1 - 2/x)1 / (1/a + 1/b)
Simplifying one means rewriting it as a single ratio of polynomials with no fractions inside it. It also means stating which values are excluded.
Two methods
Both methods give the same answer. Pick the one that needs less work.
| Method | Steps | Best when |
|---|---|---|
| A: combine, then divide | Write the numerator as one fraction. Write the denominator as one fraction. Multiply the top by the reciprocal of the bottom. | The numerator and denominator are each a single fraction, or are easy to combine. |
| B: multiply by the LCD | Find the LCD of every small fraction. Multiply the whole numerator and the whole denominator by it. Simplify. | Several small fractions are spread through the expression. |
Method B works because multiplying the top and bottom by the same nonzero expression is multiplying by 1. The LCD clears every inner denominator in one step.
Worked example 1: two variables
Simplify (1/x + 1/y) / (1/x - 1/y).
The small denominators are x and y, so the LCD is xy. Multiply the top and bottom by xy:
- Top:
xy(1/x + 1/y) = y + x - Bottom:
xy(1/x - 1/y) = y - x
The result is (x + y)/(y - x).
The excluded values are x ≠ 0, y ≠ 0, and y ≠ x, because the original denominator 1/x - 1/y equals zero when x = y.
You can check this with SymPy by subtracting the answer from the original. A result of 0 means the two are equal.
from sympy import symbols, cancel
x, y = symbols('x y')
expr = (1/x + 1/y) / (1/x - 1/y)
answer = (x + y) / (y - x)
print(cancel(expr - answer)) # 0Worked example 2: factoring helps
Simplify (1/(x-2) - 1/(x+2)) / (1/(x²-4)).
Factor x² - 4 = (x-2)(x+2). The LCD of all the small fractions is (x-2)(x+2). Multiply the top and bottom by it:
- Top:
(x+2) - (x-2) = 4 - Bottom:
1
The expression simplifies to 4.
The answer is a constant, but the expression is still undefined at x = 2 and x = -2. The correct statement is 4, for x ≠ 2, -2.
Worked example 3: a hidden excluded value
Simplify (x - 4/x) / (1 - 2/x).
The only small denominator is x, so multiply the top and bottom by x:
- Top:
x² - 4 - Bottom:
x - 2
Factor the top: (x-2)(x+2)/(x-2). Cancel x - 2 to get x + 2.
Now collect the excluded values from the original expression:
x ≠ 0, because4/xand2/xappear in it.x ≠ 2, because the original denominator1 - 2/xis zero there.
The answer is x + 2 for x ≠ 0, 2. The value x = 0 is excluded even though x + 2 is perfectly defined there. That exclusion is not visible in the simplified form or in the cancelled factor, so you have to read it from the original.
from sympy import symbols, cancel, together, fraction, solve
x = symbols('x')
expr = (x - 4/x) / (1 - 2/x)
print(cancel(expr)) # x + 2
inner_den = together(1 - 2/x) # (x - 2)/x
num, den = fraction(inner_den)
print(solve(num, x), solve(den, x)) # [2] [0]cancel returns x + 2 and drops the exclusions. The solve calls recover them: the denominator 1 - 2/x vanishes at 2, and the inner fraction is undefined at 0.
Complex fractions that use negative exponents
Expressions such as (x⁻¹ + y⁻¹)/(x⁻¹ - y⁻¹) are the same as example 1. Rewrite each a⁻¹ as 1/a first, then use either method. Do not distribute the exponent over a sum. (x + y)⁻¹ is 1/(x + y), which is not x⁻¹ + y⁻¹.
Common errors
| Error | Why it is wrong | Fix |
|---|---|---|
| Multiplying only the first term of the numerator by the LCD | You changed the value of the expression. | Put the numerator and the denominator in parentheses and distribute the LCD to every term. |
| Writing `1/(1/a + 1/b) = a + b` | The reciprocal of a sum is not the sum of reciprocals. | Combine first: `1/((a+b)/(ab)) = ab/(a+b)`. |
| Cancelling terms such as the `x` in `(x² - 4)/(x - 2)`'s `x - 2`... or `(x + 2)/x` | Only factors cancel, not terms joined by addition. | Factor first. In `(x-2)(x+2)/(x-2)`, `x - 2` is a factor. |
| Listing only the final denominator's zeros | Values that were hidden inside the original are lost. | List the zeros of every inner denominator and of the overall denominator. |
| Using a wrong LCD in method B | Some small fractions are left uncleared. | Factor every denominator and take each factor to its highest power. |
When the LCD has repeated factors
Suppose a complex fraction has small denominators x, x² and x - 1. The LCD is x²(x - 1). Using x(x - 1) would leave 1/x² partly uncleared. If any fraction remains after you multiply, the LCD was too small. You can still finish, but you will need a second round of simplification.
Checking your work
Substitute a value that is not excluded into both the original and your answer. For example 3, try x = 1:
- Original:
(1 - 4)/(1 - 2) = (-3)/(-1) = 3. - Answer:
1 + 2 = 3.
They agree. Also test an excluded value to see why it is excluded. At x = 2 the original has a zero denominator, but x + 2 gives 4, which is why the answer alone would mislead you.
A single test value does not prove equality. It only catches most slips. Use two or three values, or confirm with cancel in SymPy.
Exercise
Simplify (1/x - 1/3) / (x - 3) and state every excluded value.
Show answer
The LCD of the small fractions is 3x. Multiply the top and bottom by 3x. The top becomes 3 - x. The bottom becomes 3x(x - 3). Since 3 - x = -(x - 3), cancel x - 3 to get -1/(3x). Excluded values are x ≠ 0 and x ≠ 3.
Exercise
Simplify 1 / (1/a + 1/b) and state the excluded values.
Show answer
Combine the denominator: 1/a + 1/b = (a + b)/(ab). Dividing 1 by that fraction gives ab/(a + b). The excluded values are a ≠ 0, b ≠ 0, and a + b ≠ 0, because the overall denominator is zero when a + b = 0.