Sub topic 8
Combining Like Terms Step by Step
Assume you know integer arithmetic, fractions, order of operations, and basic exponents such as \(3^2\). An algebraic expression can be simplified by combining terms that have the same variable parts.
What makes terms like terms?
Like terms have exactly the same variables raised to the same powers. Their coefficients may be different.
For example, \(3x\) and \(-5x\) are like terms because both contain \(x^1\). The terms \(2x^2\) and \(7x\) are not like terms because their exponents differ.
| Terms | Like terms? | Reason |
|---|---|---|
| \(4x\) and \(-9x\) | Yes | Both have \(x\) |
| \(3a^2\) and \(a^2\) | Yes | Both have \(a^2\) |
| \(5x\) and \(5y\) | No | The variables differ |
| \(2xy\) and \(-xy\) | Yes | Both have \(xy\) |
| \(x^2\) and \(x^3\) | No | The exponents differ |
A constant is also a term. Constants are like terms with other constants. Thus, \(8\), \(-3\), and \(\frac{1}{2}\) can be combined.
The step-by-step method
To simplify an expression:
- Identify each term and keep its sign.
- Group terms with the same variable part.
- Add or subtract their coefficients.
- Write each combined group as one term.
- Leave unlike terms separate.
Consider:
\[ 3x+2y+5x-y \]
The \(x\)-terms are \(3x\) and \(5x\). The \(y\)-terms are \(2y\) and \(-y\).
\[ 3x+5x=8x \]
\[ 2y-y=y \]
Therefore:
\[ 3x+2y+5x-y=8x+y \]
The expression is simpler, but it has the same value for every permitted choice of \(x\) and \(y\).
from sympy import symbols, expand
x, y = symbols("x y")
expr = 3*x + 2*y + 5*x - y
print(expand(expr)) # 8*x + yKeep negative signs attached
A term's sign belongs to the term. In
\[ 7a-3a+4 \]
the terms are \(7a\), \(-3a\), and \(4\), not \(7a\), \(3a\), and \(4\). Combine the first two:
\[ 7a+(-3a)=4a \]
So the simplified expression is:
\[ 4a+4 \]
A useful habit is to rewrite subtraction as addition of a negative number before combining.
Parentheses and the distributive property
If a factor is outside parentheses, distribute it to every term inside:
\[ 2(x+3)+3x \]
First distribute \(2\):
\[ 2x+6+3x \]
Then combine the like \(x\)-terms:
\[ 2x+3x+6=5x+6 \]
Do not combine \(x\) with \(6\), because one term has a variable and the other is a constant.
from sympy import symbols, expand
x = symbols("x")
expression = 2*(x + 3) + 3*x
print(expand(expression)) # 5*x + 6A negative factor must also be distributed to every term:
\[ -(4x-7)=-4x+7 \]
Dropping the negative from the second term is a common error.
A quick equivalence check
Substitute values into both expressions. For the example above, let \(x=2\) and \(y=1\):
\[ 3x+2y+5x-y=6+2+10-1=17 \]
\[ 8x+y=16+1=17 \]
Matching results support that the simplification is correct.
Exercise
Simplify \(4m-2+7m+5\).
Show answer
Combine \(4m+7m=11m\) and \(-2+5=3\), so the result is \(11m+3\).