Sub topic 8
Combining Like Terms Step by Step
This chapter assumes you can do integer and fraction arithmetic with negative numbers, follow the order of operations, and recognize terms, coefficients, and like terms from earlier chapters. Here you will learn a reliable procedure for combining like terms. You will also see why it works and where it breaks.
What combining means
Combining like terms means replacing several like terms with one term. The new term has the same variable part, and its coefficient is the sum of the old coefficients.
For example, 3x + 5x becomes 8x. The variable part (x) stays the same. Only the coefficients (3 and 5) are added.
The reason this is allowed comes from the distributive property. Reading it right to left, 3x + 5x = (3 + 5)x = 8x. You are factoring out the shared variable part. Combining only works when that shared part exists, which is why only like terms can be combined.
The five-step procedure
Use this routine on any expression. It prevents most errors, especially lost signs.
- Split into terms. Mark where each term starts. Every plus or minus sign that separates terms belongs to the term on its right.
- Write each coefficient with its sign. Treat subtraction as adding a negative. Treat a bare variable such as x as 1x, and -y as -1y.
- Group like terms. Gather the terms that have the same variable part. A constant is its own group.
- Add the coefficients in each group. Use the rules for adding signed numbers.
- Write the result. Put the new terms in a sensible order, usually by descending powers of a variable or alphabetically, and drop any term whose coefficient is 0.
Worked example 1: two variables
Simplify 3x + 2y + 5x - y.
- Terms: 3x, +2y, +5x, -y.
- Coefficients with signs: +3 (x), +2 (y), +5 (x), -1 (y).
- Groups: the x terms are 3x and 5x. The y terms are 2y and -1y.
- Add: 3 + 5 = 8 for x, and 2 + (-1) = 1 for y.
- Result: 8x + y. The coefficient 1 is not written, so y is written alone.
You can confirm this with SymPy, a Python library for symbolic algebra:
from sympy import symbols, expand
x, y = symbols('x y')
expr = 3*x + 2*y + 5*x - y
print(expand(expr)) # 8*x + yWorked example 2: constants and negative coefficients
Simplify 7a - 4 - 9a + 10.
- Terms: 7a, -4, -9a, +10.
- Coefficients: +7 (a), -4 (constant), -9 (a), +10 (constant).
- Groups: the a terms are 7a and -9a. The constants are -4 and +10.
- Add: 7 + (-9) = -2 for a, and -4 + 10 = 6 for the constants.
- Result: -2a + 6.
Notice that the sign travels with the term. The minus in front of 9a stays attached to 9a even when 9a moves next to 7a.
Worked example 3: a term that vanishes
Simplify 4m + 6 - 4m + 1.
The m terms have coefficients 4 and -4. Their sum is 0, so 0m = 0 and the variable disappears. The constants give 6 + 1 = 7. The result is 7.
An expression can simplify to a plain number. That is correct and does not mean you made a mistake.
Tracking the signs
Most errors in this topic are sign errors. Two habits help.
- Subtraction is adding a negative. Rewrite 5x - 3x as 5x + (-3x). Then the coefficients are 5 and -3, and the sum is 2.
- Keep the sign with the term to its right. In 8 - 2x + 3, the terms are 8, -2x, and +3. If you reorder them, write -2x + 8 + 3 and not 8 + 3 - 2x with a lost sign.
The rules for adding signed numbers apply to coefficients:
| Situation | Rule | Example |
|---|---|---|
| Same signs | Add the sizes, keep the sign | -3x + (-4x) = -7x |
| Different signs | Subtract the smaller size from the larger, keep the sign of the larger | 9x + (-4x) = 5x |
| Opposite values | The sum is 0 | 6x + (-6x) = 0 |
Reordering terms safely
Addition can be done in any order, so you may move terms around. Subtraction cannot be reordered directly, which is why step 2 rewrites it as adding a negative. Once every term carries its sign, you can reorder them freely.
For example, 5 - 3x + 2x - 8 has the signed terms +5, -3x, +2x, -8. Group them as (-3x + 2x) + (5 - 8). The result is -x - 3.
Notice that -3 + 2 = -1, and the coefficient -1 is written as just a minus sign in front of x.
Fractions and decimals as coefficients
The procedure does not change when coefficients are fractions or decimals. You add them with the usual arithmetic.
Simplify (1/2)x + (1/3)x - 2.
- The x terms have coefficients 1/2 and 1/3.
- Find a common denominator, 6: 1/2 = 3/6 and 1/3 = 2/6.
- Add: 3/6 + 2/6 = 5/6.
- Result: (5/6)x - 2.
With decimals, 1.5y + 2.25y = 3.75y. Line up the decimal points before adding.
A visual summary
The flowchart below shows the decision you make for each term.
Combining when exponents are involved
Like terms must have the same variables raised to the same exponents. So x² and 3x² are like terms, but x² and x are not.
Simplify x² + x + 3x².
- Terms: x², +x, +3x².
- Coefficients: 1 (x²), 1 (x), 3 (x²).
- Groups: x² terms are x² and 3x². The x term is alone.
- Add: 1 + 3 = 4 for x².
- Result: 4x² + x.
from sympy import symbols, expand
x = symbols('x')
print(expand(x**2 + x + 3*x**2)) # 4*x**2 + xThe exponent is part of the variable part, so it is not added or changed. Combining 2x² + 3x² gives 5x², not 5x⁴.
When parentheses are present
If an expression has parentheses with a multiplier, first apply the distributive property to remove them. Then combine like terms.
Simplify 2(x + 3) + 3x.
- Distribute: 2(x + 3) = 2x + 6.
- The expression becomes 2x + 6 + 3x.
- Group: 2x and 3x are like terms. 6 is a constant.
- Add: 2 + 3 = 5.
- Result: 5x + 6.
from sympy import symbols, expand
x = symbols('x')
print(expand(2*(x + 3) + 3*x)) # 5*x + 6A minus sign in front of parentheses needs extra care, because it multiplies every term inside by -1. For example, 4x - (x - 2) becomes 4x - x + 2, which is 3x + 2. Writing -(x - 2) as -x + 2 is the step that learners most often miss.
Checking your work
After simplifying, substitute the same values into the original and the result. If the two numbers match, the answer is probably correct.
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 17Both give 17. A matching result for one choice of values is strong evidence, not proof. A wrong answer can match by coincidence, for example when the values make the difference equal zero. Test a second set of values, and avoid 0 and 1 because they hide many errors.
Edge cases and common errors
- Combining unlike terms. 3x + 2y is not 5xy and is not 5x. The terms have different variable parts, so the expression is already simplified.
- Adding exponents. 2x² + 3x² is 5x², not 5x⁴. Only coefficients are added.
- Treating x as having no coefficient. The term x means 1x. So x + 4x = 5x, not 4x.
- Dropping a minus sign. In 6x - 2x + 3 - 5, the constants are +3 and -5, which sum to -2. A common slip is 3 + 5 = 8.
- Mixing x and x². In 4x² + 3x, nothing combines. Writing 7x³ or 7x² is wrong.
- Forgetting that order does not matter for the result. 2x + 3 and 3 + 2x are the same. Only the signs attached to each term matter.
- Combining different variables with the same exponent. 2x² and 2y² are not like terms, because the variable letters differ.
Terms with several variables follow the same rule. 4xy and -xy are like terms, because both have the variable part xy. They combine to 3xy. But 4xy and 4x are not like terms.
Practice
Exercise
Simplify 9x - 4y + 2 - 5x + 7y - 6. Show the groups you formed.
Show answer
The x terms are 9x and -5x, which give 4x. The y terms are -4y and 7y, which give 3y. The constants are 2 and -6, which give -4. The result is 4x + 3y - 4.
Exercise
Simplify 5(x - 2) - (3x - 4), then check your answer by substituting x = 3 into both the original and the simplified expression.
Show answer
Distribute: 5x - 10 - 3x + 4. The x terms give 2x, and the constants give -6, so the result is 2x - 6. At x = 3, the original is 5(1) - (5) = 0, and the simplified form is 2(3) - 6 = 0. Both match.
Exercise
A student simplifies 3x² + 4x² + x and writes 8x². Identify the error and give the correct answer.
Show answer
The student combined x with the x² terms, but x and x² are not like terms because their exponents differ. The correct result is 7x² + x.