Sub topic 7
The distributive property: why combining works
This chapter explains the distributive property and shows that combining like terms is an application of it. It assumes you can do arithmetic with integers and fractions (including negatives), apply the order of operations, and read exponents such as 3^2. It also assumes you know the vocabulary from earlier chapters: variable, coefficient, term, and like terms.
The property in one line
The distributive property says that multiplying a number by a sum gives the same result as multiplying it by each part of the sum and then adding the products:
a(b + c) = ab + ac
The property holds for any numbers a, b, and c. It also works from right to left: ab + ac = a(b + c). Going left to right is called distributing (or expanding). Going right to left is called factoring. Both directions matter in this chapter.
A numeric check first
Test the rule with numbers before you use letters. Take 4(10 + 3).
- Add first: 4 × 13 = 52.
- Distribute: 4 × 10 + 4 × 3 = 40 + 12 = 52.
Both routes give 52. Algebra relies on this rule because it holds even when you can't add the inside of the parentheses. In 4(x + 3), you can't add x and 3 into a single number. Distributing is the only way to simplify.
Why the rule is true
Picture a rectangle that is 4 units tall. Its width is split into a part of length 10 and a part of length 3. The whole rectangle has area 4 × (10 + 3). The two smaller rectangles have areas 4 × 10 and 4 × 3. The big area equals the sum of the two small areas, because they are the same region cut into two pieces.
Distributing over a sum
Apply the rule by multiplying the outside factor by every term inside the parentheses, one at a time.
Example: 2(x + 3).
- Multiply 2 by x to get 2x.
- Multiply 2 by 3 to get 6.
- Join the results: 2x + 6.
The outside factor can also be a variable or a fraction. For example, x(x + 5) = x·x + x·5 = x² + 5x. Here x·x is x², which follows from the meaning of exponents.
Distributing with subtraction and negatives
Subtraction is adding the opposite, so the rule works with minus signs too. Treat a(b − c) as a(b + (−c)):
a(b − c) = ab − ac
The sign belongs to the number that follows it. When the outside factor is negative, every sign inside flips, because you are multiplying each term by a negative number.
| Expression | Work | Result |
|---|---|---|
| 3(x − 4) | 3·x − 3·4 | 3x − 12 |
| −2(x + 5) | (−2)·x + (−2)·5 | −2x − 10 |
| −2(x − 5) | (−2)·x − (−2)·5 | −2x + 10 |
| −(a + b) | (−1)·a + (−1)·b | −a − b |
| −(a − b) | (−1)·a − (−1)·b | −a + b |
The last two rows show a useful fact. A minus sign in front of parentheses means multiplying by −1, so it changes the sign of every term inside.
Why combining like terms works
Now the key idea. Combining like terms is the distributive property read from right to left. Take 3x + 5x. Each term has the factor x, so factor it out:
3x + 5x = (3 + 5)x = 8x
Here ab + ac = a(b + c) is used with x as the common factor. The sum of the coefficients, 3 + 5, goes in parentheses, and the shared variable part stays outside.
You can read this in plain words. Three of something plus five of the same something is eight of that something. The distributive property is the reason that reading is valid.
Why unlike terms don't combine
Try the same move on 3x + 5y. There is no common factor shared by both terms, so there is nothing to pull out. The parentheses trick gives (3 + 5) multiplied by what? No single quantity fits. So 3x + 5y stays as it is.
This explains the rule "only like terms combine." Like terms have the same variable part (the same variables raised to the same exponents). That shared variable part is exactly the common factor that makes factoring possible.
A short numeric test shows the difference. Let x = 2 and y = 1.
- 3x + 5x = 6 + 10 = 16, and 8x = 16. They match.
- 3x + 5y = 6 + 5 = 11. Writing it as 8xy would give 8·2·1 = 16, which does not match.
Subtraction and the combined coefficient
Subtracted terms combine the same way, with the sign attached to the coefficient. For 2y − y, remember that y means 1y:
2y − y = (2 − 1)y = 1y = y
For 3x − 7x, the coefficients are 3 and −7, so the sum is −4 and the result is −4x.
Using both directions together
Many simplification problems need both uses of the property. First distribute to remove parentheses. Then combine like terms, which is factoring in disguise.
Simplify 2(x + 3) + 3x.
- Distribute: 2x + 6 + 3x.
- Group like terms: (2x + 3x) + 6.
- Combine: (2 + 3)x + 6 = 5x + 6.
SymPy confirms the result:
from sympy import symbols, expand
x = symbols('x')
print(expand(2*(x + 3) + 3*x)) # 5*x + 6expand distributes products over sums and collects like terms in one call. It gives the same answer you reached by hand.
Here is a second example with a negative sign: simplify 5x − 2(x − 4).
- Distribute −2 across both terms: −2·x = −2x and −2·(−4) = +8.
- Rewrite: 5x − 2x + 8.
- Combine: 3x + 8.
from sympy import symbols, expand
x = symbols('x')
print(expand(5*x - 2*(x - 4))) # 3*x + 8Edge cases
A coefficient of 1 or −1
A variable with no visible number has a coefficient of 1, and a variable with only a minus sign has a coefficient of −1. When you factor or combine, write the 1 in explicitly if it helps.
- x + 4x = 1x + 4x = (1 + 4)x = 5x
- 3y − y = 3y − 1y = (3 − 1)y = 2y
- −x − 2x = (−1 − 2)x = −3x
Terms that cancel
If the coefficients add to zero, the term disappears. For 4x − 4x, you get (4 − 4)x = 0·x = 0. Don't leave a leftover x behind.
Nested or repeated parentheses
When parentheses sit inside other parentheses, distribute one layer at a time, working from the inside out. For 2(3(x + 1) + x):
- Inner layer: 3(x + 1) = 3x + 3.
- The bracket becomes 3x + 3 + x, which combines to 4x + 3.
- Outer layer: 2(4x + 3) = 8x + 6.
Factoring out a number that isn't obvious
Going from right to left also works when the common factor is a number. For example, 6x + 9 = 3(2x + 3), because 3 divides both 6 and 9. You can check by distributing 3 back: 3·2x + 3·3 = 6x + 9.
Distributing over a product does not work
The property applies to a number multiplying a sum or difference. It does not apply when the inside is a product. For 2(3x), you multiply the 2 into only one place: 2(3x) = 6x. Writing 6·2x or 2·3·2x would be a mistake. Parentheses around a single term need no distributing at all.
Checking your work by substitution
Whenever you distribute or combine, you can test the answer by substituting a number for the variable. The original and the simplified expression must give the same value.
For 5x − 2(x − 4) and 3x + 8, try x = 5.
- Original: 5(5) − 2(5 − 4) = 25 − 2(1) = 23.
- Simplified: 3(5) + 8 = 15 + 8 = 23.
The values match. One test doesn't prove equivalence, since a wrong answer can match by luck at a particular value. Using two or three different values makes a mistake very unlikely to slip through.
from sympy import symbols
x, y = symbols('x y')
original = 3*x + 2*y + 5*x - y
simplified = 8*x + y
values = {x: 2, y: 1}
print(original.subs(values), simplified.subs(values)) # 17 17Summary of the rules
- a(b + c) = ab + ac. Multiply the outside factor into every term inside.
- A negative outside factor, or a minus sign before parentheses, flips every sign inside.
- ab + ac = a(b + c). This is why 3x + 5x = 8x: the coefficients add and the shared variable part stays.
- Unlike terms share no common variable factor, so they cannot be combined.
- Distribute first, then combine like terms.
Exercise
Simplify 4(2x − 3) − 3(x − 2). Show the distributing step, then the combining step, and check your answer by substituting x = 3.
Show answer
Distribute: 4(2x − 3) = 8x − 12, and −3(x − 2) = −3x + 6. The expression becomes 8x − 12 − 3x + 6. Combine like terms: (8x − 3x) + (−12 + 6) = 5x − 6. Check with x = 3. Original: 4(6 − 3) − 3(3 − 2) = 4(3) − 3(1) = 12 − 3 = 9. Simplified: 5(3) − 6 = 15 − 6 = 9. The values match.
Exercise
A student writes 3x + 4y = 7xy and says it follows from the distributive property. Explain why this is wrong, and give a substitution test that shows it.
Show answer
The distributive property lets you combine terms only when they share a common factor, as in 3x + 5x = (3 + 5)x. The terms 3x and 4y share no variable factor, so nothing can be pulled out, and 3x + 4y stays as it is. Test with x = 2 and y = 1: 3x + 4y = 6 + 4 = 10, but 7xy = 7·2·1 = 14. The values differ, so the two expressions are not equivalent.
Exercise
Factor 12x + 18 using the distributive property from right to left, and verify by distributing.
Show answer
The largest number that divides both 12 and 18 is 6, so 12x + 18 = 6(2x + 3). To verify, distribute 6: 6·2x = 12x and 6·3 = 18, which gives 12x + 18, the original expression.