Sub topic 5
Adding and Subtracting with a Least Common Denominator
This chapter assumes you can factor polynomials (common factors, difference of squares, trinomials), add fractions with numeric denominators, and state the excluded values of a rational expression. It covers the working method for adding and subtracting rational expressions, and the errors that come up most often.
Why a common denominator is required
Two fractions can be added only when they count the same size of piece. With numbers, 1/2 + 1/3 is rewritten as 3/6 + 2/6 = 5/6. Rational expressions follow the same rule. The numerators are added or subtracted only after both fractions have the same denominator.
If the denominators already match, you add the numerators and keep the denominator:
(2x + 1)/(x - 4) + (x + 5)/(x - 4) = (3x + 6)/(x - 4)
Any common denominator works. The product of the two denominators always works. The least common denominator (LCD) is the lowest-degree expression that every denominator divides into evenly. Using it keeps the numbers small and usually leaves less to cancel at the end.
Finding the LCD
Work from the factored forms of the denominators.
- Factor each denominator completely.
- List every distinct factor that appears in any denominator.
- Give each factor the highest power it has in any single denominator.
- Multiply those factors together. The result is the LCD.
For example, take the denominators x² - 4 and x² + 4x + 4.
- x² - 4 = (x - 2)(x + 2)
- x² + 4x + 4 = (x + 2)²
The factor x - 2 appears once. The factor x + 2 appears to the first power in one denominator and to the second power in the other, so the LCD uses the second power:
LCD = (x - 2)(x + 2)²
The product of the two denominators would be (x - 2)(x + 2)³. That is a valid common denominator, but it is larger than needed.
The procedure, step by step
Worked example 1: unlike linear denominators
Simplify 1/(x - 1) + 1/(x + 1).
The denominators share no factor, so the LCD is (x - 1)(x + 1).
- The first fraction is missing the factor x + 1. Multiply its top and bottom by x + 1.
- The second fraction is missing the factor x - 1. Multiply its top and bottom by x - 1.
1/(x - 1) + 1/(x + 1) = (x + 1)/((x - 1)(x + 1)) + (x - 1)/((x - 1)(x + 1))
= ((x + 1) + (x - 1))/((x - 1)(x + 1)) = 2x/((x - 1)(x + 1))
The numerator 2x has no factor in common with the denominator, so the result is fully simplified. The excluded values are x = 1 and x = -1.
You can check this with SymPy. The function together combines a sum of fractions over a common denominator.
from sympy import symbols, together
x = symbols('x')
expr = 1/(x - 1) + 1/(x + 1)
print(together(expr)) # equivalent to 2*x/((x - 1)*(x + 1))Worked example 2: a shared factor
Simplify 3/(x² - 4) - 2/(x² + 4x + 4).
From the factoring above, the LCD is (x - 2)(x + 2)².
- The first denominator, (x - 2)(x + 2), is missing one factor of x + 2.
- The second denominator, (x + 2)², is missing the factor x - 2.
3(x + 2)/((x - 2)(x + 2)²) - 2(x - 2)/((x - 2)(x + 2)²)
= (3(x + 2) - 2(x - 2))/((x - 2)(x + 2)²)
= (3x + 6 - 2x + 4)/((x - 2)(x + 2)²)
= (x + 10)/((x - 2)(x + 2)²)
The numerator x + 10 does not factor with either denominator factor, so this is the final form. The excluded values are x = 2 and x = -2.
Subtraction: distribute the minus sign
The most common error in this chapter is a sign error in subtraction. The minus sign applies to the entire second numerator, not only to its first term.
Compare these two lines for (x + 3)/(x - 1) - (x - 2)/(x - 1):
- Wrong: (x + 3 - x - 2)/(x - 1) = 1/(x - 1)
- Right: (x + 3 - (x - 2))/(x - 1) = (x + 3 - x + 2)/(x - 1) = 5/(x - 1)
A reliable habit is to put the second numerator in parentheses as soon as you write the subtraction, before doing anything else.
Denominators that are opposites
Sometimes two denominators differ only by sign, such as x - 5 and 5 - x. Because 5 - x = -(x - 5), you can use x - 5 as the LCD and avoid a larger product.
Simplify 4/(x - 5) + 3/(5 - x).
Rewrite the second fraction using 5 - x = -(x - 5):
3/(5 - x) = -3/(x - 5)
Then 4/(x - 5) - 3/(x - 5) = 1/(x - 5).
The excluded value is x = 5.
Excluded values come from the original expression
After combining, a factor can cancel, and the simplified form can hide a restriction. The excluded values always come from the denominators you started with, not the final answer.
Consider 1/(x - 2) + (x - 3)/((x - 2)(x - 3)).
The second fraction simplifies to 1/(x - 2), so the sum is 2/(x - 2). The simplified form excludes only x = 2. The original expression is also undefined at x = 3, because that value makes a denominator zero. The equivalence 1/(x - 2) + (x - 3)/((x - 2)(x - 3)) = 2/(x - 2) holds for every x except 2 and 3.
The same idea appeared in the chapter on simplifying. Cancelling a factor does not make the restriction go away. SymPy's cancel shows the cancelled form but drops this information:
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 original expression is undefined at both x = 2 and x = 3, but the printed result mentions only x = 2.
Common errors
| Error | Example | Correction |
|---|---|---|
| Adding denominators | 1/a + 1/b = 2/(a + b) | Find a common denominator first: (b + a)/(ab) |
| Cancelling terms, not factors | (x + 4)/4 = x + 1 | Only a common factor of the whole numerator and denominator can cancel |
| Forgetting to scale the numerator | 1/(x - 1) + 1/(x + 1) = 1/((x - 1)(x + 1)) + 1/((x - 1)(x + 1)) | Multiply the numerator by the same factor as the denominator |
| Sign error in subtraction | a - b - c instead of a - (b - c) | Wrap the second numerator in parentheses |
| Stopping before simplifying | (2x + 6)/((x + 3)(x - 1)) | Factor the numerator: 2(x + 3), then cancel x + 3 to get 2/(x - 1) |
Reversing the process: partial fractions
Adding fractions builds a single fraction out of simpler ones. The reverse operation splits one fraction into a sum of simpler pieces. SymPy's apart does this, and a later chapter explains the method:
from sympy import symbols, apart
x = symbols('x')
print(apart(1/(x**2 - 1))) # equivalent to 1/(2*(x - 1)) - 1/(2*(x + 1))You can verify the output by running the steps from this chapter on the result: the LCD is (x - 1)(x + 1), and the numerators combine to 1.
Checking your work
Substitute a value that is not excluded into the original sum and into your answer. For Worked Example 1, use x = 3:
- Original: 1/2 + 1/4 = 3/4
- Answer: 2(3)/((2)(4)) = 6/8 = 3/4
The two values match. One test value does not prove the algebra is right, but a mismatch proves it is wrong. Choose a value that is not 0 or 1, since those can hide errors.
Exercise
Simplify 2/(x² - 9) + 1/(x + 3), and state the excluded values.
Show answer
Factor x² - 9 = (x - 3)(x + 3). The LCD is (x - 3)(x + 3). The second fraction is missing x - 3, so 1/(x + 3) = (x - 3)/((x - 3)(x + 3)). The sum is (2 + x - 3)/((x - 3)(x + 3)) = (x - 1)/((x - 3)(x + 3)). Nothing cancels. The excluded values are x = 3 and x = -3.
Exercise
Simplify (x + 1)/(x - 4) - (x - 2)/(4 - x).
Show answer
Write 4 - x as -(x - 4), so the second term is -(x - 2)/(4 - x) = +(x - 2)/(x - 4). The sum is ((x + 1) + (x - 2))/(x - 4) = (2x - 1)/(x - 4). The excluded value is x = 4.
Exercise
Find the LCD of 5/(x² - x - 6) and 2/(x² - 4x + 3), then add the fractions.
Show answer
x² - x - 6 = (x - 3)(x + 2) and x² - 4x + 3 = (x - 3)(x - 1). The LCD is (x - 3)(x + 2)(x - 1). The sum is (5(x - 1) + 2(x + 2))/((x - 3)(x + 2)(x - 1)) = (7x - 1)/((x - 3)(x + 2)(x - 1)). The excluded values are 3, -2 and 1.