Sub topic 4
Terms: the pieces of an expression
This chapter assumes you can do arithmetic with integers and fractions (including negatives), follow the order of operations, and read exponents such as 3^2. It also assumes you have met variables, constants, and coefficients. Here you use them to split an expression into terms, and you learn to read each term's sign correctly. Recognizing like terms and combining them come in later chapters.
What a term is
A term is a piece of an expression that is added or subtracted as one unit. Terms are separated by + and - signs that sit at the top level of the expression, not inside parentheses.
Take this expression:
3x + 2y - 7
It has three terms: 3x, 2y, and 7. The + and - signs are the boundaries between them.
A term can be:
- a constant, such as
7 - a variable, such as
x - a product of a number and one or more variables, such as
3xor-4xy - a variable raised to a power, such as
x^2, or a product that includes one, such as5x^2
A term is built by multiplication (and exponents) only. Addition and subtraction split terms apart. This is why 3x is one term but 3 + x is two.
The parts of a term
Each term can be described by its coefficient and its variable part.
| Term | Coefficient | Variable part |
|---|---|---|
| `3x` | 3 | `x` |
| `-4xy` | -4 | `xy` |
| `x^2` | 1 | `x^2` |
| `-y` | -1 | `y` |
| `x/2` | 1/2 | `x` |
| `7` | 7 | none (a constant term) |
Two details cause most of the confusion here.
- A term with no visible number has a coefficient of 1 or -1. The term
xmeans1x, and-ymeans-1y. - Dividing by a number is the same as multiplying by its reciprocal. So
x/2is(1/2)x, and its coefficient is1/2.
Terms and their signs
The sign in front of a term belongs to that term. This is the most important idea in the chapter.
Consider:
5x - 3y + 2
Subtraction can be read as adding a negative. Rewriting the expression makes the signs explicit:
5x + (-3y) + 2
The terms are 5x, -3y, and 2. The term -3y has a coefficient of -3, not 3. The minus sign travels with the 3y.
The first term of an expression often has no sign written in front. In that case it is positive.
| Expression | Terms (with signs) |
|---|---|
| `4a + 9` | `4a`, `+9` |
| `4a - 9` | `4a`, `-9` |
| `-4a - 9` | `-4a`, `-9` |
| `-a + 9` | `-a`, `+9` |
Notice that 4a - 9 and 9 - 4a are different expressions. In the second, the terms are 9 and -4a. Reordering terms is only safe when each sign moves with its term. The expression -9 + 4a has the same value as 4a - 9, but 9 - 4a does not.
A sign-reading procedure
When you split an expression into terms, use this procedure:
- Scan from left to right at the top level, ignoring anything inside parentheses.
- Each time you meet a
+or-, a new term starts. - Attach that sign to the term that follows it.
- If the expression starts with no sign, the first term is positive.
Applied to -2x + 6y - x + 8:
-2x+6y-x+8
That gives four terms, with coefficients -2, 6, -1, and a constant of 8.
Parentheses and terms
Parentheses group things. A group inside parentheses acts as a single factor or unit, so the signs inside do not split the outer expression.
Look at 2(x + 3) + 5. At the top level there are two terms:
2(x + 3)5
The + inside the parentheses does not make 2(x + 3) into two terms yet. It is one term that is a product of 2 and the group (x + 3). Once you apply the distributive property (covered in a later chapter), it becomes 2x + 6, and then the expression has three terms: 2x, 6, and 5.
This distinction matters. The count of terms can change when you rewrite an expression, so always say which form you are counting in.
Counting terms: worked examples
Here are several expressions, split into terms.
Example 1. 7x - 4
Terms: 7x and -4. Count: 2.
Example 2. x^2 - 5x + 6
Terms: x^2, -5x, 6. Count: 3. The coefficients are 1, -5, and the constant 6.
Example 3. 3ab - 2a + b - 9
Terms: 3ab, -2a, b, -9. Count: 4. The coefficient of b is 1.
Example 4. 4(x - 1)
Top-level terms: just one, the product 4(x - 1). Count: 1 as written.
Example 5. (x + y)/2
This is one term, (1/2)(x + y). The division applies to the whole group. Count: 1 as written.
Names for expressions by their number of terms
Some expressions have special names based on their term count.
| Terms | Name | Example |
|---|---|---|
| 1 | monomial | `5x^2` |
| 2 | binomial | `x + 4` |
| 3 | trinomial | `x^2 + 2x + 1` |
| 4 or more | polynomial (general name) | `x^3 + x^2 + x + 1` |
All of these are polynomials in the broad sense. The names are shortcuts for describing size. They apply only to expressions made from variables with whole-number exponents, which covers the expressions in this tutorial.
Terms in different orders
The order in which terms are written does not change the expression, as long as each term keeps its own sign. This follows from the commutative property of addition.
3x - 5 + 2y is equal to 2y + 3x - 5 and to -5 + 3x + 2y.
When you reorder, picture the signs as glued to the front of each term. Many people find it helpful to rewrite subtraction as adding a negative before moving anything.
from sympy import symbols
x, y = symbols('x y')
a = 3*x - 5 + 2*y
b = 2*y + 3*x - 5
c = -5 + 3*x + 2*y
print(a == b == c) # TrueSymPy stores each of these as the same sum of three terms, so the comparison is true. The same tool can list the terms of an expression:
from sympy import symbols, Add
x, y = symbols('x y')
expr = 5*x - 3*y + 2
print(Add.make_args(expr)) # (2, 5*x, -3*y)The list shows three terms, and -3*y carries its negative sign. SymPy sorts the terms in its own order, which is why the constant 2 appears first. That ordering is a display choice and does not change the value.
A diagram of the structure
The diagram below shows how one expression breaks into terms, and each term into a coefficient and a variable part.
Why terms matter for what comes next
Everything that follows depends on being able to see terms clearly.
- To decide whether two terms are like terms, you compare their variable parts and ignore the coefficients.
- To combine like terms, you add their coefficients, so you need the correct signed coefficient of each term.
- To simplify with parentheses, you need to know which pieces are terms of the outer expression and which are inside a group.
If you misread a sign here, the error carries through every later step. Spending a moment on a clean list of terms, each with its sign, prevents most of those errors.
Common errors with terms
- Dropping the sign. Reading
6 - 2xas having terms6and2x. The second term is-2x. - Missing the invisible 1. Treating
xas having no coefficient. It has coefficient 1, and-xhas -1. - Splitting inside a product. Seeing
3xas two terms. It is one term, the product of 3 andx. - Counting inside parentheses too early. In
2(x + 3), the top-level count is 1, even though the group contains two pieces. - Treating a constant as "not a term." Constants such as
7or-4are terms. They are called constant terms.
Exercise
List the terms of -x + 4y - 6 + 2(a + 1) as written, with their signs. Then give the coefficient of each term that has a variable, and say how many terms the expression has after you distribute the 2.
Show answer
As written, the top-level terms are -x, +4y, -6, and +2(a + 1). That is 4 terms. The coefficients are -1 for -x and 4 for 4y. The term 2(a + 1) is a product of 2 and a group, so its coefficient is 2 with respect to the group. After distributing, 2(a + 1) becomes 2a + 2. The expression is -x + 4y - 6 + 2a + 2, which has 5 terms: -x, 4y, -6, 2a, and 2.
Exercise
Write the terms of 9 - 3x^2 + x/4 and state each coefficient.
Show answer
The terms are 9, -3x^2, and x/4. The constant term 9 has coefficient 9. The term -3x^2 has coefficient -3. The term x/4 equals (1/4)x, so its coefficient is 1/4.