Sub topic 10
Like Terms with Exponents and More Than One Variable
Prerequisites and the working model
This chapter assumes that you can work with integers and fractions, follow the order of operations, and interpret basic exponents such as 3^2. You should also know that a variable is a letter representing a number.
A term is a number, a variable, or a product of numbers and variables. In -6x^2y, the coefficient is -6, and the variable part is x^2y.
Two terms are like terms when their variable parts match exactly. The variables must be the same, and their exponents must be the same. Their coefficients may be different.
For example:
4x^2yand-9x^2yare like terms.3ab^2and8ba^2are not like terms because the exponents belong to different variables.7x^2and7xare not like terms because the exponents differ.5and-2are like terms because both are constants.
The order of factors does not matter. Therefore, xy^2 and y^2x have the same variable part.
| Pair of terms | Like terms? | Reason |
|---|---|---|
| `3x^2y` and `-5x^2y` | Yes | Same variables and exponents |
| `4mn` and `4m^2n` | No | The exponent of `m` differs |
| `8` and `-11` | Yes | Both are constants |
Reading exponents in variable parts
An exponent describes repeated multiplication. In x^3y^2, the variable part contains three factors of x and two factors of y.
When deciding whether terms are alike, compare the complete variable part:
- List each variable.
- Record its exponent.
- Ignore the coefficient.
- Compare the resulting variable parts.
For example, compare -2p^2q and 7qp^2. Reordering the factors gives 7p^2q. Both terms contain p^2q, so they are like terms.
A variable with no written exponent has exponent 1. Thus, 3xy means 3x^1y^1. A constant can be viewed as having no variable part.
Combining terms with several variables
Once terms are known to be like, add or subtract their coefficients and keep the shared variable part unchanged.
Consider:
3a^2b - 8a^2b + 5ab^2
The first two terms are like, but 5ab^2 is different. Combine only the first pair:
3a^2b - 8a^2b + 5ab^2 = -5a^2b + 5ab^2
For a longer expression, group terms by variable part:
4x^2y + 3xy^2 - 9x^2y + 6xy^2
Combine matching groups:
(4x^2y - 9x^2y) + (3xy^2 + 6xy^2)
Then simplify:
-5x^2y + 9xy^2
The expression is simplified because no remaining terms are alike.
Common errors
Do not combine terms just because they contain some of the same variables. The entire variable part must match. For example, 2x^2y and 5xy are unlike because the exponent of x differs.
Do not add exponents when combining like terms. The rule is:
4x^2y + 3x^2y = 7x^2y
It is not 7x^4y^2. Exponents are added when multiplying powers with the same base, not when adding like terms.
Do not lose a negative sign. In 6m^2n - 10m^2n, the coefficient of the second term is -10, so the result is -4m^2n.
Checking with a symbolic tool
SymPy can collect like terms while preserving different exponents:
from sympy import symbols, expand
x, y = symbols("x y")
expression = x**2 + 3*x**2 + 2*x*y - y*x
print(expand(expression)) # 4*x**2 + x*yHere, x*y and y*x combine because multiplication is commutative. The term x**2 remains separate from x*y.
Exercise
Simplify 6r^2s - 4rs^2 + 9r^2s + 3sr^2. Which terms are like?
Show answer
Rewrite 3sr^2 as 3r^2s. The r^2s terms are like, so (6 + 9 + 3)r^2s = 18r^2s. The term -4rs^2 is unlike them. The simplified expression is 18r^2s - 4rs^2.