Sub topic 6
Recognizing Like Terms
Prerequisites and the key idea
This chapter assumes you can work with integers, fractions, negative numbers, order of operations, and basic exponents such as \(3^2\).
A term is a number, a variable, or a product of numbers and variables. Terms are separated by plus or minus signs. For example, the expression
\[ 7x^2 - 3xy + 5 \]
has three terms: \(7x^2\), \(-3xy\), and \(5\).
Like terms are terms with exactly the same variables raised to exactly the same exponents. Their coefficients may be different. Like terms can be combined by adding or subtracting their coefficients.
The variable part must match completely. The order of factors does not matter, so \(2xy\) and \(9yx\) are like terms. However, \(x\) and \(x^2\) are not like terms because their exponents differ.
Inspecting the variable part
A coefficient is the numerical factor multiplying a variable part. In \(-6a^2b\), the coefficient is \(-6\), and the variable part is \(a^2b\).
Use this process to recognize like terms:
- Ignore the coefficients temporarily.
- Compare every variable.
- Compare the exponent of each variable.
- Group terms only when the complete variable parts match.
- Keep constant terms in their own group.
| Terms | Like terms? | Reason |
|---|---|---|
| \(4x\) and \(-9x\) | Yes | Both have variable part \(x\). |
| \(3a^2\) and \(8a^2\) | Yes | Both have variable part \(a^2\). |
| \(5xy\) and \(2yx\) | Yes | Multiplication can be reordered; both have \(x\) and \(y\). |
| \(7x\) and \(7x^2\) | No | The exponent of \(x\) differs. |
| \(4ab\) and \(4a\) | No | The first term also contains \(b\). |
| \(6\) and \(-2\) | Yes | Both are constants. |
A missing exponent is understood to be 1. Thus, \(x\) means \(x^1\), and \(3xy\) means \(3x^1y^1\). This helps explain why \(x\) and \(4x\) are like terms, while \(x\) and \(x^2\) are not.
Common comparison errors
Do not compare only the coefficient. The terms \(3x^2\) and \(3x\) have the same coefficient but are unlike terms.
Do not combine terms because they contain the same letter somewhere. The terms \(2ab\) and \(2a\) differ because one contains \(b\).
Do not treat addition inside a variable part as multiplication. The terms \(x+y\) and \(3x+3y\) are expressions, not single like terms. Like-term checks apply to individual terms after an expression has been separated.
Signs belong to terms. In \(8x - 3x\), the second term is \(-3x\), not \(3x\). When like terms are eventually combined, that negative sign must be included.
A quick check with SymPy
A computer algebra system can confirm the grouping, but it does not replace identifying the variable parts. In this example, \(3x^2\) and \(-x^2\) combine, while \(4x\) remains separate.
from sympy import symbols, expand
x = symbols("x")
expression = 3*x**2 + 4*x - x**2
print(expand(expression)) # 2*x**2 + 4*xThe result has one \(x^2\) term and one \(x\) term because those variable parts are different.
Exercise
Which terms in \(6p^2q - 4pq^2 + 3p^2q + 9q\) are like terms, and why?
Show answer
\(6p^2q\) and \(3p^2q\) are like terms because both have the variable part \(p^2q\). The other terms are unlike them and unlike each other: \(pq^2\) has different exponents, and \(q\) has no \(p\).