Sub topic 7
Distributing and Combining Like Terms First
What this chapter assumes
This chapter assumes you can already solve one-step and two-step equations with inverse operations, and that you can check an answer by substitution. You should also know the order of operations and how to add and multiply signed numbers. The new skill here is cleaning up each side of an equation before you start moving terms across the equals sign.
Why simplify first
The balance principle says that doing the same thing to both sides of an equation gives an equivalent equation. That principle works on any equation. It works best when each side is already as short as possible.
An equation such as 3(x - 2) + 4 = 2x + 5 contains parentheses and several terms. If you try to apply inverse operations right away, you have to decide which operation to undo first, and the choice is not obvious. If you simplify each side on its own, you get a shorter equation that has the same solution. Simplifying one side by itself is a legal step because it replaces an expression with an equal expression. It does not change the value of that side.
The routine for this chapter is:
- Distribute to remove parentheses on each side.
- Combine like terms on each side separately.
- Solve the simplified equation with the methods you already know.
- Check the answer in the original equation.
The distributive property
The distributive property says that a number multiplied by a sum is the same as that number multiplied by each part of the sum:
a(b + c) = ab + ac
The same rule holds for subtraction, because subtraction is adding a negative: a(b - c) = ab - ac.
Here is a numeric check. 3(2 + 5) is 3 × 7 = 21. Distributing gives 3·2 + 3·5 = 6 + 15 = 21. Both routes agree.
With a variable inside the parentheses, you cannot add first, so you distribute:
4(x + 3) = 4x + 125(2x - 1) = 10x - 5-2(x + 6) = -2x - 12
Distributing a negative number or a minus sign
Sign errors are the most common mistake in this chapter. A negative factor multiplies every term inside the parentheses, so it changes every sign inside:
-3(x - 4) = -3x + 12, because(-3)(-4) = +12.
A minus sign in front of parentheses means a factor of -1:
-(2x - 5) = -2x + 57 - (x + 3) = 7 - x - 3
The second example shows the usual trap. Writing 7 - x + 3 is wrong, because the minus sign applies to the whole group and not only to x.
Distributing a fraction or a variable
The rule does not depend on what the factor is. A fraction distributes the same way: (1/2)(4x + 6) = 2x + 3. A variable can also be the factor: x(x + 2) = x² + 2x. That second form produces an x² term, so it is not linear. In this tutorial the equations you meet are set up so that any such terms cancel or do not appear.
Combining like terms
Terms are the pieces of an expression that are separated by plus or minus signs. Like terms have the same variable part. In 3x + 4 - x + 2, the terms 3x and -x are like terms, and 4 and 2 are like terms (constants). The terms 3x and 4 are not like terms, because one has the variable and the other does not.
To combine like terms, add their coefficients and keep the variable part unchanged. A coefficient is the number multiplying the variable. When a variable has no written number, its coefficient is 1, and -x has coefficient -1.
3x + 4 - x + 2: the x terms give3 - 1 = 2, so2x. The constants give4 + 2 = 6. The result is2x + 6.5x - 8x = -3xx + x + x = 3x
This works because of the distributive property run in reverse: 3x - x = (3 - 1)x.
Combine only within one side. If an equation has terms on both sides, do not merge a term from the left with a term from the right at this stage. Moving terms across the equals sign is a separate step, and the next chapter covers it.
Worked example 1: distribute, combine, solve
Solve 3(x - 2) + 4 = 2x + 5.
3(x - 2) + 4 = 2x + 5
3x - 6 + 4 = 2x + 5 distribute
3x - 2 = 2x + 5 combine like terms
x - 2 = 5 subtract 2x from both sides
x = 7 add 2 to both sides
Check: 3(7 - 2) + 4 = 19 and 2(7) + 5 = 19Walking through it:
- Distribute
3overx - 2to get3x - 6. The left side becomes3x - 6 + 4. - Combine the constants
-6 + 4 = -2. The left side is now3x - 2. The right side,2x + 5, is already simple. - Subtract
2xfrom both sides, which leavesx - 2 = 5. - Add
2to both sides, which givesx = 7. - Substitute
7into the original equation. The left side is3(5) + 4 = 19. The right side is14 + 5 = 19. They match.
Always substitute into the original equation, not into a simplified version. If you made a distribution error early, a check against the simplified version would hide it.
Worked example 2: a negative factor
Solve 10 - 2(x + 1) = 4x - 7.
- Distribute
-2. Note that the-2belongs to the group, so-2(x + 1) = -2x - 2. The left side becomes10 - 2x - 2. - Combine constants:
10 - 2 = 8. The left side is8 - 2x. - The equation is
8 - 2x = 4x - 7. - Add
2xto both sides:8 = 6x - 7. - Add
7to both sides:15 = 6x. - Divide by
6:x = 15/6 = 5/2.
Check with x = 5/2. The left side is 10 - 2(5/2 + 1) = 10 - 2(7/2) = 10 - 7 = 3. The right side is 4(5/2) - 7 = 10 - 7 = 3. They match.
Notice that the answer is a fraction. A fractional answer is normal for linear equations and is not a sign of a mistake.
Worked example 3: parentheses on both sides
Solve 2(3x + 1) - (x - 4) = 5(x + 2) - 3.
- Left side:
2(3x + 1) = 6x + 2, and-(x - 4) = -x + 4. Together:6x + 2 - x + 4. - Combine on the left:
5x + 6. - Right side:
5(x + 2) = 5x + 10, so the side is5x + 10 - 3, which is5x + 7. - The equation is
5x + 6 = 5x + 7. - Subtract
5xfrom both sides:6 = 7.
The result 6 = 7 is false for every value of x. This equation has no solution. Simplifying first made that visible quickly. The chapter on solution types explains this outcome in full.
Checking the work with code
You can confirm a distribution and a solution with exact arithmetic. Python's Fraction type avoids rounding errors, so the equality test is reliable. The function below solves a·x + b = c, which is the form your simplified equation reaches after both sides have been cleaned up and the variable terms are on one side.
from fractions import Fraction
def solve_linear(a, b, c):
"""Solve a*x + b = c exactly for x."""
a, b, c = Fraction(a), Fraction(b), Fraction(c)
if a == 0:
return "infinitely many solutions" if b == c else "no solution"
return (c - b) / a
# 3(x - 2) + 4 = 17 becomes 3x - 2 = 17 after distributing and combining
print(solve_linear(3, -2, 17)) # 19/3
# Verify against the original, unsimplified form
x = solve_linear(3, -2, 17)
print(3 * (x - 2) + 4 == 17) # TrueThe final line substitutes the answer into the original expression with parentheses. That is the same discipline as checking by hand. The first call encodes the simplified equation. The last line tests whether the simplification was correct.
Order of steps and common errors
You may distribute and combine in either order across different parts of an equation, but within one expression you must finish the parentheses before you combine terms that depend on them. The table lists the errors that appear most often.
| Error | Example of the mistake | Correct work |
|---|---|---|
| Forgetting to distribute to every term | `2(x + 5) = 2x + 5` | `2x + 10` |
| Sign error with a negative factor | `-3(x - 4) = -3x - 12` | `-3x + 12` |
| Minus sign applied to only the first term | `6 - (x + 2) = 6 - x + 2` | `6 - x - 2 = 4 - x` |
| Combining unlike terms | `3x + 4 = 7x` | Leave as `3x + 4` |
| Dropping an invisible coefficient | `x + 2x = 2x` | `3x` |
| Combining across the equals sign too early | Merging `3x` on the left with `2x` on the right in one move | Simplify each side first, then move terms |
A useful habit is to write each line as its own equation, with a short note on what you did. If an answer fails the check, you can then scan the lines and find the first one that is not equivalent to the one above it.
How the steps fit together
The flow below shows the order for any linear equation that has parentheses or repeated terms.
Edge cases to watch for
- Nested parentheses. In
2(3(x + 1) - 4), work from the inside out. Distribute the3first to get2(3x + 3 - 4), combine to2(3x - 1), then distribute the2to get6x - 2. - Terms that cancel. In
4(x + 1) - 4x = 4, distributing gives4x + 4 - 4x, and the x terms combine to0x. The equation becomes4 = 4, which is true for everyx. - Variables that vanish. If all variable terms cancel, the result is a true or false statement about constants. A true statement means every number is a solution. A false statement means there is none.
- Decimal and fraction factors. The distribution rule is unchanged, but the arithmetic is easier to get wrong. Using exact fractions, as in the code above, keeps the answer exact.
Practice
Exercise
Simplify the left side of 4(2x - 3) - (x - 5) = 20 and then solve for x.
Show answer
Distribute: 4(2x - 3) = 8x - 12, and -(x - 5) = -x + 5. The left side is 8x - 12 - x + 5 = 7x - 7. The equation is 7x - 7 = 20. Add 7: 7x = 27. Divide by 7: x = 27/7. Check: 4(54/7 - 21/7) - (27/7 - 35/7) = 4(33/7) + 8/7 = 132/7 + 8/7 = 140/7 = 20.
Exercise
A student solves 5 - 2(x - 3) = 9 and writes 5 - 2x - 6 = 9, then gets x = -5. Find the error and give the correct solution.
Show answer
The student multiplied only the first term by -2 correctly but then wrote -6 instead of +6 for the second term, since (-2)(-3) = +6. The correct line is 5 - 2x + 6 = 9, which becomes 11 - 2x = 9. Subtract 11: -2x = -2. Divide by -2: x = 1. Check: 5 - 2(1 - 3) = 5 - 2(-2) = 5 + 4 = 9.
Exercise
Decide whether 3(2x + 1) - 6x = 3 has one solution, no solution, or infinitely many solutions.
Show answer
Distribute: 3(2x + 1) = 6x + 3. The left side is 6x + 3 - 6x = 3. The equation is 3 = 3, which is true for every x. It has infinitely many solutions.